:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b9d8f4;
  --deep: #06164a;
  --panel: rgba(8, 43, 105, 0.74);
  --panel-strong: rgba(9, 58, 133, 0.92);
  --line: rgba(190, 230, 255, 0.34);
  --yellow: #ffd834;
  --blue: #37a7ff;
  --blue-hot: #00d5ff;
  --violet: #7e68ff;
  --green: #50f099;
  --danger: #ff6b5f;
  --shadow: rgba(0, 9, 38, 0.55);
  font-family: "Arial Black", "Impact", "Trebuchet MS", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    radial-gradient(circle at 50% 33%, rgba(210, 230, 255, 0.11), transparent 7rem),
    linear-gradient(180deg, #06174c 0%, #08245f 42%, #030920 100%);
  color: var(--ink);
}

body {
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#sky-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding: 14px clamp(12px, 2vw, 26px) 18px;
  overflow: hidden;
  isolation: isolate;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 4, 18, 0.32), rgba(0, 7, 24, 0.22)),
    linear-gradient(90deg, rgba(1, 8, 42, 0.66), transparent 24%, transparent 76%, rgba(1, 6, 32, 0.8)),
    radial-gradient(circle at 17% 25%, rgba(255, 217, 52, 0.08), transparent 12rem),
    radial-gradient(circle at 82% 20%, rgba(79, 219, 255, 0.1), transparent 13rem),
    linear-gradient(160deg, rgba(21, 46, 114, 0.34), rgba(2, 10, 46, 0.78));
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: auto -10vw 0;
  z-index: -1;
  height: 42vh;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 13, 56, 0.34) 20%, rgba(2, 12, 44, 0.88) 100%),
    repeating-linear-gradient(92deg, transparent 0 28px, rgba(255, 255, 255, 0.06) 29px 31px);
  transform: skewY(-2deg);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(360px, 1.65fr) minmax(220px, 0.75fr);
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.menu-glyph {
  display: grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 47, 116, 0.72);
  box-shadow: 0 10px 22px var(--shadow), inset 0 0 18px rgba(255, 255, 255, 0.1);
}

.menu-glyph span {
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
}

.brand-title {
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(4, 29, 89, 0.52);
  white-space: nowrap;
}

.brand-season {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.55vw, 9px);
  min-width: 0;
}

.tab {
  position: relative;
  min-height: 42px;
  padding: 10px clamp(8px, 1vw, 16px);
  border: 0;
  color: rgba(242, 249, 255, 0.8);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.76rem;
  text-shadow: 0 2px 0 rgba(2, 15, 62, 0.44);
  transition: transform 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.tab:hover,
.tab:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: 0;
}

.tab.is-active::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  z-index: -1;
  background: var(--yellow);
  transform: skewX(-10deg);
  box-shadow: 0 8px 0 rgba(0, 54, 153, 0.55);
}

.tab.is-active {
  color: #18305d;
  text-shadow: none;
}

.tab span {
  margin-left: 5px;
  padding: 2px 5px;
  color: #18305d;
  background: var(--yellow);
  font-size: 0.58rem;
  border-radius: 2px;
}

.account-pill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.icon-button,
.profile-chip,
.vbucks-balance {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(3, 30, 89, 0.7);
  box-shadow: 0 8px 18px rgba(0, 4, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

.account-menu-button {
  gap: 3px;
}

.account-menu-button span {
  display: block;
  width: 18px;
  height: 3px;
  background: #e8eef9;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.56);
}

.speaker-icon {
  position: relative;
  width: 21px;
  height: 16px;
}

.speaker-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 8px;
  height: 8px;
  background: var(--ink);
  clip-path: polygon(0 20%, 42% 20%, 100% 0, 100% 100%, 42% 80%, 0 80%);
}

.speaker-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 11px;
  height: 14px;
  border: 3px solid var(--ink);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.vbucks-balance,
.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
}

.coin {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fefaff 0 10%, #67e3ff 11% 43%, #1371ff 44% 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 20, 80, 0.34), 0 0 14px rgba(91, 220, 255, 0.45);
}

.coin::after {
  content: "V";
  color: #eafcff;
  font-size: 0.68rem;
  text-shadow: 0 1px 0 #00347d;
}

.profile-chip {
  border-radius: 0;
  text-transform: uppercase;
}

.avatar-dot {
  width: 26px;
  height: 26px;
  border: 2px solid #f4fbff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd83b 0 45%, #1bb4ff 46% 100%);
}

.lobby-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(420px, 1.62fr) minmax(280px, 0.84fr);
  gap: clamp(12px, 1.6vw, 22px);
  height: calc(100vh - 102px);
  min-height: 0;
}

.left-stack,
.right-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.left-stack {
  gap: 8px;
}

.right-stack {
  gap: 6px;
}

.right-stack .mode-eyebrow {
  font-size: 0.58rem;
}

.right-stack .section-header h2 {
  font-size: 1.04rem;
}

.right-stack .party-slot strong,
.right-stack .friend-row strong,
.right-stack .quest-row strong {
  font-size: 0.66rem;
}

.right-stack .party-slot small,
.right-stack .friend-row small,
.right-stack .quest-row small {
  font-size: 0.58rem;
}

.right-stack .slot-avatar,
.right-stack .friend-avatar {
  width: 24px;
  height: 24px;
}

.right-stack .friend-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.right-stack .quest-list,
.right-stack .friend-list {
  gap: 4px;
  margin-top: 6px;
}

.right-stack .quest-row,
.right-stack .friend-row {
  padding: 4px;
}

.right-stack .slot-state {
  padding: 3px 5px;
  font-size: 0.52rem;
}

.right-stack .news-card {
  min-height: 98px;
}

.right-stack .quests {
  padding: 8px;
}

.right-stack .locker-preview {
  padding: 8px;
}

.right-stack .friends {
  padding: 8px;
}

.right-stack .skin-swatch {
  min-height: 34px;
}

.right-stack .skin-swatch::before {
  inset: auto 8px 6px;
  height: 10px;
}

.right-stack .skin-swatch::after {
  top: 6px;
  width: 18px;
  height: 24px;
}

.right-stack .online-pill {
  font-size: 0.5rem;
}

.right-stack .friend-row button {
  padding: 4px 5px;
  font-size: 0.52rem;
}

.right-stack .quest-progress {
  height: 4px;
}

.right-stack .news-card h2 {
  font-size: 1.22rem;
}

.right-stack .news-card p {
  font-size: 0.68rem;
  line-height: 1.16;
}

.right-stack .news-card button {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 0.58rem;
}

.right-stack .skin-swatches {
  gap: 5px;
  margin-top: 6px;
}

.right-stack .friend-list {
  overflow: hidden;
}

.right-stack .friends {
  max-height: 139px;
}

.right-stack .friend-row {
  min-height: 31px;
}

.right-stack .friend-row:nth-child(n + 4) {
  display: none;
}

.panel-slab {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(9, 65, 143, 0.85), rgba(5, 29, 90, 0.78));
  box-shadow: 0 18px 30px rgba(0, 8, 45, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.panel-slab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 55% 57%, transparent 57% 100%);
}

.mode-feature {
  padding: 14px;
}

.mode-eyebrow {
  color: #c7eaff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-feature h1,
.section-header h2,
.news-card h2,
.quests h2,
.locker-preview h2,
.friends h2 {
  margin: 0;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 22, 82, 0.42);
}

.mode-feature h1 {
  margin-top: 6px;
  font-size: 1.95rem;
}

.mode-feature p,
.news-card p {
  margin: 7px 0 0;
  color: #d8efff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.22;
}

.discover-button {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 0;
  color: #17305f;
  background: linear-gradient(180deg, #fff16f, var(--yellow));
  box-shadow: 0 7px 0 #a76300, 0 14px 20px rgba(0, 7, 38, 0.26);
  text-transform: uppercase;
}

.discover-button:hover,
.discover-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.mode-controls,
.match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.mini-control,
.text-control,
.small-action,
.secondary-cta,
.news-card button {
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--ink);
  background: rgba(0, 29, 87, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 7px 14px rgba(0, 8, 37, 0.2);
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.mini-control {
  flex: 1 1 70px;
  padding: 6px 7px;
  font-size: 0.72rem;
}

.mini-control.is-active {
  color: #19315b;
  background: var(--yellow);
}

.text-control {
  padding: 6px 9px;
  font-size: 0.72rem;
}

.mini-control:hover,
.text-control:hover,
.small-action:hover,
.secondary-cta:hover,
.news-card button:hover {
  transform: translateY(-1px);
  background: rgba(25, 129, 255, 0.56);
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e9f7ff;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.switch-control input {
  position: absolute;
  opacity: 0;
}

.switch-control span {
  position: relative;
  width: 46px;
  height: 24px;
  border: 1px solid var(--line);
  background: rgba(1, 14, 52, 0.66);
  pointer-events: none;
}

.switch-control span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--muted);
  transition: transform 180ms ease, background 180ms ease;
}

.switch-control input:checked + span {
  background: #0c98ff;
}

.switch-control input:checked + span::after {
  transform: translateX(21px);
  background: var(--ink);
}

.ranked-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 16, 58, 0.44);
  opacity: 0.74;
}

.ranked-status.is-active {
  border-color: rgba(255, 216, 52, 0.62);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 216, 52, 0.16), transparent 5rem),
    rgba(0, 16, 58, 0.56);
  opacity: 1;
}

.ranked-emblem {
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.7), transparent 20%),
    conic-gradient(from 20deg, #ffd834, #4bd4ff, #7e68ff, #ffd834);
  clip-path: polygon(50% 0, 90% 26%, 78% 100%, 22% 100%, 10% 26%);
  filter: drop-shadow(0 10px 14px rgba(0, 7, 38, 0.28));
}

.ranked-status strong,
.ranked-status small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranked-status strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.ranked-status small {
  margin: 2px 0 6px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
}

.ranked-track {
  display: block;
  height: 7px;
  background: rgba(0, 11, 44, 0.72);
}

.ranked-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #ffd834, #4bd4ff, #7e68ff);
}

.mode-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mode-card {
  min-height: 82px;
  padding: 7px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(5, 32, 91, 0.68);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 14px 22px rgba(0, 8, 43, 0.28);
}

.mode-card.is-selected {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 216, 52, 0.22), 0 16px 26px rgba(0, 7, 38, 0.34);
}

.mode-art {
  display: block;
  height: 28px;
  margin: -2px -2px 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.8), transparent 10%),
    linear-gradient(135deg, #5fe5ff, #1548bd);
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 82%);
}

.mode-art.zb {
  background:
    radial-gradient(circle at 72% 25%, rgba(255, 255, 255, 0.78), transparent 10%),
    linear-gradient(135deg, #ffcc3b, #fb5b2c 62%, #5921c9);
}

.mode-art.reload {
  background:
    radial-gradient(circle at 46% 34%, rgba(255, 255, 255, 0.84), transparent 9%),
    linear-gradient(135deg, #5cff9f, #0478ff 56%, #122b7f);
}

.mode-card strong,
.mode-card small {
  display: block;
  text-transform: uppercase;
}

.mode-card strong {
  font-size: 0.72rem;
}

.mode-card small {
  margin-top: 1px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.party-card {
  padding: 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-header h2 {
  margin-top: 3px;
  font-size: 1.2rem;
}

.small-action {
  padding: 6px 8px;
  font-size: 0.66rem;
}

.party-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.party-list,
.friend-list,
.quest-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.party-slot,
.friend-row,
.quest-row {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 18, 58, 0.34);
}

.party-slot {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 36px;
  padding: 5px;
}

.party-slot.is-filled {
  border-color: rgba(87, 255, 154, 0.42);
  background: rgba(20, 107, 152, 0.26);
}

.slot-avatar,
.friend-avatar {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-hot), var(--violet));
}

.party-slot strong,
.friend-row strong,
.quest-row strong {
  display: block;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.party-slot small,
.friend-row small,
.quest-row small {
  display: block;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
}

.slot-state {
  padding: 4px 6px;
  border: 0;
  color: #12345d;
  background: var(--yellow);
  font-size: 0.58rem;
  text-transform: uppercase;
}

button.slot-state {
  cursor: pointer;
}

button.slot-state:hover,
button.slot-state:focus-visible {
  background: #fff087;
  outline: 2px solid rgba(255, 255, 255, 0.44);
  outline-offset: 1px;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100%;
  padding: clamp(6px, 1vw, 12px);
  overflow: hidden;
}

.event-banner {
  position: relative;
  z-index: 4;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(90deg, rgba(14, 63, 151, 0.82), rgba(6, 32, 95, 0.62));
  box-shadow: 0 12px 28px rgba(0, 7, 42, 0.26);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.event-icon {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 62% 32%, 97% 32%, 69% 52%, 82% 88%, 50% 66%, 18% 88%, 31% 52%, 3% 32%, 38% 32%);
}

.rank-badge {
  position: absolute;
  top: 84px;
  right: clamp(4px, 1vw, 20px);
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle, #ffeb70 0 42%, #1bb8ff 43% 100%);
  color: #173065;
  box-shadow: 0 18px 28px rgba(0, 11, 54, 0.34), inset 0 -10px 0 rgba(0, 48, 130, 0.18);
  text-transform: uppercase;
}

.rank-badge span {
  margin-top: 9px;
  font-size: 0.64rem;
}

.rank-badge strong {
  margin-top: -13px;
  font-size: 2.28rem;
}

.character-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(70px, 0.22fr) minmax(260px, 1fr) minmax(70px, 0.22fr);
  align-items: end;
  justify-items: center;
  min-height: 0;
}

.friend-pedestal {
  display: grid;
  justify-items: center;
  align-self: end;
  gap: 8px;
  margin-bottom: clamp(34px, 6vh, 64px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #e1f5ff;
  opacity: 0.78;
  text-transform: uppercase;
}

.friend-pedestal:hover,
.friend-pedestal:focus-visible {
  opacity: 1;
  outline: 0;
}

.friend-pedestal:hover .plus-ring,
.friend-pedestal:focus-visible .plus-ring {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px) scale(1.04);
}

.friend-pedestal.is-filled {
  opacity: 1;
}

.friend-pedestal.is-filled small {
  max-width: 92px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 rgba(0, 22, 78, 0.58);
  white-space: nowrap;
}

.pedestal-avatar {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(135deg, #38d9ff, #57ff9a);
  box-shadow: 0 0 0 6px rgba(0, 203, 255, 0.12), 0 14px 28px rgba(0, 8, 44, 0.34);
}

.pedestal-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 20px;
  height: 30px;
  border-radius: 14px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.plus-ring {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 3px dashed rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(9, 47, 114, 0.5);
  font-size: 2rem;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.avatar-platform {
  position: relative;
  display: grid;
  place-items: end center;
  width: min(100%, 530px);
  height: 100%;
}

.platform-rings {
  position: absolute;
  bottom: clamp(14px, 3vh, 28px);
  width: min(90vw, 460px);
  aspect-ratio: 2.9 / 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(161, 235, 255, 0.7) 0 17%, transparent 18%),
    radial-gradient(ellipse at center, transparent 0 43%, rgba(52, 199, 255, 0.9) 44% 46%, transparent 47%),
    radial-gradient(ellipse at center, transparent 0 63%, rgba(255, 255, 255, 0.64) 64% 66%, transparent 67%),
    radial-gradient(ellipse at center, rgba(8, 59, 156, 0.36), rgba(1, 12, 58, 0.84));
  filter: drop-shadow(0 20px 30px rgba(0, 11, 52, 0.52));
  animation: platformPulse 2600ms ease-in-out infinite;
}

.ready-pulse {
  position: absolute;
  bottom: clamp(26px, 4vh, 50px);
  width: 270px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 216, 52, 0);
  border-radius: 50%;
  pointer-events: none;
}

.ready-pulse.is-ready {
  animation: readyRipple 1300ms ease-out infinite;
}

.character {
  --primary: #1ed4ff;
  --secondary: #ffcf30;
  --suit: #153b90;
  --skin: #f1ae7b;
  --backbling-a: #1ed4ff;
  --backbling-b: #ffcf30;
  --pickaxe-a: #98f5ff;
  --pickaxe-b: #1e64d8;
  --glider-a: #4bd4ff;
  --glider-b: #57ff9a;
  --wrap-a: #53ff9a;
  --wrap-b: #7e68ff;
  position: relative;
  width: clamp(170px, 22vw, 245px);
  height: clamp(326px, 49vh, 448px);
  margin-bottom: clamp(44px, 7vh, 72px);
  filter: drop-shadow(0 30px 28px rgba(0, 12, 58, 0.46));
  transform-origin: 50% 92%;
  animation: idleBody 2750ms ease-in-out infinite;
}

.character-model-canvas {
  position: absolute;
  left: 50%;
  bottom: -5%;
  z-index: 6;
  display: block;
  opacity: 0;
  width: 260%;
  height: 116%;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.character.has-three-model {
  animation: none;
}

.character.has-three-model .character-model-canvas {
  opacity: 1;
}

.character.has-three-model .head,
.character.has-three-model .neck,
.character.has-three-model .torso,
.character.has-three-model .arm,
.character.has-three-model .belt,
.character.has-three-model .leg,
.character.has-three-model .back-bling,
.character.has-three-model .pickaxe-prop {
  display: none;
}

.character.is-emoting.emote-hop,
.character.is-emoting.emote-orange-justice,
.character.is-emoting.emote-take-the-l {
  animation: emoteHop 820ms cubic-bezier(0.2, 0.88, 0.3, 1.2) 4;
}

.character.is-emoting.emote-wave,
.character.is-emoting.emote-salute,
.character.is-emoting.emote-default-dance {
  animation: emoteLean 900ms ease-in-out 4;
}

.character.is-emoting.emote-flex {
  animation: emoteFlexBody 720ms ease-in-out 4;
}

.character.is-emoting.emote-step,
.character.is-emoting.emote-floss,
.character.is-emoting.emote-electro-shuffle {
  animation: emoteStepBody 620ms ease-in-out 5;
}

.character.is-emoting.emote-spin {
  animation: emoteSpin 900ms cubic-bezier(0.2, 0.78, 0.2, 1) 3;
}

.nameplate {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(4, 32, 94, 0.74);
  text-align: center;
  box-shadow: 0 14px 24px rgba(0, 9, 46, 0.26);
  z-index: 7;
}

.nameplate strong,
.nameplate span {
  display: block;
  text-transform: uppercase;
}

.nameplate strong {
  font-size: 1.05rem;
}

.nameplate span {
  margin-top: 3px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
}

.head,
.neck,
.torso,
.arm,
.leg,
.belt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.head {
  top: 6%;
  width: 36%;
  aspect-ratio: 0.86;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 48% 48% 42% 42%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 32%),
    var(--skin);
  box-shadow: inset 0 -11px 0 rgba(120, 63, 60, 0.22);
  z-index: 5;
}

.head::before,
.head::after {
  content: "";
  position: absolute;
  top: 45%;
  width: 9%;
  height: 10%;
  border-radius: 50%;
  background: #14305c;
}

.head::before {
  left: 27%;
}

.head::after {
  right: 27%;
}

.visor {
  position: absolute;
  left: 14%;
  top: 56%;
  width: 72%;
  height: 11%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e1d3f, var(--primary), #0e1d3f);
  box-shadow: 0 0 18px color-mix(in srgb, var(--primary), transparent 28%);
}

.hair {
  position: absolute;
  top: -16%;
  width: 50%;
  height: 34%;
  background: var(--secondary);
  clip-path: polygon(0 0, 100% 12%, 77% 90%, 35% 100%);
}

.hair.left {
  left: -3%;
  transform: rotate(-14deg);
}

.hair.right {
  right: -3%;
  transform: scaleX(-1) rotate(-14deg);
}

.neck {
  top: 24%;
  width: 18%;
  height: 7%;
  background: #c97f69;
  z-index: 2;
}

.back-bling {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 78%;
  height: 24%;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(145deg, var(--backbling-a), var(--backbling-b));
  clip-path: polygon(22% 0, 78% 0, 100% 54%, 82% 100%, 18% 100%, 0 54%);
  filter: drop-shadow(0 14px 20px rgba(0, 8, 42, 0.24));
  transform: translateX(-50%) scale(0.9);
}

.back-bling::after {
  content: "";
  position: absolute;
  inset: 18% 28%;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(0, 14, 58, 0.2);
}

.pickaxe-prop {
  position: absolute;
  left: 73%;
  top: 31%;
  width: 13%;
  height: 45%;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pickaxe-a), var(--pickaxe-b));
  box-shadow: 0 12px 18px rgba(0, 10, 46, 0.22);
  transform: rotate(-21deg);
  transform-origin: 50% 8%;
}

