:root {
  --charcoal: #050506;
  --panel: #111115;
  --panel-strong: #191a1f;
  --line: rgba(255, 255, 255, 0.13);
  --ivory: #f8f1e7;
  --muted: #bfb7aa;
  --gold: #ffc629;
  --gold-soft: rgba(255, 198, 41, 0.2);
  --red: #ff332b;
  --blue: #08aef4;
  --green: #93dc13;
  --purple: #a83df0;
  --mx: 50%;
  --my: 22%;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 198, 41, 0.22), transparent 23rem),
    radial-gradient(circle at calc(100% - var(--mx)) 12%, rgba(8, 174, 244, 0.08), transparent 20rem),
    linear-gradient(145deg, #090908 0%, #050506 52%, #010102 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at var(--mx) var(--my), black, transparent 58%);
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

.cursor-aura {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 1;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  opacity: 0.58;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 228, 132, 0.12), rgba(255, 198, 41, 0.055) 38%, transparent 70%);
  mix-blend-mode: screen;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(3, 3, 4, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Segoe UI Black", "Arial Black", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 950;
}

.brand img {
  width: 42px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 198, 41, 0.28));
}

.brand span span,
h1 span,
.portal span span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.nav-links a,
.header-action,
.portal,
.membership-card a {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.nav-links a:hover {
  color: var(--ivory);
}

.header-action,
.membership-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  color: #140d02;
  background: linear-gradient(135deg, #fff0a9, var(--gold) 54%, #d68a00);
  box-shadow: 0 16px 36px rgba(255, 198, 41, 0.24);
  font-weight: 950;
  line-height: 1;
}

.header-action {
  padding: 0 22px;
}

.auth-entry {
  white-space: nowrap;
}

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

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  max-width: min(280px, 34vw);
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255, 198, 41, 0.28);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(17, 17, 21, 0.86);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.profile-trigger-avatar,
.account-menu-avatar,
.signed-in-avatar,
.household-list article > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #130d03;
  background: linear-gradient(135deg, #fff0a9, var(--gold) 54%, #d68a00);
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 8px 24px rgba(255, 198, 41, 0.18);
}

.profile-trigger-avatar {
  width: 36px;
  height: 36px;
}

.profile-trigger-copy {
  display: grid;
  min-width: 0;
  text-align: left;
  line-height: 1.05;
}

.profile-trigger-copy strong {
  overflow: hidden;
  color: #fff6e9;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100svh - 96px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(255, 198, 41, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 198, 41, 0.16), transparent 11rem),
    rgba(13, 13, 16, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px);
}

.account-menu-header,
.signed-in-profile,
.household-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.account-menu-avatar {
  width: 44px;
  height: 44px;
}

.account-menu-header div,
.signed-in-profile div,
.household-list article div {
  min-width: 0;
}

