:root {
  color-scheme: dark;
  --ink: #f2f4f7;
  --muted: #a7b0bd;
  --line: #343a44;
  --surface: #242831;
  --surface-raised: #2a2f38;
  --soft: #171a21;
  --navy: #111318;
  --green: #107c10;
  --hot: #5865f2;
  --coral: #f23f42;
  --gold: #c9972f;
  --blue: #66c0f4;
  --violet: #6f6af8;
  --shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #171a21;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell.signed-out {
  display: block;
}

.app-shell.signed-out .rail {
  display: none;
}

.app-shell.signed-out main {
  min-height: 100vh;
  padding: 0;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  background: #171a21;
  color: #f8fbff;
  border-right: 1px solid var(--line);
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.brand-home {
  border-radius: 8px;
  padding: 4px;
  margin: -4px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.brand-home:hover,
.brand-home.active {
  background: rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: #171a21;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand span,
.rail-panel span,
.muted {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.nav-list {
  display: grid;
  gap: 4px;
  overflow: visible;
}

.nav-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-item:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.95);
  outline-offset: 3px;
}

.nav-item.active .icon {
  background: rgba(88, 101, 242, 0.22);
  color: #c7cdff;
}

.rail-section {
  display: grid;
  gap: 4px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-section-head strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.rail-friend,
.rail-request {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 3px 5px 3px 18px;
  text-align: left;
}

.rail-friend::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.rail-friend.online::before {
  background: var(--green);
}

.rail-friend.away::before {
  background: var(--gold);
}

.rail-friend:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rail-friend b,
.rail-request b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.rail-friend span,
.rail-queue p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.28;
}

.rail-request {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-left: 0;
}

.rail-link {
  width: max-content;
  min-height: 26px;
  border: 1px solid rgba(102, 192, 244, 0.28);
  border-radius: 7px;
  background: rgba(102, 192, 244, 0.06);
  color: #b9e2ff;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(102, 192, 244, 0.46);
  text-underline-offset: 3px;
}

.rail-link:hover {
  border-color: rgba(102, 192, 244, 0.48);
  background: rgba(102, 192, 244, 0.12);
  color: #ffffff;
}

.icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rail-panel {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.label,
.eyebrow {
  margin: 0 0 6px;
  color: #8ea1ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

main {
  min-width: 0;
  padding: 18px;
}

main:focus {
  outline: none;
}

main[data-view="profile"] {
  padding: 16px max(28px, 12.5%) 28px;
}

.topbar {
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.primary-action,
.ghost,
.button-link {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 9px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-action,
.button-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.primary-action {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.24);
  color: #d9dcff;
  box-shadow: none;
}

.ghost,
.button-link.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.ghost.danger {
  color: var(--coral);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 0;
  padding: clamp(28px, 6vw, 76px) 0;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(23, 26, 33, 0.28), rgba(23, 26, 33, 0.5) 62%, rgba(23, 26, 33, 0.82)),
    url("./assets/partyup-mascot-hero.png");
  background-position: center, center center;
  background-repeat: no-repeat;
  background-size: auto, cover;
  box-shadow: none;
}

.home-hero::after {
  content: none;
}

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

.home-hero-copy {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  max-width: 820px;
  position: relative;
  top: auto;
  padding: 22px 28px 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: center;
}

.home-hero-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 5.2vw, 5.6rem);
  line-height: 0.96;
}

.home-hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.58;
  max-width: 680px;
}

.home-hero-feed {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 19, 24, 0.44);
  backdrop-filter: blur(10px);
}

.hero-proof-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 760px;
}

.hero-proof-strip span {
  display: inline-flex;
  gap: 5px;
}

.hero-proof-strip strong {
  color: var(--ink);
}

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

.home-guest .landing-actions {
  gap: 14px;
  margin-top: 4px;
}

.home-guest .landing-actions .primary-action,
.home-guest .landing-actions .ghost {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 1rem;
}