.pickaxe-prop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8%;
  width: 220%;
  height: 16%;
  background: linear-gradient(90deg, var(--wrap-a), var(--pickaxe-a), var(--wrap-b));
  clip-path: polygon(0 36%, 78% 0, 100% 50%, 78% 100%, 0 64%);
  transform: translateX(-50%) rotate(-12deg);
}

.pickaxe-prop span {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 58%;
  height: 18%;
  background: linear-gradient(135deg, var(--glider-a), var(--glider-b));
  transform: translateX(-50%);
}

.torso {
  top: 28%;
  width: 58%;
  height: 29%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  background:
    radial-gradient(circle at 50% 36%, var(--primary) 0 7%, transparent 8%),
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.12) 49% 51%, transparent 52%),
    linear-gradient(135deg, var(--suit), #071d62);
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -18px 0 rgba(0, 0, 0, 0.18), 0 20px 24px rgba(0, 9, 48, 0.16);
  z-index: 3;
}

.chest-core {
  position: absolute;
  left: 50%;
  top: 17%;
  width: 26%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary), #064eaa);
  transform: translateX(-50%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary), transparent 36%);
}

.strap {
  position: absolute;
  top: 0;
  width: 12%;
  height: 105%;
  background: color-mix(in srgb, var(--secondary), #6a4d00 18%);
}

.strap.a {
  left: 26%;
  transform: skewX(14deg);
}

.strap.b {
  right: 26%;
  transform: skewX(-14deg);
}

.belt {
  top: 56%;
  width: 66%;
  height: 7%;
  background: linear-gradient(180deg, var(--secondary), #b06b00);
  z-index: 4;
  box-shadow: 0 8px 0 rgba(0, 12, 58, 0.2);
}

.belt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 125%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: #17305f;
  transform: translate(-50%, -50%);
}

.arm {
  top: 30%;
  width: 18%;
  height: 38%;
  transform-origin: 50% 8%;
  z-index: 1;
}

.arm.left {
  left: 25%;
  transform: rotate(9deg);
  animation: idleArmLeft 2750ms ease-in-out infinite;
}

.arm.right {
  left: 75%;
  transform: rotate(-9deg);
  animation: idleArmRight 2750ms ease-in-out infinite;
}

.character.is-emoting.emote-wave .arm.left,
.character.is-emoting.emote-default-dance .arm.left {
  animation: waveLeft 820ms ease-in-out 4;
}

.character.is-emoting.emote-wave .arm.right,
.character.is-emoting.emote-default-dance .arm.right {
  animation: waveRight 820ms ease-in-out 4;
}

.character.is-emoting.emote-flex .arm.left,
.character.is-emoting.emote-orange-justice .arm.left {
  animation: flexLeft 720ms ease-in-out 4;
}

.character.is-emoting.emote-flex .arm.right,
.character.is-emoting.emote-orange-justice .arm.right {
  animation: flexRight 720ms ease-in-out 4;
}

.character.is-emoting.emote-step .arm.left,
.character.is-emoting.emote-floss .arm.left,
.character.is-emoting.emote-electro-shuffle .arm.left {
  animation: stepLeft 620ms ease-in-out 5;
}

.character.is-emoting.emote-step .arm.right,
.character.is-emoting.emote-floss .arm.right,
.character.is-emoting.emote-electro-shuffle .arm.right {
  animation: stepRight 620ms ease-in-out 5;
}

.character.is-emoting.emote-salute .arm.right,
.character.is-emoting.emote-take-the-l .arm.right {
  animation: saluteRight 900ms ease-in-out 4;
}

.character.is-emoting.emote-salute .arm.left,
.character.is-emoting.emote-take-the-l .arm.left {
  animation: idleArmLeft 900ms ease-in-out 4;
}

.arm::before {
  content: "";
  position: absolute;
  top: 0;
  left: 21%;
  width: 58%;
  height: 52%;
  background: linear-gradient(180deg, var(--suit), #071d62);
  border-radius: 999px;
}

.forearm {
  position: absolute;
  left: 18%;
  top: 43%;
  width: 64%;
  height: 48%;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary), var(--suit) 55%), #071d62);
}

.hand {
  position: absolute;
  left: 16%;
  bottom: 0;
  width: 70%;
  height: 15%;
  border-radius: 50%;
  background: var(--skin);
}

.leg {
  top: 61%;
  width: 22%;
  height: 35%;
  background: linear-gradient(180deg, var(--suit), #071841);
  border-radius: 999px 999px 8px 8px;
  z-index: 1;
}

.leg.left {
  left: 40%;
  transform: rotate(3deg);
}

.leg.right {
  left: 60%;
  transform: rotate(-3deg);
}

.boot {
  position: absolute;
  left: -17%;
  bottom: -5%;
  width: 134%;
  height: 19%;
  background: #071230;
  clip-path: polygon(9% 0, 100% 0, 92% 100%, 0 100%);
}

.stage-actions {
  display: grid;
  grid-template-columns: minmax(98px, 0.26fr) minmax(210px, 0.48fr) minmax(98px, 0.26fr);
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.ready-button {
  min-height: 68px;
  border: 0;
  color: #243863;
  background: linear-gradient(180deg, #fff16f 0%, var(--yellow) 52%, #f1a900 100%);
  box-shadow: 0 10px 0 #b36a00, 0 24px 34px rgba(0, 8, 46, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  transform: skewX(-6deg);
  transition: filter 160ms ease, transform 160ms ease;
}

.ready-button:hover {
  filter: brightness(1.08);
  transform: skewX(-6deg) translateY(-2px);
}

.ready-button.is-queued {
  color: #e9fbff;
  background: linear-gradient(180deg, #2be6ff, #1673ff);
  box-shadow: 0 10px 0 #0751b2, 0 24px 34px rgba(0, 8, 46, 0.38);
}

.ready-button.is-found {
  color: #102958;
  background: linear-gradient(180deg, #73ffad, #22d86f);
  box-shadow: 0 10px 0 #078247, 0 24px 34px rgba(0, 8, 46, 0.38);
}

.ready-button span,
.ready-button small {
  display: block;
  transform: skewX(6deg);
}

.ready-button span {
  font-size: 2rem;
  line-height: 1;
}

.ready-button small {
  margin-top: 4px;
  font-size: 0.72rem;
}

.secondary-cta {
  min-height: 48px;
  padding: 10px;
  align-self: center;
}

.queue-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  width: 100%;
  min-height: 34px;
  margin: 14px auto 0;
  color: #dff6ff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-meter span {
  position: relative;
  height: 9px;
  background: rgba(0, 15, 57, 0.52);
  overflow: hidden;
}

.queue-meter span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--queue-progress, 0%);
  background: linear-gradient(90deg, var(--yellow), var(--blue-hot));
  transition: width 260ms ease;
}

.news-card {
  position: relative;
  min-height: 112px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 232, 88, 0.84) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(255, 192, 38, 0.95), rgba(255, 88, 55, 0.82) 38%, rgba(27, 86, 208, 0.8));
  box-shadow: 0 18px 30px rgba(0, 8, 45, 0.34);
  overflow: hidden;
}

.news-card[data-palette="bus"] {
  background:
    radial-gradient(circle at 80% 26%, rgba(255, 255, 255, 0.8) 0 7%, transparent 8%),
    linear-gradient(135deg, #43d8ff, #1567df 42%, #5937d9);
}

.news-card[data-palette="shop"] {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 245, 172, 0.84) 0 8%, transparent 9%),
    linear-gradient(135deg, #5df08b, #31a5ff 42%, #ad5df2);
}

.news-card::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: 62%;
  height: 82%;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.28) 45% 50%, transparent 51%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent);
  clip-path: polygon(35% 0, 100% 0, 78% 100%, 0 100%);
}

.news-card h2 {
  margin-top: 4px;
  font-size: 1.45rem;
}

.news-card p {
  max-width: 92%;
  color: #fff7d5;
}

.news-card button {
  position: relative;
  z-index: 1;
  justify-self: flex-start;
  width: max-content;
  padding: 6px 9px;
  font-size: 0.68rem;
  background: rgba(5, 20, 55, 0.54);
}

.news-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
}

.news-controls button {
  display: grid;
  place-items: center;
  min-width: 26px;
  width: 26px;
  height: 22px;
  padding: 0;
}

.news-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-dots button {
  min-width: 18px;
  width: 18px;
  height: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.36);
}

.news-dots button.is-active {
  background: var(--yellow);
}

.quests,
.locker-preview,
.friends {
  padding: 10px;
}

.quest-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px;
}

.quest-progress {
  grid-column: 1 / -1;
  height: 5px;
  background: rgba(0, 12, 48, 0.5);
}

.quest-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #55f19f);
}

.skin-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.skin-swatch {
  position: relative;
  min-height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  overflow: hidden;
}

.skin-swatch::before {
  content: "";
  position: absolute;
  inset: auto 10px 8px;
  height: 14px;
  background: rgba(2, 16, 56, 0.46);
}

.skin-swatch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 22px;
  height: 30px;
  border-radius: 18px 18px 5px 5px;
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(-50%);
}

.skin-swatch.is-active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 216, 52, 0.26);
}

.friend-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 5px;
}

.friend-row button {
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 5px 6px;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.friend-row button:disabled {
  cursor: default;
  opacity: 0.58;
  filter: grayscale(0.32);
}

.online-pill {
  border: 0;
  padding: 4px 6px;
  color: #10315a;
  background: var(--green);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.social-open:hover,
.social-open:focus-visible {
  color: #17305f;
  background: var(--yellow);
  outline: 0;
}

.view-drawer {
  position: fixed;
  inset: auto clamp(10px, 3vw, 30px) 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  max-height: min(72vh, 580px);
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: rgba(5, 28, 85, 0.94);
  box-shadow: 0 30px 70px rgba(0, 6, 36, 0.66);
  transform: translateY(calc(100% + 32px));
  transition: transform 260ms cubic-bezier(0.2, 0.86, 0.2, 1);
  overflow: hidden;
}

.view-drawer.is-open {
  transform: translateY(0);
}

.main-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  visibility: hidden;
}

.main-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.main-menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 35, 0.58);
  opacity: 0;
  transition: opacity 180ms ease;
}

.main-menu.is-open .main-menu-scrim {
  opacity: 1;
}

.main-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(390px, 92vw);
  height: 100%;
  padding: 18px;
  overflow-y: auto;
  border-right: 2px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(19, 84, 180, 0.96), rgba(4, 20, 72, 0.98)),
    repeating-linear-gradient(100deg, transparent 0 34px, rgba(255, 255, 255, 0.05) 35px 37px);
  box-shadow: 22px 0 60px rgba(0, 4, 24, 0.58);
  transform: translateX(-104%);
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.main-menu.is-open .main-menu-panel {
  transform: translateX(0);
}

.menu-profile {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 18, 68, 0.42);
}

.menu-profile .avatar-dot {
  width: 50px;
  height: 50px;
}

.menu-profile strong,
.menu-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-profile strong {
  font-size: 1.35rem;
}

.menu-profile small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.menu-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 15, 56, 0.32);
}

.menu-section button,
.menu-footer button {
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--ink);
  background: rgba(0, 31, 94, 0.62);
  text-align: left;
  text-transform: uppercase;
}

.menu-section button:hover,
.menu-section button:focus-visible,
.menu-footer button:hover,
.menu-footer button:focus-visible {
  color: #17305f;
  background: var(--yellow);
  outline: 0;
}

.menu-toggle {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.menu-toggle input {
  position: absolute;
  opacity: 0;
}

.menu-toggle span {
  position: relative;
  width: 46px;
  height: 24px;
  border: 1px solid var(--line);
  background: rgba(1, 14, 52, 0.66);
  pointer-events: none;
}

.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--muted);
  transition: transform 180ms ease, background 180ms ease;
}

.menu-toggle input:checked + span {
  background: #0c98ff;
}

.menu-toggle input:checked + span::after {
  transform: translateX(21px);
  background: var(--ink);
}

.menu-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.app-shell.is-private-party .party-card h2::after {
  content: " Private";
  margin-left: 7px;
  color: var(--yellow);
  font-size: 0.7rem;
  vertical-align: middle;
}

.social-sidebar {
  position: fixed;
  inset: 0;
  z-index: 34;
  pointer-events: none;
  visibility: hidden;
}

.social-sidebar.is-open {
  pointer-events: auto;
  visibility: visible;
}

.social-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 35, 0.5);
  opacity: 0;
  transition: opacity 180ms ease;
}

.social-sidebar.is-open .social-scrim {
  opacity: 1;
}

.social-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(430px, 94vw);
  height: 100%;
  padding: 18px;
  overflow-y: auto;
  border-left: 2px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(12, 71, 174, 0.97), rgba(2, 17, 65, 0.99)),
    repeating-linear-gradient(80deg, transparent 0 28px, rgba(255, 255, 255, 0.05) 29px 31px);
  box-shadow: -26px 0 70px rgba(0, 4, 24, 0.6);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.social-sidebar.is-open .social-panel {
  transform: translateX(0);
}

.social-header,
.social-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 18, 75, 0.38);
}

.social-header button,
.social-section-title button {
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
}

.social-header button {
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
}

.social-section-title {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-section-title button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 0.58rem;
}

.social-channel,
.social-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.social-channel button,
.social-controls button {
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.48);
  text-align: left;
  text-transform: uppercase;
}

.social-channel button.is-active,
.social-channel button:hover,
.social-controls button:hover {
  color: #17305f;
  background: var(--yellow);
}

.social-channel strong,
.social-channel small,
.social-controls strong,
.social-controls small {
  display: block;
}

.social-channel small,
.social-controls small {
  margin-top: 5px;
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
}

#social-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--ink);
  background: rgba(0, 16, 58, 0.66);
  padding: 10px 12px;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  outline: 0;
}

#social-search::placeholder {
  color: rgba(218, 243, 255, 0.7);
  text-transform: uppercase;
}

.social-section {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 15, 56, 0.32);
}

.social-party-list,
.social-joinable-list,
.social-friend-list {
  display: grid;
  gap: 6px;
}

.social-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.08);
}

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

.social-row.is-open {
  opacity: 0.78;
}

.social-avatar {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.social-row strong,
.social-row small,
.social-row > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-row strong {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.social-row small,
.social-row > span:last-child {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-row button {
  min-height: 30px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 6px 9px;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.social-row button:disabled {
  opacity: 0.58;
}

.social-empty {
  min-height: 44px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

body.is-reduced-motion #sky-canvas {
  display: none;
}

body.is-reduced-motion *,
body.is-reduced-motion *::before,
body.is-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body.is-color-assist button:focus-visible,
body.is-color-assist input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

body.is-high-contrast-hud .panel-slab,
body.is-high-contrast-hud .view-drawer,
body.is-high-contrast-hud .main-menu-panel,
body.is-high-contrast-hud .social-panel {
  background-color: rgba(0, 12, 42, 0.98);
  border-color: rgba(255, 255, 255, 0.48);
}

.drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--ink);
  background: rgba(0, 15, 56, 0.72);
  font-size: 1.5rem;
}

.drawer-content {
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
}

.drawer-content h2 {
  margin: 0 46px 16px 0;
  font-size: 3rem;
  line-height: 0.92;
  text-transform: uppercase;
}

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

.drawer-tile {
  position: relative;
  min-height: 130px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 17, 58, 0.42);
  overflow: hidden;
  text-align: left;
}

button.drawer-tile {
  width: 100%;
  cursor: pointer;
}

button.drawer-tile:hover,
button.drawer-tile:focus-visible {
  border-color: var(--yellow);
  outline: 0;
}

.drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 46px 14px 0;
  color: #dff6ff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 14, 50, 0.32);
}

.drawer-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  text-transform: uppercase;
}

.drawer-tile small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  line-height: 1.35;
}

.drawer-tile button {
  position: relative;
  z-index: 1;
  min-height: 31px;
  margin-top: 12px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 7px 10px;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.drawer-tile button:disabled {
  cursor: default;
  opacity: 0.62;
  filter: grayscale(0.3);
}

.drawer-art {
  position: relative;
  z-index: 0;
  display: block;
  height: 72px;
  margin: -2px -2px 10px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8), transparent 9%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 84%);
}

.outfit-tile.is-equipped,
.reward-tile.is-claimed,
.event-tile.is-tracked,
.quest-detail.is-pinned {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 52, 0.24);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(180px, 0.5fr) minmax(170px, 0.42fr);
  gap: 10px;
  margin-bottom: 10px;
}

.profile-banner,
.profile-level-card,
.profile-actions,
.profile-badges span,
.profile-loadout-strip div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 17, 58, 0.46);
}

.profile-banner {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 132px;
  padding: 14px;
  overflow: hidden;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 216, 52, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(87, 255, 154, 0.18), transparent 8rem);
  pointer-events: none;
}

.profile-avatar-xl {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  border: 3px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  box-shadow: 0 18px 38px rgba(0, 8, 44, 0.34);
}

.profile-banner > div,
.profile-level-card,
.profile-actions {
  position: relative;
  z-index: 1;
}

.profile-banner strong,
.profile-level-card strong {
  display: block;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 18, 75, 0.34);
}

.profile-banner small,
.profile-level-card span,
.profile-level-card small,
.profile-badges small,
.profile-loadout-strip small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-level-card {
  min-height: 132px;
  padding: 14px;
}

.profile-level-card strong {
  margin: 7px 0 4px;
  font-size: 3.1rem;
}

.profile-progress {
  height: 9px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.profile-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
}

.profile-actions {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.profile-actions button {
  min-height: 34px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
}

.profile-actions button:hover,
.profile-actions button:focus-visible {
  color: var(--ink);
  background: #0c98ff;
  outline: 0;
}

.profile-badges,
.profile-loadout-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

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

.profile-badges span {
  min-height: 58px;
  padding: 10px;
}

.profile-badges strong,
.profile-loadout-strip strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-loadout-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profile-loadout-strip div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px;
}

.profile-loadout-strip div > span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
}

.settings-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
}

.settings-tabs,
.settings-panel,
.settings-footer {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 17, 58, 0.42);
}

.settings-tabs {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 9px;
}

.settings-tabs button,
.settings-footer button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 28, 88, 0.62);
  text-align: left;
  text-transform: uppercase;
}

.settings-tabs button.is-active,
.settings-tabs button:hover,
.settings-tabs button:focus-visible,
.settings-footer button:hover,
.settings-footer button:focus-visible {
  color: #17305f;
  background: var(--yellow);
  outline: 0;
}

.settings-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

button.setting-row {
  width: 100%;
  text-transform: uppercase;
}

.setting-row strong,
.setting-row small,
.setting-row em,
.setting-row output {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.setting-row strong {
  font-size: 1rem;
}

.setting-row small {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
}

.setting-row em,
.setting-row output {
  min-width: 54px;
  padding: 8px 9px;
  color: #17305f;
  background: rgba(218, 243, 255, 0.82);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.setting-row.is-on {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 52, 0.18);
}

.setting-row.is-on em {
  background: var(--yellow);
}

.setting-row--range {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.62fr) 60px;
}

.setting-row input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
}

.settings-footer {
  grid-column: 1 / -1;
  padding: 9px;
}

.settings-footer button {
  width: 100%;
  text-align: center;
}

.drawer-grid--loadout,
.drawer-grid--stats {
  margin-top: 10px;
}

.drawer-grid--loadout .drawer-tile,
.drawer-grid--stats .drawer-tile {
  min-height: 100px;
}

