@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #070a0f;
  --surface: #0d111a;
  --elevated: #141a26;
  --border: #252c3a;
  --ct: #2f80ff;
  --t: #ff9f1c;
  --success: #27d17f;
  --danger: #ff4d5e;
  --warning: #ffd166;
  --info: #38bdf8;
  --text: #f4f7fb;
  --secondary: #a7b0c0;
  --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 128, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(255, 159, 28, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.72rem;
  box-shadow: 0 0 22px rgba(47, 128, 255, 0.24);
}

.nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.locale-switcher {
  display: inline-flex;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.52);
  padding: 0.18rem;
}

.locale-switcher button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.48rem;
}

.locale-switcher button.active {
  background: rgba(47, 128, 255, 0.18);
  color: var(--text);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
  min-height: 72vh;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--t);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 0.98; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

.lead {
  max-width: 54rem;
  color: var(--secondary);
  font-size: 1.12rem;
  line-height: 1.65;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.button,
form button {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
form button:hover { transform: translateY(-1px); border-color: var(--ct); }

.button:disabled,
form button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.primary,
form button { background: linear-gradient(135deg, var(--ct), #38bdf8); color: white; }
.ghost { background: rgba(13, 17, 26, 0.72); color: var(--secondary); }

.panel,
.features article,
.price-card,
.register,
form {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.88), rgba(13, 17, 26, 0.84));
  border-radius: 1.5rem;
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
}

.panel {
  min-height: 420px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(7, 10, 15, 0.6);
}

.metric span { display: block; color: var(--muted); font-size: 0.8rem; }
.metric strong { display: block; margin-top: 0.6rem; font-size: 2.4rem; font-variant-numeric: tabular-nums; }

.chart {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 0.65rem;
  min-height: 170px;
}

.chart i {
  flex: 1;
  display: block;
  border-radius: 0.7rem 0.7rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, var(--t), var(--ct));
}

.chart i:nth-child(1) { height: 38%; }
.chart i:nth-child(2) { height: 72%; }
.chart i:nth-child(3) { height: 54%; }
.chart i:nth-child(4) { height: 88%; }
.chart i:nth-child(5) { height: 63%; }

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

.features article,
.price-card { padding: 1.25rem; }

.features span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.features strong {
  display: block;
  margin-top: 0.7rem;
  color: var(--text);
  font-size: 2.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.features p,
.price-card p,
.register p { color: var(--secondary); line-height: 1.55; }

.pricing,
.register,
.account-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.5rem;
}

.auth-shell,
.signed-in-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.88), rgba(13, 17, 26, 0.84));
  border-radius: 1.5rem;
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
  padding: 1rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.58);
  padding: 0.3rem;
  margin-bottom: 1rem;
}

.auth-tabs button {
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0.75rem 0.8rem;
}

.auth-tabs button.active {
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.92), rgba(56, 189, 248, 0.82));
  color: white;
}

.auth-form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.auth-form h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.consent-box {
  border: 1px solid rgba(37, 44, 58, 0.92);
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.58);
  padding: 0.9rem;
}

.consent-box strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.consent-box p {
  margin: 0.55rem 0 0.8rem;
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.consent-box-compact {
  display: grid;
  gap: 0.65rem;
}

.consent-check {
  margin: 0 !important;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.consent-link {
  justify-self: start;
  text-align: left;
}

.signed-in-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.signed-in-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signed-in-panel strong {
  color: var(--text);
}

.game-diversity-section {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.7rem;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(255, 159, 28, 0.11), transparent 36%),
    rgba(13, 17, 26, 0.82);
  box-shadow: 0 0 36px rgba(47, 128, 255, 0.08);
  overflow: hidden;
  padding: 1.5rem;
}

.game-diversity-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.58fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.game-diversity-head h2 {
  grid-row: span 2;
  max-width: 760px;
}

.game-diversity-head p:last-child {
  color: var(--secondary);
  line-height: 1.6;
  margin: 0;
}

.game-diversity-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.4rem;
}

.game-type-card {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(37, 44, 58, 0.92);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(20, 26, 38, 0.94), rgba(7, 10, 15, 0.78)),
    rgba(13, 17, 26, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-type-card::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ct), var(--info));
  box-shadow: 0 0 18px rgba(47, 128, 255, 0.38);
  margin-bottom: 1rem;
}

.game-type-card:nth-of-type(even)::before {
  background: linear-gradient(90deg, var(--t), var(--warning));
  box-shadow: 0 0 18px rgba(255, 159, 28, 0.42);
}

.game-type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 128, 255, 0.7);
  box-shadow: 0 18px 44px rgba(47, 128, 255, 0.12);
}

.game-type-card span,
.cross-game-profile span {
  display: block;
  color: var(--t);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-type-card strong,
.cross-game-profile strong {
  display: block;
  margin-top: 0.65rem;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.15;
}

.game-type-card p,
.cross-game-profile p {
  color: var(--secondary);
  line-height: 1.55;
}

.cross-game-profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 1.25rem;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.13), rgba(255, 159, 28, 0.08)),
    rgba(7, 10, 15, 0.58);
  padding: 1.2rem;
}

.price-grid {
  display: grid;
  gap: 1rem;
}

.price-card strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 2.2rem;
}

.price-card-premium {
  border-color: rgba(47, 128, 255, 0.72);
  box-shadow: 0 0 34px rgba(47, 128, 255, 0.14);
}

.is-disabled-plan {
  opacity: 0.72;
  filter: grayscale(0.28);
}

.is-disabled-plan button {
  background: rgba(37, 44, 58, 0.86);
  color: var(--secondary);
}

form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.payment-frame-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(13, 17, 26, 0.88));
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
}

.payment-frame-card iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.72);
}

.payment-frame-card iframe[hidden] {
  display: none;
}

.payment-result-card {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #070a0f;
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

input:focus { border-color: var(--ct); }

textarea {
  width: 100%;
  min-height: 10rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #070a0f;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  padding: 0.9rem 1rem;
  resize: vertical;
  outline: none;
}

textarea:focus { border-color: var(--ct); }

.form-link {
  color: var(--secondary);
  font-size: 0.86rem;
  text-align: center;
}

.form-link:hover { color: var(--text); }

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #070a0f;
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

select:focus { border-color: var(--ct); }

pre {
  min-height: 3rem;
  overflow: auto;
  color: var(--success);
  white-space: pre-wrap;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
}

.profile-page { padding-top: 1rem; }
.profile-hero { max-width: 780px; margin-bottom: 2rem; }

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(150px, 0.55fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-identity-card,
.profile-stat-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(47, 128, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(13, 17, 26, 0.86));
  border-radius: 1.5rem;
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
  padding: 1.2rem;
}

.profile-identity-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.profile-identity-card p:last-child {
  margin-bottom: 0;
}

.profile-stat-card {
  display: grid;
  align-content: center;
  gap: 0.45rem;
}

.profile-stat-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat-card strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.profile-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.88), rgba(13, 17, 26, 0.84));
  border-radius: 1.5rem;
  padding: 1.4rem;
}

