/* ZONE global stylesheet */
:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #101219;
  --bg-panel: rgba(18, 21, 30, 0.78);
  --bg-panel-strong: rgba(21, 25, 34, 0.92);
  --text: #f5f7fb;
  --muted: #a8b0c3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --teal: #00e5ff;
  --gold: #ffd166;
  --soft-blue: #7dd3fc;
  --violet: #8b5cf6;
  --danger: #ff6b6b;
  --success: #5ce1a9;
  --accent: var(--teal);
  --accent-2: var(--gold);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --radius-soft: 16px;
  --max: 1240px;
  --shell-max: var(--max);
  --shell-gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 108px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="home"] {
  --shell-max: 1460px;
}

body[data-page="profile"] {
  --shell-max: 1240px;
}

[data-accent="gold"] { --accent: var(--gold); --accent-2: var(--teal); }
[data-accent="violet"] { --accent: var(--violet); --accent-2: var(--teal); }
[data-accent="blue"] { --accent: var(--soft-blue); --accent-2: var(--teal); }
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #e9edf5;
  --bg-panel: rgba(255, 255, 255, 0.84);
  --bg-panel-strong: rgba(255, 255, 255, 0.94);
  --text: #111522;
  --muted: #4d586d;
  --line: rgba(15, 23, 42, 0.14);
  --line-strong: rgba(15, 23, 42, 0.22);
  --shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 5%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34rem),
    radial-gradient(circle at 92% 20%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 30rem),
    linear-gradient(160deg, var(--bg), #11131a 52%, var(--bg));
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 35%, color-mix(in srgb, var(--accent) 10%, transparent) 46%, transparent 62%),
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.08), transparent 40%);
  opacity: 0.42;
  z-index: -1;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 78%, white); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.modal-open { overflow: hidden; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-inline: var(--shell-gutter);
  backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
.header-inner {
  min-height: var(--header-h);
  width: min(100%, var(--shell-max));
  max-width: none;
  margin: 0 auto;
  padding: .55rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.15rem, 2vw, 2.4rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 88px;
  min-width: 120px;
  padding: .3rem 0;
  justify-self: start;
  position: relative;
}
.brand-image {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px color-mix(in srgb, var(--accent) 42%, transparent));
}
.brand-wordmark {
  display: none !important;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.brand.has-fallback .brand-wordmark {
  display: none !important;
}
.brand-fallback {
  display: inline-grid;
  place-items: center;
  min-width: 84px;
  height: 54px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}
.nav-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.primary-nav {
  position: fixed;
  inset: var(--header-h) var(--shell-gutter) auto var(--shell-gutter);
  display: none;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem;
  background: var(--bg-panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.primary-nav.is-open { display: flex; }
.primary-nav a,
.primary-nav button,
.account-menu a,
.account-menu button {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  color: var(--muted);
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.primary-nav a:hover,
.primary-nav button:hover,
.primary-nav a[aria-current="page"],
.account-menu a:hover,
.account-menu button:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.primary-nav button {
  cursor: pointer;
  font-weight: 650;
}
.nav-auth-primary {
  color: var(--text) !important;
  background: color-mix(in srgb, var(--accent) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent) !important;
}
.nav-signout {
  color: var(--accent) !important;
}
.account-wrap { position: relative; justify-self: end; }
.account-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(16, 19, 28, 0.88), rgba(10, 12, 18, 0.78));
  color: var(--text);
  border-radius: 14px;
  padding: .55rem .88rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}
.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06070b;
  font-weight: 900;
  font-size: .75rem;
  background-size: cover;
  background-position: center;
}
.account-label { display: none; color: var(--text); font-weight: 700; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  min-width: 230px;
  padding: .45rem;
  z-index: 140;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) var(--shell-gutter);
}
.section-alt {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 78%, transparent), transparent);
  border-block: 1px solid var(--line);
}
.section-inner {
  width: min(100%, var(--shell-max));
  max-width: none;
  margin: 0 auto;
}
.narrow { max-width: 840px; }
.page-shell { min-height: calc(100vh - var(--header-h)); }
.page-hero {
  padding-bottom: 2rem;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 26rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 80%, transparent), transparent);
}
.page-hero .section-inner {
  display: grid;
  gap: .8rem;
}
.page-hero h1 {
  font-size: clamp(2.65rem, 6.2vw, 4.6rem);
  max-width: 12ch;
}
.page-hero p {
  max-width: 760px;
}
.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0 0 .8rem;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.5rem, 9vw, 5.8rem); }
h2 { font-size: clamp(1.65rem, 5vw, 3rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.muted { color: var(--muted); }

.hero {
  --hero-bg-scale: 1.08;
  --hero-bg-blur: 0px;
  --hero-bg-opacity: .28;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-media,
.hero-video,
.hero-vignette {
  position: absolute;
  inset: 0;
}
.gradient-fog {
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 45%;
  background:
    radial-gradient(circle at 22% 55%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 22rem),
    radial-gradient(circle at 75% 75%, color-mix(in srgb, var(--soft-blue) 18%, transparent), transparent 24rem);
  filter: blur(18px);
  opacity: .72;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-bg-opacity);
  filter: blur(var(--hero-bg-blur)) saturate(.95) contrast(1.05);
  transform: scale(var(--hero-bg-scale));
  transform-origin: center center;
  will-change: transform, filter, opacity;
}
.hero-vignette {
  background:
    radial-gradient(circle at 45% 36%, transparent 0 30%, rgba(8, 9, 13, .32) 58%, rgba(8, 9, 13, .94) 100%),
    linear-gradient(90deg, rgba(8, 9, 13, .92), rgba(8, 9, 13, .38), rgba(8, 9, 13, .9));
}
.light-streak {
  position: absolute;
  height: 2px;
  width: 42vw;
  min-width: 260px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 74%, white), transparent);
  opacity: .38;
  filter: blur(.3px);
  animation: streak 8s ease-in-out infinite;
}
.light-streak-a { top: 25%; left: -8%; transform: rotate(-11deg); }
.light-streak-b { bottom: 17%; right: -10%; transform: rotate(8deg); animation-delay: 2s; }
@keyframes streak {
  0%, 100% { opacity: .16; translate: -18px 0; }
  50% { opacity: .48; translate: 24px 0; }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: center;
  width: 100%;
}
.hero .section-inner {
  width: 100%;
  max-width: min(100%, 1320px);
}
.hero-copy-block {
  width: 100%;
  max-width: 760px;
}
.hero-logo-mark {
  width: min(430px, 84vw);
  min-height: 190px;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
}
.hero-logo-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55));
}
.hero-logo-mark span {
  font-size: 2.5rem;
  font-weight: 950;
}
.hero-headline {
  color: var(--text);
  font-size: clamp(1.55rem, 4.3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  max-width: 980px;
}
.hero-copy {
  max-width: 740px;
  font-size: 1.1rem;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}
.button-row.compact { gap: .5rem; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .72rem 1rem;
  color: var(--text);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 68%, white); }
.btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent-2));
  color: #07090d;
  border-color: transparent;
  font-weight: 850;
}
.btn-secondary { background: color-mix(in srgb, var(--accent) 14%, var(--bg-panel)); }
.btn-ghost { background: transparent; }
.icon-btn {
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
}
.hero-panel {
  width: min(100%, 520px);
  padding: 1.2rem;
  max-width: 520px;
}
.glass,
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}
.card { padding: 1rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-top: 1.15rem;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-height: 88px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
}
.stat-chip strong { color: var(--text); font-size: 1.6rem; }
.meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.meter-head strong { font-size: 1.08rem; }
.meter,
.xp-bar,
.strength {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
.meter span,
.xp-bar span,
.strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .7s ease;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.roster-search {
  flex: 1 1 260px;
  max-width: 440px;
  display: grid;
  gap: .35rem;
}
.roster-search span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}
.segmented {
  display: inline-flex;
  padding: .25rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius);
}
.segmented-item {
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  padding: .65rem .85rem;
}
.segmented-item.is-active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
}
.select-wrap.is-hidden { display: none; }
.card-grid,
.route-grid,
.event-grid,
.content-grid,
.gateway-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}
.roster-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.roster-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.avatar-tile,
.profile-avatar {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, black), color-mix(in srgb, var(--accent-2) 78%, black));
  color: #07090d;
  font-weight: 950;
  background-size: cover;
  background-position: center;
}
.badge,
.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}
.badge-admin, .pill-gold { background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: color-mix(in srgb, var(--gold) 42%, transparent); }
.badge-active { background: color-mix(in srgb, var(--success) 16%, transparent); border-color: color-mix(in srgb, var(--success) 42%, transparent); }
.badge-trial { background: color-mix(in srgb, var(--violet) 18%, transparent); border-color: color-mix(in srgb, var(--violet) 42%, transparent); }
.badge-bench { background: rgba(255, 255, 255, .08); }
.route-grid { grid-template-columns: 1fr; }
.route-card, .donation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}
.merch-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.merch-card { overflow: hidden; padding: 0; }
.merch-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.merch-card > div { padding: 1rem; }
.notice-list { display: grid; gap: 1rem; }
.notice-card time { color: var(--accent); font-weight: 800; font-size: .86rem; }