.locker-builder {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(280px, 0.78fr);
  gap: 12px;
  margin-bottom: 12px;
  container-type: inline-size;
}

.locker-loadout-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.locker-loadout-slots button,
.locker-presets button,
.locker-actions button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 17, 58, 0.48);
  text-align: left;
  text-transform: uppercase;
}

.locker-loadout-slots button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 72px;
  padding: 8px;
}

.locker-loadout-slots button > span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
}

.locker-loadout-slots strong,
.locker-loadout-slots small,
.locker-presets strong,
.locker-presets small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locker-loadout-slots small,
.locker-presets small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
}

.locker-loadout-slots button.is-active,
.locker-loadout-slots button:hover,
.locker-presets button:hover,
.locker-actions button:hover,
.locker-actions button.is-active {
  color: #17305f;
  background: var(--yellow);
}

.locker-loadout-slots button.is-active small,
.locker-loadout-slots button:hover small,
.locker-presets button:hover small,
.locker-actions button:hover small {
  color: rgba(23, 48, 95, 0.78);
}

.locker-inspector {
  min-height: 170px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 216, 52, 0.17), transparent 6rem),
    rgba(0, 17, 58, 0.48);
}

.locker-inspector > strong,
.locker-inspector > small {
  display: block;
  text-transform: uppercase;
}

.locker-inspector > strong {
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 0.95;
}

.locker-inspector > small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.locker-preview-art {
  height: 58px;
  margin: 12px 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 84%);
}

.locker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locker-actions button {
  min-height: 34px;
  padding: 7px 10px;
  text-align: center;
}

.locker-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.locker-presets button {
  min-height: 62px;
  padding: 9px;
}

.drawer-grid--locker-catalog .locker-catalog-tile {
  min-height: 178px;
  overflow: hidden;
}

.locker-catalog-tile.is-equipped {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 52, 0.24);
}

@container (max-width: 620px) {
  .locker-loadout-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.drawer-grid--shop .shop-tile {
  min-height: 236px;
}

.shop-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  gap: 12px;
  margin-bottom: 12px;
}

.shop-preview,
.shop-inspector {
  min-height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.shop-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.74), transparent 5.2rem),
    linear-gradient(140deg, var(--tile-a), var(--tile-b));
}

.shop-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 112px;
  height: 138px;
  background: rgba(255, 255, 255, 0.58);
  clip-path: polygon(42% 0, 58% 0, 72% 28%, 66% 92%, 34% 92%, 28% 28%);
  transform: translateX(-50%);
}

.shop-preview-rarity {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 8px;
  color: #17305f;
  background: var(--yellow);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.shop-preview strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 18, 74, 0.42);
}

.shop-inspector {
  padding: 14px;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 216, 52, 0.16), transparent 7rem),
    rgba(0, 17, 58, 0.48);
}

.shop-inspector h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.shop-inspector p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.shop-inspector-meta,
.shop-actions,
.shop-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-inspector-meta {
  margin: 12px 0;
}

.shop-inspector-meta span {
  padding: 6px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-actions button,
.shop-section-tabs button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #17305f;
  background: var(--yellow);
  padding: 8px 11px;
  text-transform: uppercase;
}

.shop-actions button:disabled,
.shop-section-tabs button:disabled {
  cursor: default;
  opacity: 0.58;
  filter: grayscale(0.3);
}

.shop-section-tabs {
  margin-bottom: 12px;
}

.shop-section-tabs button {
  color: var(--ink);
  background: rgba(0, 17, 58, 0.48);
}

.shop-section-tabs button.is-active,
.shop-section-tabs button:hover {
  color: #17305f;
  background: var(--yellow);
}

.shop-tile {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.42), transparent 4.4rem),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-a, #174bbd) 72%, #001743), color-mix(in srgb, var(--tile-b, #0c98ff) 64%, #001743));
}

.shop-tile.is-selected {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 52, 0.24);
}

.shop-empty {
  grid-column: 1 / -1;
}

.reward-tile {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.28), transparent 4.4rem),
    linear-gradient(145deg, color-mix(in srgb, var(--tile-a, #174bbd) 72%, #001743), color-mix(in srgb, var(--tile-b, #0c98ff) 64%, #001743));
}

.vbucks-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 17% 40%, rgba(255, 255, 255, 0.34), transparent 5rem),
    linear-gradient(110deg, rgba(6, 104, 212, 0.82), rgba(0, 23, 78, 0.68));
}

.vbucks-coin-xl {
  position: relative;
  display: block;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #f5ffff 0 13%, transparent 14%),
    radial-gradient(circle, #4be7ff 0 55%, #0b76dc 56% 100%);
  box-shadow: inset 0 -9px 0 rgba(0, 22, 88, 0.24), 0 0 0 5px rgba(255, 255, 255, 0.18);
}

.vbucks-coin-xl::after {
  content: "V";
  position: absolute;
  inset: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #063776;
  background: rgba(255, 255, 255, 0.82);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 2rem;
}

.vbucks-hero strong,
.vbucks-hero small {
  display: block;
  text-transform: uppercase;
}

.vbucks-hero strong {
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 0.95;
  text-shadow: 0 4px 0 rgba(0, 16, 68, 0.38);
}

.vbucks-hero small {
  max-width: 46ch;
  margin-top: 7px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
}

.drawer-grid--vbucks .vbucks-pack {
  min-height: 220px;
}

.vbucks-pack {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.62), transparent 4.5rem),
    linear-gradient(145deg, var(--tile-a), var(--tile-b));
}

.vbucks-pack::before {
  content: "";
  position: absolute;
  inset: 52px 18px auto;
  height: 54px;
  background:
    radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.72) 0 13px, transparent 14px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.82) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.72) 0 13px, transparent 14px);
  opacity: 0.65;
}

.vbucks-pack.is-purchased {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 52, 0.25);
}

.vbucks-stack {
  position: relative;
  z-index: 1;
  display: block;
  margin: 62px 0 10px;
  color: var(--ink);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 2.35rem;
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(0, 17, 69, 0.38);
}

.recent-matches {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.recent-matches div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 17, 61, 0.42);
}

.recent-matches strong,
.recent-matches small {
  display: block;
  text-transform: uppercase;
}

.recent-matches small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.recent-matches button {
  min-height: 30px;
  margin-top: 8px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 6px 10px;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.shop-tag,
.event-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 6px;
  color: #17305f;
  background: var(--yellow);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.pass-track {
  height: 10px;
  margin: 0 0 12px;
  background: rgba(0, 15, 55, 0.5);
  overflow: hidden;
}

.pass-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
}

.battle-pass-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(260px, 0.72fr) minmax(280px, 0.9fr);
  gap: 10px;
  margin-bottom: 12px;
}

.pass-stage-card,
.pass-toggle,
.pass-allegiance button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 17, 58, 0.48);
  text-align: left;
  text-transform: uppercase;
}

.pass-stage-card {
  min-height: 178px;
  padding: 14px;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 216, 52, 0.2), transparent 7rem),
    linear-gradient(135deg, rgba(23, 75, 189, 0.9), rgba(2, 18, 68, 0.88));
}

.pass-stage-card strong,
.pass-stage-card small,
.pass-toggle strong,
.pass-toggle small,
.pass-allegiance strong,
.pass-allegiance small {
  display: block;
}

.pass-stage-card > strong {
  margin: 6px 0;
  font-size: 2.4rem;
  line-height: 0.9;
}

.pass-stage-card small,
.pass-toggle small,
.pass-allegiance small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.28;
}

.pass-page-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pass-page-controls button,
.pass-toggle,
.pass-allegiance button {
  min-height: 38px;
  padding: 8px 10px;
}

.pass-page-controls button {
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
}

.pass-page-controls button:disabled,
.pass-toggle:disabled,
.pass-allegiance button:disabled {
  cursor: default;
  opacity: 0.56;
  filter: grayscale(0.3);
}

.pass-control-stack,
.pass-allegiance {
  display: grid;
  gap: 8px;
}

.pass-toggle {
  min-height: 84px;
}

.pass-toggle.is-active,
.pass-allegiance button.is-active,
.pass-toggle:hover,
.pass-allegiance button:hover {
  color: #17305f;
  background: var(--yellow);
}

.pass-toggle.is-active small,
.pass-allegiance button.is-active small,
.pass-toggle:hover small,
.pass-allegiance button:hover small {
  color: rgba(23, 48, 95, 0.78);
}

.pass-allegiance button {
  min-height: 84px;
}

.reward-orb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #17305f;
  background: radial-gradient(circle, #fff3a5 0 44%, var(--yellow) 45% 100%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.drawer-progress {
  display: block;
  margin-top: 12px;
}

.quest-board {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(340px, 1.05fr);
  gap: 12px;
}

.quest-map {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 24% 34%, #57ff9a 0 8%, transparent 9%),
    radial-gradient(circle at 70% 32%, #ffd834 0 7%, transparent 8%),
    radial-gradient(circle at 58% 72%, #4bd4ff 0 10%, transparent 11%),
    linear-gradient(135deg, rgba(16, 58, 152, 0.94), rgba(5, 142, 203, 0.84) 52%, rgba(9, 39, 111, 0.96));
  overflow: hidden;
}

.quest-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-radius: 48% 52% 43% 57%;
  transform: rotate(-12deg);
}

.quest-map-route {
  position: absolute;
  left: 12%;
  top: 62%;
  width: 78%;
  height: 4px;
  background: rgba(255, 216, 52, 0.84);
  box-shadow: 0 0 22px rgba(255, 216, 52, 0.62);
  transform: rotate(-28deg);
}

.quest-map-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: var(--pin-color);
  box-shadow: 0 0 0 6px rgba(0, 15, 58, 0.26), 0 0 18px color-mix(in srgb, var(--pin-color) 72%, transparent);
  transform: translate(-50%, -50%);
}

.quest-map-pin.is-selected {
  width: 34px;
  height: 34px;
  border-color: var(--yellow);
}

.quest-map-pin.is-tracked::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.quest-board-panel {
  display: grid;
  gap: 10px;
}

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

.quest-category-tabs button,
.quest-board-list button,
.quest-selected-card button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 17, 58, 0.48);
  text-transform: uppercase;
}

.quest-category-tabs button {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.62rem;
}

.quest-category-tabs button.is-active,
.quest-board-list button.is-selected,
.quest-category-tabs button:hover,
.quest-board-list button:hover,
.quest-selected-card button:hover {
  color: #17305f;
  background: var(--yellow);
}

.quest-selected-card {
  min-height: 150px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 216, 52, 0.18), transparent 6rem),
    rgba(0, 17, 58, 0.48);
}

.quest-selected-card span,
.quest-selected-card strong,
.quest-selected-card small {
  display: block;
  text-transform: uppercase;
}

.quest-selected-card > span:first-child,
.quest-selected-card small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.quest-selected-card strong {
  margin: 7px 0 6px;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.quest-selected-card button {
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 10px;
  color: #17305f;
  background: var(--yellow);
}

.quest-board-list {
  display: grid;
  gap: 6px;
}

.quest-board-list button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px;
  text-align: left;
}

.quest-board-list button span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pin-color);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.quest-board-list strong,
.quest-board-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-board-list small {
  grid-column: 2;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
}

.tracked-quest-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.event-tile .event-status {
  top: auto;
  bottom: 12px;
  right: 12px;
}

.stat-tile strong {
  font-size: 1.9rem;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  max-width: min(92vw, 540px);
  padding: 12px 16px;
  color: #17305f;
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(0, 6, 36, 0.4);
  text-transform: uppercase;
  transform: translate(-50%, calc(100% + 28px));
  transition: transform 220ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.party-finder-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  visibility: hidden;
}

.party-finder-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.party-finder-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 34, 0.66);
  opacity: 0;
  transition: opacity 180ms ease;
}

.party-finder-overlay.is-open .party-finder-scrim {
  opacity: 1;
}

.party-finder-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 13px;
  width: min(760px, 100%);
  max-height: min(86vh, 720px);
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 216, 52, 0.18), transparent 16rem),
    radial-gradient(circle at 12% 42%, rgba(84, 255, 148, 0.16), transparent 17rem),
    linear-gradient(155deg, rgba(22, 82, 183, 0.98), rgba(3, 15, 58, 0.98));
  box-shadow: 0 34px 90px rgba(0, 5, 32, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1), opacity 180ms ease;
}

.party-finder-overlay.is-open .party-finder-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.party-finder-header,
.party-finder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.party-finder-header h2 {
  margin-top: 3px;
  font-size: 2.2rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 18, 78, 0.5);
}

.party-finder-header button,
.party-finder-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.58);
  text-transform: uppercase;
}

.party-finder-header button {
  display: grid;
  place-items: center;
  width: 38px;
  font-size: 1.35rem;
}

.party-finder-toolbar button {
  padding: 8px 10px;
  font-size: 0.68rem;
}

.party-finder-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.party-finder-meta span {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 16, 58, 0.46);
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.party-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.party-tag-grid button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink);
  background: rgba(0, 28, 91, 0.58);
  text-transform: uppercase;
  font-size: 0.66rem;
}

.party-tag-grid button.is-active {
  color: #17305f;
  background: var(--green);
}

.party-finder-toolbar {
  min-height: 40px;
}

.party-finder-toolbar span {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.party-suggestion-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.party-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 17, 61, 0.5);
}

.party-suggestion strong {
  display: block;
  margin-top: 3px;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.party-suggestion small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;
}

.party-suggestion-members,
.party-suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.party-suggestion-members span,
.party-suggestion-tags span {
  padding: 5px 7px;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.party-suggestion-members span {
  color: #17305f;
  background: var(--yellow);
}

.party-suggestion-tags span {
  color: #dff8ff;
  background: rgba(22, 103, 211, 0.58);
}

.party-suggestion button {
  min-width: 86px;
  min-height: 40px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
}

.discover-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  visibility: hidden;
}

.discover-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.discover-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 34, 0.66);
  opacity: 0;
  transition: opacity 180ms ease;
}

.discover-overlay.is-open .discover-scrim {
  opacity: 1;
}

.discover-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  width: min(1040px, 100%);
  max-height: min(86vh, 760px);
  padding: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 216, 52, 0.16), transparent 18rem),
    radial-gradient(circle at 82% 22%, rgba(43, 207, 255, 0.22), transparent 20rem),
    linear-gradient(150deg, rgba(23, 83, 183, 0.98), rgba(2, 12, 52, 0.98));
  box-shadow: 0 34px 90px rgba(0, 5, 32, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1), opacity 180ms ease;
}

.discover-overlay.is-open .discover-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discover-header h2 {
  margin-top: 3px;
  font-size: 2.65rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 18, 78, 0.5);
}

.discover-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.58);
  font-size: 1.35rem;
}

.discover-tools {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.discover-tools input {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.54);
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.discover-tools input::placeholder {
  color: rgba(235, 249, 255, 0.62);
}

.discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.discover-filters button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--ink);
  background: rgba(0, 28, 91, 0.58);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.discover-filters button.is-active {
  color: #17305f;
  background: var(--yellow);
}

.homebar-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.homebar-row button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.42);
  text-align: left;
  text-transform: uppercase;
}

.homebar-row button.is-active {
  border-color: var(--yellow);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.homebar-row span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
  color: #12305c;
}

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

.homebar-row strong {
  font-size: 0.72rem;
}

.homebar-row small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 8px;
}

.discover-card {
  position: relative;
  display: grid;
  grid-template-rows: 96px 1fr auto auto;
  min-height: 292px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 15, 58, 0.42);
  overflow: hidden;
}

.discover-card.is-selected {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 216, 52, 0.18);
}

.discover-art {
  display: grid;
  place-items: center;
  color: #17305f;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9), transparent 9%),
    linear-gradient(135deg, var(--tile-a), var(--tile-b));
  font-size: 1.55rem;
  text-shadow: none;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 86%);
}

.favorite-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--ink);
  background: rgba(0, 13, 52, 0.68);
}

.favorite-button.is-active {
  color: #17305f;
  background: var(--yellow);
}

.discover-card-copy {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.discover-card-copy strong {
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
}

.discover-card-copy small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.22;
}

.discover-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 10px;
  color: #d9f5ff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.select-experience {
  min-height: 38px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
}

.discover-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 2px dashed rgba(255, 255, 255, 0.26);
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
}

.discover-empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.4rem;
}

.discover-empty small {
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.emote-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  visibility: hidden;
}

.emote-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.emote-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 6, 32, 0.66);
  opacity: 0;
  transition: opacity 180ms ease;
}

.emote-overlay.is-open .emote-scrim {
  opacity: 1;
}

.emote-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  width: min(760px, 100%);
  min-height: 520px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 50% 52%, rgba(43, 207, 255, 0.22), transparent 36%),
    linear-gradient(150deg, rgba(24, 83, 182, 0.98), rgba(2, 14, 57, 0.98));
  box-shadow: 0 32px 80px rgba(0, 6, 36, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.2, 0.86, 0.2, 1), opacity 180ms ease;
}

.emote-overlay.is-open .emote-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.emote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.emote-header h2 {
  margin-top: 3px;
  font-size: 2.3rem;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 15, 72, 0.5);
}

.emote-header button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--ink);
  background: rgba(0, 18, 68, 0.58);
  font-size: 1.35rem;
}

.emote-wheel {
  position: relative;
  min-height: 335px;
  margin: 4px 0;
}

.emote-wheel::before,
.emote-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.emote-wheel::before {
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(1, 17, 64, 0.46);
}

.emote-wheel::after {
  width: 74px;
  height: 74px;
  border: 3px solid rgba(255, 216, 52, 0.72);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(135deg, var(--yellow), #1ed4ff);
  box-shadow: 0 0 0 11px rgba(255, 216, 52, 0.1);
}

.emote-option {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  width: 148px;
  height: 86px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  color: var(--ink);
  background: linear-gradient(150deg, rgba(8, 50, 134, 0.92), rgba(3, 17, 64, 0.92));
  box-shadow: 0 14px 28px rgba(0, 7, 38, 0.34);
  text-align: left;
  text-transform: uppercase;
}

.emote-option:nth-child(1) {
  left: calc(50% - 74px);
  top: 0;
}

.emote-option:nth-child(2) {
  left: calc(50% + 88px);
  top: 62px;
}

.emote-option:nth-child(3) {
  left: calc(50% + 88px);
  bottom: 62px;
}

.emote-option:nth-child(4) {
  left: calc(50% - 74px);
  bottom: 0;
}

.emote-option:nth-child(5) {
  right: calc(50% + 88px);
  bottom: 62px;
}

.emote-option:nth-child(6) {
  right: calc(50% + 88px);
  top: 62px;
}

.emote-option span {
  color: var(--yellow);
  font-size: 0.62rem;
}

.emote-option strong {
  font-size: 0.84rem;
  line-height: 1.05;
}

.emote-option:hover,
.emote-option:focus-visible,
.emote-option.is-selected {
  border-color: var(--yellow);
  background: linear-gradient(150deg, rgba(255, 216, 52, 0.95), rgba(17, 111, 216, 0.92));
  color: #132d5d;
  outline: 0;
  transform: translateY(-2px);
}

.emote-option:hover span,
.emote-option:focus-visible span,
.emote-option.is-selected span {
  color: #17305f;
}

.emote-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 16, 58, 0.46);
  text-transform: uppercase;
}

.emote-preview strong {
  font-size: 1.15rem;
}

.emote-preview span {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
}

.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 48% 40%, rgba(73, 190, 255, 0.28), transparent 24rem),
    linear-gradient(180deg, rgba(5, 43, 116, 0.94), rgba(2, 9, 39, 0.98));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.launch-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  width: min(1040px, 94vw);
  min-height: min(560px, 86vh);
}

.launch-map,
.launch-brief {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 28, 86, 0.7);
  box-shadow: 0 28px 70px rgba(0, 5, 28, 0.55);
  overflow: hidden;
}