.auth-card {
  max-width: 720px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.88), rgba(13, 17, 26, 0.84));
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
}

.auth-card h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.auth-secondary {
  margin: 1rem 0;
}

.auth-card form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.is-hidden {
  display: none !important;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  overflow-x: auto;
}

.admin-inline-action {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-inline-action:hover {
  background: rgba(47, 128, 255, 0.2);
  border-color: var(--ct);
  transform: translateY(-1px);
}

.integration-panel {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.integration-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.integration-heading h2,
.integration-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.integration-status {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.72);
  color: var(--muted);
  padding: 0.42rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.integration-status.is-connected {
  border-color: rgba(39, 209, 127, 0.55);
  color: var(--success);
}

.integration-account {
  min-height: 2.8rem;
  line-height: 1.55;
}

.integration-actions button {
  flex: 1 1 180px;
}

.integration-legal {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.brand,
.social-brand strong {
  text-transform: none !important;
}

.discord-invite-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.52);
  padding: 0.75rem;
}

.discord-invite-settings label {
  margin: 0;
}

.discord-invite-settings button,
.discord-invite-settings .inline-result {
  grid-column: 1 / -1;
}

.discord-invite-settings .inline-result {
  margin: 0;
}

.admin-action-stack,
.admin-subscription-editor {
  display: grid;
  gap: 0.55rem;
}

.admin-users-list {
  display: grid;
  gap: 1rem;
}

.admin-user-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(47, 128, 255, 0.08), transparent 42%),
    rgba(7, 10, 15, 0.55);
  padding: 1rem;
}

.admin-user-card header,
.admin-user-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-user-card header strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.admin-user-card header span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.admin-user-badges em {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(13, 17, 26, 0.82);
  color: var(--secondary);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  padding: 0.28rem 0.55rem;
}

.admin-subscription-editor {
  min-width: 280px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.admin-subscription-editor label {
  display: grid;
  gap: 0.25rem;
}

.admin-subscription-editor span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-subscription-editor select,
.admin-subscription-editor input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.88);
  color: var(--text);
  font: inherit;
  padding: 0.55rem 0.7rem;
}

.admin-login-card {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(20, 26, 38, 0.94), rgba(7, 10, 15, 0.94));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  padding: 2rem;
}

.admin-login-card h2 {
  margin: 0.35rem 0 0.75rem;
}

.admin-login-card form {
  margin-top: 1.4rem;
}

.admin-email-form {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 1fr) auto;
  padding: 0;
}

.admin-email-form .inline-result {
  grid-column: 1 / -1;
}

.admin-consent-form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

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

.admin-consent-grid fieldset {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin: 0;
  padding: 1rem;
}

.admin-consent-grid legend {
  color: var(--t);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.35rem;
}

.admin-blog-form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

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

.admin-blog-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-blog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.6);
  padding: 0.85rem;
}

.admin-blog-item span {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.admin-blog-item strong {
  display: block;
  margin-top: 0.45rem;
}

.admin-blog-item p {
  margin: 0.35rem 0 0;
  color: var(--secondary);
}

.auth-error {
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--secondary);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.78rem;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.profile-card label {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--secondary);
  font-size: 0.85rem;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 0.6rem !important;
}

.checkbox-row input {
  width: auto;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.secondary-button {
  background: rgba(13, 17, 26, 0.82);
  color: var(--text);
}

.inline-result {
  min-height: 1.4rem;
  color: var(--success);
}

.summary-list,
.match-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.summary-row,
.match-item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.6);
  padding: 0.85rem;
}

.summary-row span,
.match-item span,
.match-item em {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.is-queue-active {
  border-color: rgba(255, 159, 28, 0.56);
  background: rgba(255, 159, 28, 0.1);
  color: var(--t);
}

.queue-search-card,
.queue-party-card {
  border: 1px solid rgba(47, 128, 255, 0.42);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.14), rgba(13, 17, 26, 0.96));
  padding: 1rem;
}

.queue-search-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.queue-search-card p,
.queue-party-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.queue-pulse {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ct);
  box-shadow: 0 0 0 0 rgba(47, 128, 255, 0.5);
  animation: queue-pulse 1.6s ease-out infinite;
}

.queue-party-card header,
.queue-party-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.queue-party-card header strong {
  color: var(--success);
  font-size: 1.25rem;
}

.queue-party-meta {
  flex-wrap: wrap;
  margin: 0.65rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.queue-party-members {
  display: grid;
  gap: 0.45rem;
}

.queue-party-members > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.45rem;
}

.queue-party-members small {
  display: block;
  color: var(--muted);
}

.queue-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(47, 128, 255, 0.45);
  border-radius: 50%;
  background: rgba(47, 128, 255, 0.16);
  color: var(--text);
  font-weight: 900;
}

@keyframes queue-pulse {
  70% { box-shadow: 0 0 0 0.65rem rgba(47, 128, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 128, 255, 0); }
}

.summary-row strong,
.match-item strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
}

.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.2rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: #070a0f;
  padding: 0.48rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.tag-editor:focus-within {
  border-color: var(--ct);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.12);
}

.tag-list,
.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-editor input,
.tag-editor select {
  flex: 1 1 10rem;
  min-width: 8rem;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  padding: 0.45rem;
}

.tag-editor input:focus,
.tag-editor select:focus {
  border: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(47, 128, 255, 0.36);
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.12);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.38rem 0.56rem;
}

.tag-chip strong {
  margin: 0;
  color: var(--muted);
  line-height: 1;
}

.tag-chip.is-readonly {
  cursor: default;
}

.readonly-pill {
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(47, 128, 255, 0.05)),
    #070a0f;
  color: var(--text);
  font-weight: 850;
  padding: 0.9rem 1rem;
}

.match-item em {
  margin-top: 0.35rem;
  color: var(--t);
  font-style: normal;
}

.muted { color: var(--muted); }

.terms-card {
  max-width: 920px;
}

.terms-body {
  display: grid;
  gap: 1rem;
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.terms-body p {
  margin: 0;
}

.content-page {
  padding-top: 3rem;
}

.page-hero {
  max-width: 860px;
  margin-bottom: 2rem;
}

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

.release-list,
.blog-grid {
  display: grid;
  gap: 1rem;
}

.release-card,
.blog-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(13, 17, 26, 0.82));
  box-shadow: 0 0 32px rgba(47, 128, 255, 0.08);
  padding: 1.25rem;
}