.form-card { padding: clamp(1rem, 3vw, 1.4rem); }
form { display: grid; gap: 1rem; }
.auth-shell {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 74%, transparent), transparent);
}
.auth-layout {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
.auth-copy {
  max-width: 620px;
}
.auth-note {
  display: grid;
  gap: .45rem;
  padding: 1rem 1.1rem;
  max-width: 520px;
}
.auth-note strong {
  color: var(--text);
  font-size: .95rem;
}
.auth-note p {
  margin: 0;
}
.auth-card {
  width: min(100%, 520px);
  justify-self: center;
}
.signup-copy {
  max-width: 660px;
}
.signup-card {
  width: min(100%, 560px);
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}
.auth-links a {
  color: var(--accent);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
label, fieldset {
  display: grid;
  gap: .4rem;
  color: var(--text);
  font-weight: 700;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
legend { color: var(--muted); padding-inline: .35rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  color: var(--text);
  padding: .78rem .85rem;
  min-height: 44px;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem;
}
.password-tools { display: grid; gap: .65rem; }
.form-message {
  min-height: 1.5rem;
  font-weight: 750;
  color: var(--success);
}
.form-message.is-error { color: var(--danger); }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 650;
}
.checkbox-row input { width: 18px; height: 18px; min-height: auto; }
.field-label {
  display: block;
  color: var(--text);
  font-weight: 800;
  margin-bottom: .5rem;
}
.chip-selector {
  display: grid;
  gap: .75rem;
}
.chip-bank,
.selected-box {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 56px;
  align-items: center;
}
.selected-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: .7rem;
  color: var(--muted);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem .75rem;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.chip.is-selected { background: color-mix(in srgb, var(--accent) 28%, transparent); }

.profile-layout {
  display: grid;
  gap: 1rem;
}
.profile-card {
  display: grid;
  gap: .85rem;
  align-content: start;
}
.profile-avatar {
  width: 92px;
  height: 92px;
  font-size: 1.5rem;
}
.profile-meta {
  display: grid;
  gap: .6rem;
  margin: 0;
}
.profile-meta div {
  display: grid;
  gap: .15rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); font-size: .82rem; }
dd { margin: 0; }
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.mini-stats span {
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.mini-stats strong { display: block; color: var(--text); }
.admin-edit-panel {
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border-radius: var(--radius);
  padding: 1rem;
}

.faq-list { display: grid; gap: .8rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item button {
  width: 100%;
  min-height: 56px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 1rem;
  font-weight: 850;
}
.faq-item button::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
.faq-item.is-open button::after { content: "-"; }
.faq-item div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s ease;
}
.faq-item.is-open div { grid-template-rows: 1fr; }
.faq-item p {
  overflow: hidden;
  padding: 0 1rem;
}
.faq-item.is-open p { padding-bottom: 1rem; }

.split-copy {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.about-card { align-self: stretch; }
.event-grid,
.gateway-grid,
.content-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.event-card {
  display: grid;
  gap: .6rem;
  height: 100%;
  align-content: start;
}
.event-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  box-shadow: 0 22px 70px color-mix(in srgb, var(--accent) 13%, transparent);
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .9rem;
}
.event-linked-block {
  display: grid;
  gap: .4rem;
}
.event-linked-block > span,
.event-linked-line strong {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.event-linked-line {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.event-linked-line a {
  color: var(--accent);
  font-weight: 800;
}
.linked-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.linked-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text);
  font-size: .83rem;
  font-weight: 850;
  text-decoration: none;
}
a.linked-chip:hover,
a.linked-chip:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.linked-empty {
  color: var(--muted);
  font-size: .9rem;
}
.dashboard-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1rem; }
.overview-card strong {
  display: block;
  font-size: 2rem;
  color: var(--text);
}
.dashboard-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #08090d;
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.dashboard-home::before,
.dashboard-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dashboard-home::before {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 28rem),
    radial-gradient(circle at 88% 68%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 24rem),
    linear-gradient(100deg, rgba(8,9,13,.96), rgba(8,9,13,.74) 46%, rgba(8,9,13,.88));
}
.dashboard-home::after {
  background: linear-gradient(110deg, transparent 12%, color-mix(in srgb, var(--accent) 12%, transparent) 48%, transparent 70%);
  filter: blur(18px);
  opacity: .42;
}
.dashboard-home .section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.dashboard-home .card,
.dashboard-home .glass {
  background: rgba(14, 18, 27, .58);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(22px);
}
.dashboard-home .card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dashboard-home .card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: rgba(18, 23, 34, .68);
}
.dashboard-hero,
.session-card {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 1rem;
}
.demo-session-strip {
  padding-block: 1.5rem;
}
.demo-switcher {
  display: grid;
  gap: .45rem;
  min-width: min(100%, 240px);
}
.demo-switcher label {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}
.dashboard-layout {
  display: grid;
  gap: 1rem;
}
.quick-link-grid {
  display: grid;
  gap: .6rem;
}
.mini-list {
  display: grid;
  gap: .75rem;
}
.mini-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  background: rgba(255, 255, 255, .035);
}
.mini-list p,
.compact-heading {
  margin-bottom: 0;
}
.badge-moderator {
  background: color-mix(in srgb, var(--soft-blue) 18%, transparent);
  border-color: color-mix(in srgb, var(--soft-blue) 44%, transparent);
}
body[data-page="roster"] .page-hero {
  padding-bottom: .65rem;
}
body[data-page="roster"] .page-hero.page-hero-compact {
  padding-top: clamp(2rem, 3vw, 2.7rem);
  padding-bottom: .4rem;
}
body[data-page="roster"] .page-hero .section-inner.roster-shell {
  max-width: min(100%, 1240px);
}
body[data-page="roster"] .page-hero h1,
body[data-page="roster"] .page-hero p,
.roster-heading .eyebrow,
.roster-card h2,
.roster-card p,
.roster-empty-state strong,
.roster-empty-state p {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
body[data-page="roster"] .page-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
}
body[data-page="roster"] .page-hero p {
  max-width: 46rem;
}
.roster-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}
.roster-section {
  padding-top: .55rem;
}
.roster-heading {
  text-align: left;
  max-width: 40rem;
}
.roster-heading .eyebrow,
.roster-heading h1,
.roster-heading p {
  margin: 0;
}
.roster-toolbar-shell {
  padding: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1rem;
}
.roster-toolbar {
  display: grid;
  gap: .95rem;
  max-width: none;
  margin: 0;
}
.roster-toolbar > *,
.roster-filter-row > * {
  min-width: 0;
}
.roster-group-tabs {
  width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  padding: .35rem;
}
.roster-group-tabs .segmented-item {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 800;
}
.roster-search {
  max-width: none;
}
.roster-search-field {
  min-width: 0;
}
.roster-search-field span,
.roster-filter-field span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.roster-filter-row {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.roster-filter-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
}
.roster-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
  align-items: stretch;
}
.clean-roster-card {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: .95rem;
  padding: 1rem;
  text-align: left;
  align-items: start;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.clean-roster-card:hover,
.clean-roster-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--accent) 13%, rgba(0,0,0,.45));
}
.roster-card-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
}
.roster-card-copy {
  min-width: 0;
  display: grid;
  gap: .18rem;
}
.clean-roster-card h2 {
  margin: 0;
  font-size: 1.28rem;
}
.roster-card-name {
  margin: 0;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
}
.roster-card-handle {
  margin: 0;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 820;
}
.roster-card-body {
  display: grid;
  gap: .35rem;
}
.roster-card-role-line,
.roster-card-game-line {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.roster-card-team {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.roster-card-team a {
  color: var(--accent);
  font-weight: 850;
}
.roster-card-role-line {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}
.roster-card-role-line strong {
  color: var(--text);
}
.roster-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.roster-card-action {
  min-height: 40px;
  padding-inline: .95rem;
}
.roster-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 1.08rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
  justify-self: start;
}
.badge-staff {
  background: color-mix(in srgb, var(--soft-blue) 16%, transparent);
  border-color: color-mix(in srgb, var(--soft-blue) 42%, transparent);
}
.badge-academy {
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  border-color: color-mix(in srgb, var(--violet) 42%, transparent);
}
.badge-placeholder {
  background: rgba(255, 255, 255, .06);
  border-color: color-mix(in srgb, var(--line-strong) 82%, transparent);
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}
.badge-inactive {
  background: rgba(255, 255, 255, .04);
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
  color: var(--muted);
}
.roster-empty-state {
  max-width: min(100%, 640px);
  margin: 0 auto 1rem;
  padding: 1rem 1.1rem;
  text-align: left;
  color: var(--muted);
}
.roster-empty-state strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--text);
  font-size: 1rem;
}
.roster-empty-state p {
  margin: 0;
}
body[data-page="teams"] .page-hero.page-hero-compact {
  padding-top: clamp(1.2rem, 3vw, 1.85rem);
  padding-bottom: .15rem;
}
body[data-page="teams"] .page-hero h1,
body[data-page="teams"] .page-hero p,
body[data-page="teams"] .team-card h2,
body[data-page="teams"] .team-card p,
body[data-page="teams"] .team-card span,
body[data-page="teams"] .team-card strong,
body[data-page="team-profile"] .team-profile-copy h1,
body[data-page="team-profile"] .team-profile-banner h1,
body[data-page="team-profile"] .team-profile-banner p,
body[data-page="team-profile"] .team-profile-banner span,
body[data-page="team-profile"] .team-profile-banner strong,
body[data-page="team-profile"] .team-person-copy h3,
body[data-page="team-profile"] .team-person-copy p,
body[data-page="team-profile"] .team-achievement-copy h3,
body[data-page="team-profile"] .team-achievement-copy p,
body[data-page="team-profile"] .team-event-card h3,
body[data-page="team-profile"] .team-event-card p,
body[data-page="team-profile"] .team-media-meta,
body[data-page="team-profile"] .team-profile-fact span,
body[data-page="team-profile"] .team-profile-fact strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
body[data-page="teams"] .page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
}
body[data-page="teams"] .page-hero p {
  max-width: 46rem;
}
.teams-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}
.teams-section {
  padding-top: .25rem;
}
.teams-heading {
  text-align: left;
  max-width: 44rem;
}
.teams-heading .eyebrow,
.teams-heading h1,
.teams-heading p {
  margin: 0;
}
.teams-toolbar-shell {
  padding: clamp(.85rem, 1.6vw, 1.05rem);
  margin-bottom: .95rem;
}
.teams-toolbar {
  display: grid;
  gap: .85rem;
  max-width: none;
  margin: 0;
}
.teams-toolbar > *,
.teams-control-row > *,
.teams-filter-row > * {
  min-width: 0;
}
.teams-group-tabs {
  width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  padding: .35rem;
}
.teams-group-tabs .segmented-item {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
  font-weight: 800;
}
.teams-search-field {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.teams-control-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .78fr);
  gap: .85rem;
  align-items: end;
}
.teams-search-field span,
.teams-filter-field span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.teams-filter-row {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.teams-filter-field {
  display: grid;
  gap: .35rem;
  min-width: 0;
}
.teams-result-count {
  justify-self: end;
  margin: -.15rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}
.teams-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.45rem);
  align-items: stretch;
}
.clean-team-card {
  --team-accent: color-mix(in srgb, var(--accent) 62%, var(--soft-blue));
  position: relative;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.05rem;
  text-align: left;
  align-items: start;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.clean-team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--team-accent), transparent 72%);
  opacity: .88;
}
.clean-team-card:hover,
.clean-team-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--team-accent) 52%, transparent);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--team-accent) 13%, rgba(0,0,0,.45));
}
.team-card--competitive {
  --team-accent: color-mix(in srgb, var(--accent) 72%, var(--soft-blue));
}
.team-card--academy {
  --team-accent: color-mix(in srgb, var(--soft-blue) 82%, var(--accent));
}
.team-card--community {
  --team-accent: color-mix(in srgb, #4ade80 68%, var(--soft-blue));
}
.team-card--staff {
  --team-accent: color-mix(in srgb, var(--muted) 62%, var(--accent));
}
.team-card--recruiting {
  --team-accent: color-mix(in srgb, var(--gold) 82%, var(--accent));
}
.team-card-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .95rem;
  align-items: center;
}
.team-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 1.02rem;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--team-accent) 40%, transparent), 0 18px 48px rgba(0, 0, 0, .25);
}
.team-card-copy {
  min-width: 0;
  display: grid;
  gap: .18rem;
}
.clean-team-card h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.08;
}
.team-card-tag {
  margin: 0;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 820;
}
.team-card-subline {
  margin: 0;
  color: color-mix(in srgb, var(--text) 84%, var(--muted));
  font-weight: 750;
}
.team-card-body {
  display: grid;
  gap: .75rem;
}
.team-card-game-line {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.team-card-game-line span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.team-card-game-line strong {
  color: var(--text);
  font-size: .98rem;
}
.team-card-next,
.team-profile-linked-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.team-card-next a,
.team-profile-linked-note a,
.team-profile-meta-item a {
  color: var(--accent);
  font-weight: 850;
}
.team-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
}
.team-card-meta div {
  display: grid;
  gap: .1rem;
  min-height: 68px;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--team-accent) 7%, transparent), rgba(255, 255, 255, .035));
}
.team-card-meta span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.team-card-meta strong {
  color: var(--text);
  font-size: .92rem;
  word-break: normal;
  overflow-wrap: normal;
}
.team-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .15rem;
}
.team-card-action {
  min-height: 42px;
  padding-inline: 1rem;
}
.teams-empty-state {
  max-width: min(100%, 640px);
  margin: 0 auto 1rem;
  padding: 1rem 1.1rem;
  text-align: left;
  color: var(--muted);
}
.teams-empty-state strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--text);
  font-size: 1rem;
}
.teams-empty-state p {
  margin: 0;
}
.teams-clear-button {
  margin-top: .85rem;
  min-height: 42px;
}
.team-profile-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}
.team-profile-hero {
  padding-top: clamp(2rem, 4vw, 2.7rem);
  padding-bottom: 1rem;
}
.team-profile-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 32vw, 420px);
  padding: clamp(1rem, 2.8vw, 1.6rem);
  display: grid;
  align-items: end;
  background-color: rgba(10, 12, 18, .94);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.team-profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, .06), rgba(5, 8, 13, .26) 52%, rgba(5, 8, 13, .58)),
    linear-gradient(90deg, rgba(4, 8, 12, .14), rgba(6, 9, 13, .05) 42%, rgba(8, 8, 14, .16));
  pointer-events: none;
}
.team-profile-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1.2rem;
  align-items: end;
}
.team-profile-copy {
  min-width: 0;
  max-width: 62ch;
}
.team-profile-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
}
.team-profile-copy p {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}
.team-profile-tag {
  color: var(--accent);
  font-weight: 850;
  margin: 0 0 .4rem;
}
.team-profile-bio {
  max-width: 56ch;
}
.team-profile-identity {
  display: grid;
  gap: .9rem;
  padding: 1rem;
  border-radius: calc(var(--radius-soft) - 2px);
  background: rgba(10, 12, 18, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.team-profile-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 1.05rem;
}
.team-profile-meta-list {
  display: grid;
  gap: .55rem;
}
.team-profile-meta-item {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.team-profile-meta-item span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.team-profile-meta-item strong {
  color: var(--text);
  word-break: normal;
  overflow-wrap: normal;
}
.team-profile-facts {
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.team-profile-fact {
  display: grid;
  gap: .15rem;
  padding: .85rem .95rem;
}
.team-profile-fact span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.team-profile-fact strong {
  font-size: 1.05rem;
  color: var(--text);
}
.team-profile-tabs-card {
  padding: .75rem;
  margin-top: 1rem;
}
.team-tabs {
  display: grid;
  gap: .85rem;
}
.team-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
  overflow-x: auto;
  scrollbar-width: thin;
}
.team-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: .65rem .9rem;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}
.team-tab.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
.team-tab-panel {
  animation: softPanelIn .2s ease both;
}
.team-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 1rem;
}
.team-overview-card,
.team-leads-card,
.team-highlights-card,
.team-member-grid,
.team-achievement-grid,
.team-event-grid,
.team-media-grid {
  display: grid;
  gap: .9rem;
}
.team-highlight-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: .35rem;
  color: var(--muted);
}
.team-highlight-list li {
  margin: 0;
}
.team-person-card {
  display: grid;
  gap: .85rem;
}
.team-person-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
}
.team-person-copy {
  min-width: 0;
  display: grid;
  gap: .1rem;
}
.team-person-copy h3 {
  margin: 0;
  font-size: 1rem;
}
.team-person-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.team-person-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}
.team-person-link {
  min-height: 40px;
  padding-inline: .9rem;
}
.team-member-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.team-member-card {
  display: grid;
  gap: .85rem;
  padding: 1rem;
}
.team-member-card .team-person-head {
  align-items: center;
}
.team-achievement-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.team-achievement-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.team-achievement-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  color: var(--gold);
}
.team-achievement-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.team-achievement-copy {
  min-width: 0;
  display: grid;
  gap: .35rem;
}
.team-achievement-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.team-achievement-date {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.team-achievement-copy h3 {
  margin: 0;
  font-size: 1.05rem;
}
.team-achievement-copy p {
  margin: 0;
  color: var(--muted);
}
.team-event-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.team-event-card {
  display: grid;
  gap: .55rem;
}
.team-event-link {
  justify-self: start;
  min-height: 38px;
}
.team-event-meta {
  color: var(--muted);
  font-size: .9rem;
}
.team-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.team-media-card {
  display: grid;
  gap: .7rem;
}
.team-media-figure {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-soft) - 2px);
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.team-media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-media-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
}
.team-media-meta strong {
  color: var(--text);
}
.badge-recruiting {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
}
.badge-community {
  background: color-mix(in srgb, var(--soft-blue) 16%, transparent);
  border-color: color-mix(in srgb, var(--soft-blue) 40%, transparent);
}
@media (max-width: 1023px) {
  body[data-page="roster"] .page-hero.page-hero-compact {
    padding-top: clamp(1.85rem, 4vw, 2.35rem);
  }
  .roster-toolbar {
    gap: .9rem;
  }
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teams-control-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .teams-result-count {
    justify-self: start;
  }
  .team-profile-banner-inner,
  .team-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body[data-page="roster"] .page-hero {
    padding-top: clamp(2.5rem, 8vw, 3.1rem);
    padding-bottom: .55rem;
  }
  body[data-page="roster"] .page-hero.page-hero-compact {
    padding-top: clamp(1.65rem, 6vw, 2rem);
    padding-bottom: .3rem;
  }
  body[data-page="roster"] .page-hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.55rem);
    max-width: 12ch;
  }
  .roster-section {
    padding-top: .35rem;
  }
  .roster-toolbar-shell {
    padding: .95rem;
  }
  .roster-group-tabs {
    margin-inline: -.1rem;
  }
  .roster-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .roster-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="teams"] .page-hero.page-hero-compact {
    padding-top: clamp(1.35rem, 5vw, 1.7rem);
    padding-bottom: .15rem;
  }
  body[data-page="teams"] .page-hero h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.45rem);
  }
  .teams-section {
    padding-top: .2rem;
  }
  .teams-toolbar-shell {
    padding: .85rem;
  }
  .teams-group-tabs {
    margin-inline: -.1rem;
  }
  .teams-control-row {
    gap: .75rem;
  }
  .teams-filter-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem;
  }
  .teams-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-profile-hero {
    padding-top: clamp(1.65rem, 6vw, 2rem);
    padding-bottom: .85rem;
  }
  .team-profile-banner {
    min-height: auto;
  }
  .team-profile-copy h1 {
    font-size: clamp(1.95rem, 8vw, 2.8rem);
    max-width: 12ch;
  }
  .team-profile-facts,
  .team-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-profile-tabs-card {
    padding: .65rem;
  }
  .team-tab-list {
    margin-inline: -.1rem;
  }
  .team-member-grid,
  .team-achievement-grid,
  .team-event-grid,
  .team-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-card-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-card-footer {
    align-items: stretch;
  }
  .team-card-action {
    width: 100%;
  }
  .roster-card-footer {
    align-items: stretch;
  }
  .roster-card-action {
    width: 100%;
  }
}
@media (max-width: 479px) {
  .roster-toolbar-shell,
  .roster-empty-state,
  .clean-roster-card {
    padding: .85rem;
  }
  .roster-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: .75rem;
  }
  .roster-avatar {
    width: 64px;
    height: 64px;
    font-size: .98rem;
  }
  .roster-card h2 {
    font-size: 1.16rem;
  }
  .clean-team-card,
  .teams-empty-state {
    padding: .85rem;
  }
  .team-card-head {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: .75rem;
  }
  .team-logo {
    width: 62px;
    height: 62px;
    font-size: .98rem;
  }
  .clean-team-card h2 {
    font-size: 1.16rem;
  }
}
.profile-background-shell {
  --profile-shell-max: 1240px;
  --profile-shell-gutter: 16px;
  --profile-bg-base-color: #0a0a0a;
  --profile-bg-base-image:
    radial-gradient(circle at 25% 25%, #222222 0.5px, transparent 1px),
    radial-gradient(circle at 75% 75%, #111111 0.5px, transparent 1px);
  --profile-bg-base-size: 10px 10px;
  --profile-bg-image-rendering: pixelated;
  --profile-banner-image: none;
  --profile-card-banner-image: var(--profile-banner-image);
  --profile-banner-position: center;
  --profile-banner-size: cover;
  --profile-banner-media-height: clamp(420px, 34vw, 520px);
  --profile-banner-blur-top: clamp(290px, 27vw, 360px);
  --profile-banner-blur-height: clamp(150px, 14vw, 200px);
  --profile-banner-blur-strength: 14px;
  --profile-banner-overlay:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, .12), transparent 24rem),
    radial-gradient(circle at 82% 16%, rgba(139, 92, 246, .16), transparent 20rem),
    linear-gradient(180deg, rgba(7, 10, 15, .1) 0%, rgba(7, 10, 15, .22) 34%, rgba(8, 9, 13, .56) 58%, rgba(10, 10, 10, .92) 100%);
  --profile-banner-blend: linear-gradient(180deg, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, .34) 58%, rgba(10, 10, 10, .82) 80%, rgba(10, 10, 10, 1) 100%);
  --profile-banner-mask: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 52%, rgba(0, 0, 0, .72) 72%, rgba(0, 0, 0, .18) 88%, rgba(0, 0, 0, 0) 100%);
  --profile-banner-blur-mask: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .92) 32%, rgba(0, 0, 0, .92) 72%, rgba(0, 0, 0, 0) 100%);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background-color: var(--profile-bg-base-color);
}
.profile-background-base,
.profile-banner-blur,
.profile-banner-media,
.profile-banner-overlay {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: none;
}
.profile-background-base {
  z-index: 0;
  inset: 0;
  background-color: var(--profile-bg-base-color);
  background-image: var(--profile-bg-base-image);
  background-size: var(--profile-bg-base-size);
  image-rendering: var(--profile-bg-image-rendering);
}
.profile-banner-media {
  z-index: 1;
  height: var(--profile-banner-media-height);
  background-image: var(--profile-banner-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.98) contrast(1.02);
  -webkit-mask-image: var(--profile-banner-mask);
  mask-image: var(--profile-banner-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.profile-banner-blur {
  z-index: 2;
  top: var(--profile-banner-blur-top);
  height: var(--profile-banner-blur-height);
  background-image: var(--profile-banner-image);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(var(--profile-banner-blur-strength));
  opacity: .72;
  transform: scale(1.04);
  transform-origin: center bottom;
  -webkit-mask-image: var(--profile-banner-blur-mask);
  mask-image: var(--profile-banner-blur-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.profile-banner-overlay {
  z-index: 3;
  height: var(--profile-banner-media-height);
  background-image: var(--profile-banner-overlay), var(--profile-banner-blend);
}
.profile-background-content {
  position: relative;
  z-index: 4;
}
.profile-shell {
  width: min(100% - 32px, var(--profile-shell-max));
  max-width: none;
  margin-inline: auto;
}
.profile-banner {
  position: relative;
  min-height: 438px;
  display: flex;
  align-items: end;
  padding: 6.35rem var(--shell-gutter) 2.2rem;
  background: transparent;
  overflow: hidden;
}
.profile-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
.profile-identity-card {
  display: grid;
  gap: 1.05rem;
  align-items: start;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2.4vw, 1.65rem);
  background: rgba(7, 12, 20, .08);
  border: 1px solid color-mix(in srgb, var(--line-strong) 88%, transparent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.profile-identity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--profile-card-banner-image);
  background-position: var(--profile-banner-position, center);
  background-repeat: no-repeat;
  background-size: var(--profile-banner-size, cover);
  opacity: .82;
  filter: saturate(.98) contrast(1.05);
  pointer-events: none;
}
.profile-identity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, .12), rgba(7, 10, 15, .42) 100%),
    linear-gradient(90deg, rgba(4, 8, 12, .3), rgba(6, 9, 13, .12) 42%, rgba(8, 8, 14, .2)),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%);
  pointer-events: none;
}
.profile-identity-card > * {
  position: relative;
  z-index: 2;
}
.profile-avatar-anchor {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}
.profile-avatar-anchor::before {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .16), rgba(255, 209, 102, .08) 58%, transparent 78%);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: 0 0 34px rgba(0, 229, 255, .12), inset 0 1px 0 rgba(255,255,255,.08);
}
.profile-avatar-anchor::after {
  content: "";
  position: absolute;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, .18), rgba(255, 209, 102, .08) 58%, transparent 78%);
  filter: blur(20px);
  opacity: .78;
  pointer-events: none;
}
.profile-avatar-large {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  position: relative;
  border: 3px solid color-mix(in srgb, var(--text) 82%, transparent);
  background-size: cover;
  background-position: center;
  background-color: color-mix(in srgb, var(--bg-panel-strong) 88%, black);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  font-size: 1.7rem;
}
.profile-header-main {
  display: grid;
  gap: .9rem;
  align-content: center;
  min-width: 0;
}
.profile-title-block {
  width: 100%;
  max-width: none;
  display: grid;
  gap: .45rem;
  align-content: start;
}
.profile-title-block h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.7vw, 3.8rem);
  line-height: .95;
  letter-spacing: 0;
}
.profile-username {
  margin: 0;
  color: var(--accent);
  font-weight: 850;
  font-size: 1rem;
}
.profile-bio {
  color: var(--text);
  max-width: 48ch;
  margin-top: .05rem;
}
.profile-xp-panel {
  max-width: 560px;
  padding: .85rem;
  margin-top: 1rem;
}
.profile-xp-panel p {
  margin: .55rem 0 0;
  font-size: .86rem;
}
.profile-game-badges,
.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.profile-header-actions {
  margin-top: .2rem;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: .7rem;
}
.profile-header-actions .btn {
  min-height: 48px;
}
.profile-summary-section {
  padding-block: 1.3rem;
}
.profile-summary-strip {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: .9rem;
  box-shadow: var(--shadow);
}
.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}
.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1.1;
  margin: .25rem 0;
}
.profile-content-grid {
  display: grid;
  gap: 1rem;
}
.profile-main-section {
  position: relative;
  padding-top: clamp(2rem, 5vw, 4rem);
  background: transparent;
}
.profile-main-grid,
.profile-left-stack,
.profile-right-stack,
.profile-stat-grid,
.profile-hub-heading {
  display: grid;
  gap: 1rem;
}
.profile-left-stack,
.profile-right-stack {
  align-content: start;
}
.compact-xp-card {
  display: grid;
  gap: .7rem;
}
.xp-compact-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}
.xp-compact-row strong {
  color: var(--text);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1;
}
.xp-compact-row span,
.compact-xp-card small {
  color: var(--muted);
  font-weight: 800;
}
.profile-stat-grid { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); }
.profile-stat-grid .stat-card {
  min-height: 104px;
}
.profile-hub-card {
  display: grid;
  gap: 1rem;
}
.profile-rail-card {
  display: grid;
  gap: .9rem;
  align-content: start;
}
.profile-featured-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: center;
}
.profile-featured-badge-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  background: linear-gradient(135deg, rgba(255, 209, 102, .16), rgba(0, 229, 255, .08));
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.profile-featured-badge h2 {
  margin: 0 0 .15rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.profile-featured-badge p {
  margin: 0;
  color: var(--muted);
}
.profile-focus-list {
  display: grid;
  gap: .75rem;
}
.profile-focus-list div {
  display: grid;
  gap: .18rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}
.profile-focus-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-focus-list dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-focus-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.profile-showcase-card {
  display: grid;
  gap: 1rem;
}
.profile-module-heading {
  display: grid;
  gap: .4rem;
}
.profile-module-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
}
.profile-module-heading p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}
.profile-empty-card {
  display: grid;
  gap: .5rem;
  min-height: 160px;
  align-content: center;
  padding: 1rem 1.1rem;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.profile-empty-card strong {
  color: var(--text);
}
.featured-showcase {
  display: grid;
  gap: 1rem;
}
.featured-showcase-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  aspect-ratio: 16 / 8.5;
}
.featured-showcase-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.featured-showcase-copy {
  display: grid;
  gap: .75rem;
  align-content: start;
}
.featured-showcase-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.featured-showcase-subtitle {
  margin: -.25rem 0 0;
  color: var(--muted);
  font-weight: 700;
}
.screenshot-showcase {
  display: grid;
  gap: 1rem;
}
.screenshot-main {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.screenshot-main img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  display: block;
  object-fit: cover;
}
.screenshot-main figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, rgba(12, 15, 22, .24), rgba(8, 11, 17, .72));
}
.screenshot-main figcaption span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.screenshot-rail {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.screenshot-thumb,
.screenshot-more {
  margin: 0;
  overflow: hidden;
  min-height: 140px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.screenshot-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: block;
  object-fit: cover;
}
.screenshot-thumb figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .55rem .7rem;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 17, .88));
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
}
.screenshot-thumb {
  position: relative;
}
.screenshot-more {
  display: grid;
  place-items: center;
  gap: .15rem;
  background: linear-gradient(150deg, rgba(10, 14, 21, .94), rgba(11, 18, 27, .74));
  color: var(--text);
  text-align: center;
}
.screenshot-more strong {
  font-size: 1.5rem;
}
.screenshot-more span {
  color: var(--muted);
  font-size: .82rem;
}
.armory-showcase-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.armory-showcase-item {
  display: grid;
  gap: .7rem;
  min-height: 180px;
  padding: 1rem;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(10, 14, 21, .9), rgba(11, 18, 27, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.armory-showcase-item h3 {
  margin: 0;
  font-size: 1.08rem;
}
.armory-showcase-item p {
  margin: 0;
  color: var(--muted);
}
.armory-tone-0 {
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}
.armory-tone-1 {
  border-color: color-mix(in srgb, var(--accent-2) 24%, transparent);
}
.armory-tone-2 {
  border-color: color-mix(in srgb, var(--soft-blue) 24%, transparent);
}
.profile-activity-list {
  display: grid;
  gap: .8rem;
}
.profile-activity-item {
  display: grid;
  gap: .65rem;
  padding: .95rem 1rem;
  border-radius: calc(var(--radius-soft) - 4px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.profile-activity-copy {
  display: grid;
  gap: .3rem;
}
.profile-activity-copy strong {
  color: var(--text);
}
.profile-activity-copy p,
.profile-activity-meta span {
  margin: 0;
  color: var(--muted);
}
.profile-activity-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: .88rem;
}
.profile-activity-meta strong {
  color: var(--text);
  font-size: .84rem;
  white-space: nowrap;
}
.profile-hub-heading h2 {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
}
.profile-actions {
  justify-content: flex-start;
}
.profile-core-grid,
.profile-action-bar,
.profile-tabs,
.profile-tab-panels,
.achievement-grid,
.stats-panel-grid {
  display: grid;
  gap: 1rem;
}
.profile-level-card {
  align-content: start;
}
.profile-action-bar {
  align-items: start;
  margin-bottom: 1rem;
}
.profile-tabs {
  align-content: start;
}
.profile-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-panel) 82%, transparent);
  overflow-x: auto;
  scrollbar-width: thin;
}
.profile-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: .65rem .9rem;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}
.profile-tab.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent);
}
.profile-tab-panel {
  animation: softPanelIn .2s ease both;
}
.profile-media-stack {
  display: grid;
  gap: 1rem;
}
.media-panel {
  display: grid;
  gap: 1rem;
}
.media-panel-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.media-panel-copy {
  margin: -.25rem 0 0;
  color: var(--muted);
}
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.media-card {
  position: relative;
  display: grid;
  gap: .7rem;
}
.media-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-soft) - 2px);
  overflow: hidden;
  background: rgba(255,255,255,.04);
  aspect-ratio: 1 / 1;
}
.media-card-button:hover,
.media-card-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.media-card-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.media-card-meta {
  display: grid;
  gap: .45rem;
}
.media-card-meta strong,
.media-card-meta span {
  overflow-wrap: anywhere;
}
.media-card-meta strong {
  font-size: .96rem;
}
.media-card-meta span {
  color: var(--muted);
  font-size: .88rem;
}
.media-card-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.media-card-delete {
  min-height: 34px;
  padding-inline: .75rem;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 5, 10, .82);
  backdrop-filter: blur(10px);
}
.media-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  padding: 1rem;
}
.media-lightbox-close {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 10, 15, .82);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}
.media-lightbox-figure {
  margin: 0;
  display: grid;
  gap: .8rem;
}
.media-lightbox-figure img {
  width: 100%;
  max-height: min(78vh, 860px);
  display: block;
  object-fit: contain;
  border-radius: calc(var(--radius-soft) - 2px);
  background: rgba(0,0,0,.34);
}
.media-lightbox-figure figcaption {
  color: var(--muted);
  font-size: .92rem;
}
@keyframes softPanelIn {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}
.profile-side,
.profile-feed-panel,
.feed-list {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.feed-composer {
  margin-bottom: .25rem;
}
.attachment-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.attachment-trigger svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.attachment-name {
  color: var(--muted);
  font-size: .9rem;
}
.attachment-preview {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: .65rem;
  background: rgba(255,255,255,.035);
}
.attachment-preview img {
  width: min(100%, 440px);
  max-height: 280px;
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(0,0,0,.22);
}
.feed-card {
  display: grid;
  gap: .75rem;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.feed-head p {
  margin: .1rem 0 0;
  font-size: .88rem;
}
.feed-actions {
  display: flex;
  gap: .5rem;
}
.feed-actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius);
  padding: .45rem .65rem;
}
.feed-actions button:hover {
  color: var(--text);
  border-color: var(--accent);
}
.feed-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.feed-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.achievement-grid,
.stats-panel-grid,
.media-gallery {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.achievement-panel,
.achievement-form,
.media-panel,
.stats-panel,
.stats-edit-form {
  display: grid;
  gap: 1rem;
}
.achievement-panel-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.media-panel-head,
.stats-panel-head {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.achievement-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: start;
}
.achievement-card-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: start;
  flex-wrap: wrap;
}
.achievement-delete {
  min-height: 34px;
  padding-inline: .75rem;
}
.achievement-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  color: var(--gold);
}
.achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.achievement-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}
.rarity-rare { border-color: color-mix(in srgb, var(--soft-blue) 40%, transparent); }
.rarity-epic { border-color: color-mix(in srgb, var(--violet) 48%, transparent); }
.rarity-legendary { border-color: color-mix(in srgb, var(--gold) 58%, transparent); }
.empty-state {
  color: var(--muted);
  text-align: center;
}
.compact-stat {
  min-height: 132px;
}
.stats-empty-card {
  grid-column: 1 / -1;
}
.mini-progress {
  height: 8px;
  margin-top: .7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.page-hero-compact {
  padding-block: clamp(1.85rem, 3vw, 2.45rem) .5rem;
}
.profile-studio-shell {
  width: min(100%, 1200px);
  max-width: none;
  margin: 0 auto;
}
.profile-studio-page .page-hero .profile-studio-shell {
  max-width: min(100%, 1200px);
  gap: .4rem;
}
.profile-studio-page .page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.15rem);
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
.profile-studio-page .page-hero p {
  max-width: 44rem;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}