.home-dashboard {
  display: grid;
  gap: 0;
}

.social-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 330px);
  justify-content: center;
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.home-panel,
.feed-card,
.profile-feed-header {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-left-rail,
.home-right-rail,
.newsfeed {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.newsfeed {
  border-top: 1px solid var(--line);
  row-gap: 10px;
}

.home-left-rail,
.home-right-rail {
  position: sticky;
  top: 18px;
}

.compact-panel {
  gap: 10px;
}

.profile-feed-header {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 10px;
  padding: 18px 16px 20px;
  border-bottom-color: rgba(102, 192, 244, 0.34);
  background: linear-gradient(90deg, rgba(102, 192, 244, 0.1), rgba(88, 101, 242, 0.05) 42%, transparent);
  isolation: isolate;
}

.profile-feed-header::before {
  content: none;
}

.profile-feed-header .feed-avatar {
  width: 64px;
  height: 64px;
}

.feed-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #171a21;
  color: #ffffff;
  font-weight: 950;
}

.feed-avatar img,
.profile-avatar img,
.match-avatar img,
.candidate-avatar img,
.mini-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feed-avatar.small {
  width: 38px;
  height: 38px;
}

.profile-feed-header p {
  color: var(--muted);
  line-height: 1.45;
}

.profile-status-strip,
.feed-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-actions .primary-action,
.feed-actions .ghost,
.quick-actions .ghost,
.quick-actions .primary-action {
  min-height: 28px;
  padding: 0 4px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: #b9e2ff;
  text-decoration: underline;
  text-decoration-color: rgba(102, 192, 244, 0.48);
  text-underline-offset: 4px;
}

.home-panel > .primary-action,
.home-panel > .ghost,
.feed-card > .primary-action,
.feed-card > .ghost,
.feed-card > .button-link {
  width: max-content;
  min-width: 0;
  justify-self: start;
}

.feed-actions .primary-action,
.quick-actions .primary-action {
  color: #d9dcff;
  text-decoration-color: rgba(137, 145, 255, 0.58);
}

.feed-actions .primary-action:hover,
.feed-actions .ghost:hover,
.quick-actions .primary-action:hover,
.quick-actions .ghost:hover,
.feed-card > .primary-action:hover,
.feed-card > .ghost:hover,
.feed-card > .button-link:hover {
  color: #ffffff;
  background: transparent;
  border-color: transparent;
}

.profile-status-strip span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: none;
}

.quick-composer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quick-composer .quick-actions {
  grid-column: 2;
}

.composer-input {
  min-height: 38px;
  border: 1px solid rgba(102, 192, 244, 0.2);
  border-radius: 999px;
  background: rgba(102, 192, 244, 0.05);
  color: #cbdff0;
  padding: 0 14px;
  text-align: left;
  font-weight: 650;
}

.composer-input:hover {
  border-color: rgba(102, 192, 244, 0.42);
  color: #ffffff;
}