.release-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.release-card h2,
.blog-card h2 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.release-card p,
.blog-card p {
  color: var(--secondary);
  line-height: 1.55;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.release-meta span,
.blog-card span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.52);
  padding: 0.35rem 0.55rem;
}

.release-card code {
  grid-column: 1 / -1;
  color: var(--muted);
  white-space: normal;
  word-break: break-all;
}

.release-card-latest {
  border-color: rgba(47, 128, 255, 0.66);
  box-shadow: 0 0 42px rgba(47, 128, 255, 0.14);
}

.archive-release {
  background: linear-gradient(180deg, rgba(13, 17, 26, 0.82), rgba(7, 10, 15, 0.7));
}

.release-history {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgba(7, 10, 15, 0.42);
  overflow: hidden;
}

.release-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  padding: 1rem 1.2rem;
}

.release-history summary::-webkit-details-marker {
  display: none;
}

.release-history summary strong {
  border: 1px solid rgba(255, 159, 28, 0.44);
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.12);
  color: var(--t);
  padding: 0.25rem 0.55rem;
}

.release-history-list {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 1rem;
}

.blog-post-card details {
  margin-top: 1rem;
}

.blog-read-link {
  display: inline-flex;
  justify-self: start;
  margin-top: 1rem;
}

.blog-post-card summary {
  color: var(--t);
  cursor: pointer;
  font-weight: 900;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.blog-card-meta time {
  color: var(--muted);
  font-size: 0.82rem;
}

.markdown-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--secondary);
  line-height: 1.65;
}

.markdown-body h2,
.markdown-body h3 {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-size: 1.18rem;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0;
}

.markdown-body a {
  color: var(--info);
}

.blog-detail-card {
  max-width: 920px;
  margin: 0 auto;
}

.blog-detail-card h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.blog-detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.blog-detail-head span,
.blog-detail-head time {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.52);
  color: var(--secondary);
  font-size: 0.82rem;
  padding: 0.35rem 0.55rem;
}

.blog-detail-body {
  margin-top: 1.5rem;
  font-size: 1.03rem;
}

.patch-notes-card {
  margin-top: 1rem;
}

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

.patch-note-list {
  display: grid;
  gap: 0.85rem;
}

.patch-note-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 10, 15, 0.52);
  padding: 1rem;
}

.patch-note-item time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.patch-note-item h3 {
  margin: 0.35rem 0;
  font-size: 1.08rem;
}

.patch-note-item p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.5;
}

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

@media (max-width: 860px) {
  .hero,
  .features,
  .pricing,
  .register,
  .account-section,
  .game-diversity-head,
  .game-diversity-grid,
  .cross-game-profile,
  .profile-grid,
  .profile-dashboard,
  .admin-consent-grid,
  .admin-blog-grid,
  .admin-subscription-editor,
  .release-layout,
  .release-card,
  .patch-note-item,
  .blog-grid,
  .admin-grid { grid-template-columns: 1fr; }

  .nav { align-items: flex-start; flex-direction: column; }
  .panel { min-height: 320px; }
  .game-diversity-head h2 { grid-row: auto; }
  .game-type-card { min-height: auto; }
  .patch-notes-head,
  .admin-blog-item,
  .admin-user-card header,
  .admin-user-card footer { align-items: stretch; flex-direction: column; }

  .admin-user-badges { justify-content: flex-start; }
}

/* Landing experience */
.landing-page {
  --landing-ink: #ffffff;
  --landing-sub: #aab3c3;
  --landing-hair: rgba(204, 220, 237, 0.54);
  --landing-glow: rgba(159, 212, 255, 0.2);
  overflow-x: hidden;
  background: #02060f;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

html:has(.landing-page) {
  scroll-behavior: smooth;
}

.landing-page a:focus-visible,
.landing-page button:focus-visible,
.landing-page input:focus-visible {
  outline: 2px solid #9fe0ff;
  outline-offset: 3px;
}

.landing-hero-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #02060f;
  color: var(--landing-ink);
}

.landing-art,
.landing-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-art {
  z-index: -3;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
  background: #03060c;
  filter: saturate(0.88) contrast(1.06) brightness(0.84);
}

.landing-veil {
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 48% at 50% 46%, rgba(3, 7, 15, 0.68) 0%, rgba(3, 7, 15, 0.34) 48%, rgba(3, 7, 15, 0) 78%),
    linear-gradient(180deg, rgba(2, 6, 15, 0.72) 0%, rgba(2, 6, 15, 0.04) 24%, rgba(2, 6, 15, 0.12) 64%, rgba(2, 6, 15, 0.82) 100%),
    linear-gradient(90deg, rgba(2, 6, 15, 0.32), transparent 25%, transparent 75%, rgba(2, 6, 15, 0.32));
}

.landing-signal-grid,
.landing-signal-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.landing-signal-grid {
  inset: -18% -10%;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.18;
  transform: perspective(900px) rotateX(65deg) translateY(28%);
  transform-origin: center bottom;
  animation: landing-energy-grid 14s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 12%, #000 54%, transparent 96%);
}

.landing-signal-scan {
  background:
    linear-gradient(180deg, transparent 18%, rgba(56, 189, 248, 0.12) 49%, transparent 79%),
    radial-gradient(circle at 50% 49%, transparent 0 18%, rgba(47, 128, 255, 0.13) 28%, transparent 43%);
  opacity: 0.5;
  animation: landing-energy-scan 5.2s ease-in-out infinite;
}

.landing-signal-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.landing-signal-map-lines path,
.landing-signal-crosshair path {
  fill: none;
  stroke: rgba(91, 187, 255, 0.2);
  stroke-width: 1;
  stroke-linecap: round;
}

.landing-signal-crosshair path {
  stroke: rgba(115, 204, 255, 0.13);
  stroke-dasharray: 4 22;
}

.landing-signal-rings circle {
  fill: none;
  stroke: rgba(181, 222, 251, 0.2);
  stroke-width: 1;
  stroke-dasharray: 7 14;
  transform-box: view-box;
  transform-origin: 800px 450px;
}

.landing-signal-rings circle:nth-child(3) {
  stroke: rgba(97, 184, 255, 0.15);
  stroke-dasharray: 4 18;
}

.landing-signal-rings circle:nth-child(4) {
  stroke: rgba(255, 199, 112, 0.11);
  stroke-dasharray: 2 26;
}

.landing-signal-rings circle:last-child {
  stroke: rgba(255, 213, 148, 0.12);
  stroke-dasharray: 3 21;
}

.landing-signal-flow {
  fill: none;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 86 914;
  stroke-dashoffset: 1000;
  filter: url("#landing-flow-glow");
}