.profile-studio-section {
  padding-top: .3rem;
}
.profile-studio-layout,
.profile-studio-main,
.profile-studio-nav,
.studio-section,
.studio-section-heading,
.studio-media-controls,
.profile-studio-linked-grid,
.profile-studio-preferences-grid {
  display: grid;
  gap: clamp(.9rem, 1.5vw, 1.1rem);
}
.profile-studio-layout > *,
.profile-studio-main,
.profile-studio-sidebar,
.profile-studio-header,
.studio-section,
.profile-studio-banner-preview,
.banner-modal .crop-dialog {
  min-width: 0;
}
.profile-studio-sidebar {
  padding: 1rem;
  align-content: start;
  align-self: start;
  gap: .85rem;
  border-radius: calc(var(--radius-soft) + 2px);
}
.profile-studio-sidebar-head {
  display: grid;
  gap: .45rem;
}
.profile-studio-sidebar-head h2 {
  margin: 0;
  font-size: clamp(1.38rem, 2.4vw, 1.82rem);
}
.profile-studio-sidebar-head p:last-child {
  margin: 0;
  max-width: 24ch;
}
.profile-studio-page .page-hero .eyebrow,
.profile-studio-sidebar-head .eyebrow,
.profile-studio-header .eyebrow {
  margin: 0;
}
.profile-studio-nav {
  align-content: start;
}
.profile-studio-nav a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: .82rem 1rem .82rem 1.1rem;
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  font-weight: 800;
  letter-spacing: .01em;
  overflow: hidden;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.profile-studio-nav a::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleY(.5);
  transition: opacity .18s ease, transform .18s ease;
}
.profile-studio-nav a:hover,
.profile-studio-nav a.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background:
    radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 12rem),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.profile-studio-nav a:hover {
  transform: translateX(2px);
}
.profile-studio-nav a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.profile-studio-pref-card strong {
  color: var(--text);
}
.profile-studio-header {
  display: block;
  padding: 0;
  border-radius: calc(var(--radius-soft) + 4px);
  min-height: clamp(224px, 22vw, 252px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: rgba(9, 13, 20, .92);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid color-mix(in srgb, var(--line-strong) 90%, transparent);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .24);
}
.profile-studio-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5,8,12,.90), rgba(5,8,12,.62), rgba(5,8,12,.88)),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%);
  pointer-events: none;
}
.profile-studio-header-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 320px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  min-height: inherit;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
}
.profile-studio-header-content > * {
  min-width: 0;
}
.profile-studio-header-copy {
  display: grid;
  gap: .3rem;
  min-width: 0;
  max-width: 34rem;
}
.profile-studio-header-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: .96;
}
.profile-studio-handle {
  margin: 0;
  color: var(--accent);
  font-weight: 850;
}
.profile-studio-summary {
  max-width: 40rem;
  margin: 0;
  line-height: 1.5;
  font-size: .98rem;
}
.profile-studio-header .eyebrow,
.profile-studio-header h2,
.profile-studio-header p,
.profile-studio-header strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  hyphens: manual;
}
.profile-studio-header-side {
  display: grid;
  gap: .8rem;
  justify-items: end;
  align-content: center;
  min-width: 0;
}
.profile-studio-status-card {
  width: min(100%, 300px);
  padding: .9rem 1rem;
  display: grid;
  gap: .35rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 12rem),
    linear-gradient(135deg, rgba(10, 16, 25, .72), rgba(9, 13, 21, .56));
}
.profile-studio-status-card strong {
  font-size: .98rem;
  color: var(--text);
}
.profile-studio-status-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: .88rem;
}
.profile-studio-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 76%, transparent);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .32);
  justify-self: end;
}
.profile-studio-header-actions {
  width: 100%;
  justify-content: flex-end;
}
.studio-section {
  padding: clamp(1rem, 1.6vw, 1.2rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.profile-studio-main.is-deck-ready .studio-section:not(.is-active) {
  display: none;
}
.studio-section.is-active {
  animation: studioPanelIn .18s ease both;
}
@keyframes studioPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.studio-section-heading {
  max-width: 64ch;
  gap: .38rem;
}
.studio-section-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}
.studio-textarea textarea {
  min-height: 150px;
}
.studio-media-grid,
.studio-banner-grid,
.studio-theme-grid {
  display: grid;
  gap: .95rem;
}
.studio-media-preview {
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding: 1rem;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.profile-studio-avatar-preview {
  width: 122px;
  height: 122px;
  font-size: 1.9rem;
}
.profile-studio-banner-preview {
  --studio-banner-preview-image: none;
  min-height: 280px;
  padding: .95rem;
  align-content: start;
  gap: .9rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, .09), transparent 16rem),
    radial-gradient(circle at 84% 18%, rgba(255, 209, 102, .08), transparent 14rem),
    linear-gradient(180deg, rgba(8,9,13,.12), rgba(8,9,13,.82)),
    linear-gradient(135deg, rgba(9, 16, 27, .96), rgba(10, 13, 20, .82));
}
.profile-studio-banner-hero {
  position: relative;
  display: grid;
  gap: .9rem;
  padding: clamp(.9rem, 1.7vw, 1.1rem);
  min-height: clamp(220px, 28vw, 280px);
  border-radius: calc(var(--radius-soft) - 2px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 229, 255, .12), transparent 18rem),
    radial-gradient(circle at 84% 16%, rgba(255, 209, 102, .08), transparent 14rem),
    linear-gradient(128deg, rgba(8, 14, 23, .56), rgba(8, 12, 18, .42) 56%, rgba(16, 12, 28, .36));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.profile-studio-banner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--studio-banner-preview-image);
  background-position: var(--profile-banner-position, center);
  background-repeat: no-repeat;
  background-size: var(--profile-banner-size, cover);
  opacity: .52;
  filter: saturate(.98) contrast(1.04);
  pointer-events: none;
}
.profile-studio-banner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 9, 14, .28), rgba(7, 9, 14, .74)),
    linear-gradient(90deg, rgba(3, 8, 13, .78), rgba(7, 9, 14, .54) 42%, rgba(9, 8, 15, .64));
  pointer-events: none;
}
.profile-studio-banner-hero > * {
  position: relative;
  z-index: 2;
}
.profile-studio-banner-hero-main {
  display: grid;
  gap: .95rem;
  align-items: center;
}
.profile-studio-banner-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 78%, transparent);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}
.profile-studio-banner-copy {
  display: grid;
  gap: .38rem;
  min-width: 0;
}
.profile-studio-banner-copy h4 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: .95;
}
.profile-studio-banner-bio {
  margin: 0;
  max-width: 54ch;
  line-height: 1.5;
}
.profile-studio-banner-meta {
  display: grid;
  gap: .8rem;
}
.profile-studio-banner-brief {
  display: grid;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background: linear-gradient(155deg, rgba(7, 14, 22, .52), rgba(12, 14, 22, .28));
}
.profile-studio-banner-brief dl {
  display: grid;
  gap: .6rem;
  margin: 0;
}
.profile-studio-banner-brief dl div {
  display: grid;
  gap: .16rem;
}
.profile-studio-banner-brief dt {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-studio-banner-brief dd {
  margin: 0;
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
}
.profile-studio-banner-state {
  display: grid;
  gap: .28rem;
}
.profile-studio-banner-state strong {
  color: var(--text);
  font-size: .98rem;
}
.profile-studio-banner-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: .88rem;
}
.profile-studio-banner-current {
  color: var(--text) !important;
  font-weight: 700;
}
.studio-banner-browser {
  display: grid;
  gap: 1rem;
}
.studio-banner-actions {
  align-items: center;
  flex-wrap: wrap;
}
.studio-banner-actions .btn {
  flex: 1 1 180px;
}
.studio-banner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.studio-banner-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.studio-banner-tab:hover,
.studio-banner-tab:focus-visible,
.studio-banner-tab.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.04));
}
.studio-banner-tab:hover,
.studio-banner-tab:focus-visible {
  transform: translateY(-1px);
}
.studio-banner-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.studio-banner-card {
  display: grid;
  gap: .8rem;
  padding: .85rem;
  text-align: left;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(11, 15, 22, .92), rgba(10, 14, 22, .78));
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.studio-banner-card:hover,
.studio-banner-card:focus-visible,
.studio-banner-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .26);
  background: linear-gradient(150deg, rgba(13, 19, 29, .96), rgba(10, 15, 24, .84));
}
.studio-banner-card.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 40px rgba(0, 0, 0, .26);
}
.studio-banner-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background: linear-gradient(150deg, rgba(7, 12, 20, .96), rgba(10, 13, 20, .82));
}
.studio-banner-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.studio-banner-card-copy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
}
.studio-banner-card-copy strong {
  font-size: .94rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.studio-banner-card-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, rgba(255,255,255,.04));
  color: var(--text);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.studio-banner-empty {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px dashed var(--line);
  background: rgba(255,255,255,.03);
}
.banner-modal .crop-dialog {
  width: min(calc(100vw - 1.25rem), 1080px);
  max-height: min(92dvh, 920px);
  overflow: auto;
  display: grid;
  gap: .95rem;
  padding: clamp(.9rem, 2vw, 1.05rem);
}
.banner-heading {
  margin-bottom: 0;
}
.banner-modal-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.banner-modal-panel {
  min-height: 0;
}
.banner-upload-card {
  display: grid;
  gap: 1rem;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.banner-upload-card p {
  margin: 0;
}
.banner-adjust-shell {
  display: grid;
  gap: .9rem;
}
.banner-adjust-stage {
  padding: .9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  touch-action: none;
}
.profile-studio-banner-adjust-preview {
  min-height: clamp(220px, 28vw, 320px);
  cursor: grab;
}
.profile-studio-banner-adjust-preview:active {
  cursor: grabbing;
}
.profile-studio-banner-adjust-preview .profile-studio-banner-hero-main {
  min-height: 100%;
  align-content: end;
}
.studio-skin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.studio-skin-card {
  display: grid;
  gap: .8rem;
  text-align: left;
  padding: 1rem;
  border-radius: calc(var(--radius-soft) - 2px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(11, 15, 22, .92), rgba(10, 14, 22, .78));
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.studio-skin-card:hover:not(:disabled),
.studio-skin-card.is-active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.studio-skin-card.is-active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent), 0 18px 40px rgba(0, 0, 0, .28);
}
.studio-skin-card:disabled {
  cursor: default;
}
.studio-skin-card.is-locked {
  opacity: .72;
}
.studio-skin-state {
  display: inline-flex;
  justify-self: start;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: .76rem;
  font-weight: 800;
}
.studio-skin-preview {
  display: block;
  min-height: 108px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.studio-skin-preview-matrix {
  background:
    radial-gradient(circle at 25% 25%, #222222 0.5px, transparent 1px),
    radial-gradient(circle at 75% 75%, #111111 0.5px, transparent 1px),
    linear-gradient(145deg, rgba(9, 16, 27, .98), rgba(11, 13, 20, .88));
  background-size: 10px 10px, 10px 10px, auto;
}
.studio-skin-preview-signal {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 229, 255, .2), transparent 10rem),
    linear-gradient(145deg, rgba(7, 13, 21, .98), rgba(18, 13, 27, .86));
}
.studio-skin-preview-night {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 209, 102, .18), transparent 10rem),
    linear-gradient(145deg, rgba(5, 8, 14, .98), rgba(12, 13, 24, .9));
}
.studio-skin-preview-neon {
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 229, 255, .28), transparent 9rem),
    linear-gradient(120deg, rgba(0, 229, 255, .12) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, rgba(6, 19, 26, .98), rgba(8, 24, 31, .86));
  background-size: auto, 18px 18px, auto;
}
.studio-skin-preview-ember {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 132, 43, .3), transparent 9rem),
    radial-gradient(circle at 80% 74%, rgba(255, 209, 102, .16), transparent 8rem),
    linear-gradient(145deg, rgba(18, 11, 6, .98), rgba(31, 15, 8, .88));
}
.studio-skin-preview-shadow {
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(0, 229, 255, .12), transparent 9rem),
    linear-gradient(145deg, rgba(6, 7, 10, .98), rgba(10, 12, 17, .9));
  background-size: 28px 28px, 28px 28px, auto, auto;
}
.studio-checkbox-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.profile-privacy-grid {
  align-items: start;
}
.profile-privacy-grid label {
  display: grid;
  gap: .42rem;
}
.profile-studio-pref-card {
  display: grid;
  gap: .8rem;
  padding: 1rem 1.05rem;
}
.profile-studio-linked-grid {
  align-items: start;
}
.profile-studio-linked-grid label {
  display: grid;
  gap: .42rem;
}
.field-help {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.profile-studio-submit {
  justify-content: flex-start;
  gap: .65rem;
  padding-top: 0;
}
@media (max-width: 1023px) {
  .profile-studio-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .profile-studio-sidebar {
    position: static;
    padding: .95rem;
  }
  .profile-studio-sidebar-head p:last-child {
    max-width: none;
  }
  .profile-studio-nav {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .7rem;
  }
  .profile-studio-main {
    gap: .95rem;
  }
  .profile-studio-header {
    min-height: 0;
  }
  .profile-studio-header-content {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 1.1rem;
  }
  .profile-studio-header-side {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
  }
  .profile-studio-status-card {
    width: 100%;
    max-width: none;
  }
  .profile-studio-header-actions {
    width: auto;
    justify-content: flex-start;
  }
  .studio-media-grid,
  .profile-studio-preferences-grid,
  .studio-theme-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-skin-grid,
  .studio-banner-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-adjust-shell {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .banner-adjust-shell > .button-row,
  .banner-adjust-shell > .muted,
  .banner-adjust-shell > label {
    grid-column: auto;
  }
  .banner-adjust-stage {
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .profile-studio-page .page-hero {
    padding-top: clamp(2.4rem, 8vw, 3.2rem);
    padding-bottom: .7rem;
  }
  .profile-studio-page .page-hero-compact {
    padding-top: clamp(1.75rem, 6vw, 2.2rem);
    padding-bottom: .4rem;
  }
  .profile-studio-page .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    max-width: 12ch;
  }
  .profile-studio-page .page-hero p {
    font-size: .9rem;
  }
  .profile-studio-section {
    padding-top: .45rem;
  }
  .profile-studio-sidebar {
    padding: .85rem;
    gap: .75rem;
  }
  .profile-studio-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .55rem;
    padding-inline: .05rem;
    padding-bottom: .15rem;
    scrollbar-width: thin;
  }
  .profile-studio-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: .72rem .95rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .profile-studio-nav a::before {
    inset: auto 12px 0 12px;
    width: auto;
    height: 2px;
    transform: scaleX(.4);
    transform-origin: center;
  }
  .profile-studio-nav a:hover {
    transform: none;
  }
  .profile-studio-nav a.is-active::before {
    transform: scaleX(1);
  }
  .profile-studio-header {
    gap: .9rem;
  }
  .profile-studio-header-content {
    padding: .95rem;
    gap: .9rem;
  }
  .profile-studio-header-copy {
    max-width: none;
  }
  .profile-studio-header-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .profile-studio-header-side {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-content: start;
  }
  .profile-studio-avatar {
    width: 72px;
    height: 72px;
    justify-self: start;
  }
  .profile-studio-header-actions,
  .profile-studio-header-actions .btn {
    width: 100%;
  }
  .form-grid.two,
  .form-grid.three,
  .profile-studio-linked-grid,
  .profile-privacy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .profile-studio-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-studio-submit > * {
    width: 100%;
    justify-content: center;
  }
  .profile-studio-banner-preview {
    min-height: 0;
    padding: .8rem;
  }
  .profile-studio-banner-hero {
    min-height: 210px;
    padding: .85rem;
  }
  .profile-studio-banner-hero-main {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
  }
  .profile-studio-banner-avatar {
    width: 72px;
    height: 72px;
  }
  .profile-studio-banner-copy h4 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .profile-studio-banner-meta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: .8rem;
  }
  .studio-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .studio-banner-actions .btn {
    width: 100%;
    flex: 1 1 auto;
  }
  .banner-modal .crop-dialog {
    width: min(calc(100vw - .75rem), 680px);
    max-height: calc(100dvh - .75rem);
    padding: .85rem;
    border-radius: 20px;
  }
  .banner-heading {
    align-items: start;
    gap: .65rem;
  }
  .banner-modal-tabbar,
  .studio-banner-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .55rem;
    padding-bottom: .15rem;
    scrollbar-width: thin;
  }
  .banner-modal-tabbar .studio-banner-tab,
  .studio-banner-tabs .studio-banner-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .studio-banner-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .studio-banner-card {
    padding: .72rem;
    gap: .65rem;
  }
  .banner-upload-card .button-row,
  .banner-adjust-shell > .button-row {
    flex-direction: column;
    align-items: stretch;
  }
  .banner-upload-card .button-row .btn,
  .banner-adjust-shell > .button-row .btn {
    width: 100%;
  }
  .banner-adjust-stage {
    padding: .75rem;
  }
  .profile-studio-banner-adjust-preview {
    min-height: 200px;
  }
}