.account-menu-header strong,
.signed-in-profile strong,
.household-list strong {
  display: block;
  overflow: hidden;
  color: #fff6e9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-header small,
.signed-in-profile small,
.household-list small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-plan,
.account-menu-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.account-menu-plan {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.account-menu-plan span {
  color: #fff3d7;
  font-weight: 950;
}

.account-menu-plan small {
  color: var(--muted);
  line-height: 1.35;
}

.account-menu-section {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.account-menu-section-heading,
.profile-family-summary {
  display: grid;
  gap: 3px;
}

.account-menu-section-heading span,
.profile-family-summary span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-menu-section-heading small,
.profile-family-summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.account-menu-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.account-menu-access span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 850;
}

.account-menu-access span.active {
  border-color: rgba(147, 220, 19, 0.34);
  color: #d9ff9c;
  background: rgba(147, 220, 19, 0.09);
}

.account-menu-profile-list,
.profile-family-list {
  display: grid;
  gap: 7px;
}

.menu-profile-option,
.profile-family-list article,
.profile-family-empty,
.profile-family-edit-form,
.profile-family-create-form {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.menu-profile-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--ivory);
  text-align: left;
}

.menu-profile-option > span,
.profile-family-row-main > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #130d03;
  background: linear-gradient(135deg, #fff0a9, var(--gold) 54%, #d68a00);
  font-size: 13px;
  font-weight: 950;
}

.menu-profile-option strong,
.profile-family-row-main strong {
  display: block;
  overflow: hidden;
  color: #fff6e9;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-profile-option small,
.profile-family-row-main small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-profile-option.active {
  border-color: rgba(255, 198, 41, 0.38);
  background: rgba(255, 198, 41, 0.09);
}

.menu-profile-option:disabled {
  cursor: default;
  opacity: 1;
}

.account-menu-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  color: var(--ivory);
  text-align: left;
}

.account-menu-item.compact {
  padding-block: 9px;
}

.account-menu-item span {
  color: #fff6e9;
  font-weight: 950;
}

.account-menu-item small {
  color: var(--muted);
  line-height: 1.3;
}

.account-menu-item:hover {
  border-color: rgba(255, 198, 41, 0.34);
  background: rgba(255, 198, 41, 0.1);
}

.account-menu-item:disabled,
.auth-button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.account-menu-item:disabled:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.account-menu-item.premium-action {
  border-color: rgba(255, 198, 41, 0.35);
  background: rgba(255, 198, 41, 0.11);
}

.account-menu-item.admin-menu-item {
  border-color: rgba(8, 174, 244, 0.36);
  background: rgba(8, 174, 244, 0.1);
}

.account-menu-item.admin-menu-item span {
  color: #d7f2ff;
}

.account-menu-item.sign-out span {
  color: #ffb4b0;
}

.profile-family-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 198, 41, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-family-list article {
  display: grid;
  gap: 9px;
  padding: 10px;
}

.profile-family-list article.default {
  border-color: rgba(147, 220, 19, 0.34);
  background: rgba(147, 220, 19, 0.08);
}

.profile-family-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.profile-family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-family-actions button,
.profile-family-actions span,
.profile-family-create-form button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: #130d03;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.profile-family-actions button:disabled,
.profile-family-create-form button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.profile-family-actions span {
  display: inline-grid;
  place-items: center;
  color: #d9ff9c;
  background: rgba(147, 220, 19, 0.13);
}

.profile-family-edit-form,
.profile-family-create-form {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.profile-family-edit-form input,
.profile-family-edit-form select,
.profile-family-create-form input,
.profile-family-create-form select {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.3);
  padding: 0 10px;
}

.profile-name-helper {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile-family-create-form {
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto) auto;
  align-items: center;
}

.profile-family-empty {
  margin: 0;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.realm-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  padding: clamp(24px, 4vw, 42px) clamp(16px, 3.7vw, 50px) clamp(28px, 4vw, 44px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 198, 41, 0.18);
}

.vista {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050506;
}

.vista-art,
.vista-glow,
.vista-vignette {
  position: absolute;
  inset: 0;
}

.vista-art {
  width: 100%;
  height: 124%;
  top: -24%;
  bottom: auto;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
  transform: translate3d(calc((50% - var(--mx)) * 0.004), calc((50% - var(--my)) * 0.002), 0) scale(1.05);
  transition: transform 180ms ease-out;
}

.vista-glow {
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 244, 183, 0.42), transparent 13rem),
    radial-gradient(circle at 50% 24%, rgba(255, 198, 41, 0.26), transparent 27rem),
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 198, 41, 0.16), transparent 18rem);
  mix-blend-mode: screen;
}

.vista-vignette {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.06) 28%, rgba(0, 0, 0, 0.76) 92%),
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.62) 100%);
}

.sunbreak {
  position: absolute;
  left: 50%;
  top: 3%;
  width: min(72vw, 940px);
  height: 46vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 199, 64, 0.54), rgba(255, 166, 0, 0.14) 36%, transparent 70%);
  filter: blur(10px);
}