.landing-flow-gold {
  stroke: rgba(255, 206, 126, 0.94);
}

.landing-flow-blue {
  stroke: rgba(100, 205, 255, 0.96);
}

.landing-signal-node {
  transform-box: fill-box;
  transform-origin: center;
  stroke-width: 1.5;
}

.landing-node-gold {
  fill: url("#landing-node-gold");
  stroke: rgba(255, 221, 165, 0.76);
  filter: drop-shadow(0 0 10px rgba(255, 159, 28, 0.7));
}

.landing-node-blue {
  fill: url("#landing-node-blue");
  stroke: rgba(171, 231, 255, 0.8);
  filter: drop-shadow(0 0 11px rgba(56, 189, 248, 0.76));
}

.landing-signal-core {
  fill: #ffffff;
  stroke: rgba(197, 232, 255, 0.9);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 18px rgba(197, 232, 255, 0.92));
}

@keyframes landing-energy-grid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 96px 96px, 96px 96px; }
}

@keyframes landing-energy-scan {
  0%, 100% { opacity: 0.3; transform: translateY(-7%); }
  50% { opacity: 0.68; transform: translateY(7%); }
}

@keyframes landing-energy-flow {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes landing-energy-node {
  0%, 100% { opacity: 0.42; scale: 0.74; }
  48% { opacity: 1; scale: 1.34; }
}

@keyframes landing-energy-orbit {
  to { rotate: 360deg; }
}

@keyframes landing-energy-core {
  0%, 100% { opacity: 0.58; scale: 0.7; }
  50% { opacity: 1; scale: 1.9; }
}

.landing-signal-flow { animation: landing-energy-flow 2.75s cubic-bezier(.22,.74,.26,1) infinite; }
.landing-flow-delay-1 { animation-delay: 360ms; }
.landing-flow-delay-2 { animation-delay: 720ms; }
.landing-flow-delay-3 { animation-delay: 1080ms; }
.landing-signal-node { animation: landing-energy-node 2.35s ease-in-out infinite; }
.landing-node-delay-1 { animation-delay: 280ms; }
.landing-node-delay-2 { animation-delay: 560ms; }
.landing-node-delay-3 { animation-delay: 840ms; }
.landing-signal-rings circle,
.landing-signal-crosshair path { animation: landing-energy-orbit 20s linear infinite; }
.landing-signal-rings circle:nth-child(even) { animation-direction: reverse; animation-duration: 26s; }
.landing-signal-core { animation: landing-energy-core 2.1s ease-in-out infinite; }

.landing-bar {
  position: absolute;
  z-index: 5;
  top: max(1.35rem, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: min(calc(100% - 3rem), 1180px);
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transform: translateX(-50%);
}

.landing-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--landing-ink);
  font-size: 1.28rem;
  font-variation-settings: "wght" 650;
  letter-spacing: 0;
}

.landing-brand img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(47, 128, 255, 0.28);
}

.landing-nav-toggle,
.landing-burger,
.landing-nav-scrim {
  display: none;
}

.landing-nav-panel,
.landing-menu {
  display: flex;
  align-items: center;
}

.landing-nav-panel {
  gap: 1.15rem;
}

.landing-menu {
  gap: 1.45rem;
}

.landing-menu a,
.landing-login {
  position: relative;
  color: rgba(244, 248, 253, 0.82);
  font-size: 0.82rem;
  font-variation-settings: "wght" 500;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.landing-menu a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 197, 113, 0.86), rgba(142, 210, 255, 0.86));
  scale: 0 1;
  transform-origin: left;
  transition: scale 180ms ease;
}

.landing-menu a:hover,
.landing-login:hover {
  color: var(--landing-ink);
}

.landing-menu a:hover::after {
  scale: 1 1;
}

.landing-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.landing-login svg,
.landing-cta svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.landing-login svg {
  width: 0.7rem;
  height: 0.65rem;
}

.landing-pill {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--landing-hair);
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  color: #eef4fa;
  font-size: 0.78rem;
  font-variation-settings: "wght" 590;
  white-space: nowrap;
  backdrop-filter: blur(16px) saturate(0.75);
  transition: border-color 180ms ease, background 180ms ease, translate 180ms ease;
}

.landing-pill:hover {
  border-color: rgba(212, 233, 251, 0.85);
  background: rgba(255, 255, 255, 0.09);
  translate: 0 -1px;
}

.landing-hero {
  z-index: 1;
  display: flex;
  width: min(calc(100% - 3rem), 1120px);
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 8.5rem 0 8rem;
  text-align: center;
}

.landing-eyebrow {
  margin: 0 0 1.25rem;
  color: rgba(225, 235, 246, 0.78);
  font-size: 0.72rem;
  font-variation-settings: "wght" 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing-title {
  display: grid;
  gap: 0.14em;
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: 4.25rem;
  font-variation-settings: "wght" 424;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.52);
}

.landing-title span,
.landing-lead span {
  display: block;
}

.landing-lead {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: var(--landing-sub);
  font-size: 1.06rem;
  font-variation-settings: "wght" 446;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.landing-cta,
.landing-secondary {
  position: relative;
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  font-size: 0.92rem;
  font-variation-settings: "wght" 560;
  transition: border-color 180ms ease, background 180ms ease, translate 180ms ease, box-shadow 180ms ease;
}

.landing-cta {
  min-width: 12.5rem;
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0) 45%, rgba(6, 12, 22, 0.28) 100%),
    linear-gradient(90deg, rgba(255, 226, 178, 0.17), rgba(176, 206, 238, 0.03) 55%, rgba(150, 196, 244, 0.11)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  box-shadow: 0 -2px 20px rgba(255, 224, 176, 0.16), 0 0 34px var(--landing-glow), inset 0 1px rgba(255, 251, 242, 0.42);
  backdrop-filter: blur(20px) saturate(0.55);
}

.landing-cta::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 228, 182, 0.95), rgba(226, 230, 234, 0.08) 34%, rgba(200, 228, 250, 0.72) 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.landing-cta svg {
  width: 1rem;
  height: 0.7rem;
}

.landing-cta:hover {
  translate: 0 -2px;
  box-shadow: 0 -2px 22px rgba(255, 224, 176, 0.22), 0 0 44px rgba(159, 212, 255, 0.25), inset 0 1px rgba(255, 251, 242, 0.52);
}

.landing-secondary {
  border: 1px solid rgba(203, 220, 238, 0.26);
  background: rgba(2, 6, 15, 0.32);
  color: rgba(241, 246, 252, 0.86);
  backdrop-filter: blur(12px);
}