@media (max-width: 479px) {
  .profile-studio-header-content,
  .studio-section,
  .profile-studio-sidebar,
  .banner-upload-card,
  .banner-adjust-stage {
    padding: .8rem;
  }
  .profile-studio-nav a,
  .studio-banner-tab {
    min-height: 42px;
    padding: .65rem .85rem;
  }
  .profile-studio-banner-bio,
  .profile-studio-summary,
  .profile-studio-status-card p:last-child {
    font-size: .84rem;
  }
  .studio-banner-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .banner-modal .crop-dialog {
    width: min(calc(100vw - .5rem), 520px);
    padding: .75rem;
    gap: .75rem;
  }
}
.account-preview-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.account-preview-row h2 {
  margin-bottom: .2rem;
}
.account-banner-preview {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-soft) - 2px);
  overflow: hidden;
}
.account-banner-preview > span {
  display: inline-flex;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(8,9,13,.72);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: .82rem;
}
.studio-media-controls label,
.studio-theme-grid label {
  display: grid;
  gap: .55rem;
}
.studio-media-controls p,
.studio-theme-grid p {
  margin: 0;
}
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 4, 8, .72);
  backdrop-filter: blur(18px);
}
.crop-dialog {
  width: min(100%, 520px);
  padding: 1rem;
}
.crop-heading {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}
.crop-stage {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  touch-action: none;
}
.crop-stage canvas {
  width: min(100%, 320px);
  height: auto;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.crop-stage canvas:active {
  cursor: grabbing;
}
.admin-section { margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
th, td {
  padding: .75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
th { color: var(--muted); font-size: .84rem; }
td select, td input { min-width: 110px; }
.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
  margin-bottom: 1rem;
}
.import-form { margin-top: 1rem; }
.export-box {
  min-height: 160px;
  margin-top: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem;
}
.admin-locked { max-width: 760px; margin: 0 auto; }
.session-locked-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.session-locked-card .button-row {
  margin-top: .5rem;
}
.is-hidden, [hidden] { display: none !important; }

.site-footer {
  padding-inline: var(--shell-gutter);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.footer-inner {
  width: min(100%, var(--shell-max));
  max-width: none;
  margin: 0 auto;
  padding: 1.4rem 0;
  display: grid;
  gap: 1rem;
}
.footer-inner p { margin: .25rem 0 0; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  font-size: .78rem;
  font-weight: 850;
}
.social-links a:hover { color: var(--text); border-color: var(--accent); }
.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.soft-orb { display: none; }

.section-rail {
  display: none;
}

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

@media (min-width: 680px) {
  .account-label { display: inline; }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auth-layout { grid-template-columns: .95fr 1.05fr; }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: minmax(260px, 340px) 1fr; align-items: start; }
  .split-copy { grid-template-columns: 1.15fr .85fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .dashboard-hero,
  .session-card { grid-template-columns: 1fr auto; }
  .dashboard-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-banner { padding-inline: var(--shell-gutter); }
  .profile-banner-inner { max-width: none; }
  .profile-identity-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 2rem);
    width: 100%;
    margin-inline: auto;
  }
  .profile-main-grid { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: start; }
  .profile-core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-action-bar { grid-template-columns: 1fr auto; align-items: center; }
  .profile-content-grid { grid-template-columns: minmax(250px, 340px) 1fr; }
}

@media (min-width: 980px) {
  .section {
    padding-block: clamp(5rem, 7vw, 7.5rem);
  }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: normal;
    gap: clamp(1.4rem, 2vw, 2.4rem);
  }
  .nav-toggle { display: none; }
  .brand {
    min-height: 104px;
    min-width: 148px;
  }
  .brand-image {
    width: 118px;
    height: 118px;
  }
  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-self: start;
    gap: .25rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .primary-nav a {
    min-height: 56px;
    padding: .9rem 1rem;
    font-size: 1.02rem;
    white-space: nowrap;
  }
  .primary-nav button {
    min-height: 56px;
    padding: .9rem 1rem;
    font-size: 1.02rem;
    white-space: nowrap;
  }
  .account-button {
    min-height: 60px;
    padding: .6rem 1rem .6rem .75rem;
    gap: .75rem;
  }
  .account-avatar {
    width: 42px;
    height: 42px;
    font-size: .84rem;
  }
  .account-label {
    font-size: 1rem;
    color: var(--text);
  }
  .account-menu {
    top: calc(100% + .75rem);
  }
  .section-rail {
    position: fixed;
    right: clamp(.8rem, 2vw, 1.25rem);
    top: 50%;
    z-index: 75;
    transform: translateY(-50%);
    display: grid;
    gap: .55rem;
    justify-items: end;
    pointer-events: none;
  }
  .rail-items {
    display: grid;
    gap: .55rem;
    justify-items: end;
  }
  .section-rail button,
  .section-rail a {
    pointer-events: auto;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: .45rem;
    min-height: 28px;
    padding: .15rem;
    border-radius: 999px;
  }
  .section-rail span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  .section-rail strong {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    color: var(--text);
    font-size: .78rem;
    transition: max-width .18s ease, opacity .18s ease;
  }
  .section-rail button:hover strong,
  .section-rail button:focus-visible strong,
  .section-rail a:hover strong,
  .section-rail a:focus-visible strong,
  .section-rail .is-active strong,
  .section-rail .is-neighbor strong {
    max-width: 110px;
    opacity: 1;
  }
  .section-rail .is-neighbor strong {
    color: var(--muted);
    opacity: .72;
  }
  .section-rail .is-active span {
    background: var(--accent);
  }
  .rail-step {
    width: 34px;
    height: 34px;
    justify-content: center;
    border: 1px solid var(--line) !important;
    background: var(--bg-panel) !important;
    color: var(--text) !important;
    cursor: pointer;
  }
  .rail-step:disabled {
    opacity: .38;
    cursor: default;
    box-shadow: none;
  }
  .hero .section-inner {
    max-width: min(100%, 1460px);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(460px, 610px);
    gap: clamp(2.75rem, 4vw, 4.75rem);
  }
  .hero-copy-block {
    max-width: 980px;
    padding-right: clamp(.75rem, 2vw, 2.2rem);
  }
  .hero-logo-mark {
    width: min(500px, 42vw);
    min-height: 220px;
  }
  .hero-headline {
    font-size: clamp(2rem, 3.25vw, 3.7rem);
    max-width: 14ch;
  }
  .hero-copy {
    max-width: 700px;
    font-size: 1.12rem;
  }
  .hero-panel {
    justify-self: end;
    width: min(100%, 610px);
    max-width: 610px;
    padding: 1.55rem;
  }
  .page-hero {
    padding-top: clamp(4.4rem, 6vw, 6.2rem);
    padding-bottom: 2.5rem;
  }
  .profile-studio-page .page-hero {
    padding-top: clamp(2.4rem, 3.4vw, 3.1rem);
    padding-bottom: .8rem;
  }
  .page-hero .section-inner {
    max-width: min(100%, 1160px);
  }
  .page-hero h1 {
    font-size: clamp(3rem, 4.4vw, 4.7rem);
  }
  .page-hero-compact {
    padding-top: clamp(3.5rem, 4vw, 4.4rem);
    padding-bottom: 1rem;
  }
  .profile-studio-page .page-hero-compact {
    padding-top: clamp(1.95rem, 2.7vw, 2.45rem);
    padding-bottom: .35rem;
  }
  .profile-studio-page .page-hero .profile-studio-shell {
    max-width: min(100%, 1200px);
  }
  .profile-studio-section .profile-studio-shell {
    max-width: min(100%, 1200px);
  }
  .auth-layout.signup-layout {
    grid-template-columns: 1fr 1.08fr;
  }
  .auth-card,
  .signup-card {
    justify-self: end;
    width: min(100%, 580px);
  }
  .auth-layout {
    gap: clamp(1.8rem, 3vw, 3rem);
  }
  .dashboard-home .section-inner {
    max-width: min(100%, 1400px);
  }
  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
  }
  .dashboard-layout {
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
  }
  .quick-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roster-toolbar {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1.1fr) auto;
    gap: 1rem 1.2rem;
    align-items: end;
  }
  .roster-filter-row {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
  .clean-roster-card {
    padding: 1.15rem;
  }
  .event-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
  .profile-studio-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .profile-studio-sidebar {
    position: sticky;
    top: calc(var(--header-h) + .85rem);
  }
  .profile-studio-header {
    min-height: clamp(228px, 20vw, 248px);
  }
  .profile-studio-header-content {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    align-items: center;
  }
  .profile-studio-header-side {
    justify-items: end;
    text-align: left;
    min-width: 250px;
  }
  .profile-studio-status-card {
    text-align: left;
  }
  .profile-studio-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .studio-media-grid {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
  }
  .studio-banner-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .profile-studio-banner-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: 228px;
  }
  .profile-studio-banner-hero-main {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .profile-studio-banner-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .profile-studio-banner-brief {
    align-content: start;
  }
  .banner-adjust-shell {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr);
    align-items: start;
  }
  .banner-adjust-shell > .button-row,
  .banner-adjust-shell > .muted,
  .banner-adjust-shell > label {
    grid-column: 2;
  }
  .banner-adjust-stage {
    grid-row: 1 / span 3;
  }
  .studio-skin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-studio-preferences-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-banner {
    min-height: 470px;
    padding: 6.7rem var(--shell-gutter) 1.5rem;
  }
  .profile-banner-inner {
    max-width: none;
  }
  .profile-identity-card {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: clamp(1.35rem, 2.4vw, 2rem);
    width: 100%;
    padding: clamp(1.25rem, 2.1vw, 1.7rem) clamp(1.45rem, 2.8vw, 2rem) clamp(1.2rem, 2vw, 1.65rem);
  }
  .profile-avatar-anchor {
    min-height: 210px;
    align-self: center;
  }
  .profile-avatar-anchor::before {
    width: 142px;
    height: 142px;
  }
  .profile-avatar-anchor::after {
    width: 110px;
  }
  .profile-avatar-large {
    width: 132px;
    height: 132px;
    font-size: 1.9rem;
  }
  .profile-header-main {
    gap: 1rem;
  }
  .profile-title-block {
    gap: .5rem;
    max-width: 680px;
  }
  .profile-title-block h1 {
    font-size: clamp(3.2rem, 4.5vw, 4.6rem);
  }
  .profile-username {
    font-size: 1.08rem;
  }
  .profile-bio {
    font-size: 1.04rem;
  }
  .profile-header-actions {
    gap: .75rem;
    padding-top: 0;
  }
  .profile-header-actions .btn {
    min-height: 50px;
    padding-inline: 1.15rem;
  }
  .profile-main-section {
    padding-top: 1rem;
  }
  .profile-main-section .section-inner {
    max-width: none;
  }
  .profile-main-grid {
    grid-template-columns: minmax(330px, 388px) minmax(0, 1.2fr);
    gap: 1.45rem;
  }
  .profile-right-stack {
    gap: 1.1rem;
  }
  .profile-hub-card {
    min-height: 100%;
  }
  .card { padding: 1.2rem; }
}