.home-panel span,
.feed-card span,
.profile-feed-header .eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-panel p,
.feed-card p {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-head,
.request-row,
.lobby-mini {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.dashboard-head > *,
.request-row > *,
.lobby-mini > *,
.feed-card-head > *,
.profile-feed-header > * {
  min-width: 0;
}

.dashboard-head strong,
.request-row b,
.lobby-mini b,
.lobby-mini span,
.feed-card p,
.home-panel p,
.friend-list-row span,
.chat-preview p {
  overflow-wrap: anywhere;
}

.feed-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.feed-card-head > div,
.lobby-mini > div {
  display: grid;
  gap: 3px;
}

.feed-card-head span,
.lobby-mini span {
  display: block;
}

.activity-row,
.chat-preview,
.friend-list-row {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
}

.request-row,
.lobby-mini {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
}

.rich-lobby {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}

.rich-lobby button {
  grid-column: auto;
  justify-self: end;
  min-height: 28px;
  padding: 0 7px;
}

.mini-game-art,
.game-news-media {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.12), rgba(17, 19, 24, 0.56)),
    var(--steam-image, var(--game-art, linear-gradient(135deg, #5865f2, #313338)));
  background-position: 18% center;
  background-size: cover;
  color: transparent;
  font-weight: 950;
  font-size: 0;
}

.mini-game-art {
  width: 76px;
  aspect-ratio: 184 / 69;
  overflow: hidden;
}

.game-news-media {
  min-height: 86px;
  aspect-ratio: auto;
}

.apex-art {
  --game-art: linear-gradient(135deg, #d6461f, #2b2d31);
}

.fortnite-art {
  --game-art: linear-gradient(135deg, #7b61ff, #23a6d5);
}

.helldivers-art {
  --game-art: linear-gradient(135deg, #f2c94c, #171a21);
}

.friend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-pills span {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  text-transform: none;
}

.friend-pills small {
  color: var(--muted);
}

.friend-list-row {
  position: relative;
  padding-left: 28px;
}

.friend-list-row::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.friend-list-row.online::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 124, 16, 0.16);
}

.friend-list-row.away::before {
  background: var(--gold);
}

.friend-list-row small,
.chat-preview small {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.chat-preview.unread {
  border: 0;
  border-bottom: 1px solid rgba(102, 192, 244, 0.26);
  background: transparent;
}

.game-news-card {
  background: transparent;
  grid-template-columns: minmax(112px, 0.28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.newsfeed > .feed-card:not(.game-news-card):not(.notification-card):not(.curated-card):not(.sponsored-card) .feed-card-head span {
  color: #bfc2ff;
}

.game-news-card .game-news-media {
  grid-row: 1 / span 3;
}

.game-news-card .dashboard-head,
.game-news-card p,
.game-news-card .feed-actions {
  min-width: 0;
}

.game-news-card .dashboard-head span {
  color: #9edcff;
}

.curated-card {
  background: transparent;
}

.curated-card .dashboard-head span {
  color: #f0d48a;
}

.sponsored-card {
  opacity: 0.92;
  background: transparent;
}

.sponsored-card .dashboard-head span {
  color: #ccd2dc;
}

.notification-card {
  background: transparent;
}

.notification-card .dashboard-head span {
  color: #ff9a9c;
}

.empty-state-panel {
  border-style: solid;
  background: transparent;
}

.match-signal,
.privacy-strip,
.system-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.match-signal {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.match-signal.primary {
  border-color: rgba(16, 124, 16, 0.34);
  background: transparent;
}

.match-signal span,
.privacy-strip span,
.system-list span,
.split-list span {
  color: var(--muted);
}

.signal-line {
  height: 3px;
  border-radius: 999px;
  background: var(--hot);
}

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

.squad-nodes span {
  display: grid;
  place-items: center;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.privacy-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.system-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  box-shadow: none;
}

.system-list,
.split-list,
.profile-system-grid {
  display: grid;
  gap: 10px;
}

.system-list div,
.split-list div,
.profile-system-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  gap: 10px;
  align-items: start;
}

.setup-steps,
.onboarding-form,
.onboarding-preview {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 20px;
}

.setup-steps {
  padding: 14px 18px;
}

.setup-steps > .eyebrow,
.setup-steps > h2,
.setup-steps > .form-help {
  display: none;
}

.progress-wrap {
  display: grid;
  gap: 7px;
  margin: 0;
}

.onboarding-tip {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(102, 192, 244, 0.24);
  border-radius: 8px;
  background: rgba(102, 192, 244, 0.07);
}

.step-status {
  color: var(--hot);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.step-status {
  display: block;
}

.progress-bar {
  height: 14px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.progress-bar span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--hot);
  transition: width 180ms ease;
}

.step-list {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.setup-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  opacity: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.setup-step span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
}

.setup-step strong {
  color: var(--ink);
}

.setup-step.complete {
  border-color: rgba(16, 124, 16, 0.42);
  background: rgba(16, 124, 16, 0.12);
}

.setup-step.complete span {
  background: var(--green);
  color: #ffffff;
}

.setup-step.complete strong {
  color: var(--ink);
}

.setup-step.current {
  border-color: rgba(102, 192, 244, 0.5);
  background: rgba(102, 192, 244, 0.1);
  box-shadow: inset 3px 0 0 var(--blue);
}

.setup-step.current span {
  background: var(--blue);
  color: #ffffff;
}

.setup-step.current strong {
  color: var(--ink);
}

.setup-step:not(.complete):not(.current) span {
  border: 1px solid var(--line);
  background: var(--soft);
}

.setup-step:not(.complete):not(.current) {
  border-color: var(--line);
}

.setup-step p {
  display: none;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.onboarding-form {
  display: grid;
  gap: 18px;
}

.setup-page {
  display: none;
  min-height: 400px;
  align-content: start;
  gap: 18px;
}

.setup-page.active {
  display: grid;
}

.onboarding-preview {
  display: none;
}

.form-help {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.form-section {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.onboarding-tip {
  margin: 14px 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

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

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

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

.choice {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 800;
}

.choice.active {
  border-color: rgba(88, 101, 242, 0.58);
  background: rgba(88, 101, 242, 0.14);
  color: #d9dcff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.spaced {
  margin-top: 18px;
}

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

.avatar-choice {
  position: relative;
  display: grid;
  min-height: 180px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: #ffffff;
  text-align: left;
  isolation: isolate;
  background: #171a21;
}

.avatar-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 16, 29, 0), rgba(8, 16, 29, 0.86));
}

.avatar-choice img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-choice strong {
  align-self: end;
  font-size: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.avatar-choice.active {
  border-color: #b9c0ff;
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.22);
}

.compact-switches {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.mini-profile {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-raised);
}

.mini-hero {
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #171a21;
}

.mini-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.mini-body p {
  color: var(--muted);
  line-height: 1.5;
}

.privacy-note.small {
  margin: 0;
  font-size: 0.86rem;
}

label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 14px 15px;
  box-shadow: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 14px) 52%,
    0 0;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--hot);
  outline: 2px solid rgba(88, 101, 242, 0.24);
  outline-offset: 0;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.bio-builder,
.catalog-toolbar,
.catalog-footer {
  display: grid;
  gap: 12px;
}

.builder-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-choice {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 850;
}

.builder-choice.active {
  border-color: rgba(16, 124, 16, 0.48);
  background: rgba(16, 124, 16, 0.14);
  color: #d9f5d9;
}

.catalog-toolbar {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.35fr);
  align-items: end;
}

.catalog-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 12px;
}

.game-preference-list {
  display: grid;
  gap: 12px;
}

.game-preference-card,
.game-preference-empty {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.game-preference-card {
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  align-items: start;
}

.game-preference-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 920 / 430;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(17, 19, 24, 0.52)),
    var(--steam-image, var(--game-art));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.game-preference-art span {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 34px;
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.58);
  color: #ffffff;
  font-weight: 950;
}

.game-preference-content {
  display: grid;
  gap: 14px;
}

.per-game-platforms {
  display: grid;
  gap: 10px;
}

.platform-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: none;
}

.platform-option-grid input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.availability-builder {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.availability-grid,
.availability-mini {
  display: grid;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  gap: 10px;
  max-width: none;
}

.availability-mini {
  padding: 8px;
  background: var(--soft);
}

.availability-builder .availability-grid {
  width: 100%;
}

.availability-mini-row {
  display: grid;
  grid-template-columns: 64px repeat(5, minmax(78px, 1fr));
  gap: 10px;
  align-items: center;
}

.availability-mini-row strong,
.availability-mini-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.availability-mini-row strong {
  text-align: left;
}

.availability-mini-head span {
  text-transform: uppercase;
}

.availability-cell {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

button.availability-cell {
  padding: 0;
}

.availability-cell.selected {
  border-color: var(--hot);
  background: var(--hot);
  box-shadow: none;
}

.profile-availability {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.profile-schedule {
  width: 100%;
  max-width: none;
  border: 0;
  background: transparent;
}

.profile-schedule .availability-mini-row {
  grid-template-columns: 34px repeat(5, 28px);
  gap: 8px;
  justify-content: start;
}

.game-preference-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.game-preference-card h3 {
  margin: 0;
}

.model-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(88, 101, 242, 0.16);
  color: #d9dcff;
  font-size: 0.78rem;
  font-weight: 900;
}

.game-preference-empty span {
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.toggle-row input {
  width: 18px;
  margin: 0;
}

.discover-grid,
.matches-layout,
.profile-editor,
.profile-system,
.safety-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.profile-card,
.context-panel,
.editor-card,
.chat-panel {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.profile-card {
  overflow: hidden;
}

.hero-image {
  min-height: 310px;
  padding: 22px;
  color: #ffffff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 16px;
  background: #171a21;
}

.candidate-avatar {
  align-self: center;
  justify-self: center;
  width: min(180px, 52vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: #171a21;
  box-shadow: none;
}

.platform-row,
.tag-cloud,
.stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.pill.dark {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.tag.active {
  border-color: rgba(88, 101, 242, 0.58);
  background: rgba(88, 101, 242, 0.14);
  color: #d9dcff;
}

.profile-body {
  padding: 22px;
}

.profile-body p {
  color: var(--muted);
  line-height: 1.55;
}

.stat {
  min-width: 116px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.context-panel,
.editor-card,
.chat-panel {
  padding: 20px;
}

.panel-header,
.section-heading,
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading.compact {
  align-items: center;
}

.score-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(88, 101, 242, 0.16);
  color: #d9dcff;
  font-weight: 900;
}

.reasons,
.check-list {
  display: grid;
  gap: 10px;
}

.reason,
.check-list span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.reason strong {
  color: var(--ink);
}

.privacy-note {
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(201, 151, 47, 0.12);
  color: #f0d48a;
  font-weight: 750;
}

.swipe-actions,
.chat-form {
  display: flex;
  gap: 10px;
}

.swipe-actions button {
  flex: 1;
}

.lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.lobby-card,
.match-row,
.report-item,
.handle-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
}

.match-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.match-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #171a21;
}

.lobby-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.lobby-card > .primary-action,
.lobby-card > .button-link {
  width: max-content;
  min-width: 0;
  justify-self: start;
}

.lobby-card > .button-link {
  background: transparent;
}

.lobby-card-art {
  margin: 0;
  display: grid;
  align-items: end;
  aspect-ratio: 616 / 353;
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(17, 19, 24, 0.05), rgba(17, 19, 24, 0.86)),
    var(--steam-image, var(--game-art, linear-gradient(135deg, #5865f2, #313338)));
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-weight: 950;
  border-radius: 6px;
}

.lobby-card-art span {
  display: none;
}

.lobby-meta,
.match-row span,
.report-item span,
.handle-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.capacity {
  height: 8px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}

.capacity span {
  display: block;
  height: 100%;
  width: var(--fill);
  background: var(--green);
}

.match-list,
.chat-log,
.privacy-switches {
  display: grid;
  gap: 10px;
}

.match-row.active {
  border-color: rgba(88, 101, 242, 0.44);
  background: rgba(88, 101, 242, 0.08);
}

.chat-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.chat-log {
  flex: 1;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.message {
  max-width: 82%;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.message.mine {
  margin-left: auto;
  background: rgba(88, 101, 242, 0.18);
}

.chat-form {
  margin-top: 14px;
}

.chat-form input {
  margin-top: 0;
}

.profile-editor label,
.profile-system label {
  display: block;
  margin-top: 14px;
}

.profile-system {
  align-items: start;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.profile-main-card {
  grid-column: 1 / -1;
  padding: 14px 0;
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.55fr) minmax(220px, 0.48fr) minmax(260px, 0.48fr);
  gap: 12px;
  align-items: stretch;
}

.profile-identity-panel,
.profile-availability-panel {
  min-width: 0;
}

.profile-identity-panel {
  display: grid;
  align-content: start;
}

.profile-availability-panel {
  display: grid;
  align-content: start;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
}

.profile-identity-panel .section-heading,
.profile-availability-panel .section-heading {
  margin-bottom: 10px;
}

.profile-preview-row {
  display: grid;
  grid-template-columns: 150px minmax(230px, 0.42fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.profile-left-stack {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 144px;
  height: 144px;
  border: 3px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  overflow: hidden;
  background: #171a21;
  box-shadow: none;
}

.profile-readout {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: minmax(230px, 0.42fr) minmax(320px, 1fr);
  gap: 8px;
}

.profile-readout > div,
.profile-name-line > div {
  display: grid;
  gap: 3px;
  padding: 5px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.profile-readout span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-readout .profile-score-inline {
  justify-self: start;
  margin: 0;
  color: #d9dcff;
  font-size: 1rem;
  font-weight: 850;
  text-transform: none;
}

.profile-readout strong {
  font-size: 1.8rem;
  line-height: 1.05;
}

.profile-readout p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.profile-name-line {
  display: grid !important;
  grid-template-rows: auto minmax(82px, 1fr);
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.profile-bio-area {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-content: start;
  min-height: 230px;
}

.profile-side-stack {
  display: grid;
  gap: 12px;
}

.profile-inline-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.profile-name-area,
.profile-preferences-area,
.profile-platform-area,
.profile-bio-area {
  min-width: 0;
  border-radius: 8px;
}

.profile-platform-area {
  padding: 4px 8px 0;
}

.profile-preferences-area {
  min-height: 76px;
}

.profile-game-summary {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.profile-tag-groups {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.profile-tag-groups > div {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.profile-tag-groups > div > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-platform-tags,
.profile-game-tags,
.profile-preference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.profile-platform-tag,
.profile-game-tag,
.profile-preference-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 850;
}

.profile-platform-tag,
.profile-preference-tag {
  padding-top: 7px;
  padding-bottom: 7px;
}

.profile-platform-tag {
  border: 0;
  background: rgba(102, 192, 244, 0.12);
  color: #ccecff;
}

.profile-game-tag {
  border: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  min-height: 30px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.profile-preference-tag {
  border: 1px solid rgba(201, 151, 47, 0.42);
  background: rgba(201, 151, 47, 0.12);
  color: #f0d48a;
}

.achievement-strip {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  gap: 14px;
  margin-top: 0;
  height: 100%;
}

.achievement-strip div {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px;
  border: 1px dashed rgba(201, 151, 47, 0.45);
  border-radius: 8px;
  background: rgba(201, 151, 47, 0.1);
}

.achievement-strip span {
  color: #f0d48a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-game-card,
.profile-game-empty {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

.profile-game-card {
  grid-template-columns: 86px minmax(140px, 0.85fr) repeat(4, minmax(100px, 1fr));
  align-items: center;
}

.profile-game-summary .profile-game-card:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-game-art {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 920 / 430;
  height: auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(17, 19, 24, 0.48)),
    var(--steam-image, var(--game-art));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.profile-game-art span {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 28px;
  border-radius: 7px;
  background: rgba(17, 19, 24, 0.52);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.profile-game-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.profile-game-card h3 {
  margin: 0;
  font-size: 1rem;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.platform-badge strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(102, 192, 244, 0.16);
  color: #b9e2ff;
  font-size: 0.72rem;
}

.platform-badge span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-game-column {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.profile-game-column small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-game-column strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.25;
}

.profile-intent-symbol {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.2);
  color: #c7cdff;
  font-size: 0.72rem;
  font-weight: 950;
}

.profile-skill-meter {
  display: flex;
  align-items: end;
  gap: 3px;
  min-height: 30px;
}

.profile-skill-meter span {
  display: block;
  width: 7px;
  height: 12px;
  border-radius: 999px;
  background: #242a33;
}

.profile-skill-meter span:nth-child(1) {
  height: 12px;
}

.profile-skill-meter span:nth-child(2) {
  height: 16px;
}

.profile-skill-meter span:nth-child(3) {
  height: 20px;
}

.profile-skill-meter span:nth-child(4) {
  height: 24px;
}

.profile-skill-meter span:nth-child(5) {
  height: 28px;
}

.profile-skill-meter span.active {
  background: var(--hot);
}

.profile-looking-visual {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.profile-looking-visual span {
  display: block;
  width: 18px;
  height: 18px;
  margin-left: -5px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #c9972f;
}

.profile-looking-visual span:first-child {
  margin-left: 0;
  background: #66c0f4;
}

.profile-looking-visual span:last-child {
  background: #5865f2;
}

.profile-game-platforms .platform-badges {
  margin-bottom: 2px;
}

.profile-game-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--soft);
}

.profile-game-meta small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-game-meta strong {
  font-size: 0.72rem;
}

.profile-game-empty span {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.handle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

.privacy-switches {
  margin-top: 18px;
}

.privacy-switches label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
}

.privacy-switches input,
.toggle-row input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--green);
}

.report-item {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

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

  .rail {
    min-height: auto;
    height: auto;
    position: static;
  }

  .nav-list {
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 4px;
    overflow: visible;
    padding-bottom: 4px;
  }

  .nav-item {
    justify-content: center;
    min-height: 52px;
    padding: 6px 4px;
    flex-direction: column;
    gap: 5px;
    font-size: 0.68rem;
  }

  .rail-panel {
    display: none;
  }

  .nav-bottom {
    margin-top: 0;
  }

  .rail-section {
    padding: 8px 0;
  }

  .nav-item:hover {
    transform: none;
  }

  .toolbar,
  .social-home-grid,
  .onboarding-grid,
  .discover-grid,
  .matches-layout,
  .profile-editor,
  .profile-system,
  .profile-dashboard-grid,
  .profile-game-card,
  .safety-grid,
  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .profile-game-card {
    align-items: start;
  }

  .home-left-rail,
  .home-right-rail {
    position: static;
  }

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

@media (max-width: 620px) {
  main,
  .rail {
    padding: 16px;
  }

  .topbar,
  .panel-header,
  .section-heading,
  .chat-head,
  .game-preference-head,
  .swipe-actions,
  .privacy-strip {
    flex-direction: column;
  }

  .topbar .primary-action,
  .swipe-actions button,
  .chat-form button {
    width: 100%;
  }

  .chat-form {
    flex-direction: column;
  }

  .form-grid.two,
  .form-grid.three,
  .profile-game-meta,
  .profile-name-line,
  .profile-readout,
  .profile-game-head,
  .profile-game-card,
  .handle-grid,
  .achievement-strip,
  .catalog-toolbar,
  .catalog-footer,
  .choice-grid,
  .choice-grid.games,
  .avatar-grid,
  .compact-switches,
  .profile-preview-row,
  .squad-nodes {
    grid-template-columns: 1fr;
  }

  .profile-bio-area {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .home-hero {
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 24px 14px;
    border: 0;
    background-position: center, center center;
    background-size: auto, cover;
  }

  .home-hero-copy {
    position: static;
    max-width: none;
    padding: 16px;
  }

  .social-home-grid,
  .profile-feed-header,
  .quick-composer,
  .feed-card-head,
  .rich-lobby,
  .step-list {
    grid-template-columns: 1fr;
  }

  .quick-composer .quick-actions {
    grid-column: auto;
  }

  .profile-avatar {
    width: 112px;
    height: 112px;
  }

  .form-actions {
    flex-direction: column;
  }

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