.landing-secondary:hover {
  border-color: rgba(203, 220, 238, 0.7);
  background: rgba(2, 6, 15, 0.52);
  translate: 0 -1px;
}

.landing-features {
  display: grid;
  width: min(100%, 900px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 3.15rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(202, 219, 236, 0.2);
}

.landing-features li {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: rgba(232, 240, 248, 0.9);
  font-size: 0.78rem;
  font-variation-settings: "wght" 530;
  white-space: nowrap;
}

.landing-features svg {
  width: 0.5rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: rgba(214, 232, 250, 0.9);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-scroll-cue {
  position: absolute;
  bottom: 4.4rem;
  left: 50%;
  display: grid;
  width: 1.5rem;
  height: 2.35rem;
  place-items: start center;
  border: 1px solid rgba(214, 229, 244, 0.34);
  border-radius: 999px;
  transform: translateX(-50%);
}

.landing-scroll-cue span {
  width: 2px;
  height: 0.48rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: rgba(238, 246, 255, 0.82);
}

.landing-foot {
  position: absolute;
  right: max(1.5rem, env(safe-area-inset-right));
  bottom: max(1.3rem, env(safe-area-inset-bottom));
  left: max(1.5rem, env(safe-area-inset-left));
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(238, 246, 255, 0.68);
  font-size: 0.68rem;
  font-variation-settings: "wght" 520;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main.landing-content {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0 1.5rem;
  background:
    radial-gradient(circle at 84% 16%, rgba(47, 128, 255, 0.08), transparent 26rem),
    radial-gradient(circle at 12% 54%, rgba(255, 159, 28, 0.05), transparent 25rem),
    #070a0f;
}

.landing-section {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 6.5rem 0;
  scroll-margin-top: 1.5rem;
}

.landing-section:not(:first-child)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(138, 178, 221, 0.3) 18%, rgba(255, 197, 113, 0.26) 50%, rgba(138, 178, 221, 0.3) 82%, transparent);
}

.landing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.58fr);
  gap: 1.25rem 3rem;
  align-items: end;
}

.landing-section-head .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.landing-section-head h2 {
  max-width: 14ch;
  font-size: 3.3rem;
  font-variation-settings: "wght" 560;
  line-height: 1.02;
}

.landing-section-head > p:last-child {
  max-width: 37rem;
  margin: 0;
  color: var(--secondary);
  line-height: 1.7;
}

.landing-page .features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.6rem 0 0;
}

.landing-page .features article,
.landing-page .price-card,
.landing-page .auth-shell,
.landing-page .signed-in-panel,
.landing-page .game-type-card,
.landing-page .cross-game-profile {
  border-radius: 8px;
}

.landing-page .features article {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(47, 128, 255, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(20, 26, 38, 0.86), rgba(9, 13, 21, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, translate 180ms ease, box-shadow 180ms ease;
}

.landing-page .features article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 194, 105, 0.7), rgba(82, 176, 255, 0.76));
  opacity: 0.7;
}

.landing-page .features article:hover {
  border-color: rgba(89, 158, 255, 0.58);
  translate: 0 -3px;
  box-shadow: 0 1.2rem 3rem rgba(2, 8, 18, 0.32), inset 0 1px rgba(255, 255, 255, 0.04);
}

.landing-page .pricing,
.landing-page .account-section {
  margin-top: 0;
  padding: 6.5rem 0;
  gap: 3.5rem;
}

.landing-page .pricing > div:first-child,
.landing-page .account-section > div:first-child {
  padding-top: 0.35rem;
}

.landing-page .pricing h2,
.landing-page .account-section h2,
.landing-page .game-diversity-head h2 {
  font-size: 3.2rem;
  font-variation-settings: "wght" 570;
  line-height: 1.04;
}

.landing-page .price-grid {
  gap: 0.85rem;
}

.landing-page .price-card,
.landing-page .auth-shell,
.landing-page .signed-in-panel {
  border-color: rgba(52, 64, 84, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 44%),
    linear-gradient(180deg, rgba(20, 26, 38, 0.9), rgba(8, 12, 20, 0.94));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
}

.landing-page .price-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.landing-page .price-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 208, 137, 0.72), rgba(113, 201, 255, 0.7));
}

.landing-page .price-card-premium {
  border-color: rgba(86, 144, 219, 0.46);
  box-shadow: 0 1.5rem 4rem rgba(25, 91, 171, 0.08), inset 0 1px rgba(255, 255, 255, 0.025);
}

.landing-page .button,
.landing-page .auth-form > button[type="submit"] {
  position: relative;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(204, 220, 237, 0.42);
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  color: #f7fbff;
  font: inherit;
  font-size: 0.84rem;
  font-variation-settings: "wght" 590;
  box-shadow: 0 0 28px rgba(103, 174, 255, 0.1), inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(0.68);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, translate 180ms ease;
}

.landing-page .button.primary,
.landing-page .auth-form > button[type="submit"] {
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0) 44%, rgba(6, 12, 22, 0.25)),
    linear-gradient(90deg, rgba(255, 218, 164, 0.2), rgba(53, 129, 222, 0.32) 62%, rgba(56, 189, 248, 0.28)),
    rgba(32, 83, 150, 0.58);
}

.landing-page .button.ghost {
  background: rgba(5, 10, 20, 0.45);
  color: rgba(235, 242, 250, 0.84);
}

.landing-page .button:hover,
.landing-page .auth-form > button[type="submit"]:hover {
  border-color: rgba(202, 229, 250, 0.82);
  background-color: rgba(64, 132, 219, 0.48);
  box-shadow: 0 0 36px rgba(103, 174, 255, 0.17), inset 0 1px rgba(255, 255, 255, 0.2);
  translate: 0 -2px;
}

.landing-page .button:disabled,
.landing-page .auth-form > button:disabled {
  border-color: rgba(68, 78, 94, 0.72);
  background: rgba(32, 39, 51, 0.72);
  box-shadow: none;
  color: var(--muted);
  translate: 0;
}

.landing-page .auth-shell {
  padding: 1.1rem;
}

.landing-page .auth-tabs {
  border-radius: 999px;
  padding: 0.3rem;
  background: rgba(2, 6, 13, 0.58);
}

.landing-page .auth-tabs button {
  min-height: 2.75rem;
  border-radius: 999px;
  font-variation-settings: "wght" 560;
}