.ridge {
  position: absolute;
  right: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(calc((50% - var(--mx)) * 0.008), calc((50% - var(--my)) * 0.006), 0) scaleX(1.08);
}

.ridge-back {
  bottom: 45%;
  height: 34%;
  opacity: 0.56;
  background:
    linear-gradient(180deg, rgba(255, 198, 41, 0.16), transparent 18%),
    linear-gradient(125deg, transparent 0 8%, #161512 8% 20%, transparent 20% 25%, #1d1b16 25% 38%, transparent 38% 45%, #131314 45% 58%, transparent 58% 62%, #1b1712 62% 76%, transparent 76%),
    linear-gradient(180deg, transparent, #060607 72%);
  clip-path: polygon(0 100%, 0 55%, 9% 41%, 16% 57%, 26% 24%, 37% 64%, 48% 30%, 56% 52%, 67% 17%, 78% 56%, 88% 28%, 100% 58%, 100% 100%);
}

.ridge-mid {
  bottom: 33%;
  height: 38%;
  opacity: 0.86;
  background:
    linear-gradient(180deg, rgba(255, 198, 41, 0.11), transparent 22%),
    linear-gradient(135deg, #11100e, #050506 72%);
  clip-path: polygon(0 100%, 0 67%, 8% 48%, 17% 63%, 25% 30%, 34% 70%, 45% 37%, 53% 62%, 62% 22%, 72% 68%, 82% 35%, 91% 58%, 100% 44%, 100% 100%);
}

.ridge-front {
  bottom: 23%;
  height: 34%;
  opacity: 0.95;
  background:
    linear-gradient(90deg, rgba(147, 220, 19, 0.06), transparent 24%, rgba(168, 61, 240, 0.05) 80%),
    linear-gradient(135deg, #0b0c0c, #030304 80%);
  clip-path: polygon(0 100%, 0 78%, 11% 58%, 22% 74%, 31% 50%, 40% 76%, 50% 55%, 58% 79%, 67% 45%, 76% 75%, 87% 54%, 100% 72%, 100% 100%);
}

.valley-light {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: min(58vw, 840px);
  height: 18vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 198, 41, 0.28), transparent 65%);
  filter: blur(10px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: min(100%, 900px);
  margin: 0 auto clamp(20px, 2.6vw, 32px);
  text-align: center;
}

.hero-copy::before {
  position: absolute;
  top: -42px;
  left: 50%;
  z-index: -1;
  width: min(54vw, 640px);
  height: 330px;
  content: "";
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, rgba(255, 244, 184, 0.34), rgba(255, 198, 41, 0.16) 32%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-mark {
  width: clamp(106px, 9.6vw, 158px);
  margin-bottom: 8px;
  filter:
    drop-shadow(0 0 18px rgba(255, 235, 157, 0.52))
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.58));
  animation: markFloat 6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 6px;
  color: #fff6e9;
  font-size: clamp(56px, 6.6vw, 98px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.88;
  text-shadow:
    0 2px 0 rgba(66, 43, 10, 0.36),
    0 16px 34px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(255, 198, 41, 0.16);
}

.tagline {
  max-width: min(100%, 48rem);
  margin-bottom: 6px;
  color: var(--ivory);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 850;
  line-height: 1.08;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.74);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.56),
    0 8px 20px rgba(0, 0, 0, 0.72);
}

.verbs {
  max-width: 100%;
  margin-bottom: 0;
  color: #f5dcc0;
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 750;
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.76);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.58),
    0 8px 18px rgba(0, 0, 0, 0.68);
}

.portal-stage {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.45vw, 20px);
  max-width: 1220px;
  margin: 0 auto;
  perspective: 1200px;
}

.portal {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: clamp(4px, 0.8vw, 9px);
  color: var(--ivory);
  transform-style: preserve-3d;
}