.launch-map {
  min-height: 420px;
  background:
    radial-gradient(circle at 20% 25%, #63eaa8 0 9%, transparent 10%),
    radial-gradient(circle at 78% 24%, #ffe35c 0 8%, transparent 9%),
    radial-gradient(circle at 72% 72%, #4bd4ff 0 11%, transparent 12%),
    linear-gradient(135deg, #133da3, #0e9fd7 48%, #0c2d77);
}

.launch-map::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(255, 255, 255, 0.26);
  border-radius: 47% 53% 44% 56%;
  transform: rotate(-12deg);
}

.route-line {
  position: absolute;
  left: 11%;
  top: 68%;
  width: 78%;
  height: 5px;
  background: var(--yellow);
  transform: rotate(-30deg);
  box-shadow: 0 0 24px rgba(255, 216, 52, 0.72);
}

.bus-icon {
  position: absolute;
  left: 44%;
  top: 36%;
  width: 78px;
  height: 42px;
  background: var(--yellow);
  box-shadow: 0 9px 0 #b36a00, 0 0 24px rgba(255, 216, 52, 0.4);
  transform: rotate(-30deg);
}

.bus-icon::before,
.bus-icon::after {
  content: "";
  position: absolute;
  bottom: -13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #102e68;
}

.bus-icon::before {
  left: 10px;
}

.bus-icon::after {
  right: 10px;
}

.poi {
  position: absolute;
  padding: 6px 8px;
  color: #17305f;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(0, 7, 34, 0.3);
}

.poi-a {
  left: 14%;
  top: 28%;
}

.poi-b {
  right: 10%;
  top: 18%;
}

.poi-c {
  right: 17%;
  bottom: 18%;
}

.launch-brief {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 4vw, 38px);
}

.launch-brief h2 {
  margin: 8px 0 12px;
  font-size: 3.55rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 20, 80, 0.45);
}

.launch-brief p {
  max-width: 44ch;
  margin: 0;
  color: #dff6ff;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
  line-height: 1.35;
}

.launch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
}

.launch-stats span {
  min-height: 64px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 16, 56, 0.42);
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-stats strong {
  display: block;
  color: var(--ink);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 0.92rem;
}

.launch-progress {
  height: 13px;
  background: rgba(0, 14, 52, 0.66);
  overflow: hidden;
}

.launch-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue-hot));
  transition: width 260ms ease;
}

.launch-brief button {
  width: max-content;
  min-height: 52px;
  margin-top: 24px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 12px 18px;
  text-transform: uppercase;
  box-shadow: 0 8px 0 #b36a00;
}

.replay-overlay {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.replay-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.replay-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 42% 36%, rgba(56, 217, 255, 0.18), transparent 23rem),
    rgba(0, 7, 34, 0.78);
  opacity: 0;
  transition: opacity 220ms ease;
}

.replay-overlay.is-open .replay-scrim {
  opacity: 1;
}

.replay-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, 1.25fr) minmax(310px, 0.75fr);
  gap: 16px;
  width: min(1080px, 96vw);
  min-height: min(610px, 86vh);
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: transform 240ms cubic-bezier(0.2, 0.86, 0.2, 1), opacity 180ms ease;
}

.replay-overlay.is-open .replay-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.replay-screen,
.replay-sidebar {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(4, 24, 78, 0.86);
  box-shadow: 0 30px 80px rgba(0, 4, 28, 0.66);
  overflow: hidden;
}

.replay-screen {
  min-height: 480px;
  background:
    linear-gradient(180deg, rgba(49, 191, 255, 0.18), rgba(5, 29, 91, 0.76)),
    radial-gradient(circle at 22% 28%, #57ff9a 0 7%, transparent 8%),
    radial-gradient(circle at 70% 34%, #ffd834 0 6%, transparent 7%),
    radial-gradient(circle at 64% 78%, #4bd4ff 0 9%, transparent 10%),
    linear-gradient(135deg, #0f49a8, #0c98ff 52%, #0f286a);
}

.replay-map {
  position: absolute;
  inset: 10%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-radius: 46% 54% 42% 58%;
  transform: rotate(-10deg);
}

.replay-route {
  position: absolute;
  left: 6%;
  top: 62%;
  width: 88%;
  height: 4px;
  background: var(--yellow);
  box-shadow: 0 0 22px rgba(255, 216, 52, 0.7);
  transform: rotate(-28deg);
}

.replay-marker,
.replay-player-dot {
  position: absolute;
  border-radius: 50%;
}

.replay-marker {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.marker-a {
  left: 28%;
  top: 52%;
}

.marker-b {
  right: 22%;
  top: 30%;
}

.replay-player-dot {
  left: 52%;
  top: 46%;
  width: 30px;
  height: 30px;
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(255, 216, 52, 0.24), 0 0 28px rgba(255, 216, 52, 0.82);
  animation: replayPulse 1.1s ease-in-out infinite;
}

.replay-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 15, 55, 0.58);
}

.replay-hud strong,
.replay-hud span {
  display: block;
  text-transform: uppercase;
}

.replay-hud strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 0.95;
}

.replay-hud span {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.replay-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.replay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.replay-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.7rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.replay-header button {
  width: 42px;
  height: 42px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  font-size: 1.6rem;
}

.replay-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.replay-stat-grid span {
  min-height: 78px;
  padding: 10px;
  background: rgba(0, 17, 61, 0.5);
}

.replay-stat-grid strong,
.replay-stat-grid small {
  display: block;
  text-transform: uppercase;
}

.replay-stat-grid strong {
  color: var(--ink);
  font-size: 1.7rem;
}

.replay-stat-grid small {
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
}

.replay-timeline {
  height: 13px;
  margin-top: auto;
  background: rgba(0, 12, 48, 0.7);
  overflow: hidden;
}

.replay-timeline span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue-hot));
  transition: width 260ms ease;
}

.replay-actions button {
  width: 100%;
  min-height: 48px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  text-transform: uppercase;
  box-shadow: 0 7px 0 #a76300;
}

.match-results-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.match-results-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}

.match-results-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 216, 52, 0.18), transparent 20rem),
    rgba(0, 7, 34, 0.72);
  opacity: 0;
  transition: opacity 220ms ease;
}

.match-results-overlay.is-open .match-results-scrim {
  opacity: 1;
}

.match-results-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(880px, 100%);
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(110deg, rgba(255, 216, 52, 0.92) 0 28%, rgba(20, 93, 192, 0.95) 28% 100%),
    linear-gradient(160deg, rgba(24, 83, 182, 0.98), rgba(2, 14, 57, 0.98));
  box-shadow: 0 34px 90px rgba(0, 5, 32, 0.76);
  color: var(--ink);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.2, 0.86, 0.2, 1), opacity 180ms ease;
}

.match-results-overlay.is-open .match-results-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.results-hero {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.results-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: 4rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 6px 0 rgba(0, 15, 72, 0.5);
}

.results-hero p {
  margin: 0;
  color: #e2f8ff;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.results-stats span,
.results-progress,
.results-rank {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 16, 58, 0.52);
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.results-stats span {
  min-height: 72px;
  padding: 10px;
}

.results-stats strong {
  display: block;
  color: var(--ink);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.results-progress {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
}

.results-progress strong {
  display: block;
  color: var(--ink);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 1.65rem;
}

.results-rank {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
}

.results-rank.is-ranked {
  border-color: rgba(255, 216, 52, 0.62);
}

.results-rank small,
.results-rank > span:last-of-type {
  display: block;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.results-rank strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.results-rank > span:last-of-type {
  min-width: 110px;
  padding: 8px 10px;
  color: #17305f;
  background: var(--yellow);
  text-align: center;
}

.results-track {
  height: 14px;
  background: rgba(0, 11, 44, 0.72);
  overflow: hidden;
}

.results-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue-hot));
  transition: width 360ms ease;
}

.results-quest {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 10px;
}

.results-quest span {
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 16, 58, 0.52);
}

.results-quest small {
  display: block;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.results-quest strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results-actions button {
  min-height: 48px;
  border: 0;
  color: #17305f;
  background: var(--yellow);
  padding: 11px 16px;
  text-transform: uppercase;
  box-shadow: 0 7px 0 #a76300;
}

.results-actions button + button {
  color: var(--ink);
  background: rgba(0, 21, 74, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

@keyframes platformPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04);
  }
}

@keyframes readyRipple {
  0% {
    border-color: rgba(255, 216, 52, 0.86);
    transform: scale(0.62);
    opacity: 1;
  }
  100% {
    border-color: rgba(255, 216, 52, 0);
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes replayPulse {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes idleBody {
  0%,
  100% {
    transform: translateY(0) rotate(-0.7deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.7deg);
  }
}

@keyframes idleArmLeft {
  0%,
  100% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(14deg);
  }
}

@keyframes idleArmRight {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: rotate(-14deg);
  }
}

@keyframes emoteHop {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  38% {
    transform: translateY(-34px) rotate(4deg);
  }
  62% {
    transform: translateY(-8px) rotate(-5deg);
  }
}

@keyframes emoteLean {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(9px) rotate(3deg);
  }
}

@keyframes emoteFlexBody {
  0%,
  100% {
    transform: scale(1);
  }
  48% {
    transform: scale(1.04) translateY(-8px);
  }
}

@keyframes emoteStepBody {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  35% {
    transform: translateX(-12px) rotate(-3deg);
  }
  70% {
    transform: translateX(12px) rotate(3deg);
  }
}

@keyframes emoteSpin {
  0% {
    transform: rotateY(0deg) translateY(0);
  }
  50% {
    transform: rotateY(180deg) translateY(-18px);
  }
  100% {
    transform: rotateY(360deg) translateY(0);
  }
}

@keyframes waveLeft {
  0%,
  100% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(-128deg);
  }
}

@keyframes flexLeft {
  0%,
  100% {
    transform: rotate(9deg);
  }
  48% {
    transform: rotate(-92deg);
  }
}

@keyframes flexRight {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  48% {
    transform: rotate(92deg);
  }
}

@keyframes stepLeft {
  0%,
  100% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(38deg);
  }
}

@keyframes stepRight {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: rotate(-38deg);
  }
}

@keyframes saluteRight {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  44%,
  72% {
    transform: rotate(-128deg);
  }
}

@keyframes waveRight {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: rotate(118deg);
  }
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-tabs {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-column: 1 / -1;
    height: auto;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lobby-grid {
    grid-template-columns: minmax(230px, 0.78fr) minmax(360px, 1.22fr);
    height: auto;
    min-height: calc(100vh - 130px);
  }

  .right-stack {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .news-card {
    min-height: 220px;
  }

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

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

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

  .party-suggestion-tags {
    grid-column: 1 / -1;
  }

  .launch-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .launch-map {
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 10px;
  }

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

  .main-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 0 86%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 86%, transparent 100%);
    scrollbar-width: none;
  }

  .main-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-pill {
    justify-content: flex-start;
    overflow-x: auto;
  }

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

  .stage {
    min-height: 630px;
    order: -1;
    overflow: visible;
  }

  .nameplate {
    top: 6px;
  }

  .character-stage {
    grid-template-columns: 54px minmax(210px, 1fr) 54px;
    min-height: 438px;
  }

  .friend-pedestal small {
    display: none;
  }

  .rank-badge {
    top: 60px;
    right: 0;
    width: 72px;
    height: 72px;
  }

  .rank-badge strong {
    font-size: 1.82rem;
    margin-top: -10px;
  }

  .rank-badge span {
    font-size: 0.56rem;
  }

  .stage-actions {
    grid-template-columns: 1fr;
  }

  .secondary-cta {
    min-height: 44px;
  }

  .right-stack {
    grid-template-columns: 1fr;
  }

  .mode-carousel,
  .skin-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .settings-footer {
    grid-column: auto;
  }

  .locker-builder {
    grid-template-columns: 1fr;
  }

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

  .shop-detail {
    grid-template-columns: 1fr;
  }

  .battle-pass-shell {
    grid-template-columns: 1fr;
  }

  .quest-board {
    grid-template-columns: 1fr;
  }

  .quest-map {
    min-height: 280px;
  }

  .tracked-quest-strip {
    grid-template-columns: 1fr;
  }

  .discover-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .party-finder-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .party-finder-panel {
    max-height: none;
    overflow: visible;
  }

  .party-finder-meta {
    grid-template-columns: 1fr;
  }

  .discover-panel {
    max-height: none;
    overflow: visible;
  }

  .discover-tools {
    grid-template-columns: 1fr;
  }

  .discover-grid,
  .homebar-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emote-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .emote-panel {
    min-height: 0;
  }

  .emote-wheel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
  }

  .emote-wheel::before,
  .emote-wheel::after {
    display: none;
  }

  .emote-option,
  .emote-option:nth-child(n) {
    position: static;
    width: auto;
    height: 78px;
    transform: none;
  }

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

  .launch-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .launch-panel {
    width: 100%;
  }

  .launch-brief h2 {
    font-size: 3.05rem;
  }

  .launch-stats {
    grid-template-columns: 1fr;
  }

  .replay-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .replay-panel {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
  }

  .replay-screen {
    min-height: 340px;
  }

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

  .social-panel {
    width: min(430px, 100vw);
  }

  .match-results-overlay {
    align-items: start;
    overflow-y: auto;
    padding: 14px;
  }

  .match-results-panel {
    width: 100%;
  }

  .results-hero h2 {
    font-size: 2.6rem;
  }

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

  .results-progress,
  .results-rank,
  .results-quest {
    grid-template-columns: 1fr;
  }

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

  .vbucks-coin-xl {
    width: 62px;
    height: 62px;
  }

  .vbucks-coin-xl::after {
    inset: 10px;
    font-size: 1.7rem;
  }
}

@media (max-width: 460px) {
  .brand-title {
    font-size: 2rem;
  }

  .event-banner {
    width: 100%;
    justify-content: center;
  }

  .mode-carousel,
  .skin-swatches,
  .drawer-grid,
  .profile-badges,
  .profile-loadout-strip,
  .settings-tabs,
  .locker-loadout-slots,
  .locker-presets,
  .discover-grid,
  .homebar-row,
  .emote-wheel {
    grid-template-columns: 1fr;
  }

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

  .profile-banner {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 108px;
  }

  .profile-avatar-xl {
    width: 60px;
    height: 60px;
  }

  .profile-banner strong,
  .profile-level-card strong {
    font-size: 1.95rem;
  }

  .setting-row,
  .setting-row--range {
    grid-template-columns: 1fr;
  }

  .locker-loadout-slots button {
    min-height: 64px;
  }

  .quest-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pass-page-controls {
    grid-template-columns: 1fr;
  }

  .quest-map {
    min-height: 240px;
  }

  .party-finder-header h2 {
    font-size: 1.75rem;
  }

  .party-finder-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .party-suggestion {
    grid-template-columns: 1fr;
  }

  .party-suggestion button {
    width: 100%;
  }

  .social-panel {
    width: 100vw;
    padding: 14px;
  }

  .social-channel,
  .social-controls {
    grid-template-columns: 1fr;
  }

  .social-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .replay-screen {
    min-height: 280px;
  }

  .replay-hud strong {
    font-size: 1.5rem;
  }

  .replay-stat-grid {
    grid-template-columns: 1fr;
  }

  .discover-header h2 {
    font-size: 2rem;
  }

  .discover-card {
    min-height: 250px;
  }

  .emote-header h2 {
    font-size: 1.8rem;
  }

  .character-stage {
    grid-template-columns: 36px minmax(190px, 1fr) 36px;
  }

  .plus-ring {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .launch-brief h2 {
    font-size: 2.5rem;
  }

  .results-hero h2 {
    font-size: 2.15rem;
  }

  .results-stats {
    grid-template-columns: 1fr;
  }

  .results-rank > span:last-of-type {
    width: 100%;
  }

  .results-actions button {
    width: 100%;
  }

  .shop-actions button,
  .shop-section-tabs button {
    width: 100%;
  }

  .shop-preview strong {
    font-size: 1.72rem;
  }

  .vbucks-hero {
    grid-template-columns: 1fr;
  }

  .vbucks-hero strong {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Season 3 reference pass: flatter old-lobby HUD, darker stage, cyan floor glow. */
:root {
  --ink: #f4f6ff;
  --muted: #a9b8cc;
  --deep: #020511;
  --panel: rgba(8, 15, 35, 0.84);
  --panel-strong: rgba(31, 47, 74, 0.94);
  --line: rgba(141, 174, 222, 0.34);
  --yellow: #fff21c;
  --blue: #315883;
  --blue-hot: #18dbff;
  --green: #75ff30;
  --danger: #ee4c70;
  --shadow: rgba(0, 0, 0, 0.62);
}

html,
body {
  background:
    radial-gradient(ellipse at 51% 70%, rgba(30, 218, 255, 0.16) 0 10rem, transparent 21rem),
    linear-gradient(180deg, #02040e 0%, #061028 15%, #0c2244 47%, #0d1730 68%, #050914 100%);
}

#sky-canvas {
  opacity: 0.17;
  mix-blend-mode: screen;
}

.app-shell {
  --lobby-top-row-height: 134px;
  --lobby-footer-row-height: 96px;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0, 2, 10, 0.66), transparent 15%, transparent 83%, rgba(0, 1, 9, 0.72)),
    radial-gradient(ellipse at 50% 76%, rgba(25, 212, 255, 0.07), transparent 18rem);
}

.app-shell::before {
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(0, 3, 16, 0.2) 88%, rgba(0, 1, 11, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 2, 12, 0.9), rgba(2, 10, 34, 0.2) 17%, rgba(0, 3, 14, 0.78) 100%),
    radial-gradient(ellipse at 49% 18%, rgba(10, 43, 112, 0.15), transparent 29rem),
    repeating-linear-gradient(60deg, rgba(74, 121, 205, 0.072) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(120deg, rgba(74, 121, 205, 0.066) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(94, 143, 222, 0.028) 0 1px, transparent 1px 92px),
    linear-gradient(180deg, #020722 0%, #051743 54%, #01030f 100%);
}

.app-shell::after {
  inset: auto 0 0;
  height: 38.4vh;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(219, 244, 232, 0.104) 0 8.8rem, rgba(112, 188, 200, 0.047) 14rem, transparent 23rem),
    radial-gradient(ellipse at 50% 8%, rgba(24, 196, 232, 0.105) 0 6.8rem, rgba(35, 164, 211, 0.052) 11.2rem, transparent 18rem),
    radial-gradient(ellipse at 50% 7%, rgba(38, 168, 238, 0.13) 0 7.6rem, rgba(35, 129, 200, 0.055) 12.5rem, transparent 22rem),
    linear-gradient(180deg, transparent 0 28%, rgba(108, 100, 84, 0.07) 47%, rgba(91, 80, 64, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 8, 22, 0) 0 3.8%, rgba(129, 169, 205, 0.13) 4.15%, rgba(6, 16, 35, 0.18) 5.4%, transparent 8.8%),
    radial-gradient(ellipse at 50% 6%, rgba(89, 202, 238, 0.19) 0 10rem, rgba(60, 155, 202, 0.08) 15rem, transparent 30rem),
    radial-gradient(ellipse at 50% 11%, rgba(82, 187, 226, 0.24) 0 8.2rem, rgba(69, 160, 201, 0.07) 13.5rem, transparent 24rem),
    radial-gradient(ellipse at 50% 31%, rgba(167, 210, 235, 0.09) 0 15.5rem, transparent 31rem),
    linear-gradient(105deg, transparent 0 17%, rgba(255, 255, 255, 0.014) 17.35% 17.75%, transparent 18.2% 38%, rgba(0, 0, 0, 0.05) 38.5% 39%, transparent 39.5%),
    linear-gradient(128deg, transparent 0 25%, rgba(255, 255, 255, 0.018) 26% 26.32%, transparent 27.2% 52%, rgba(0, 0, 0, 0.055) 53% 53.35%, transparent 54%),
    linear-gradient(180deg, rgba(14, 26, 48, 0) 0%, rgba(27, 50, 82, 0.3) 6%, rgba(66, 91, 119, 0.68) 22%, rgba(57, 84, 112, 0.74) 42%, rgba(35, 55, 82, 0.94) 72%, rgba(14, 26, 48, 1) 100%),
    radial-gradient(ellipse at 50% 17%, rgba(38, 215, 244, 0.15) 0 6.2rem, rgba(36, 181, 210, 0.045) 9rem, transparent 15rem),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255, 255, 255, 0.012) 63px 64px),
    repeating-linear-gradient(90deg, transparent 0 136px, rgba(255, 255, 255, 0.01) 137px 138px),
    linear-gradient(110deg, transparent 0 48%, rgba(255, 255, 255, 0.014) 49% 49.55%, transparent 50.3% 100%);
  box-shadow:
    inset 0 1px 0 rgba(201, 226, 249, 0.08),
    inset 0 22px 34px rgba(0, 5, 18, 0.28),
    inset 0 -18px 36px rgba(0, 4, 16, 0.34);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 4%, #000 12%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 4%, #000 12%);
  transform: none;
}