@media (min-width: 1180px) {
  .primary-nav a {
    padding-inline: 1.16rem;
    font-size: 1.04rem;
  }
  .primary-nav button {
    padding-inline: 1.16rem;
    font-size: 1.04rem;
  }
  .profile-banner {
    padding-inline: var(--shell-gutter);
  }
  .profile-banner-inner {
    max-width: none;
  }
  .profile-identity-card {
    grid-template-columns: 164px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
  }
  .profile-header-main {
    padding-block: .15rem;
    align-content: center;
  }
  .profile-main-section .section-inner {
    max-width: none;
  }
  .profile-main-grid {
    grid-template-columns: minmax(338px, 392px) minmax(0, 1.22fr);
    gap: 1.55rem;
  }
  .profile-right-stack {
    gap: 1.2rem;
  }
  .featured-showcase {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: stretch;
  }
  .featured-showcase-media {
    min-height: 100%;
  }
  .screenshot-showcase {
    grid-template-columns: minmax(0, 1.14fr) minmax(280px, .86fr);
    align-items: stretch;
  }
  .screenshot-rail {
    grid-template-columns: 1fr;
  }
  .profile-activity-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

body[data-page="team-studio"] {
  --shell-max: 1240px;
}
body[data-page="team-studio"] .page-hero {
  padding-top: clamp(1.8rem, 3vw, 2.45rem);
  padding-bottom: .45rem;
}
.team-studio-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
}
.team-studio-hero h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.15rem);
  overflow-wrap: normal;
  word-break: normal;
}
.team-studio-hero p {
  max-width: 46rem;
  margin: 0;
}
.team-studio-section {
  padding-top: .45rem;
}
.team-studio-layout,
.team-studio-main,
.team-studio-nav,
.team-studio-panel,
.team-studio-list,
.team-studio-card-grid,
.team-studio-inline-editor {
  display: grid;
  gap: clamp(.9rem, 1.5vw, 1.1rem);
}
.team-studio-layout > *,
.team-studio-main,
.team-studio-sidebar,
.team-studio-summary,
.team-studio-panel,
.team-studio-banner-preview {
  min-width: 0;
}
.team-studio-sidebar {
  padding: 1rem;
  align-content: start;
  align-self: start;
  gap: .85rem;
  border-radius: calc(var(--radius-soft) + 2px);
}
.team-studio-sidebar-head {
  display: grid;
  gap: .45rem;
}
.team-studio-sidebar-head h2 {
  margin: 0;
  font-size: clamp(1.38rem, 2.4vw, 1.82rem);
}
.team-studio-sidebar-head p:last-child {
  margin: 0;
  max-width: 25ch;
}
.team-studio-nav {
  align-content: start;
}
.team-studio-nav a {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: .82rem 1rem .82rem 1.1rem;
  border-radius: 16px;
  color: var(--muted);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  font-weight: 800;
  letter-spacing: .01em;
  overflow: hidden;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.team-studio-nav a::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleY(.5);
  transition: opacity .18s ease, transform .18s ease;
}
.team-studio-nav a:hover,
.team-studio-nav a.is-active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background:
    radial-gradient(circle at 14% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 12rem),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.team-studio-nav a:hover {
  transform: translateX(2px);
}
.team-studio-nav a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.team-studio-summary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(236px, 22vw, 270px);
  padding: 0;
  border-radius: calc(var(--radius-soft) + 4px);
  background-color: rgba(9, 13, 20, .92);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.team-studio-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5,8,12,.91), rgba(5,8,12,.62), rgba(5,8,12,.88)),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 30%);
  pointer-events: none;
}
.team-studio-summary-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 340px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
  min-height: inherit;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
}
.team-studio-summary-content > * {
  min-width: 0;
}
.team-studio-summary-copy {
  display: grid;
  gap: .38rem;
  max-width: 38rem;
}
.team-studio-summary-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: .98;
}
.team-studio-summary-copy p {
  margin: 0;
}
.team-studio-summary-copy h2,
.team-studio-summary-copy p,
.team-studio-summary-copy span,
.team-studio-summary-meta dd,
.team-studio-state-card p,
.team-studio-state-card strong {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
.team-studio-tag {
  color: var(--accent);
  font-weight: 850;
}
.team-studio-summary-badges,
.team-studio-list-actions,
.team-studio-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}
.team-studio-summary-side {
  display: grid;
  gap: .8rem;
  justify-items: end;
  align-content: center;
}
.team-studio-logo-preview,
.team-studio-logo-large {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 76%, transparent);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .32);
}
.team-studio-logo-large {
  width: 124px;
  height: 124px;
  font-size: 1.8rem;
}
.team-studio-state-card,
.team-studio-summary-meta {
  width: min(100%, 320px);
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line-strong) 92%, transparent);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 12rem),
    linear-gradient(135deg, rgba(10, 16, 25, .72), rgba(9, 13, 21, .56));
}
.team-studio-state-card {
  display: grid;
  gap: .35rem;
}
.team-studio-state-card p {
  margin: 0;
}
.team-studio-summary-meta {
  display: grid;
  gap: .55rem;
  margin: 0;
  border-radius: var(--radius);
}
.team-studio-summary-meta div {
  display: grid;
  gap: .1rem;
}
.team-studio-summary-meta dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team-studio-summary-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}
.team-studio-panel {
  padding: clamp(1rem, 1.6vw, 1.2rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.team-studio-panel.is-active {
  animation: studioPanelIn .18s ease both;
}
.team-studio-media-grid {
  display: grid;
  gap: 1rem;
}
.team-studio-roster-grid {
  display: grid;
  gap: 1rem;
}
.team-studio-roster-grid h4 {
  margin: 0 0 .65rem;
}
.team-studio-list-item,
.team-studio-empty {
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-soft) - 2px);
  background: rgba(255,255,255,.035);
}
.team-studio-list-item {
  display: grid;
  gap: .8rem;
}
.team-studio-list-actions .btn {
  min-height: 38px;
  padding: .55rem .8rem;
}
.team-studio-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.team-studio-item-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.team-studio-item-card .btn {
  grid-column: 1 / -1;
  justify-self: start;
}
.team-studio-item-card h3 {
  margin: .35rem 0 .2rem;
}
.team-studio-item-card p {
  margin: 0;
}
.team-studio-thumb,
.team-achievement-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.team-achievement-image {
  width: 40px;
  height: 40px;
}
.team-studio-upload-preview {
  display: grid;
  justify-items: start;
  gap: .65rem;
  padding: .85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.team-studio-upload-preview img {
  max-width: min(100%, 240px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.team-studio-media-card .btn {
  justify-self: start;
}
.team-studio-submit {
  justify-content: flex-start;
}
.team-banner-modal .crop-dialog {
  width: min(calc(100vw - 1.25rem), 1080px);
}
@media (min-width: 980px) {
  .team-studio-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .team-studio-sidebar {
    position: sticky;
    top: calc(var(--header-h) + .85rem);
  }
  .team-studio-media-grid {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
  }
  .team-studio-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 1023px) {
  .team-studio-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .team-studio-sidebar {
    position: static;
    padding: .95rem;
  }
  .team-studio-sidebar-head p:last-child {
    max-width: none;
  }
  .team-studio-nav {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .7rem;
  }
  .team-studio-summary {
    min-height: 0;
  }
  .team-studio-summary-content {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 1.1rem;
  }
  .team-studio-summary-side {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
  }
  .team-studio-state-card,
  .team-studio-summary-meta {
    width: 100%;
    max-width: none;
  }
  .team-studio-summary-side .btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  body[data-page="team-studio"] .page-hero {
    padding-top: clamp(1.65rem, 6vw, 2.15rem);
    padding-bottom: .35rem;
  }
  .team-studio-section {
    padding-top: .45rem;
  }
  .team-studio-sidebar {
    padding: .85rem;
    gap: .75rem;
  }
  .team-studio-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .55rem;
    padding-inline: .05rem;
    padding-bottom: .15rem;
    scrollbar-width: thin;
  }
  .team-studio-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: .72rem .95rem;
    border-radius: 999px;
  }
  .team-studio-nav a::before {
    inset: auto 12px 0 12px;
    width: auto;
    height: 2px;
    transform: scaleX(.4);
    transform-origin: center;
  }
  .team-studio-nav a:hover {
    transform: none;
  }
  .team-studio-nav a.is-active::before {
    transform: scaleX(1);
  }
  .team-studio-summary-content {
    padding: .95rem;
    gap: .9rem;
  }
  .team-studio-summary-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }
  .team-studio-summary-side {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .team-studio-logo-preview {
    width: 72px;
    height: 72px;
  }
  .team-studio-summary-side .btn,
  .team-studio-submit > *,
  .team-studio-list-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .team-studio-submit,
  .team-studio-list-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .team-studio-card-grid,
  .team-studio-roster-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 479px) {
  .team-studio-summary-content,
  .team-studio-panel,
  .team-studio-sidebar,
  .team-studio-list-item,
  .team-studio-empty {
    padding: .8rem;
  }
  .team-studio-nav a {
    min-height: 42px;
    padding: .65rem .85rem;
  }
  .team-studio-summary-copy p,
  .team-studio-state-card p {
    font-size: .86rem;
  }
}