.landing-page .auth-tabs button.active {
  background:
    linear-gradient(90deg, rgba(255, 195, 112, 0.16), rgba(47, 128, 255, 0.5)),
    rgba(28, 74, 135, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.landing-page .auth-form input {
  min-height: 3.15rem;
  border-color: rgba(48, 60, 79, 0.96);
  border-radius: 8px;
  background: rgba(2, 6, 13, 0.72);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.landing-page .auth-form input:focus {
  border-color: rgba(90, 174, 255, 0.86);
  background: rgba(4, 9, 18, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.12);
  outline: none;
}

.landing-page .consent-box {
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.5);
}

.landing-page .game-diversity-section {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 6.5rem 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.landing-page .game-diversity-head {
  margin-bottom: 2.25rem;
}

.landing-page .game-type-card {
  border-color: rgba(51, 63, 82, 0.92);
  background:
    linear-gradient(180deg, rgba(24, 31, 45, 0.88), rgba(7, 11, 18, 0.94));
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.16);
}

.landing-page .cross-game-profile {
  border-color: rgba(67, 111, 164, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 195, 112, 0.07), rgba(47, 128, 255, 0.1)),
    rgba(5, 10, 19, 0.72);
}

.landing-site-footer {
  border-top: 1px solid rgba(67, 82, 104, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 128, 255, 0.08), transparent 26rem),
    #04070c;
  color: var(--text);
}

.landing-site-footer-inner {
  display: grid;
  width: min(calc(100% - 3rem), 1180px);
  grid-template-columns: minmax(15rem, 1fr) auto auto;
  gap: 3rem;
  align-items: start;
  margin: 0 auto;
  padding: 3.5rem 0;
}

.landing-footer-brand-block {
  display: grid;
  gap: 1rem;
}

.landing-footer-brand-block p {
  max-width: 28rem;
  margin: 0;
  color: var(--secondary);
  font-size: 0.84rem;
  line-height: 1.65;
}

.landing-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(7rem, auto));
  gap: 0.8rem 1.5rem;
  padding-top: 0.55rem;
}

.landing-footer-links a {
  color: var(--secondary);
  font-size: 0.78rem;
  font-variation-settings: "wght" 540;
  transition: color 160ms ease;
}

.landing-footer-links a:hover {
  color: var(--text);
}