.topbar {
  position: relative;
  z-index: 34;
  grid-template-columns: minmax(153px, 158px) minmax(520px, 1fr) minmax(260px, 350px);
  grid-template-rows: 100px 34px;
  gap: 0;
  min-height: var(--lobby-top-row-height);
  padding: 0 clamp(22px, 5.2vw, 104px);
  background: #030611;
  border-bottom: 1px solid rgba(104, 140, 190, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 17px;
  bottom: 0;
  z-index: 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(32, 62, 104, 0.92), rgba(20, 42, 76, 0.92));
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  grid-row: 1 / 3;
  align-self: start;
  gap: 0;
  margin-left: 18px;
  padding-top: 37px;
}

.menu-glyph,
.brand-season {
  display: none;
}

.brand-title {
  font-family: Impact, "Arial Black", "Arial Narrow", sans-serif;
  font-size: clamp(3.05rem, 3.52vw, 3.7rem);
  line-height: 0.84;
  color: #fbfbfd;
  text-shadow: 0 2px 0 #242a37, 0 5px 12px rgba(0, 0, 0, 0.58);
  transform: scaleX(0.85);
  transform-origin: left center;
}

.main-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
  height: 34px;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.main-tabs::before,
.main-tabs::after {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  align-self: center;
  border-radius: 50%;
  color: #f4f6ff;
  background: #1b2b64;
  box-shadow: inset 0 0 0 2px rgba(117, 149, 218, 0.62);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
}

.main-tabs::before {
  content: "LB";
}

.main-tabs::after {
  content: "RB";
}

.tab {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 4px clamp(16px, 1.25vw, 24px);
  color: #e7edf8;
  background: rgba(63, 91, 130, 0.8);
  border: 1px solid rgba(145, 174, 218, 0.22);
  font-size: clamp(0.76rem, 0.86vw, 0.96rem);
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.tab:hover,
.tab:focus-visible {
  transform: none;
  background: rgba(74, 103, 144, 0.86);
}

.tab.is-active {
  color: #101828;
  background: #fff20d;
  text-shadow: none;
}

.tab.is-active::before {
  content: none;
}

.account-pill {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  gap: 8px;
  padding-top: 44px;
  margin-right: 37px;
}

.icon-button,
.profile-chip,
.vbucks-balance {
  min-height: 42px;
  border: 2px solid rgba(111, 151, 214, 0.88);
  background: rgba(8, 18, 42, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(202, 229, 255, 0.12),
    0 0 0 1px rgba(0, 3, 15, 0.35);
}

.icon-button {
  width: 42px;
  height: 42px;
}

#mute-button {
  display: none;
}

.account-menu-button {
  display: grid;
  gap: 3px;
  position: relative;
  width: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.account-menu-button span {
  display: none;
}

.account-menu-button::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background:
    linear-gradient(#eef5ff, #eef5ff) 50% 9px / 14px 3px no-repeat,
    linear-gradient(#eef5ff, #eef5ff) 50% 14px / 14px 3px no-repeat,
    linear-gradient(#eef5ff, #eef5ff) 50% 19px / 14px 3px no-repeat,
    radial-gradient(circle at 50% 50%, #2d3f96 0 56%, #16245f 57% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(124, 151, 221, 0.72),
    0 2px 0 rgba(0, 0, 0, 0.42);
  transform: scale(0.94);
}

.account-menu-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 0;
  height: 7px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(122, 151, 216, 0.72) 0 13px, transparent 13px calc(100% - 13px), rgba(122, 151, 216, 0.72) calc(100% - 13px) 100%);
}

.speaker-icon {
  transform: scale(0.66);
}

.vbucks-balance,
.profile-chip {
  min-height: 42px;
  padding: 4px 14px;
}

.vbucks-balance {
  min-width: 105px;
  justify-content: center;
}

.coin {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(222, 246, 255, 0.74);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.98) 0 12%, rgba(193, 250, 255, 0.88) 13% 26%, rgba(99, 219, 242, 0.9) 27% 48%, rgba(35, 93, 158, 0.94) 49% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(203, 235, 245, 0.34),
    inset 0 -2px 0 rgba(0, 20, 80, 0.34),
    0 0 10px rgba(91, 220, 255, 0.34);
}

.coin::after {
  font-size: 0.55rem;
  font-family: "Arial Black", Impact, sans-serif;
}

.profile-chip {
  min-width: 86px;
  max-width: 86px;
  justify-content: center;
}

.avatar-dot {
  display: none;
}

.profile-chip::before {
  content: "";
  width: 31px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='31' height='24' viewBox='0 0 31 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23eef5ff'%3E%3Ccircle cx='10' cy='6' r='4.5'/%3E%3Ccircle cx='20' cy='6' r='4.5'/%3E%3Cpath d='M3 22v-4.1c0-4.1 3.1-7.1 7-7.1s7 3 7 7.1V22H3z'/%3E%3Cpath d='M14 22v-4.1c0-4.1 3.1-7.1 7-7.1s7 3 7 7.1V22H14z'/%3E%3C/g%3E%3Cpath d='M15.5 11v11' stroke='%23070d1f' stroke-opacity='.82' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 31px 24px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
  transform: scale(0.94);
}

.profile-chip #profile-name {
  display: inline;
  font-size: 0;
}

.profile-chip #profile-name::after {
  content: "4";
  font-size: 0.68rem;
}

.lobby-grid {
  grid-template-columns: minmax(338px, 405px) minmax(630px, 1fr);
  gap: 0;
  height: calc(100vh - var(--lobby-top-row-height));
  padding: 4px clamp(20px, 5.2vw, 88px) var(--lobby-footer-row-height);
}

.left-stack {
  z-index: 4;
  gap: 0;
  overflow: visible;
}

.right-stack,
.mode-feature,
.mode-carousel,
.party-card,
.event-banner,
.rank-badge {
  display: none;
}

.panel-slab {
  border: 1px solid rgba(97, 123, 164, 0.3);
  background: var(--panel);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
}

.panel-slab::after {
  content: none;
}

.season-panel {
  overflow: hidden;
  color: #edf4ff;
  background: rgba(4, 8, 24, 0.86);
  transform: translate(var(--season-panel-x, 0px), var(--season-panel-y, 0px)) scale(var(--season-panel-scale, 1));
  transform-origin: top left;
}

.season-header,
.daily-title {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #e4ebf6;
  background: rgba(61, 84, 128, 0.88);
  font-size: 1.14rem;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.season-header {
  background:
    linear-gradient(71deg, rgba(73, 100, 149, 0.91) 0 29%, rgba(42, 64, 106, 0.91) 29.4% 100%),
    linear-gradient(180deg, rgba(81, 111, 165, 0.82), rgba(40, 61, 103, 0.92));
}

.daily-title {
  background: rgba(35, 50, 83, 0.95);
}

.season-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 177px;
  padding: 24px 20px 16px;
  background:
    radial-gradient(ellipse at 18% 48%, rgba(24, 82, 91, 0.2), transparent 13rem),
    linear-gradient(180deg, rgba(4, 10, 29, 0.96), rgba(2, 6, 20, 0.93));
}

.season-shield {
  position: relative;
  place-self: center;
  width: 92px;
  height: 110px;
  background:
    linear-gradient(102deg, rgba(182, 111, 33, 0.86) 0 6%, transparent 6.5% 93%, rgba(10, 95, 63, 0.82) 93.5% 100%),
    linear-gradient(180deg, #1ff0ac 0%, #14d98a 48%, #0db76d 100%);
  clip-path: polygon(50% 0, 94% 16%, 85% 76%, 50% 100%, 15% 76%, 6% 16%);
  filter:
    drop-shadow(0 2px 0 rgba(245, 177, 83, 0.48))
    drop-shadow(0 7px 0 rgba(8, 94, 62, 0.95))
    drop-shadow(0 14px 12px rgba(0, 0, 0, 0.42));
}

.season-shield::before,
.season-shield::after,
.season-shield span::before,
.season-shield span::after {
  content: "";
  position: absolute;
  background: #eefaff;
  filter: drop-shadow(0 2px 0 rgba(0, 77, 51, 0.26));
}

.season-shield::before,
.season-shield::after {
  left: 50%;
  top: 49%;
  width: 9px;
  height: 67px;
  border-radius: 999px;
  transform-origin: 50% 50%;
}

.season-shield::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.season-shield::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.season-shield span::before,
.season-shield span::after {
  top: 19%;
  width: 38px;
  height: 27px;
  border-radius: 42% 54% 38% 44%;
  clip-path: polygon(0 54%, 28% 19%, 56% 0, 100% 16%, 84% 36%, 56% 31%, 35% 72%, 12% 84%);
}

.season-shield span::before {
  left: 15px;
  transform: rotate(-35deg);
}

.season-shield span::after {
  right: 15px;
  transform: scaleX(-1) rotate(-35deg);
}

.season-level-block {
  align-self: center;
  min-width: 0;
  text-transform: uppercase;
}

.season-level-title {
  color: #f7f9ff;
  font-size: 1.78rem;
  line-height: 0.9;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

.season-level-title strong {
  font-size: 3.4rem;
}

.season-xp-label {
  margin-top: 10px;
  color: #ecf2ff;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.season-xp-track {
  height: 15px;
  margin-top: 5px;
  border: 2px solid rgba(195, 204, 221, 0.55);
  background: rgba(0, 3, 13, 0.76);
}

.season-xp-track span {
  display: block;
  width: 50%;
  height: 100%;
  background: #74f020;
}

.season-reward-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  color: #d4dae4;
  font-size: 1rem;
}

.season-reward-row span::after {
  content: ">";
  display: inline-block;
  margin-left: 8px;
  color: rgba(215, 224, 239, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.92rem;
  transform: scaleX(0.72);
}

.season-reward-row strong {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff5d7;
}

.season-reward-row strong::before,
.pass-row:not(.pass-row--gold) b::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  background:
    radial-gradient(circle at 50% 38%, #fff2c3 0 18%, transparent 19%),
    linear-gradient(180deg, #ffbd3f 0%, #ea6b20 52%, #8e2615 100%);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 55%, 80% 100%, 50% 72%, 20% 100%, 32% 55%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.52));
}

.pass-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 50px;
  padding: 5px 13px 5px 0;
  background:
    linear-gradient(104deg, transparent 0 58%, rgba(13, 25, 45, 0.28) 59% 80%, transparent 81%),
    linear-gradient(90deg, rgba(116, 145, 154, 0.78), rgba(58, 82, 100, 0.82) 54%, rgba(17, 27, 50, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  overflow: hidden;
}

.pass-row--gold {
  background:
    linear-gradient(104deg, transparent 0 58%, rgba(38, 25, 19, 0.32) 59% 82%, transparent 83%),
    linear-gradient(90deg, rgba(185, 122, 36, 0.9), rgba(126, 76, 29, 0.84) 54%, rgba(58, 34, 24, 0.95));
}

.pass-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 32% 100%);
}

.pass-row > * {
  position: relative;
  z-index: 1;
}

.pass-row strong,
.pass-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pass-row strong {
  color: rgba(229, 238, 247, 0.78);
  font-size: 1.02rem;
}

.pass-row--gold strong {
  color: rgba(255, 207, 126, 0.78);
}

.pass-row small {
  color: rgba(255, 248, 205, 0.94);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: none;
}

.pass-row b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f7fbff;
  font-size: 1.1rem;
}

.pass-lock {
  display: grid;
  place-items: center;
  position: relative;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: transparent !important;
  background:
    radial-gradient(circle at 36% 25%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(47, 50, 62, 0.98), rgba(4, 7, 17, 0.92));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.46);
}

.pass-lock::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 13px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #c7d0df);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.48);
}

.pass-lock::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 11px;
  height: 10px;
  border: 3px solid #eef4ff;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.46));
}

.pass-emblem {
  justify-self: center;
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 38px;
  clip-path: polygon(50% 0, 100% 28%, 78% 100%, 22% 100%, 0 28%);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.34));
}

.pass-emblem.gold {
  background:
    linear-gradient(130deg, rgba(255, 247, 200, 0.34) 0 24%, transparent 25% 100%),
    radial-gradient(circle at 50% 36%, #ffe69a 0 18%, transparent 19%),
    linear-gradient(180deg, #efb646 0%, #b96c1d 58%, #643111 100%);
}

.pass-emblem.silver {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.46) 0 22%, transparent 23% 100%),
    radial-gradient(circle at 50% 34%, #ffffff 0 18%, transparent 19%),
    linear-gradient(180deg, #edfaff 0%, #9ab5be 52%, #3b5361 100%);
}

.pass-emblem::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 31%;
  width: 26px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: rgba(255, 250, 210, 0.36);
  clip-path: polygon(50% 0, 61% 36%, 100% 36%, 69% 56%, 82% 100%, 50% 72%, 18% 100%, 31% 56%, 0 36%, 39% 36%);
}

.pass-emblem::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  height: 5px;
  background: rgba(8, 18, 35, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.daily-title {
  height: 32px;
  font-size: 0.96rem;
  background: rgba(35, 50, 83, 0.95);
}

.daily-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 7px 10px;
  min-height: 63px;
  padding: 8px 15px;
  background:
    linear-gradient(180deg, rgba(21, 30, 57, 0.96), rgba(12, 19, 39, 0.95));
  border-top: 1px solid rgba(95, 119, 156, 0.13);
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 900;
}

.daily-row span {
  overflow: hidden;
  color: #d6deec;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-row small {
  color: #eef3ff;
  font-size: 1.05rem;
}

.daily-xp,
.daily-stars {
  align-self: center;
  color: #f7fbff;
  font-size: 0.92rem;
  font-style: normal;
}

.daily-xp {
  color: #efffd8;
}

.daily-xp::before {
  content: "XP";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  color: #ffffff;
  background: #77d229;
  font-size: 0.7rem;
}

.daily-stars::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  vertical-align: middle;
  background: linear-gradient(180deg, #ff9a27, #9b3019);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 55%, 80% 100%, 50% 72%, 20% 100%, 32% 55%, 2% 35%, 39% 35%);
}

.daily-row i {
  grid-column: 1 / 2;
  height: 8px;
  border: 2px solid rgba(146, 158, 183, 0.5);
  background: rgba(0, 1, 9, 0.68);
}

.daily-row i::before {
  content: "";
  display: block;
  width: var(--daily-progress);
  height: 100%;
  background: #76f227;
}

.stage {
  overflow: visible;
  padding: 0;
  min-height: 100%;
  grid-template-rows: 1fr;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(0, 12, 36, 0.2) 0 58%, rgba(0, 12, 36, 0.08) 64%, transparent 70%);
}

.character-stage {
  grid-template-columns: 130px 440px 185px minmax(130px, 1fr);
  align-items: end;
  min-height: 100%;
  position: relative;
  z-index: auto;
  transform: none;
  overflow: visible;
  pointer-events: none;
}

.character-stage::before {
  content: "";
  position: absolute;
  left: -48%;
  right: -44%;
  bottom: -7%;
  z-index: 0;
  height: 64%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 84%, rgba(104, 86, 46, 0.22) 0 7.6rem, rgba(36, 28, 22, 0.13) 15.2rem, transparent 28rem),
    linear-gradient(106deg, transparent 0 53%, rgba(77, 62, 37, 0.07) 62%, rgba(0, 3, 14, 0.15) 100%),
    radial-gradient(ellipse at 50% 76%, rgba(238, 225, 190, 0.105) 0 7.8rem, rgba(148, 125, 94, 0.052) 13.8rem, transparent 24rem),
    linear-gradient(180deg, transparent 0 36%, rgba(180, 163, 132, 0.045) 58%, rgba(76, 62, 47, 0.074) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(15, 165, 248, 0.14) 0 6.8rem, rgba(24, 130, 226, 0.064) 11.6rem, transparent 19rem),
    radial-gradient(ellipse at 50% 38%, rgba(18, 165, 246, 0.118) 0 7.2rem, rgba(35, 130, 220, 0.054) 12.8rem, transparent 21rem),
    radial-gradient(ellipse at 50% 64%, rgba(230, 248, 241, 0.105) 0 4.9rem, rgba(104, 192, 205, 0.052) 10rem, transparent 17rem),
    radial-gradient(ellipse at 50% 78%, rgba(228, 252, 255, 0.32) 0 4.45rem, rgba(98, 218, 240, 0.21) 8.6rem, transparent 17.4rem),
    linear-gradient(180deg, rgba(4, 10, 24, 0) 0 7.1%, rgba(226, 245, 255, 0.16) 8%, rgba(5, 15, 34, 0.34) 9.5%, transparent 13.2%),
    repeating-linear-gradient(90deg, transparent 0 108px, rgba(229, 245, 255, 0.058) 109px 111px, transparent 112px 222px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(238, 249, 255, 0.044) 57px 59px, transparent 60px 114px),
    linear-gradient(112deg, transparent 0 18%, rgba(240, 250, 255, 0.055) 18.4% 19.2%, transparent 19.8% 52%, rgba(4, 11, 25, 0.12) 52.5% 53.2%, transparent 54%),
    linear-gradient(68deg, transparent 0 31%, rgba(4, 10, 23, 0.16) 31.4% 32%, transparent 32.8% 72%, rgba(244, 251, 255, 0.045) 72.5% 73.2%, transparent 74%),
    radial-gradient(ellipse at 18% 77%, rgba(232, 246, 255, 0.05) 0 2.4rem, rgba(13, 31, 55, 0.05) 3.5rem, transparent 6rem),
    radial-gradient(ellipse at 63% 70%, rgba(236, 248, 255, 0.045) 0 2.1rem, rgba(10, 25, 47, 0.04) 3.2rem, transparent 6.4rem),
    radial-gradient(ellipse at 84% 82%, rgba(3, 9, 22, 0.16) 0 3.1rem, transparent 7.4rem),
    repeating-linear-gradient(167deg, transparent 0 88px, rgba(239, 248, 255, 0.026) 89px 91px, transparent 92px 244px),
    repeating-linear-gradient(24deg, transparent 0 64px, rgba(0, 6, 18, 0.055) 65px 66px, transparent 67px 181px),
    linear-gradient(180deg, rgba(4, 9, 22, 0) 0 10.5%, rgba(184, 218, 240, 0.12) 11.2%, rgba(3, 12, 31, 0.42) 12.5%, transparent 15%),
    linear-gradient(90deg, rgba(0, 5, 20, 0.48), transparent 17%, transparent 83%, rgba(0, 4, 18, 0.58)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(221, 239, 255, 0.045) 119px 121px, transparent 122px 236px),
    repeating-linear-gradient(0deg, transparent 0 50px, rgba(221, 239, 255, 0.036) 51px 53px, transparent 54px 100px),
    repeating-linear-gradient(116deg, transparent 0 168px, rgba(242, 249, 255, 0.028) 169px 171px, transparent 172px 340px),
    repeating-linear-gradient(104deg, transparent 0 42px, rgba(234, 246, 255, 0.018) 43px 44px, transparent 45px 130px),
    repeating-linear-gradient(13deg, transparent 0 72px, rgba(255, 255, 255, 0.014) 73px 74px, transparent 75px 182px),
    radial-gradient(ellipse at 50% 26%, rgba(83, 228, 255, 0.13) 0 5.8rem, rgba(64, 161, 203, 0.066) 10rem, transparent 21rem),
    radial-gradient(ellipse at 49% 61%, rgba(219, 242, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(6, 14, 31, 0.12), rgba(52, 86, 122, 0.48) 52%, rgba(20, 39, 70, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(228, 243, 255, 0.2),
    inset 0 18px 18px rgba(0, 5, 18, 0.26),
    inset 0 -36px 46px rgba(0, 4, 16, 0.42),
    0 -16px 32px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
  transform: perspective(900px) rotateX(50deg) scaleX(1.22);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 8%, #000 22%);
}

.character-stage::after {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: 15%;
  z-index: 1;
  height: 17%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(70, 213, 255, 0.13) 0 8.8rem, rgba(40, 150, 226, 0.052) 14.4rem, transparent 24rem),
    linear-gradient(180deg, transparent 0 13%, rgba(78, 186, 231, 0.065) 21%, rgba(37, 108, 162, 0.04) 42%, transparent 72%),
    radial-gradient(ellipse at 50% 26%, rgba(34, 196, 255, 0.23) 0 6.4rem, rgba(37, 142, 222, 0.1) 12rem, transparent 20rem),
    radial-gradient(ellipse at 45% 72%, rgba(12, 27, 50, 0.18) 0 2.7rem, transparent 7rem),
    radial-gradient(ellipse at 57% 68%, rgba(230, 246, 255, 0.05) 0 1.8rem, transparent 5.2rem),
    repeating-linear-gradient(158deg, transparent 0 48px, rgba(255, 255, 255, 0.017) 49px 50px, transparent 51px 150px),
    repeating-linear-gradient(172deg, transparent 0 82px, rgba(232, 247, 255, 0.018) 83px 84px, transparent 85px 208px),
    repeating-linear-gradient(101deg, transparent 0 64px, rgba(240, 250, 255, 0.024) 65px 66px, transparent 67px 176px),
    repeating-linear-gradient(6deg, transparent 0 91px, rgba(255, 255, 255, 0.016) 92px 93px, transparent 94px 220px),
    linear-gradient(104deg, transparent 0 20%, rgba(243, 251, 255, 0.026) 20.4% 21.1%, transparent 21.8% 67%, rgba(255, 255, 255, 0.018) 67.4% 68.2%, transparent 69%),
    linear-gradient(78deg, transparent 0 30%, rgba(8, 19, 38, 0.18) 30.5% 31.2%, transparent 32% 73%, rgba(255, 255, 255, 0.016) 73.4% 74%, transparent 74.8%),
    radial-gradient(ellipse at 34% 52%, rgba(220, 242, 255, 0.058) 0 3.6rem, transparent 7rem),
    radial-gradient(ellipse at 69% 47%, rgba(217, 239, 255, 0.052) 0 3.8rem, transparent 7.4rem);
  filter: blur(0.2px);
  opacity: 0.32;
}

/* Reference floor pass: simplify the stage plane toward the steel-blue Season 3 tile surface. */
.character-stage::before {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(23, 190, 255, 0.17) 0 7.2rem, rgba(27, 126, 198, 0.075) 12.5rem, transparent 22rem),
    radial-gradient(ellipse at 50% 72%, rgba(214, 246, 255, 0.24) 0 5.4rem, rgba(95, 207, 231, 0.14) 10rem, transparent 19rem),
    linear-gradient(180deg, transparent 0 10%, rgba(213, 236, 247, 0.12) 11%, rgba(2, 14, 36, 0.34) 12.5%, transparent 16%),
    repeating-linear-gradient(90deg, transparent 0 112px, rgba(235, 247, 255, 0.052) 113px 115px, transparent 116px 232px),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(236, 248, 255, 0.04) 56px 58px, transparent 59px 114px),
    repeating-linear-gradient(113deg, transparent 0 138px, rgba(235, 248, 255, 0.028) 139px 141px, transparent 142px 286px),
    linear-gradient(106deg, transparent 0 51%, rgba(8, 18, 36, 0.13) 52% 53%, transparent 54%),
    linear-gradient(90deg, rgba(0, 5, 20, 0.5), transparent 18%, transparent 83%, rgba(0, 4, 18, 0.58)),
    linear-gradient(180deg, rgba(8, 16, 33, 0.08), rgba(64, 101, 135, 0.52) 52%, rgba(24, 45, 76, 0.96));
  opacity: 0.94;
  filter: none;
}