.portal::before {
  position: absolute;
  inset: 14% 5% 19%;
  z-index: -1;
  content: "";
  opacity: 0.34;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.34), transparent 68%);
  filter: blur(22px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.portal:hover,
.portal:focus-visible {
  transform: translateY(-7px);
}

.portal:hover::before,
.portal:focus-visible::before {
  opacity: 0.9;
  transform: scale(1.08);
}

.portal-arch {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 0.67;
  place-items: end center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 160ms ease, filter 220ms ease;
}

.portal:hover .portal-arch,
.portal:focus-visible .portal-arch {
  filter:
    drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.38))
    drop-shadow(0 38px 54px rgba(0, 0, 0, 0.62));
}

.portal-arch::before,
.portal-arch::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.portal-arch::before {
  z-index: 3;
  opacity: 0.58;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 45%), rgba(255, 255, 255, 0.16), transparent 16%);
  mix-blend-mode: screen;
}

.portal-arch::after {
  z-index: 4;
  display: none;
}

.portal-world {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translate3d(calc((50% - var(--sx, 50%)) * 0.012), calc((50% - var(--sy, 50%)) * 0.012), -20px) scale(1.02);
  transition: transform 180ms ease;
}

.portal:hover .portal-world,
.portal:focus-visible .portal-world {
  transform: translate3d(calc((50% - var(--sx, 50%)) * 0.02), calc((50% - var(--sy, 50%)) * 0.02), -20px) scale(1.06);
}

.portal-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  filter:
    drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.16))
    drop-shadow(0 28px 38px rgba(0, 0, 0, 0.58));
}

.portal-logo-wrap {
  position: absolute;
  right: 30%;
  bottom: 22%;
  left: 30%;
  z-index: 5;
  display: grid;
  place-items: center;
  transform: translateZ(42px);
  transition: transform 220ms ease, filter 220ms ease;
}

.portal-logo {
  width: 100%;
  filter:
    drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.3))
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.portal:hover .portal-logo-wrap,
.portal:focus-visible .portal-logo-wrap {
  filter:
    drop-shadow(0 0 32px rgba(var(--accent-rgb), 0.48))
    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.56));
  transform: translateZ(58px) scale(1.04);
}

.portal-name {
  position: relative;
  z-index: 20;
  margin-top: -36px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.68),
    0 10px 22px rgba(0, 0, 0, 0.8);
}

.portal-name span {
  color: var(--accent) !important;
}

.portal-action {
  position: relative;
  z-index: 20;
  display: inline-grid;
  min-width: min(100%, 130px);
  min-height: 38px;
  margin-top: 14px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.62);
  border-radius: 999px;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.54), rgba(var(--accent-rgb), 0.25));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 15px;
  font-weight: 950;
}