.landing-footer-meta {
  display: grid;
  justify-items: end;
  gap: 1rem;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-variation-settings: "wght" 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-locale-switcher {
  border-color: rgba(68, 83, 105, 0.86);
  background: rgba(2, 6, 13, 0.66);
}

.landing-locale-switcher button {
  min-width: 2.4rem;
  min-height: 2rem;
}

.landing-locale-switcher button.active {
  background: linear-gradient(90deg, rgba(255, 190, 99, 0.17), rgba(47, 128, 255, 0.44));
}

.landing-section,
.landing-site-footer {
  opacity: 1;
  translate: 0 0;
}

html.landing-reveal-enabled .landing-section:not(.is-visible),
html.landing-reveal-enabled .landing-site-footer:not(.is-visible) {
  opacity: 0;
  translate: 0 2rem;
}

html.landing-reveal-enabled .landing-section,
html.landing-reveal-enabled .landing-site-footer {
  transition: opacity 720ms cubic-bezier(.2,.82,.2,1), translate 720ms cubic-bezier(.2,.82,.2,1);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes landing-wipe {
    from { clip-path: inset(0 0 100% 0); translate: 0 9px; }
    to { clip-path: inset(-10% 0 -10% 0); translate: 0 0; }
  }

  @keyframes landing-lift {
    from { opacity: 0; translate: 0 9px; }
  }

  @keyframes landing-settle {
    from { opacity: 0; translate: 0 7px; scale: 0.99; }
  }

  @keyframes landing-pulse {
    0%, 100% { opacity: 0.34; translate: 0 0; }
    50% { opacity: 0.9; translate: 0 0.45rem; }
  }

  html:not(.is-entered) .landing-brand { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 120ms backwards; }
  html:not(.is-entered) .landing-menu a:nth-child(1) { animation: landing-lift 550ms cubic-bezier(.25,.8,.35,1) 200ms backwards; }
  html:not(.is-entered) .landing-menu a:nth-child(2) { animation: landing-lift 550ms cubic-bezier(.25,.8,.35,1) 250ms backwards; }
  html:not(.is-entered) .landing-menu a:nth-child(3) { animation: landing-lift 550ms cubic-bezier(.25,.8,.35,1) 300ms backwards; }
  html:not(.is-entered) .landing-menu a:nth-child(4) { animation: landing-lift 550ms cubic-bezier(.25,.8,.35,1) 350ms backwards; }
  html:not(.is-entered) .landing-login { animation: landing-lift 550ms cubic-bezier(.25,.8,.35,1) 380ms backwards; }
  html:not(.is-entered) .landing-pill,
  html:not(.is-entered) .landing-burger { animation: landing-settle 600ms cubic-bezier(.25,.8,.35,1) 420ms backwards; }
  html:not(.is-entered) .landing-eyebrow { animation: landing-lift 650ms cubic-bezier(.25,.8,.35,1) 280ms backwards; }
  html:not(.is-entered) .landing-title span:first-child { animation: landing-wipe 950ms cubic-bezier(.16,1,.3,1) 340ms backwards; }
  html:not(.is-entered) .landing-title span:last-child { animation: landing-wipe 950ms cubic-bezier(.16,1,.3,1) 440ms backwards; }
  html:not(.is-entered) .landing-lead span:first-child { animation: landing-lift 700ms cubic-bezier(.25,.8,.35,1) 740ms backwards; }
  html:not(.is-entered) .landing-lead span:last-child { animation: landing-lift 700ms cubic-bezier(.25,.8,.35,1) 800ms backwards; }
  html:not(.is-entered) .landing-actions { animation: landing-lift 800ms cubic-bezier(.16,1,.3,1) 940ms backwards; }
  html:not(.is-entered) .landing-features li:nth-child(1) { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1080ms backwards; }
  html:not(.is-entered) .landing-features li:nth-child(2) { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1150ms backwards; }
  html:not(.is-entered) .landing-features li:nth-child(3) { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1220ms backwards; }
  html:not(.is-entered) .landing-features li:nth-child(4) { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1290ms backwards; }
  html:not(.is-entered) .landing-foot span:first-child { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1420ms backwards; }
  html:not(.is-entered) .landing-foot span:last-child { animation: landing-lift 600ms cubic-bezier(.25,.8,.35,1) 1480ms backwards; }
  .landing-scroll-cue span { animation: landing-pulse 1800ms ease-in-out infinite; }
}

@media (max-width: 900px) {
  .landing-bar {
    top: max(1rem, env(safe-area-inset-top));
    width: min(calc(100% - 2rem), 760px);
  }

  .landing-nav-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .landing-nav-scrim {
    position: fixed;
    z-index: 0;
    inset: 0;
    display: block;
    background: rgba(2, 6, 15, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .landing-burger {
    position: relative;
    z-index: 3;
    display: inline-flex;
    width: 2.85rem;
    height: 2.85rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--landing-hair);
    border-radius: 999px;
    background: rgba(5, 10, 20, 0.36);
    cursor: pointer;
    backdrop-filter: blur(16px) saturate(0.65);
  }

  .landing-burger svg {
    width: 1.18rem;
    height: auto;
    fill: none;
    stroke: #f6f9fc;
    stroke-width: 1.4;
    stroke-linecap: round;
  }

  .landing-burger path {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 220ms ease, opacity 160ms ease;
  }

  .landing-nav-panel {
    position: absolute;
    z-index: 2;
    top: calc(100% + 0.75rem);
    right: 0;
    display: flex;
    width: min(19rem, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    border: 1px solid rgba(203, 220, 238, 0.3);
    border-radius: 8px;
    padding: 0.65rem;
    background:
      linear-gradient(90deg, rgba(255, 226, 178, 0.06), rgba(150, 196, 244, 0.06)),
      rgba(5, 10, 20, 0.84);
    box-shadow: 0 1rem 2.75rem rgba(2, 6, 14, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem) scale(0.985);
    transform-origin: 100% 0;
    backdrop-filter: blur(22px) saturate(0.7);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .landing-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
  }

  .landing-menu a,
  .landing-login {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .landing-menu a::after {
    display: none;
  }

  .landing-menu a:hover,
  .landing-login:hover {
    background: rgba(255, 255, 255, 0.07);
  }

  .landing-login {
    justify-content: space-between;
  }

  .landing-pill {
    min-height: 2.9rem;
    margin-top: 0.45rem;
  }

  .landing-nav-toggle:checked ~ .landing-nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .landing-nav-toggle:checked ~ .landing-burger .b1 { transform: translateY(6px) rotate(45deg); }
  .landing-nav-toggle:checked ~ .landing-burger .b2 { opacity: 0; }
  .landing-nav-toggle:checked ~ .landing-burger .b3 { transform: translateY(-6px) rotate(-45deg); }
  .landing-nav-toggle:checked ~ .landing-nav-panel { opacity: 1; pointer-events: auto; transform: none; }

  .landing-hero {
    width: min(calc(100% - 2.5rem), 760px);
    padding-top: 7rem;
    padding-bottom: 8.5rem;
  }

  .landing-title {
    font-size: 3.35rem;
  }

  .landing-features {
    width: min(100%, 40rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin-top: 2.5rem;
  }

  .landing-foot {
    font-size: 0.62rem;
  }

  main.landing-content {
    padding-inline: 1.25rem;
  }

  .landing-section,
  .landing-page .pricing,
  .landing-page .account-section,
  .landing-page .game-diversity-section {
    padding-block: 4.75rem;
  }

  .landing-section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .landing-section-head .eyebrow {
    grid-column: auto;
  }

  .landing-section-head h2,
  .landing-page .pricing h2,
  .landing-page .account-section h2,
  .landing-page .game-diversity-head h2 {
    max-width: 17ch;
    font-size: 2.55rem;
  }

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

  .landing-page .pricing,
  .landing-page .account-section {
    gap: 2.5rem;
  }

  .landing-site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .landing-footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .landing-art {
    object-position: 50% 50%;
  }

  .landing-veil {
    background:
      radial-gradient(ellipse 110% 48% at 50% 46%, rgba(3, 7, 15, 0.78), rgba(3, 7, 15, 0.35) 58%, transparent 86%),
      linear-gradient(180deg, rgba(2, 6, 15, 0.72), rgba(2, 6, 15, 0.04) 20%, rgba(2, 6, 15, 0.16) 60%, rgba(2, 6, 15, 0.86));
  }

  .landing-signal-field {
    opacity: 0.46;
  }

  .landing-brand {
    font-size: 1.1rem;
  }

  .landing-brand img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .landing-hero {
    justify-content: center;
    padding-top: 6.7rem;
    padding-bottom: 8.5rem;
  }

  .landing-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .landing-title {
    max-width: 11ch;
    font-size: 2.5rem;
    line-height: 1.06;
  }

  .landing-lead {
    max-width: 31rem;
    margin-top: 1.3rem;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .landing-actions {
    width: 100%;
    margin-top: 1.65rem;
  }

  .landing-cta,
  .landing-secondary {
    width: min(100%, 17rem);
  }

  .landing-features {
    max-width: 20rem;
    margin-top: 2rem;
    padding-top: 1rem;
  }

  .landing-features li {
    justify-content: flex-start;
    font-size: 0.7rem;
    white-space: normal;
  }

  .landing-scroll-cue {
    display: none;
  }

  .landing-foot {
    align-items: center;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  main.landing-content {
    padding-inline: 1rem;
  }

  .landing-section,
  .landing-page .pricing,
  .landing-page .account-section,
  .landing-page .game-diversity-section {
    padding-block: 3.75rem;
  }

  .landing-section-head h2,
  .landing-page .pricing h2,
  .landing-page .account-section h2,
  .landing-page .game-diversity-head h2 {
    font-size: 2.15rem;
  }

  .landing-page .features {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .landing-page .features article {
    min-height: auto;
  }

  .landing-site-footer-inner {
    width: min(calc(100% - 2rem), 1180px);
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.75rem;
  }

  .landing-footer-brand-block {
    grid-column: auto;
  }

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

  .landing-footer-meta {
    justify-items: start;
  }
}

@media (max-height: 700px) and (min-width: 561px) {
  .landing-hero {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .landing-eyebrow { margin-bottom: 0.75rem; }
  .landing-title { font-size: 3rem; }
  .landing-lead { margin-top: 0.9rem; font-size: 0.92rem; }
  .landing-actions { margin-top: 1.1rem; }
  .landing-features { margin-top: 1.35rem; padding-top: 0.75rem; }
  .landing-scroll-cue { display: none; }
}

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

  html:not(.landing-motion-preview) .landing-signal-field {
    opacity: 0.2;
  }

  html:not(.landing-motion-preview) .landing-signal-flow {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.22;
  }

  html:not(.landing-motion-preview) .landing-signal-node,
  html:not(.landing-motion-preview) .landing-signal-core {
    animation: none;
    opacity: 0.46;
  }

  html:not(.landing-motion-preview) .landing-signal-grid,
  html:not(.landing-motion-preview) .landing-signal-scan,
  html:not(.landing-motion-preview) .landing-signal-rings circle,
  html:not(.landing-motion-preview) .landing-signal-crosshair path {
    animation: none;
  }
}

/* Shared portal shell: carries the landing brand into utility pages. */
.portal-page {
  --portal-panel: rgba(10, 15, 24, 0.88);
  --portal-panel-strong: rgba(13, 19, 30, 0.96);
  --portal-line: rgba(139, 174, 214, 0.2);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% -8%, rgba(47, 128, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 86% 8%, rgba(255, 159, 28, 0.1), transparent 28rem),
    #02060f;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.portal-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 174, 214, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 174, 214, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.portal-page > .nav,
.portal-page > main {
  position: relative;
  z-index: 1;
}

.portal-page > .nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: none;
  min-height: 68px;
  margin: 0;
  border-bottom: 1px solid rgba(139, 174, 214, 0.16);
  background: rgba(2, 6, 15, 0.84);
  padding: 0.8rem max(1.25rem, calc((100vw - 1180px) / 2 + 1.5rem));
  backdrop-filter: blur(20px) saturate(1.18);
}

.portal-page > .nav::after {
  position: absolute;
  right: max(1.25rem, calc((100vw - 1180px) / 2 + 1.5rem));
  bottom: -1px;
  width: clamp(92px, 12vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 159, 28, 0.78));
  content: "";
}

.portal-page .brand {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: 0;
}

.portal-page .brand img {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(114, 188, 255, 0.28);
  border-radius: 7px;
  box-shadow: 0 0 24px rgba(47, 128, 255, 0.24);
}

.portal-page .nav nav { gap: 0.4rem; }

.portal-page .nav nav a {
  position: relative;
  border-radius: 6px;
  color: #9ba9bb;
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.portal-page .nav nav a:hover,
.portal-page .nav nav a:focus-visible {
  background: rgba(47, 128, 255, 0.09);
  color: #fff;
}

.portal-page .content-page {
  width: min(100%, 1180px);
  min-height: calc(100vh - 68px);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
}

.portal-page .page-hero,
.portal-page .profile-hero {
  position: relative;
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-left: 1.15rem;
}

.portal-page .page-hero::before,
.portal-page .profile-hero::before {
  position: absolute;
  top: 0.3rem;
  bottom: 0.35rem;
  left: 0;
  width: 2px;
  background: linear-gradient(#58a6ff, rgba(255, 159, 28, 0.82));
  box-shadow: 0 0 18px rgba(47, 128, 255, 0.34);
  content: "";
}

.portal-page .eyebrow {
  color: #ffb443;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-page h1,
.portal-page h2,
.portal-page h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: 0;
}

.portal-page .page-hero h1,
.portal-page .profile-hero h1,
.portal-page .auth-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 680;
  line-height: 1.02;
}

.portal-page .lead {
  max-width: 720px;
  color: #9ba9bb;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  line-height: 1.75;
}

.portal-page .profile-card,
.portal-page .auth-card,
.portal-page .release-card,
.portal-page .blog-card,
.portal-page .payment-frame-card,
.portal-page .profile-identity-card,
.portal-page .profile-stat-card,
.portal-page .release-history {
  position: relative;
  border-color: var(--portal-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(47, 128, 255, 0.055), transparent 42%),
    var(--portal-panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
}

.portal-page .profile-card::before,
.portal-page .auth-card::before,
.portal-page .release-card::before,
.portal-page .blog-card::before {
  position: absolute;
  top: -1px;
  right: 14px;
  left: 14px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(84, 164, 255, 0.54), rgba(255, 159, 28, 0.3), transparent);
  content: "";
}

.portal-page .auth-card {
  width: min(100%, 600px);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.portal-page .auth-card h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.portal-page .auth-card .lead { font-size: 0.88rem; }

.portal-page input,
.portal-page textarea,
.portal-page select,
.portal-page fieldset {
  border-color: rgba(139, 174, 214, 0.2);
  border-radius: 7px;
  background: rgba(3, 8, 16, 0.82);
}

.portal-page input,
.portal-page textarea,
.portal-page select {
  min-height: 44px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.portal-page input:focus,
.portal-page textarea:focus,
.portal-page select:focus {
  border-color: rgba(80, 160, 255, 0.88);
  background: rgba(5, 11, 21, 0.96);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.1);
}

.portal-page button,
.portal-page .button {
  border-radius: 7px;
  font-family: "Sora", sans-serif;
}

.portal-page form button[type="submit"],
.portal-page .button:not(.secondary-button),
.portal-page .profile-actions button:not(.secondary-button) {
  border: 1px solid rgba(105, 177, 255, 0.76);
  background: linear-gradient(115deg, #246fe7, #36a3f6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 112, 228, 0.2), inset 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.portal-page form button[type="submit"]:hover,
.portal-page .button:not(.secondary-button):hover,
.portal-page .profile-actions button:not(.secondary-button):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(30, 112, 228, 0.28), 0 0 22px rgba(47, 128, 255, 0.12);
}

.portal-page .secondary-button,
.portal-page .admin-inline-action {
  border-color: rgba(139, 174, 214, 0.22);
  background: rgba(17, 25, 38, 0.86);
}

.portal-page .release-layout { gap: 1.25rem; }
.portal-page .release-list,
.portal-page .blog-grid { gap: 0.85rem; }

.portal-page .release-card,
.portal-page .blog-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.portal-page .release-card:hover,
.portal-page .blog-card:hover {
  border-color: rgba(84, 164, 255, 0.42);
  background:
    linear-gradient(145deg, rgba(47, 128, 255, 0.09), transparent 46%),
    var(--portal-panel-strong);
  transform: translateY(-2px);
}

.portal-page .release-card-latest {
  border-color: rgba(47, 128, 255, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28), 0 0 26px rgba(47, 128, 255, 0.09);
}

.portal-page table {
  overflow: hidden;
  border: 1px solid rgba(139, 174, 214, 0.16);
  border-radius: 7px;
  background: rgba(3, 8, 16, 0.48);
}

.portal-page th {
  background: rgba(47, 128, 255, 0.055);
  color: #dfe9f6;
  font-size: 0.66rem;
}

.portal-page td { font-size: 0.78rem; }
.portal-page tr:hover td { background: rgba(47, 128, 255, 0.035); }

.portal-page .terms-body,
.portal-page .markdown-body { color: #a6b3c4; }

@media (max-width: 860px) {
  .portal-page > .nav {
    position: relative;
    align-items: center;
    flex-direction: row;
    padding-inline: 1rem;
  }

  .portal-page .nav nav {
    justify-content: flex-end;
    gap: 0.15rem;
  }

  .portal-page .nav nav a {
    font-size: 0.62rem;
    padding-inline: 0.45rem;
  }

  .portal-page .content-page {
    padding: 3rem 1rem 4rem;
  }
}

@media (max-width: 560px) {
  .portal-page > .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-page .nav nav { justify-content: flex-start; }
  .portal-page .page-hero,
  .portal-page .profile-hero { padding-left: 0.85rem; }
}