.character-stage::after {
  background:
    linear-gradient(180deg, transparent 0 12%, rgba(98, 191, 231, 0.075) 20%, rgba(43, 111, 165, 0.048) 45%, transparent 72%),
    repeating-linear-gradient(176deg, transparent 0 86px, rgba(236, 248, 255, 0.022) 87px 89px, transparent 90px 214px),
    repeating-linear-gradient(96deg, transparent 0 72px, rgba(244, 252, 255, 0.027) 73px 74px, transparent 75px 190px);
  opacity: 0.24;
}

.avatar-platform {
  position: relative;
  align-self: stretch;
  width: min(100%, 530px);
  z-index: var(--character-z, 22);
  pointer-events: auto;
  transform: translate(var(--character-x, 0px), var(--character-y, 0px)) rotate(var(--character-rotate, 0deg)) scale(var(--character-platform-scale, 1));
  transform-origin: 50% 92%;
}

.platform-rings {
  bottom: clamp(70px, 8.9vh, 84px);
  width: min(26vw, 342px);
  min-width: 318px;
  aspect-ratio: 6.5 / 1;
  background:
    radial-gradient(ellipse at 50% 49%, rgba(255, 255, 255, 1) 0 38%, rgba(238, 255, 255, 1) 39% 44%, rgba(94, 246, 252, 0.99) 45% 52%, rgba(25, 128, 158, 0.96) 53% 59%, rgba(18, 66, 96, 0.96) 60% 66%, transparent 67%),
    radial-gradient(ellipse at 50% 48%, transparent 0 60%, rgba(28, 69, 98, 0.95) 61% 66%, rgba(139, 245, 251, 0.92) 67% 70%, rgba(17, 76, 105, 0.95) 71% 76%, transparent 77%),
    radial-gradient(ellipse at 50% 68%, rgba(41, 93, 120, 0.78) 0 58%, rgba(14, 48, 74, 0.9) 68%, transparent 78%);
  filter:
    drop-shadow(0 0 22px rgba(67, 239, 255, 0.66))
    drop-shadow(0 18px 11px rgba(0, 0, 0, 0.42))
    drop-shadow(0 27px 18px rgba(0, 4, 16, 0.42));
  animation: none;
  opacity: 1;
}

.platform-rings::before {
  content: "";
  position: absolute;
  inset: 20% 20% 20%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.96), rgba(220, 255, 255, 0.78) 45%, transparent 68%),
    radial-gradient(ellipse at 50% 50%, transparent 0 62%, rgba(4, 58, 88, 0.72) 64% 74%, transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.platform-rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 34%;
  height: 390%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(42, 222, 236, 0.58) 27% 36%, transparent 44% 56%, rgba(38, 214, 232, 0.52) 64% 73%, transparent 82% 100%),
    linear-gradient(90deg, transparent 0 42%, rgba(218, 128, 62, 0.2) 47% 53%, transparent 58% 100%),
    linear-gradient(180deg, rgba(232, 255, 255, 0.56), rgba(66, 212, 232, 0.28) 30%, rgba(207, 140, 78, 0.12) 58%, transparent 90%);
  transform: translateX(-50%);
  filter: blur(4.5px);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, #000 0 38%, rgba(0, 0, 0, 0.72) 58%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0 38%, rgba(0, 0, 0, 0.72) 58%, transparent 92%);
}

.ready-pulse {
  bottom: clamp(38px, 8vh, 76px);
  border-color: rgba(23, 218, 255, 0);
}

.friend-pedestal {
  position: relative;
  z-index: 3;
  align-self: center;
  margin-bottom: clamp(48px, 13vh, 118px);
  opacity: 0.96;
  pointer-events: auto;
  transform-origin: 50% 50%;
}

.friend-pedestal::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -46px;
  z-index: -2;
  width: clamp(154px, 13vw, 218px);
  height: clamp(122px, 11vw, 176px);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 2, 10, 0.56) 0 29%, rgba(0, 4, 16, 0.34) 49%, rgba(0, 5, 18, 0.13) 68%, transparent 77%);
  transform: translateX(-50%);
}

.friend-pedestal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(164px, 21vh, 198px);
  z-index: -1;
  width: clamp(162px, 12.6vw, 210px);
  height: clamp(42px, 4.3vw, 62px);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(229, 242, 249, 0.68) 0 18%, rgba(130, 164, 193, 0.52) 19% 36%, rgba(26, 66, 104, 0.42) 37% 48%, transparent 49%),
    radial-gradient(ellipse at center, transparent 0 53%, rgba(137, 176, 207, 0.56) 54% 58%, rgba(15, 42, 73, 0.66) 59% 65%, transparent 66%),
    radial-gradient(ellipse at center, rgba(8, 24, 47, 0.64), rgba(0, 6, 19, 0.04) 72%);
  filter: drop-shadow(0 15px 17px rgba(0, 0, 0, 0.4));
  transform: translateX(-50%);
}

.friend-pedestal.left,
.friend-pedestal.mid-right {
  margin-bottom: clamp(40px, 10.5vh, 96px);
}

.friend-pedestal.left {
  z-index: var(--slot-left-z, 3);
  transform: translate(calc(5px + var(--slot-left-x, 0px)), calc(14px + var(--slot-left-y, 0px))) scale(var(--slot-left-scale, 1));
}

.friend-pedestal.mid-right {
  z-index: var(--slot-mid-z, 3);
  transform: translate(var(--slot-mid-x, 0px), calc(14px + var(--slot-mid-y, 0px))) scale(var(--slot-mid-scale, 1));
}

.friend-pedestal.right {
  z-index: var(--slot-right-z, 3);
  transform: translate(calc(-45px + var(--slot-right-x, 0px)), var(--slot-right-y, 0px)) scale(var(--slot-right-scale, 1));
}

.friend-pedestal small {
  display: none;
}

.plus-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px dashed rgba(255, 255, 255, 0.92);
  border-radius: 0;
  background: rgba(0, 4, 18, 0.08);
  color: transparent;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  box-shadow: none;
  text-shadow: none;
}

.plus-ring::before,
.plus-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.58);
  transform: translate(-50%, -50%);
}

.plus-ring::after {
  width: 3px;
  height: 26px;
}

.pedestal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: rgba(46, 76, 114, 0.72);
}

.nameplate {
  top: var(--character-tag-y, -150px);
  z-index: 16;
  min-width: 250px;
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse at 47% 46%, rgba(31, 92, 145, 0.16), rgba(8, 27, 68, 0.08) 47%, transparent 78%);
  box-shadow: none;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.72);
  transform: translateX(calc(-50% + var(--character-tag-x, 0px)));
}

.nameplate::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 3px solid #244bc5;
  border-radius: 50%;
  color: #62ff57;
  background:
    radial-gradient(circle at 52% 48%, rgba(12, 24, 67, 0.98), rgba(7, 15, 49, 0.96));
  font-size: 1rem;
  box-shadow:
    inset 0 0 0 1px rgba(92, 135, 255, 0.36),
    0 2px 0 rgba(0, 0, 0, 0.5);
}

.nameplate::after {
  content: "";
  position: absolute;
  left: 72px;
  right: 30px;
  top: 31px;
  height: 0;
  border-bottom: 1px dotted rgba(103, 145, 221, 0.62);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.5));
}

.nameplate strong {
  position: relative;
  display: inline-block;
  padding-left: 18px;
  color: #f7faff;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: none;
}

.nameplate strong::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 35px;
  margin-right: 16px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='35' viewBox='0 0 32 35' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 1 30 7 27 26 16 34 5 26 2 7Z' fill='%231bdd89'/%3E%3Cpath d='M16 1 30 7 27 26 16 34 5 26 2 7Z' fill='url(%23g)' opacity='.95'/%3E%3Cg stroke='%23f7fff9' stroke-width='3.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 13.5 23 24.5'/%3E%3Cpath d='M23 13.5 9 24.5'/%3E%3C/g%3E%3Cg fill='%23f7fff9'%3E%3Cpath d='M7.3 11.1 13.2 9.6 12.2 14.5Z'/%3E%3Cpath d='M24.7 11.1 18.8 9.6 19.8 14.5Z'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='g' x1='16' y1='1' x2='16' y2='34' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2338f5a9'/%3E%3Cstop offset='1' stop-color='%2310b86b'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter:
    drop-shadow(0 0 5px rgba(26, 228, 145, 0.32))
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}

.nameplate strong::after {
  content: "";
  position: absolute;
  left: 49px;
  top: 5px;
  width: 16px;
  height: 12px;
  background:
    linear-gradient(180deg, #ffe85a, #d7a31d);
  clip-path: polygon(0 100%, 0 38%, 24% 58%, 38% 0, 52% 55%, 72% 10%, 86% 60%, 100% 38%, 100% 100%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}

.nameplate span {
  position: relative;
  margin-top: -1px;
  color: #ef5075;
  font-size: 1.02rem;
  text-transform: none;
}

.nameplate span::before {
  content: "";
  position: absolute;
  left: auto;
  right: 4px;
  top: -24px;
  width: 18px;
  height: 16px;
  background: #f6fbff;
  clip-path: polygon(0 36%, 36% 36%, 78% 7%, 78% 93%, 36% 64%, 0 64%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.65));
}

.nameplate span::after {
  content: none;
}

.character {
  --primary: #d58a4d;
  --secondary: #08070a;
  --suit: #a45c2f;
  --skin: #c7743e;
  position: relative;
  left: 0;
  width: clamp(170px, 22vw, 245px);
  height: clamp(326px, 49vh, 448px);
  margin-bottom: clamp(44px, 7vh, 72px);
  z-index: var(--character-z, 22);
  filter: drop-shadow(0 24px 18px rgba(0, 0, 0, 0.52));
}

.character.has-three-model {
  z-index: var(--character-z, 22);
  transform: none;
  transform-origin: 50% 92%;
}

.character.has-three-model.is-emoting {
  animation: none !important;
}

.character-model-canvas {
  bottom: 7%;
  z-index: 15;
  width: 260%;
  height: 116%;
  transform: translateX(-50%) scale(calc(var(--character-model-scale, 1) * 0.9));
  transform-origin: 50% 92%;
  filter:
    drop-shadow(0 18px 14px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 12px rgba(37, 225, 255, 0.12));
}

.companion-character {
  --companion-responsive-scale: 1;
  position: absolute;
  left: calc(130px + 440px + 92.5px + var(--slot-mid-x, 0px));
  bottom: clamp(98px, 13.5vh, 132px);
  z-index: var(--companion-character-z, 38);
  width: clamp(157px, 11.9vw, 208px);
  height: clamp(313px, 45.9vh, 429px);
  pointer-events: none;
  opacity: var(--companion-character-opacity, 1);
  transform: translateX(-50%) translate(var(--companion-character-x, 0px), calc(var(--slot-mid-y, 0px) + var(--companion-character-y, 0px))) rotate(var(--companion-character-rotate, 0deg)) scale(calc(var(--companion-character-scale, 1) * var(--companion-responsive-scale, 1)));
  transform-origin: 50% 92%;
  visibility: visible;
  transition: opacity 180ms ease;
}

#companion-character {
  visibility: visible;
  opacity: max(0.96, var(--companion-character-opacity, 1));
}

.companion-character.has-three-model {
  opacity: var(--companion-character-opacity, 1);
}

body:not(.is-companion-hidden) .companion-character {
  visibility: visible;
}

body.is-companion-hidden .companion-character {
  opacity: 0;
  visibility: hidden;
}

body.has-panel-tuner.is-panel-calibrating #companion-character {
  visibility: visible;
  opacity: max(0.42, var(--companion-character-opacity, 0));
  transition: opacity 80ms ease;
}

body.has-direct-tuner #companion-character {
  visibility: visible;
  opacity: max(0.42, var(--companion-character-opacity, 0));
  transition: opacity 80ms ease;
}

body.has-party-companion #companion-character {
  display: block !important;
  visibility: visible !important;
  opacity: max(0.96, var(--companion-character-opacity, 1)) !important;
  z-index: var(--companion-character-z, 38);
}

.companion-character.has-three-model .companion-fallback {
  display: none;
}

.party-character-nameplate {
  position: absolute;
  left: 50%;
  top: -40px;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 184px;
  color: #f7faff;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.74), 0 0 10px rgba(42, 116, 198, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.party-character-nameplate::after {
  content: "";
  width: 74px;
  border-bottom: 1px dotted rgba(103, 145, 221, 0.58);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.52));
}

.party-character-nameplate strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: #f7faff;
  font-size: 0.98rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-character-nameplate span {
  color: #ef5075;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.peely-nameplate {
  top: -46px;
}

.companion-model-canvas {
  position: absolute;
  left: 50%;
  bottom: -8%;
  z-index: 2;
  display: block;
  opacity: 0;
  width: 200%;
  height: 136%;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
  filter:
    drop-shadow(0 20px 16px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(61, 221, 255, 0.1));
}

.companion-character.has-three-model .companion-model-canvas {
  opacity: 1;
}

.companion-platform {
  position: absolute;
  left: 50%;
  bottom: -3%;
  z-index: 1;
  width: 145%;
  height: 16%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(229, 242, 249, 0.6) 0 19%, rgba(105, 143, 171, 0.38) 20% 45%, transparent 46%),
    radial-gradient(ellipse at center, transparent 0 57%, rgba(137, 176, 207, 0.5) 58% 62%, rgba(14, 41, 73, 0.56) 63% 67%, transparent 68%),
    radial-gradient(ellipse at center, rgba(5, 21, 42, 0.62), rgba(0, 6, 19, 0.02) 72%);
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%);
}

.peely-character {
  position: absolute;
  left: calc(78% + var(--slot-right-x, 0px));
  bottom: clamp(96px, 13.2vh, 128px);
  z-index: var(--peely-character-z, 16);
  width: clamp(128px, 10.8vw, 186px);
  height: clamp(292px, 42vh, 402px);
  pointer-events: none;
  opacity: var(--peely-character-opacity, 1);
  transform: translateX(-50%) translate(var(--peely-character-x, 0px), calc(var(--slot-right-y, 0px) + var(--peely-character-y, 0px))) rotate(var(--peely-character-rotate, 0deg)) scale(var(--peely-character-scale, 1));
  transform-origin: 50% 92%;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.peely-character.has-three-model {
  opacity: var(--peely-character-opacity, 1);
}

body:not(.is-peely-hidden) .peely-character {
  visibility: visible;
}

body.has-direct-tuner #peely-character {
  visibility: visible;
  opacity: max(0.42, var(--peely-character-opacity, 1));
}

body:not(.has-direct-tuner):not(.is-peely-hidden) .friend-pedestal.right {
  opacity: 0;
  pointer-events: none;
}

body:not(.has-direct-tuner):not(.is-companion-hidden) .friend-pedestal.mid-right {
  opacity: 0;
  pointer-events: none;
}

body.has-direct-tuner .friend-pedestal.right {
  opacity: 0.58;
}

body.has-direct-tuner .friend-pedestal.mid-right {
  opacity: 0.58;
}

body.has-direct-tuner:not(.is-companion-hidden) .friend-pedestal.mid-right {
  z-index: var(--slot-mid-z, 3);
  opacity: 0.18;
  pointer-events: none;
}

body:not(.is-companion-hidden) .friend-pedestal.mid-right,
body:not(.is-peely-hidden) .friend-pedestal.right,
body.has-direct-tuner:not(.is-companion-hidden) .friend-pedestal.mid-right,
body.has-direct-tuner:not(.is-peely-hidden) .friend-pedestal.right {
  opacity: 0;
  pointer-events: none;
}