.flix-world {
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 120, 54, 0.34), transparent 22%),
    linear-gradient(90deg, rgba(82, 0, 0, 0.95), transparent 17% 83%, rgba(82, 0, 0, 0.95)),
    linear-gradient(180deg, #1d0303, #070202 74%);
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  background: repeating-linear-gradient(90deg, #5e0808 0 10px, #9d1510 10px 17px, #260303 17px 27px);
  opacity: 0.88;
}

.curtain-left {
  left: 0;
  transform: skewX(-8deg);
}

.curtain-right {
  right: 0;
  transform: skewX(8deg);
}

.cinema-screen {
  position: absolute;
  inset: 24% 20% 38%;
  border: 1px solid rgba(255, 198, 41, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 198, 41, 0.32), transparent 40%),
    linear-gradient(145deg, #2b160b, #060505);
}

.aisle-light {
  position: absolute;
  right: 22%;
  bottom: 0;
  left: 22%;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 198, 41, 0.1), rgba(180, 24, 10, 0.4), transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.radio-world {
  background:
    radial-gradient(circle at 28% 35%, rgba(255, 198, 41, 0.35), transparent 18%),
    radial-gradient(circle at 68% 35%, rgba(8, 174, 244, 0.34), transparent 28%),
    linear-gradient(180deg, #061a23, #060607 78%);
}

.lamp-glow {
  position: absolute;
  left: 20%;
  bottom: 28%;
  width: 26%;
  height: 30%;
  border-radius: 50% 50% 8px 8px;
  background: radial-gradient(circle, rgba(255, 206, 91, 0.74), transparent 68%);
}

.room-line {
  position: absolute;
  right: 10%;
  bottom: 24%;
  left: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 0 rgba(255, 255, 255, 0.08), 0 -42px 0 rgba(8, 174, 244, 0.13);
}

.wave-line {
  position: absolute;
  right: 18%;
  bottom: 36%;
  left: 18%;
  height: 34%;
  border: 2px solid rgba(8, 174, 244, 0.58);
  border-right: 0;
  border-left: 0;
  border-radius: 50%;
  opacity: 0.72;
  animation: wavePulse 2.8s ease-in-out infinite;
}

.wave-two {
  inset: auto 25% 40%;
  height: 22%;
  animation-delay: 0.25s;
}

.wave-three {
  inset: auto 33% 44%;
  height: 12%;
  animation-delay: 0.5s;
}

.games-world {
  image-rendering: pixelated;
  background:
    repeating-linear-gradient(0deg, rgba(147, 220, 19, 0.08) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, rgba(147, 220, 19, 0.08) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #12300f 0%, #071607 56%, #020502 100%);
}

.pixel-sky {
  position: absolute;
  inset: 0 0 36%;
  background:
    linear-gradient(180deg, rgba(98, 202, 255, 0.32), rgba(147, 220, 19, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.06) 22px 24px);
}

.pixel-cloud {
  position: absolute;
  width: 60px;
  height: 20px;
  background: #bfeaff;
  box-shadow: 20px -10px 0 #dff7ff, 40px 0 0 #98d8ff;
  opacity: 0.82;
}

.cloud-one {
  left: 18%;
  top: 24%;
  animation: pixelDrift 8s linear infinite;
}

.cloud-two {
  right: 18%;
  top: 34%;
  transform: scale(0.72);
  animation: pixelDrift 11s linear infinite reverse;
}

.pixel-steps {
  position: absolute;
  right: 10%;
  bottom: 22%;
  width: 46%;
  height: 40%;
  background:
    linear-gradient(#7ed115, #7ed115) 0 76% / 32px 32px no-repeat,
    linear-gradient(#7ed115, #7ed115) 32px 62% / 32px 32px no-repeat,
    linear-gradient(#7ed115, #7ed115) 64px 48% / 32px 32px no-repeat,
    linear-gradient(#7ed115, #7ed115) 96px 34% / 32px 32px no-repeat,
    linear-gradient(#2f6a0b, #2f6a0b) 0 100% / 100% 24px no-repeat;
}

.pixel-coin {
  position: absolute;
  left: 24%;
  top: 43%;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(255, 198, 41, 0.75);
  animation: coinBlink 1.8s steps(2) infinite;
}

.reads-world {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 238, 196, 0.34), transparent 28%),
    radial-gradient(circle at 72% 32%, rgba(168, 61, 240, 0.28), transparent 28%),
    linear-gradient(180deg, #1a0922, #070608 80%);
}

.bookcase {
  position: absolute;
  inset: 8% 10% 44%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, #3b183f 0 16px, #6c2d80 16px 24px, #2a122c 24px 36px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  opacity: 0.72;
}

.page-glow {
  position: absolute;
  right: 16%;
  bottom: 22%;
  left: 16%;
  height: 36%;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 232, 188, 0.64), transparent 68%);
}

.open-page {
  position: absolute;
  right: 20%;
  bottom: 24%;
  left: 20%;
  height: 34%;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(90deg, #f2dfbd 0 49%, #c9aa76 50%, #f6e6c8 51%);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.28);
}

.script-line {
  position: absolute;
  z-index: 2;
  right: 27%;
  left: 27%;
  height: 3px;
  border-radius: 999px;
  background: rgba(74, 42, 26, 0.45);
}

.line-one {
  bottom: 39%;
}

.line-two {
  bottom: 34%;
  left: 33%;
}

.promise-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: clamp(24px, 3vw, 42px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 198, 41, 0.18);
}

.promise-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  min-width: 0;
  padding: 6px 10px;
}

.promise-strip strong {
  color: #ffe6a2;
  font-size: 16px;
}

.promise-strip p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.promise-icon {
  position: relative;
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 198, 41, 0.5);
  border-radius: 8px;
}

.shield-icon {
  border: 0;
}

.shield-icon::before,
.shield-icon::after {
  position: absolute;
  content: "";
  clip-path: polygon(50% 0, 88% 16%, 82% 70%, 50% 100%, 18% 70%, 12% 16%);
}

.shield-icon::before {
  inset: 4px 7px;
  background: var(--gold);
}

.shield-icon::after {
  inset: 8px 11px 10px;
  background: #050506;
}

.people-icon::before,
.people-icon::after,
.devices-icon::before,
.devices-icon::after {
  position: absolute;
  content: "";
}

.people-icon::before {
  inset: 7px 12px 17px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.people-icon::after {
  right: 6px;
  bottom: 6px;
  left: 6px;
  height: 12px;
  border: 2px solid var(--gold);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom: 0;
}

.devices-icon::before {
  inset: 7px 8px 12px;
  border: 2px solid var(--gold);
  border-radius: 3px;
}

.devices-icon::after {
  right: 11px;
  bottom: 6px;
  left: 11px;
  height: 2px;
  background: var(--gold);
  box-shadow: 9px 0 0 var(--gold), -9px 0 0 var(--gold);
}

.account-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(20px, 4vw, 52px);
  align-items: stretch;
  padding: clamp(52px, 7vw, 90px) clamp(16px, 4vw, 56px);
  border-block: 1px solid rgba(255, 198, 41, 0.16);
  background:
    radial-gradient(circle at 84% 18%, rgba(8, 174, 244, 0.12), transparent 22rem),
    radial-gradient(circle at 18% 80%, rgba(147, 220, 19, 0.08), transparent 20rem),
    linear-gradient(180deg, #08080a, #050506);
}

.account-hub-copy {
  display: grid;
  align-content: center;
  max-width: 780px;
}

.account-hub h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.account-lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}

.account-status-panel,
.account-form-status,
.account-console,
.account-facts article,
.access-list li {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(17, 17, 21, 0.76);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.account-status-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  max-width: 620px;
  margin-top: 18px;
  padding: 18px;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 198, 41, 0.14), 0 0 22px rgba(255, 198, 41, 0.6);
}

.account-hub[data-auth-state="signed-in"] .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(147, 220, 19, 0.14), 0 0 22px rgba(147, 220, 19, 0.55);
}

.account-hub[data-auth-state="error"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(255, 51, 43, 0.14), 0 0 22px rgba(255, 51, 43, 0.48);
}

.account-status-panel strong {
  display: block;
  margin-bottom: 5px;
  color: #fff3d7;
}

.account-status-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-form-status {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 12px;
  box-shadow: none;
}

.account-form-status strong {
  color: #fff3d7;
}

.account-form-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.account-menu-plan .account-runtime,
.account-form-status .account-runtime {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

.account-console {
  display: grid;
  align-content: start;
  padding: clamp(18px, 2.5vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(17, 17, 21, 0.86);
}

.console-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.console-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.console-heading strong {
  color: #fff6e9;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.signed-in-profile {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signed-in-avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.signed-in-profile span,
.account-section-heading span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.signed-in-profile strong {
  font-size: clamp(18px, 1.4vw, 22px);
}

.signup-consent-fields {
  display: grid;
  gap: 9px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.signup-consent-check,
.account-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: #f6ead7;
  font-size: 14px;
  line-height: 1.35;
}

.signup-consent-check {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.signup-consent-check a {
  color: #ffe6a2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup-consent-check-all {
  align-items: center;
  color: #fff6e9;
  font-size: 15px;
  font-weight: 950;
}

.signup-consent-divider {
  height: 1px;
  margin: 3px 0 1px;
  background: rgba(255, 198, 41, 0.28);
}

.account-check {
  margin-bottom: 10px;
}

.account-check.secondary {
  color: var(--muted);
}

.signup-consent-check input,
.account-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

.auth-button,
.email-auth-form input {
  min-height: 46px;
  border-radius: 8px;
}

.auth-button {
  display: inline-grid;
  width: 100%;
  place-items: center;
  padding: 0 16px;
  color: #130d03;
  background: linear-gradient(135deg, #fff0a9, var(--gold) 54%, #d68a00);
  box-shadow: 0 14px 32px rgba(255, 198, 41, 0.18);
  font-weight: 950;
}

.auth-button.google {
  margin-top: 10px;
}

.auth-button.secondary {
  color: #fff6e9;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.auth-button.ghost {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.email-auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.email-auth-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.34);
  padding: 0 14px;
}

.email-auth-form button {
  width: auto;
  white-space: nowrap;
}

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

.account-facts article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  box-shadow: none;
}

.account-facts span,
.access-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.account-facts strong,
.access-list strong {
  color: #fff6e9;
  font-size: 16px;
  line-height: 1.25;
}

.access-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.account-section-heading {
  display: grid;
  gap: 3px;
  margin: 16px 0 10px;
}

.account-section-heading small {
  color: var(--muted);
  line-height: 1.35;
}

.access-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  box-shadow: none;
}

.access-list li.active {
  border-color: rgba(147, 220, 19, 0.42);
  background: rgba(147, 220, 19, 0.09);
}

.access-list li.active strong {
  color: #d9ff9c;
}

.household-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.household-list article,
.household-empty {
  min-height: 54px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(17, 17, 21, 0.76);
}

.household-list article.active {
  border-color: rgba(255, 198, 41, 0.32);
  background: rgba(255, 198, 41, 0.08);
}

.household-list article > span {
  width: 34px;
  height: 34px;
}

.household-empty {
  color: var(--muted);
  line-height: 1.45;
}

.billing-picker {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

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

.billing-choice {
  display: grid;
  gap: 4px;
  min-height: 62px;
  min-width: 0;
  align-content: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--ivory);
  text-align: left;
  background: rgba(17, 17, 21, 0.76);
}

.billing-choice-row.compact .billing-choice {
  min-height: 42px;
  text-align: center;
}

.billing-choice span {
  color: #fff6e9;
  font-weight: 950;
}

.billing-choice strong {
  color: var(--gold);
  font-size: 15px;
}

.billing-choice small {
  color: var(--muted);
  line-height: 1.3;
}

.menu-plan-row .billing-choice {
  min-height: 94px;
}

.billing-choice.active {
  border-color: rgba(255, 198, 41, 0.44);
  background: rgba(255, 198, 41, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.auth-callback-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.auth-callback-shell {
  display: grid;
  justify-items: center;
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 198, 41, 0.25);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #111115;
  box-shadow: var(--shadow);
}

.auth-callback-shell img {
  width: 98px;
  margin-bottom: 12px;
}

.auth-callback-shell h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 8vw, 54px);
}

.auth-callback-shell p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.callback-return-link {
  color: var(--gold);
  font-weight: 950;
}

.legal-page {
  min-height: 100svh;
  padding: clamp(30px, 6vw, 72px) clamp(16px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 198, 41, 0.13), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(8, 174, 244, 0.1), transparent 22rem),
    linear-gradient(180deg, #050506, #09090d);
}

.legal-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(17, 17, 21, 0.88);
  box-shadow: var(--shadow);
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 950;
}

.legal-shell h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
}

.legal-updated {
  margin-bottom: 26px;
  color: var(--muted);
  font-weight: 800;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.legal-section h2 {
  margin-bottom: 8px;
  color: #fff6e9;
  font-size: clamp(22px, 2.4vw, 30px);
}

.legal-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-section a {
  color: #ffe6a2;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership {
  padding: clamp(54px, 7vw, 96px) clamp(16px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 198, 41, 0.13), transparent 24rem),
    linear-gradient(180deg, #050506, #09090d);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.membership-card {
  min-height: 280px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #111115;
  box-shadow: var(--shadow);
}

.featured-card {
  border-color: rgba(255, 198, 41, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255, 198, 41, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.card-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.membership-card h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.membership-card p {
  color: var(--muted);
  line-height: 1.56;
}

.membership-card a {
  min-width: 150px;
  margin-top: 12px;
  padding: 0 18px;
}

@keyframes markFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes wavePulse {
  0%,
  100% {
    opacity: 0.34;
    transform: scaleX(0.9);
  }
  50% {
    opacity: 0.88;
    transform: scaleX(1.06);
  }
}

@keyframes pixelDrift {
  0% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(14px);
  }
}

@keyframes coinBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}

@media (max-width: 1060px) {
  .portal-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .promise-strip,
  .membership-grid,
  .account-hub {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 38px;
    height: 36px;
  }

  .nav-links {
    display: none;
  }

  .realm-hero {
    min-height: auto;
    padding: 28px 12px 34px;
  }

  .hero-copy {
    margin-bottom: 14px;
  }

  .vista-art {
    top: -14%;
    height: 116%;
  }

  .hero-copy::before {
    top: -18px;
    width: 112vw;
    height: 238px;
  }

  .hero-mark {
    width: 88px;
    margin-bottom: 4px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  h1 {
    margin-bottom: 5px;
    font-size: 42px;
    line-height: 0.94;
  }

  .tagline {
    max-width: 17rem;
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.05;
  }

  .verbs {
    font-size: 15px;
  }

  .portal-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    width: min(100%, 430px);
    max-width: calc(100vw - 22px);
    align-items: start;
  }

  .portal {
    align-content: start;
    min-height: 0;
    padding: 3px 0 7px;
    overflow: visible;
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 20%, rgba(var(--accent-rgb), 0.1), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow:
      inset 0 0 0 1px rgba(var(--accent-rgb), 0.18),
      0 14px 32px rgba(0, 0, 0, 0.22);
  }

  .portal::before {
    inset: 8% 0 16%;
    opacity: 0.48;
    filter: blur(14px);
  }

  .portal-arch {
    width: min(100%, 150px);
    aspect-ratio: 0.74;
    margin-top: -2px;
  }

  .portal-world {
    inset: 2% -4% -2%;
    transform: translateZ(-20px) scale(0.96);
  }

  .portal:hover .portal-world,
  .portal:focus-visible .portal-world {
    transform: translateZ(-20px) scale(1);
  }

  .portal-art img {
    object-fit: contain;
  }

  .portal-logo-wrap {
    right: 29%;
    bottom: 22%;
    left: 29%;
  }

  .portal-name {
    margin-top: -17px;
    font-size: 16px;
    line-height: 0.96;
  }

  .portal-action {
    min-width: 72px;
    min-height: 28px;
    margin-top: 6px;
    padding: 0 10px;
    font-size: 12px;
  }

  .promise-strip div {
    padding-inline: 0;
  }

  .account-hub {
    padding: 42px 14px;
  }

  .account-facts,
  .email-auth-form,
  .billing-choice-row,
  .account-actions,
  .profile-family-create-form {
    grid-template-columns: 1fr;
  }

  .email-auth-form button {
    width: 100%;
  }

  .cursor-aura {
    display: none;
  }
}

@media (max-width: 370px) {
  .portal-stage {
    gap: 7px;
    max-width: calc(100vw - 16px);
  }

  .portal-arch {
    width: min(100%, 136px);
  }

  .portal-name {
    font-size: 15px;
  }

  .portal-action {
    min-width: 68px;
  }
}

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