body.has-slot-anchors .companion-character {
  left: var(--slot-mid-anchor-x);
  top: var(--slot-mid-anchor-y);
  bottom: auto;
  transform: translate(-50%, -39%) translate(var(--companion-character-x, 0px), var(--companion-character-y, 0px)) rotate(var(--companion-character-rotate, 0deg)) scale(calc(var(--companion-character-scale, 1) * var(--companion-responsive-scale, 1)));
}

body.has-slot-anchors .peely-character {
  left: var(--slot-right-anchor-x);
  top: var(--slot-right-anchor-y);
  bottom: auto;
  transform: translate(-50%, -43%) translate(var(--peely-character-x, 0px), var(--peely-character-y, 0px)) rotate(var(--peely-character-rotate, 0deg)) scale(var(--peely-character-scale, 1));
}

.peely-model-canvas {
  position: absolute;
  left: 50%;
  bottom: -3%;
  z-index: 2;
  display: block;
  opacity: 0;
  width: 178%;
  height: 120%;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
  filter:
    drop-shadow(0 20px 16px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 10px rgba(61, 221, 255, 0.09));
}

.peely-character.has-three-model .peely-model-canvas {
  opacity: 1;
}

.character.has-three-model .character-model-canvas,
.companion-character.has-three-model .companion-model-canvas,
.peely-character.has-three-model .peely-model-canvas {
  opacity: 1 !important;
}

.peely-platform {
  position: absolute;
  left: 50%;
  bottom: -3%;
  z-index: 1;
  width: 146%;
  height: 16%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(229, 242, 249, 0.6) 0 19%, rgba(105, 143, 171, 0.38) 20% 45%, transparent 46%),
    radial-gradient(ellipse at center, transparent 0 57%, rgba(137, 176, 207, 0.5) 58% 62%, rgba(14, 41, 73, 0.56) 63% 67%, transparent 68%),
    radial-gradient(ellipse at center, rgba(5, 21, 42, 0.62), rgba(0, 6, 19, 0.02) 72%);
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.42));
  transform: translateX(-50%);
}

.peely-fallback,
.peely-fallback span {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.peely-fallback {
  left: 50%;
  bottom: 4%;
  z-index: 2;
  width: 76%;
  height: 90%;
  transform: translateX(-50%);
  filter: drop-shadow(0 19px 13px rgba(0, 0, 0, 0.4));
}

.peely-character.has-three-model .peely-fallback {
  display: none;
}

.peely-body {
  left: 26%;
  top: 0;
  width: 48%;
  height: 74%;
  border-radius: 45% 45% 36% 36% / 7% 7% 32% 32%;
  background: linear-gradient(90deg, #c99519 0 10%, #ffe86a 22% 58%, #f1bd2a 88%, #9b6f13 100%);
}

.peely-leg {
  bottom: 0;
  width: 11%;
  height: 30%;
  background: linear-gradient(180deg, #f4c730, #916111);
}

.peely-leg.left {
  left: 36%;
  transform: rotate(2deg);
}

.peely-leg.right {
  right: 36%;
  transform: rotate(-2deg);
}

.companion-fallback,
.companion-fallback span,
.companion-fallback i {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.companion-fallback {
  left: 50%;
  bottom: 5%;
  z-index: 2;
  width: 92%;
  height: 88%;
  transform: translateX(-50%) rotate(-1.5deg);
  filter:
    drop-shadow(0 19px 13px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 10px rgba(61, 221, 255, 0.08));
}

.tung-body,
.tung-face {
  left: 50%;
  width: 50%;
  border-radius: 32% 32% 24% 24% / 16% 16% 18% 18%;
  background:
    radial-gradient(circle at 40% 16%, rgba(255, 237, 199, 0.9) 0 4%, transparent 5%),
    radial-gradient(circle at 58% 52%, rgba(255, 225, 174, 0.52) 0 7%, transparent 8%),
    linear-gradient(115deg, transparent 0 15%, rgba(30, 13, 7, 0.58) 16% 26%, transparent 27% 45%, rgba(249, 166, 83, 0.68) 46% 58%, transparent 59%),
    linear-gradient(20deg, #2c140c 0 18%, #8f4f23 19% 34%, #3a1b10 35% 49%, #b66a2c 50% 69%, #25100a 70% 100%);
  box-shadow:
    inset 8px 0 16px rgba(255, 187, 105, 0.28),
    inset -8px 0 16px rgba(0, 0, 0, 0.42),
    0 2px 0 rgba(255, 236, 206, 0.08);
  transform: translateX(-50%);
}

.tung-face {
  top: 4%;
  height: 39%;
}

.tung-body {
  top: 41%;
  height: 28%;
}

.tung-eye {
  top: 22%;
  width: 19%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 52% 52%, #a95820 0 35%, #281008 36% 66%, #080405 67% 100%);
  box-shadow: 0 0 0 3px rgba(248, 234, 209, 0.88), 0 2px 5px rgba(0, 0, 0, 0.44);
}

.tung-eye.left {
  left: 23%;
}

.tung-eye.right {
  right: 23%;
}

.tung-nose {
  left: 50%;
  top: 42%;
  width: 16%;
  height: 12%;
  border-radius: 50%;
  background: #1d0d08;
  box-shadow: 0 0 0 3px rgba(230, 218, 198, 0.75);
  transform: translateX(-50%);
}

.tung-mouth {
  left: 26%;
  top: 61%;
  width: 48%;
  height: 10%;
  border-bottom: 5px solid rgba(18, 9, 5, 0.9);
  border-radius: 0 0 50% 50%;
}

.tung-arm {
  top: 47%;
  width: 12%;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(18deg, #2b1208, #c27635 44%, #4e2110 70%, #d58741);
  transform-origin: 50% 8%;
}

.tung-arm.left {
  left: 19%;
  transform: rotate(14deg);
}

.tung-arm.right {
  right: 18%;
  transform: rotate(-8deg);
}

.tung-leg {
  bottom: 2%;
  width: 13%;
  height: 29%;
  border-radius: 999px 999px 42% 42%;
  background: linear-gradient(16deg, #241006, #9f5b29 46%, #2a1208 64%, #c17434);
}

.tung-leg.left {
  left: 38%;
  transform: rotate(2deg);
}

.tung-leg.right {
  right: 36%;
  transform: rotate(-4deg);
}

.tung-club {
  left: 6%;
  bottom: 9%;
  width: 16%;
  height: 43%;
  border-radius: 45% 45% 50% 50%;
  background: linear-gradient(26deg, #271108, #b66f34 40%, #32160a 63%, #d3863e);
  transform: rotate(50deg);
  transform-origin: 50% 85%;
}

.back-bling,
.pickaxe-prop,
.chest-core,
.strap {
  display: none;
}

.head {
  top: 4.6%;
  width: 39%;
  aspect-ratio: 0.5;
  border: 0;
  border-radius: 48% 46% 54% 52% / 28% 30% 70% 68%;
  background:
    radial-gradient(ellipse at 38% 19%, rgba(255, 235, 183, 0.68), transparent 13%),
    radial-gradient(ellipse at 76% 28%, rgba(255, 209, 154, 0.36), transparent 18%),
    linear-gradient(90deg, rgba(87, 35, 13, 0.34), transparent 24%, transparent 70%, rgba(54, 21, 9, 0.46)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(46, 8, 0, 0.22) 38px 41px, rgba(255, 209, 154, 0.08) 43px 47px, transparent 50px 65px),
    linear-gradient(180deg, #f0a662 0%, #cf7a3b 47%, #743214 100%);
  box-shadow: inset 0 -18px 0 rgba(55, 22, 8, 0.28), 0 10px 18px rgba(0, 0, 0, 0.34);
  overflow: visible;
}

.head::before,
.head::after {
  content: "";
  position: absolute;
  display: block;
  left: 20%;
  width: 60%;
  height: 13%;
  border-radius: 50%;
  pointer-events: none;
  background: transparent;
}

.head::before {
  top: 50%;
  border-top: 2px solid rgba(73, 27, 10, 0.23);
  box-shadow: 0 7px 0 rgba(238, 153, 83, 0.12);
}

.head::after {
  top: 65%;
  border-top: 2px solid rgba(52, 19, 8, 0.2);
  opacity: 0.78;
}

.visor {
  left: 26%;
  top: 15.5%;
  width: 47%;
  height: 7.4%;
  border-radius: 45% 45% 65% 65% / 35% 35% 80% 80%;
  background:
    linear-gradient(180deg, #2e0800 0 44%, #140603 45% 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 209, 154, 0.36),
    0 4px 0 -2px rgba(255, 209, 154, 0.34);
}

.hair {
  top: -18%;
  z-index: 7;
  width: 30%;
  height: 13%;
  border: 2px solid rgba(237, 194, 145, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #7b8791 0 12%, transparent 13%),
    radial-gradient(circle at 52% 52%, #09090c 0 58%, #241c19 59% 73%, #080709 74% 100%);
  clip-path: none;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.52));
}

.hair::before {
  content: "";
  position: absolute;
  left: 43%;
  top: 82%;
  z-index: -1;
  width: 17%;
  height: 125%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d98d50, #7a3617);
  box-shadow: inset -1px 0 0 rgba(46, 8, 0, 0.28);
  transform-origin: 50% 0;
}

.hair.left {
  left: 15%;
  transform: rotate(-4deg);
}

.hair.right {
  right: 15%;
  transform: rotate(5deg);
}

.hair.left::before {
  transform: rotate(7deg);
}

.hair.right::before {
  transform: rotate(-7deg);
}

.neck {
  top: 30.5%;
  width: 25%;
  height: 11.5%;
  border-radius: 45%;
  background:
    radial-gradient(ellipse at 45% 18%, rgba(255, 196, 126, 0.34), transparent 34%),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(74, 28, 10, 0.18) 18px 20px),
    linear-gradient(180deg, #d98d50, #9b552e);
  box-shadow: inset 0 -6px 0 rgba(61, 25, 10, 0.17);
  overflow: hidden;
}

.torso {
  top: 38.2%;
  width: 40%;
  height: 22%;
  border: 0;
  border-radius: 52% 52% 46% 46%;
  background:
    radial-gradient(ellipse at 42% 16%, rgba(255, 211, 151, 0.42), transparent 31%),
    linear-gradient(90deg, rgba(79, 30, 10, 0.28), transparent 28%, transparent 70%, rgba(57, 21, 7, 0.34)),
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(62, 25, 10, 0.27) 18px 21px, transparent 23px 33px),
    linear-gradient(180deg, #df9250, #a95a2c 58%, #612b13);
  clip-path: none;
  box-shadow: inset 0 -12px 0 rgba(65, 24, 8, 0.22), 0 18px 19px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.torso::before,
.torso::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.torso::before {
  top: 8%;
  width: 74%;
  height: 34%;
  border-radius: 50%;
  border-top: 2px solid rgba(255, 184, 111, 0.22);
  box-shadow: 0 9px 0 rgba(75, 28, 10, 0.16);
}

.torso::after {
  bottom: 14%;
  width: 92%;
  height: 30%;
  border-radius: 50%;
  border-top: 2px solid rgba(67, 25, 9, 0.24);
  background: radial-gradient(ellipse at center, rgba(124, 58, 25, 0.18), transparent 58%);
}

.belt {
  top: 55.5%;
  width: 31%;
  height: 10.5%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 42% 22%, rgba(244, 163, 91, 0.42), transparent 38%),
    linear-gradient(180deg, #cf8148, #84411f);
  box-shadow: inset 0 -9px 0 rgba(47, 17, 7, 0.19);
  overflow: hidden;
}

.belt::after {
  content: none;
}

.arm {
  top: 39.5%;
  width: 5.4%;
  height: 44%;
  transform-origin: 50% 6%;
  z-index: 1;
}

.arm.left {
  left: 26%;
  transform: rotate(24deg);
}

.arm.right {
  left: 75%;
  transform: rotate(-18deg);
}

.arm::before,
.forearm {
  left: 24%;
  width: 52%;
  border-radius: 999px;
  background: linear-gradient(180deg, #e0a064, #a96132);
  box-shadow: inset 0 -5px 0 rgba(58, 22, 9, 0.18);
}

.arm::before {
  height: 54%;
}

.forearm {
  top: 47%;
  height: 48%;
}

.hand {
  left: 13%;
  width: 72%;
  height: 9%;
  background: #dfa163;
}

.leg {
  top: 60.5%;
  width: 3.8%;
  height: 42%;
  transform-origin: 50% 4%;
  border-radius: 999px;
  background: linear-gradient(180deg, #d58a50, #9c552d);
  box-shadow: inset 0 -8px 0 rgba(53, 20, 8, 0.17);
}

.leg.left {
  left: 42%;
  transform: rotate(31deg);
}

.leg.right {
  left: 60%;
  transform: rotate(-25deg);
}

.boot {
  left: -15%;
  bottom: -3%;
  width: 130%;
  height: 10%;
  background: #d49a65;
  clip-path: polygon(8% 0, 100% 0, 86% 100%, 0 100%);
}

.stage-actions {
  position: absolute;
  right: 17px;
  bottom: 3px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(23vw, 356px);
  min-width: 295px;
  min-height: 294px;
  max-width: none;
  margin: 0;
  padding: 0 14px 12px;
  border: 1px solid rgba(126, 162, 210, 0.34);
  background:
    linear-gradient(180deg, rgba(42, 58, 88, 0.99), rgba(32, 47, 78, 0.99) 62%, rgba(20, 31, 58, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(215, 234, 255, 0.13),
    inset 0 -1px 0 rgba(0, 5, 22, 0.48),
    0 18px 32px rgba(0, 0, 0, 0.38);
  transform: translate(var(--mode-panel-x, 0px), var(--mode-panel-y, 0px)) scale(var(--mode-panel-scale, 1));
  transform-origin: bottom right;
}

.stage-actions::before {
  content: none;
}

.stage-mode-heading {
  display: grid;
  place-items: center;
  min-height: 68px;
  margin: 0 -14px 0;
  padding: 9px 14px 10px;
  color: #eef5ff;
  background:
    linear-gradient(180deg, rgba(41, 58, 91, 0.99), rgba(30, 46, 77, 0.99));
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.stage-mode-heading span {
  color: rgba(230, 239, 251, 0.82);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.stage-mode-heading strong {
  display: block;
  margin-top: 2px;
  color: #f8fbff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.72rem, 2.04vw, 2.08rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.stage-actions .secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 10px;
  color: #f4f7ff;
  background: linear-gradient(180deg, rgba(76, 111, 154, 0.99), rgba(54, 85, 128, 0.99));
  border: 2px solid rgba(142, 190, 243, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(236, 247, 255, 0.22),
    inset 0 -2px 0 rgba(13, 29, 62, 0.28);
  text-align: center;
  text-transform: none;
}

.stage-actions #locker-quick {
  order: 2;
  height: 40px;
  min-height: 40px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #071529;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 150px), rgba(102, 130, 172, 0.99) calc(100% - 150px) 100%);
  box-shadow: none;
  text-transform: none;
}

.stage-actions #locker-quick::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 150px;
  border: 2px solid rgba(126, 168, 221, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(237, 246, 255, 0.24),
    inset 0 -2px 0 rgba(13, 29, 62, 0.22);
  pointer-events: none;
}

.stage-actions #locker-quick::before {
  content: "Squad Fill";
  color: rgba(232, 241, 255, 0.9);
  padding-left: 1px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.stage-actions .controller-key {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #f6ea39;
  background: #1d2b77;
  box-shadow: inset 0 0 0 2px rgba(123, 146, 230, 0.9), 0 2px 0 rgba(0, 0, 0, 0.42);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.stage-actions #locker-quick .controller-key {
  margin-left: auto;
  margin-right: 8px;
  position: relative;
  z-index: 1;
}

.stage-actions #locker-quick > span:last-child {
  position: relative;
  z-index: 1;
  min-width: 56px;
  color: #061326;
  font-size: 1rem;
  font-weight: 900;
  text-align: left;
  text-shadow: none;
}

.ready-button {
  order: 3;
  margin-top: 18px;
  min-height: 82px;
  color: #111a34;
  background:
    linear-gradient(180deg, rgba(255, 255, 246, 0.24) 0 10%, transparent 28%),
    linear-gradient(180deg, #f6ef53 0%, #eee22c 48%, #ddc633 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 235, 0.66),
    inset 0 -5px 0 rgba(80, 76, 56, 0.22),
    0 10px 0 rgba(78, 82, 76, 0.72),
    0 20px 26px rgba(0, 0, 0, 0.36);
  transform: skewX(-4deg);
}

.ready-button span {
  display: inline-block;
  font-size: clamp(1.92rem, 2.7vw, 2.72rem);
  line-height: 0.9;
  letter-spacing: 0;
  transform: scaleX(0.84);
  transform-origin: center;
}

.ready-button span::before {
  content: "Y";
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  border-radius: 50%;
  color: #ffe947;
  background: #1d2b77;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  vertical-align: 0.33em;
  box-shadow: inset 0 0 0 2px rgba(123, 146, 230, 0.9), 0 2px 0 rgba(0, 0, 0, 0.42);
}

.ready-button small {
  display: none;
}

.queue-meter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  max-width: none;
  min-height: var(--lobby-footer-row-height);
  margin: 0;
  padding: 22px clamp(20px, 5.8vw, 96px) 0;
  color: #dce5f4;
  background: #0f1225;
  border-top: 1px solid rgba(122, 153, 198, 0.16);
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.28);
}

.queue-meter > span {
  height: auto;
  background: transparent;
}

.queue-meter > span::before {
  content: "Global";
  color: #f4f8ff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1rem;
  text-transform: none;
}

.queue-meter > span::after {
  content: "Hold to chat";
  position: static;
  display: inline-block;
  width: auto;
  min-height: 22px;
  margin-left: 14px;
  padding-left: 30px;
  color: rgba(212, 220, 234, 0.56);
  background:
    linear-gradient(#eaf2ff, #eaf2ff) 8px 8px / 8px 6px no-repeat,
    linear-gradient(135deg, transparent 0 55%, #eaf2ff 56% 100%) 13px 12px / 5px 5px no-repeat,
    radial-gradient(circle at 12px 50%, #202f7b 0 9px, transparent 9.5px),
    radial-gradient(circle at 12px 50%, rgba(118, 151, 222, 0.84) 0 11px, transparent 11.5px);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  line-height: 22px;
  text-transform: none;
}

.queue-meter strong {
  color: rgba(219, 227, 241, 0.72);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  text-transform: none;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 24px;
}

.queue-meter .footer-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: static;
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  overflow: visible;
  white-space: nowrap;
}

button.footer-prompt {
  cursor: pointer;
}

button.footer-prompt:focus-visible {
  outline: 2px solid #fff32c;
  outline-offset: 3px;
}

.queue-meter .footer-prompt::after {
  content: none;
}

.footer-prompt::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #f2f6ff;
  background: #202f7b;
  box-shadow:
    inset 0 0 0 2px rgba(118, 151, 222, 0.78),
    0 2px 0 rgba(0, 0, 0, 0.36);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
}

.footer-prompt.inspect::before {
  content: "L";
}

.footer-prompt.dance::before {
  content: "X";
}

.footer-prompt.news::before {
  content: "RT";
  font-size: 0.5rem;
}

.panel-tuner {
  position: fixed;
  right: 18px;
  top: calc(var(--lobby-top-row-height) + 12px);
  z-index: 50;
  display: none;
  color: #edf4ff;
  font-family: "Trebuchet MS", sans-serif;
}

body.has-panel-tuner .panel-tuner {
  display: block;
}

body.has-direct-tuner .panel-tuner {
  display: none;
}

.panel-tuner-toggle,
.panel-tuner-actions button {
  min-height: 34px;
  border: 2px solid rgba(156, 195, 246, 0.72);
  color: #f7fbff;
  background: rgba(19, 43, 82, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 16px rgba(0, 0, 0, 0.32);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.panel-tuner-toggle {
  display: none;
  width: 128px;
}

body.has-panel-tuner .panel-tuner-toggle {
  display: inline-block;
}

.panel-tuner-card {
  display: none;
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - var(--lobby-top-row-height) - 84px);
  margin-top: 8px;
  padding: 12px;
  border: 2px solid rgba(153, 190, 240, 0.58);
  background: rgba(4, 9, 25, 0.94);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.48);
  overflow-y: auto;
}

.panel-tuner.is-open .panel-tuner-card {
  display: block;
}

.panel-tuner-head,
.panel-tuner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-tuner-head strong,
.panel-tuner h3 {
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.panel-tuner-head span {
  color: rgba(220, 231, 247, 0.72);
  font-size: 0.72rem;
}

.panel-tuner-grid {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.panel-tuner h3 {
  margin: 0 0 6px;
  color: #fff21c;
  font-size: 0.8rem;
}

.panel-tuner label {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-size: 0.78rem;
}

.panel-tuner input[type="range"] {
  width: 100%;
  accent-color: #fff21c;
}

.panel-tuner output {
  color: #f9fbff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.panel-tuner-actions button {
  width: 50%;
}

#panel-tuner-readout {
  min-height: 34px;
  margin: 10px 0 0;
  color: rgba(221, 232, 247, 0.76);
  font-size: 0.72rem;
  line-height: 1.35;
}

body.is-panel-calibrating .season-panel,
body.is-panel-calibrating .stage-actions,
body.is-panel-calibrating #character,
body.is-panel-calibrating #companion-character {
  outline: 2px dashed rgba(255, 242, 28, 0.92);
  outline-offset: 4px;
}

body.has-direct-tuner [data-tune-target] {
  cursor: grab;
}

body.has-direct-tuner .companion-character,
body.has-direct-tuner .peely-character {
  pointer-events: auto;
}

body.has-direct-tuner [data-tune-target]:hover,
body.has-direct-tuner .is-tune-selected {
  outline: 2px dashed rgba(255, 242, 28, 0.94);
  outline-offset: 5px;
}

body.has-direct-tuner .is-tune-selected[data-tune-layer]::before {
  content: attr(data-tune-layer);
  position: absolute;
  right: -8px;
  top: -28px;
  z-index: 120;
  min-width: 38px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 242, 28, 0.9);
  color: #06113a;
  background: #fff21c;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  font: 800 0.68rem/1 "Trebuchet MS", sans-serif;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

body.is-direct-tune-dragging [data-tune-target] {
  cursor: grabbing;
}

.selection-tuner {
  position: fixed;
  left: 18px;
  top: calc(var(--lobby-top-row-height) + 18px);
  z-index: 90;
  width: min(430px, calc(100vw - 28px));
  padding: 12px;
  border: 2px solid rgba(153, 190, 240, 0.72);
  color: #edf4ff;
  background: rgba(4, 9, 25, 0.96);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.48);
  font-family: "Trebuchet MS", sans-serif;
}

.selection-tuner[hidden],
body:not(.has-direct-tuner) .selection-tuner {
  display: none;
}

.selection-tuner-head,
.selection-tuner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.selection-tuner-head {
  cursor: move;
  user-select: none;
}

body.is-selection-tuner-dragging,
body.is-selection-tuner-dragging * {
  cursor: move !important;
  user-select: none;
}

.selection-tuner-head strong {
  font-family: "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.selection-tuner-head span {
  color: rgba(220, 231, 247, 0.76);
  font-size: 0.72rem;
}

.selection-tuner-controls {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.selection-tuner label {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-size: 0.78rem;
}

.selection-tuner input[type="range"] {
  width: 100%;
  accent-color: #fff21c;
}

.selection-tuner output {
  color: #f9fbff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.selection-tuner-actions button {
  width: 50%;
  min-height: 34px;
  border: 2px solid rgba(156, 195, 246, 0.72);
  color: #f7fbff;
  background: rgba(19, 43, 82, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 16px rgba(0, 0, 0, 0.32);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.76rem;
  text-transform: uppercase;
}

#selection-tuner-summary {
  max-height: 105px;
  margin: 10px 0 0;
  color: rgba(221, 232, 247, 0.78);
  font: 0.72rem/1.38 "Trebuchet MS", sans-serif;
  white-space: pre-wrap;
  overflow: auto;
}

.stage::before {
  content: "";
  position: absolute;
  left: -9%;
  right: -9%;
  bottom: -1.5%;
  z-index: 0;
  height: 52%;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 61%, rgba(238, 248, 255, 0.1) 0 1px, transparent 1.8px),
    radial-gradient(circle at 22% 66%, rgba(238, 248, 255, 0.08) 0 1.2px, transparent 2px),
    radial-gradient(circle at 38% 57%, rgba(238, 248, 255, 0.07) 0 1px, transparent 1.8px),
    radial-gradient(circle at 59% 64%, rgba(238, 248, 255, 0.09) 0 1.1px, transparent 2px),
    radial-gradient(circle at 76% 58%, rgba(238, 248, 255, 0.07) 0 1px, transparent 1.8px),
    linear-gradient(104deg, transparent 0 30%, rgba(231, 245, 255, 0.085) 30.2% 30.7%, transparent 31.4% 72%, rgba(6, 18, 34, 0.18) 72.2% 72.8%, transparent 73.6%),
    linear-gradient(74deg, transparent 0 24%, rgba(5, 16, 32, 0.16) 24.2% 24.8%, transparent 25.5% 61%, rgba(231, 245, 255, 0.07) 61.2% 61.8%, transparent 62.5%),
    repeating-linear-gradient(172deg, transparent 0 34px, rgba(245, 251, 255, 0.032) 35px 36px, transparent 37px 126px),
    repeating-linear-gradient(16deg, transparent 0 42px, rgba(2, 9, 22, 0.075) 43px 44px, transparent 45px 138px),
    radial-gradient(ellipse at 71% 75%, rgba(106, 95, 20, 0.18) 0 7.5rem, rgba(70, 52, 18, 0.11) 15rem, transparent 25rem),
    linear-gradient(180deg, transparent 0 5.5%, rgba(230, 247, 255, 0.28) 6.2%, rgba(20, 49, 83, 0.18) 7.6%, transparent 10.5%),
    repeating-linear-gradient(90deg, transparent 0 112px, rgba(235, 248, 255, 0.088) 113px 115px, transparent 116px 228px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(236, 247, 255, 0.068) 59px 61px, transparent 62px 118px),
    linear-gradient(108deg, transparent 0 21%, rgba(248, 252, 255, 0.07) 21.4% 22%, transparent 22.8% 61%, rgba(5, 13, 28, 0.14) 61.4% 62.2%, transparent 63%),
    linear-gradient(72deg, transparent 0 36%, rgba(5, 13, 28, 0.16) 36.5% 37.2%, transparent 38% 75%, rgba(244, 251, 255, 0.048) 75.4% 76%, transparent 76.8%),
    radial-gradient(ellipse at 18% 75%, rgba(228, 244, 255, 0.06) 0 2.6rem, transparent 6.6rem),
    radial-gradient(ellipse at 72% 73%, rgba(9, 22, 43, 0.2) 0 3.2rem, transparent 8rem),
    repeating-linear-gradient(163deg, transparent 0 92px, rgba(243, 250, 255, 0.03) 93px 95px, transparent 96px 256px),
    repeating-linear-gradient(29deg, transparent 0 72px, rgba(0, 7, 20, 0.06) 73px 74px, transparent 75px 198px),
    linear-gradient(180deg, rgba(4, 11, 27, 0) 0 3.2%, rgba(183, 219, 242, 0.22) 4.4%, rgba(36, 66, 101, 0.2) 6.2%, rgba(47, 80, 118, 0.52) 25%, rgba(66, 102, 138, 0.86) 61%, rgba(28, 50, 80, 0.98) 100%),
    linear-gradient(180deg, transparent 0 6.2%, rgba(224, 243, 255, 0.24) 6.7%, rgba(45, 88, 132, 0.07) 8.2%, transparent 10.3%),
    radial-gradient(ellipse at 50% 29%, rgba(77, 234, 255, 0.36) 0 6rem, rgba(60, 187, 225, 0.13) 10.5rem, transparent 23rem),
    radial-gradient(ellipse at 28% 35%, rgba(203, 231, 246, 0.25) 0 3.9rem, rgba(96, 146, 184, 0.11) 6.4rem, transparent 12.4rem),
    radial-gradient(ellipse at 73% 35%, rgba(203, 231, 246, 0.21) 0 3.8rem, rgba(96, 146, 184, 0.095) 6.1rem, transparent 12rem),
    repeating-linear-gradient(90deg, transparent 0 124px, rgba(229, 242, 255, 0.06) 125px 127px, transparent 128px 248px),
    repeating-linear-gradient(0deg, transparent 0 50px, rgba(229, 242, 255, 0.054) 51px 53px, transparent 54px 100px),
    linear-gradient(116deg, transparent 0 25%, rgba(255, 255, 255, 0.056) 25.4% 26%, transparent 26.8% 64%, rgba(255, 255, 255, 0.036) 64.4% 65%, transparent 65.8%),
    linear-gradient(63deg, transparent 0 38%, rgba(2, 8, 20, 0.15) 38.5% 39.3%, transparent 40% 76%, rgba(255, 255, 255, 0.028) 76.4% 77%, transparent 77.8%);
  box-shadow:
    inset 0 1px 0 rgba(225, 241, 255, 0.15),
    inset 0 18px 20px rgba(9, 23, 46, 0.2),
    inset 0 -28px 40px rgba(2, 9, 23, 0.34),
    0 -14px 38px rgba(0, 0, 0, 0.13);
  opacity: 0.96;
  transform: perspective(790px) rotateX(52deg) scaleX(1.09);
  transform-origin: 50% 100%;
}

.stage::after {
  content: "Fortnite\A NAW";
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 4;
  white-space: pre;
  color: rgba(224, 232, 245, 0.76);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.8rem;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(148px, 158px) minmax(420px, 1fr) minmax(210px, 270px);
    padding-inline: 24px;
  }

  .lobby-grid {
    grid-template-columns: minmax(310px, 360px) minmax(540px, 1fr);
    padding-inline: 24px;
  }

  .stage-actions {
    right: 0;
    min-width: 270px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    grid-template-columns: minmax(148px, auto) 1fr;
    grid-template-rows: 50px 28px;
    gap: 0 7px;
    min-height: var(--lobby-top-row-height);
    padding: 8px 12px 0;
  }

  .topbar::after {
    height: 28px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-left: 0;
    padding-top: 0;
  }

  .account-pill {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-right: 0;
    padding-top: 0;
  }

  .vbucks-balance {
    min-width: 75px;
  }

  .main-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .brand-title {
    font-size: 2.35rem;
  }

  .lobby-grid {
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px 14px var(--lobby-footer-row-height);
  }

  .season-panel {
    width: 100%;
  }

  .stage {
    order: -1;
    min-height: 650px;
  }

  .character-model-canvas {
    transform: translateX(-50%) scale(calc(var(--character-model-scale, 1) * 0.76));
    transform-origin: 50% 92%;
  }

  .character-stage {
    grid-template-columns: 44px minmax(210px, 1fr) 44px;
  }

  .companion-character {
    left: calc(71% + var(--slot-mid-x, 0px));
    top: calc(clamp(158px, 16.2vh, 190px) + 26px);
    bottom: auto;
    width: clamp(124px, 20vw, 165px);
    height: clamp(265px, 39vh, 338px);
    transform: translate(-50%, -39%) translate(var(--companion-character-x, 0px), calc(var(--slot-mid-y, 0px) + var(--companion-character-y, 0px))) rotate(var(--companion-character-rotate, 0deg)) scale(calc(var(--companion-character-scale, 1) * var(--companion-responsive-scale, 1)));
  }

  .peely-character {
    left: calc(100% - 93px + var(--slot-right-x, 0px));
    width: clamp(112px, 14vw, 152px);
    height: clamp(292px, 38vh, 360px);
    transform: translateX(-50%) translate(var(--peely-character-x, 0px), calc(var(--slot-right-y, 0px) + var(--peely-character-y, 0px))) rotate(var(--peely-character-rotate, 0deg)) scale(var(--peely-character-scale, 1));
  }

  .friend-pedestal.mid-right {
    position: absolute;
    left: calc(71% + var(--slot-mid-x, 0px));
    top: clamp(158px, 16.2vh, 190px);
    display: grid;
    margin: 0;
    transform: translateX(-50%) translate(0, var(--slot-mid-y, 0px)) scale(var(--slot-mid-scale, 1));
  }

  .stage-actions {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    transform: translateY(var(--mode-panel-y, 0px)) scale(var(--mode-panel-scale, 1));
    transform-origin: top center;
  }

  .queue-meter {
    padding-inline: 16px;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 1.85rem;
    transform: none;
  }

  .stage::after {
    display: none;
  }

  .party-character-nameplate {
    top: -34px;
    min-width: 118px;
    gap: 1px;
  }

  .party-character-nameplate::after {
    width: 52px;
  }

  .party-character-nameplate strong {
    max-width: 118px;
    font-size: 0.72rem;
  }

  .party-character-nameplate span {
    font-size: 0.62rem;
  }

  .companion-nameplate {
    transform: translateX(-18%);
  }

  .peely-nameplate {
    top: -62px;
    transform: translateX(-74%);
  }

  .season-main {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 20px 12px 16px;
  }

  .season-shield {
    width: 70px;
    height: 84px;
  }

  .season-level-title {
    font-size: 1.22rem;
  }

  .season-level-title strong {
    font-size: 2.65rem;
  }

  .pass-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .pass-row small,
  .daily-row span {
    white-space: normal;
  }

  .stage {
    min-height: 580px;
  }

  .character {
    width: 132px;
    height: 348px;
  }

  .nameplate {
    top: -84px;
  }

  .companion-character {
    --companion-responsive-scale: 0.95;
    left: calc(75% + var(--slot-mid-x, 0px));
    top: 201px;
    bottom: auto;
    width: 111px;
    height: 243px;
    transform: translate(-50%, -39%) translate(var(--companion-character-x, 0px), calc(var(--slot-mid-y, 0px) + var(--companion-character-y, 0px))) rotate(var(--companion-character-rotate, 0deg)) scale(calc(var(--companion-character-scale, 1) * var(--companion-responsive-scale, 1)));
  }

  .friend-pedestal.mid-right {
    left: calc(75% + var(--slot-mid-x, 0px));
    top: 175px;
  }

  .peely-character {
    left: calc(100% - 93px + var(--slot-right-x, 0px));
    bottom: 118px;
    width: 98px;
    height: 244px;
    transform: translateX(-50%) translate(calc(var(--peely-character-x, 0px) - 22px), calc(var(--slot-right-y, 0px) + var(--peely-character-y, 0px))) rotate(var(--peely-character-rotate, 0deg)) scale(calc(var(--peely-character-scale, 1) * 0.95));
  }

  body.has-slot-anchors .peely-character {
    left: calc(100% - 93px + var(--slot-right-x, 0px));
    top: auto;
    bottom: 118px;
    transform: translateX(-50%) translate(calc(var(--peely-character-x, 0px) - 22px), calc(var(--slot-right-y, 0px) + var(--peely-character-y, 0px))) rotate(var(--peely-character-rotate, 0deg)) scale(calc(var(--peely-character-scale, 1) * 0.95));
  }

  .peely-model-canvas {
    width: 168%;
  }

  .platform-rings {
    min-width: 226px;
  }

  .queue-meter {
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: start;
  }
}

body.is-lobby-only .main-tabs {
  gap: 5px;
}

body.is-lobby-only .tab {
  padding-inline: clamp(9px, 0.86vw, 17px);
  font-size: clamp(0.68rem, 0.78vw, 0.88rem);
}

body.is-lobby-only .main-menu.is-open,
body.is-lobby-only .social-sidebar.is-open,
body.is-lobby-only .discover-overlay.is-open,
body.is-lobby-only .party-finder-overlay.is-open,
body.is-lobby-only .emote-overlay.is-open,
body.is-lobby-only .launch-overlay.is-open,
body.is-lobby-only .match-results-overlay.is-open,
body.is-lobby-only .replay-overlay.is-open {
  display: none;
}

body.is-lobby-only .stage-actions button,
body.is-lobby-only .friend-pedestal,
body.is-lobby-only .mode-card,
body.is-lobby-only .mini-control,
body.is-lobby-only .small-action,
body.is-lobby-only .text-control {
  cursor: default;
}

body.is-lobby-only .stage-actions button:hover,
body.is-lobby-only .stage-actions button:focus-visible,
body.is-lobby-only .friend-pedestal:hover,
body.is-lobby-only .friend-pedestal:focus-visible {
  transform: none;
}

body.is-lobby-only .ready-button:hover,
body.is-lobby-only .ready-button:focus-visible {
  transform: skewX(-4deg);
}

.marcus-gallery {
  --locker-media-height: 348px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 14px;
  scroll-padding-inline: 2px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(255, 242, 13, 0.82) rgba(11, 24, 56, 0.82);
  scrollbar-width: thin;
}

.marcus-gallery::-webkit-scrollbar {
  height: 12px;
}

.marcus-gallery::-webkit-scrollbar-track {
  background: rgba(11, 24, 56, 0.82);
  border: 1px solid rgba(142, 190, 243, 0.28);
}

.marcus-gallery::-webkit-scrollbar-thumb {
  background: #fff20d;
  border: 2px solid rgba(11, 24, 56, 0.82);
}

.marcus-gallery-tile {
  display: block;
  flex: 0 0 calc((var(--locker-media-height) * var(--media-ratio, 1.7778)) + 18px);
  width: calc((var(--locker-media-height) * var(--media-ratio, 1.7778)) + 18px);
  height: calc(var(--locker-media-height) + 18px);
  min-width: 0;
  scroll-snap-align: start;
  padding: 8px;
  border: 1px solid rgba(142, 190, 243, 0.34);
  background: rgba(6, 20, 55, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 18px rgba(0, 0, 0, 0.24);
}

.marcus-gallery-frame {
  display: grid;
  place-items: center;
  height: var(--locker-media-height);
  min-height: var(--locker-media-height);
  overflow: hidden;
  border: 2px solid rgba(126, 168, 221, 0.48);
  background:
    linear-gradient(135deg, rgba(40, 68, 113, 0.78), rgba(9, 18, 49, 0.94)),
    radial-gradient(circle at 50% 42%, rgba(58, 217, 255, 0.2), transparent 42%);
}

.marcus-gallery-frame img,
.marcus-gallery-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marcus-gallery-frame video {
  display: block;
  background: #030611;
}

.marcus-gallery-frame span {
  display: block;
  color: #eef5ff;
  font-family: "Arial Black", Impact, sans-serif;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.marcus-gallery-frame span {
  padding: 8px;
  font-size: 1rem;
}

@media (max-width: 820px) {
  .marcus-gallery {
    --locker-media-height: 296px;
  }

  .marcus-gallery-tile {
    height: calc(var(--locker-media-height) + 18px);
  }
}

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

  #sky-canvas,
  .app-shell,
  .topbar,
  .lobby-grid,
  .stage {
    max-width: 100vw;
    overflow-x: hidden;
  }

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

  .main-tabs {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start !important;
    overflow-x: auto;
    overflow-y: hidden;
    contain: paint;
  }

  .main-tabs::before,
  .main-tabs::after,
  .main-tabs .tab {
    flex: 0 0 auto;
  }

  .lobby-grid {
    padding-inline: 10px;
  }

  .stage {
    min-height: 690px;
  }

  .character-stage {
    grid-template-columns: 1fr;
    min-height: 438px;
    justify-items: center;
    overflow: hidden;
  }

  .avatar-platform {
    grid-column: 1;
    width: min(100%, 360px);
    max-width: 100%;
    justify-self: center;
  }

  .platform-rings {
    width: min(84vw, 318px);
    min-width: min(84vw, 226px);
  }

  .character-stage .friend-pedestal.side,
  body.has-party-companion .character-stage #companion-character,
  body.has-slot-anchors .character-stage #companion-character,
  #companion-character,
  #peely-character {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .stage-actions {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .queue-meter {
    display: none;
  }

  body.is-lobby-only .view-drawer:not(.is-open) {
    display: none;
  }

  .season-panel {
    width: 100%;
    max-width: 100%;
    transform: none;
  }
}
