:root {
  --paper: #0b0f16;
  --ink: #f7efe2;
  --muted: #c9beb0;
  --forest: #1f513a;
  --clay: #b54c2f;
  --gold: #d9a441;
  --cream: #fffaf0;
  --line: rgba(247, 239, 226, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --wallpaper: url("assets/20realms-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #05070b;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 40%, rgba(181, 76, 47, 0.16), transparent 32%),
    radial-gradient(circle at 84% 35%, rgba(217, 164, 65, 0.1), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(31, 81, 58, 0.22), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(247, 239, 226, 0.05), transparent 42%),
    linear-gradient(135deg, #05070b 0%, #0d0b09 46%, #121008 100%);
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 24px 0 12px;
}

/* Float absolute overlay headers exclusively on Home and Shop pages */
.home-page-body .site-header,
.shop-page-body .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 100;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  width: 190px;
  height: 102px;
  display: inline-block;
  flex: 0 0 auto;
  text-decoration: none;
  background: url("assets/20Realms_logo_white_trnspt.png") left center / contain no-repeat;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}

.home-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 250, 240, 0.06);
}

.home-link:hover,
.home-link[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.18);
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--cream);
}

.nav a:hover,
.site-footer a:hover {
  border-color: var(--clay);
}

.nav-player-icon {
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  transition: background 160ms;
}

.nav-player-icon:hover {
  background: rgba(181, 76, 47, 0.15);
  border-color: transparent !important;
}

.nav-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 64px;
  position: relative;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 42px -40px 18px;
  z-index: -1;
  border: 1px solid rgba(247, 239, 226, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 34%, rgba(217, 164, 65, 0.14), transparent 18%),
    radial-gradient(circle at 78% 64%, rgba(181, 76, 47, 0.13), transparent 22%),
    linear-gradient(135deg, rgba(31, 81, 58, 0.18), transparent 42%),
    rgba(255, 250, 240, 0.035);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: min(6vw, 42px);
  bottom: 34px;
  z-index: -1;
  width: clamp(96px, 18vw, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(217, 164, 65, 0.12) 35% 36%, transparent 37% 56%, rgba(181, 76, 47, 0.12) 57% 58%, transparent 59%),
    conic-gradient(from 20deg, transparent 0 12%, rgba(217, 164, 65, 0.13) 12% 13%, transparent 13% 31%, rgba(217, 164, 65, 0.13) 31% 32%, transparent 32% 100%);
  opacity: 0.85;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.page-hero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero {
  min-height: calc(100vh - 92px);
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: 48px max(16px, calc((100vw - 1120px) / 2)) 72px;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.92) 0%, rgba(5, 7, 11, 0.72) 44%, rgba(5, 7, 11, 0.18) 100%),
    var(--wallpaper) center center / cover no-repeat;
}

.hero-content {
  animation: rise 650ms ease both;
}

.eyebrow,
.panel-tag {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Fraunces", serif;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 9vw, 7.6rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 640px;
  color: #efe5d8;
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 32, 27, 0.14);
}

.button.primary {
  color: var(--cream);
  background: var(--forest);
  border-color: var(--forest);
}

.button.secondary {
  background: rgba(255, 250, 240, 0.14);
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--line);
  color: var(--cream);
  background: rgba(255, 250, 240, 0.06);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(11, 15, 22, 0.9), rgba(11, 15, 22, 0.62)),
    radial-gradient(circle at 20% 20%, rgba(217, 164, 65, 0.12), transparent 24%),
    radial-gradient(circle at 80% 74%, rgba(181, 76, 47, 0.16), transparent 30%);
  box-shadow: var(--shadow);
  animation: rise 650ms 140ms ease both;
}

.hero-panel strong {
  display: block;
  margin: 20px 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.hero-panel p,
.feature-card p,
.split p,
.contact p {
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.section::before {
  content: "";
  position: absolute;
  inset: 28px -24px;
  z-index: -1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 164, 65, 0.1), transparent 20%),
    radial-gradient(circle at 88% 76%, rgba(181, 76, 47, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(181, 76, 47, 0.08), transparent 38%, rgba(31, 81, 58, 0.12));
  opacity: 0.84;
}

.legal-content {
  width: min(980px, calc(100% - 32px));
  display: grid;
  gap: 48px;
}

.legal-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.legal-card p,
.legal-card li {
  line-height: 1.65;
}

.legal-card > :last-child {
  margin-bottom: 0;
}

.beta-signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: stretch;
}

.beta-copy {
  align-self: center;
}

.beta-copy h2 {
  max-width: 560px;
}

.beta-copy p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.beta-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 20%, rgba(217, 164, 65, 0.12), transparent 24%),
    linear-gradient(160deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.025)),
    rgba(11, 15, 22, 0.76);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.beta-form label {
  display: grid;
  gap: 8px;
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 800;
}

.beta-form input:not([type="checkbox"]),
.beta-form select,
.beta-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 239, 226, 0.2);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(255, 250, 240, 0.07);
  font: inherit;
  font-weight: 700;
}

.beta-form input:not([type="checkbox"]),
.beta-form select {
  min-height: 46px;
  padding: 0 14px;
}

.beta-form textarea {
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
}

.beta-form input:not([type="checkbox"])::placeholder,
.beta-form textarea::placeholder {
  color: rgba(247, 239, 226, 0.5);
}

.beta-form select option {
  color: #121008;
}

.beta-form .button {
  width: fit-content;
  margin-top: 4px;
  cursor: pointer;
}

.beta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.beta-account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.04);
}

.beta-account-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 38% 38%, rgba(217,164,65,0.22), transparent 52%),
    linear-gradient(135deg, rgba(181,76,47,0.3), rgba(31,81,58,0.3)),
    rgba(11,15,22,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  flex-shrink: 0;
  overflow: hidden;
}

.beta-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.beta-account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.beta-account-info span:first-child {
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
}

.beta-account-info span:last-child {
  font-size: 0.82rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.section-heading {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.feature-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 164, 65, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.03)),
    rgba(11, 15, 22, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.feature-card::before,
.update-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-top: 1px solid rgba(217, 164, 65, 0.34);
  border-right: 1px solid rgba(217, 164, 65, 0.34);
  opacity: 0.78;
}

.feature-card h2 {
  max-width: 300px;
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 2.5vw, 2.55rem);
  line-height: 1.04;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.split > p {
  margin: 0;
  font-size: 1.1rem;
}

.page-hero.features h1,
.page-hero.features > p:not(.eyebrow) {
  max-width: 600px;
}

.page-hero.features::after {
  top: 50%;
  right: min(4vw, 44px);
  bottom: auto;
  transform: translateY(-50%);
  width: clamp(160px, 22vw, 250px);
  height: clamp(160px, 22vw, 250px);
  border: 0;
  border-radius: 0;
  background: url("assets/features-art.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  opacity: 0.92;
}

.page-hero.vision h1,
.page-hero.vision > p:not(.eyebrow) {
  max-width: 560px;
}

.page-hero.vision::after {
  top: 50%;
  right: min(3vw, 32px);
  bottom: auto;
  width: clamp(220px, 28vw, 320px);
  height: clamp(220px, 28vw, 320px);
  border: 0;
  border-radius: 0;
  background: url("assets/vision-sword.png") center / contain no-repeat;
  filter:
    drop-shadow(0 1px 0 rgba(255, 250, 240, 0.95))
    drop-shadow(1px 0 0 rgba(255, 250, 240, 0.95))
    drop-shadow(0 -1px 0 rgba(255, 250, 240, 0.95))
    drop-shadow(-1px 0 0 rgba(255, 250, 240, 0.95))
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  opacity: 0.92;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: center;
}

.page-hero.updates-page h1,
.page-hero.updates-page > p:not(.eyebrow) {
  max-width: 620px;
}

.page-hero.updates-page::after {
  top: 50%;
  right: min(4vw, 44px);
  bottom: auto;
  transform: translateY(-50%);
  width: clamp(170px, 24vw, 280px);
  height: clamp(170px, 24vw, 280px);
  border: 0;
  border-radius: 0;
  background: url("assets/updates-book.jpg") center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  opacity: 0.92;
}

.contact {
  text-align: left;
}

.page-hero.contact::after {
  top: 54%;
  right: clamp(68px, 9vw, 120px);
  bottom: auto;
  width: clamp(200px, 22vw, 250px);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: url("assets/contact-d20.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
  opacity: 0.9;
  transform: translateY(-50%);
}

.contact h1,
.contact > p:not(.eyebrow) {
  max-width: 560px;
}

.contact p {
  max-width: 560px;
  margin: 18px 0 26px;
}

.contact-methods {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 26px;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 250, 240, 0.06);
  font-weight: 800;
  text-decoration: none;
}

.contact-methods a:hover {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.18);
}

.updates {
  padding-top: 84px;
}

.support-section {
  padding-top: 78px;
}

.support-header {
  margin-bottom: 48px;
}

.support-header h2 {
  max-width: 860px;
  line-height: 0.98;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.support-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 164, 65, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.03)),
    rgba(11, 15, 22, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.support-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.updates-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.updates-header h2 {
  max-width: 680px;
}

.updates-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.update-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.update-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 250, 240, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.update-tab:hover,
.update-tab.active {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.18);
}

.update-tab:hover {
  transform: translateY(-1px);
}

.shop-hero {
  width: min(1120px, calc(100% - 32px));
  min-height: 610px;
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(11, 15, 22, 0.72);
  box-shadow: var(--shadow);
}

.shop-hero-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 76px);
}

.shop-hero-copy h1 {
  max-width: 620px;
  margin: 10px 0 24px;
  font-size: clamp(3.4rem, 4.4vw, 4.6rem);
  line-height: 0.94;
}

.shop-hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.shop-hero-art {
  min-height: 540px;
  background:
    linear-gradient(90deg, rgba(11, 15, 22, 0.58), transparent 36%),
    linear-gradient(0deg, rgba(11, 15, 22, 0.5), transparent 45%),
    url("assets/20realms-hero.png") center / cover no-repeat;
}

/* Staged Merchandise CSS */
.shop-staged-products {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 0;
}

.shop-staged-products h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin-bottom: 32px;
  color: var(--cream);
  line-height: 1.05;
}

/* Shop Hero Customized Styles */
.shop-hero-full {
  margin-top: 0 !important;
  min-height: calc(100vh - 92px);
  width: 100%;
  max-width: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle, rgba(5, 7, 11, 0.4) 0%, rgba(5, 7, 11, 0.7) 100%),
    url("assets/magic_wallpaper.jpg") center center / cover no-repeat !important;
  text-align: center;
}

.shop-hero-center {
  animation: rise 650ms ease both;
  z-index: 10;
}

.shop-hero-center h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  color: var(--cream);
  margin: 0;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.01em;
}

.shop-hero-full + .shop-staged-products {
  margin-top: 72px;
}

@media (max-width: 960px) {
  .shop-hero-full {
    min-height: 480px;
  }
}

@media (max-width: 780px) {
  .brand {
    width: 140px;
    height: 75px;
  }

  .footer-branding strong {
    width: 130px;
    height: 68px;
  }

  .shop-hero-full {
    min-height: 380px;
  }
}

/* Shop Sidebar & Layout styling matching Screenshot 2026-07-28 125240 */
.shop-main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  width: min(1120px, calc(100% - 32px));
  margin: 64px auto 96px;
  align-items: start;
}

.shop-sidebar {
  background: rgba(11, 15, 22, 0.4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.sidebar-title {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.shop-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-sidebar-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 150ms ease;
  border-left: 2px solid transparent;
}

.shop-sidebar-nav a:hover {
  color: var(--cream);
  background: rgba(255, 250, 240, 0.05);
}

.shop-sidebar-nav a.active {
  color: var(--gold);
  background: rgba(217, 164, 65, 0.08);
  border-left-color: var(--gold);
}

.shop-content-area {
  display: flex;
  flex-direction: column;
}

/* Adjust staged & callout to fit nicely in content-area without duplicating margin constraints */
.shop-staged-products {
  width: 100% !important;
  margin: 0 0 48px 0 !important;
}

.shop-callout {
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 860px) {
  .shop-main-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 48px auto 72px;
  }
}

.staged-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.staged-item-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 16%, rgba(217, 164, 65, 0.05), transparent 32%),
    linear-gradient(160deg, rgba(255, 250, 240, 0.05), rgba(255, 250, 240, 0.015)),
    rgba(11, 15, 22, 0.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, border-color 220ms ease;
}

.staged-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.staged-item-image-wrap {
  aspect-ratio: 16/10;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.02);
  overflow: hidden;
  position: relative;
}

.staged-item-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staged-item-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 250, 240, 0.05);
}

.staged-item-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.staged-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.staged-item-title {
  font-family: 'Fraunces', serif;
  margin: 0;
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.15;
}

.staged-item-price {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.staged-item-badge {
  align-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}

.staged-item-badge.in-stock {
  color: #7ec49e;
  background: rgba(31, 81, 58, 0.15);
  border-color: rgba(31, 81, 58, 0.3);
}

.staged-item-badge.limited {
  color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
  border-color: rgba(217, 164, 65, 0.25);
}

.staged-item-badge.coming-soon {
  color: #f4937a;
  background: rgba(181, 76, 47, 0.12);
  border-color: rgba(181, 76, 47, 0.25);
}

.staged-item-notes {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  word-break: break-word;
}

.shop-callout {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 96px;
  padding: clamp(34px, 6vw, 66px);
  border-block: 1px solid var(--line);
  text-align: center;
  background: rgba(31, 81, 58, 0.16);
}

.shop-callout h2 {
  max-width: 760px;
  margin: 12px auto 20px;
}

.shop-callout > p:not(.eyebrow) {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.8;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

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

.update-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(217, 164, 65, 0.1), transparent 24%),
    linear-gradient(160deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.02)),
    rgba(11, 15, 22, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.update-card.featured {
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 164, 65, 0.12), transparent 28%),
    linear-gradient(160deg, rgba(31, 81, 58, 0.42), rgba(181, 76, 47, 0.14)),
    rgba(11, 15, 22, 0.82);
}

.update-card.is-hidden {
  display: none;
}

.update-category {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.update-card h3 {
  margin-top: 22px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1;
}

.update-card p {
  color: var(--muted);
  line-height: 1.75;
}

.update-card time {
  margin-top: auto;
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-template-rows: auto auto auto;
  align-items: start;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.footer-branding {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.footer-logo {
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  align-self: end;
  margin-top: -56px;
  width: clamp(112px, 14vw, 180px);
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-branding strong {
  width: 170px;
  height: 90px;
  display: inline-block;
  flex: 0 0 auto;
  color: transparent;
  background: url("assets/20Realms_logo_white_trnspt.png") left center / contain no-repeat;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}

.social-links {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-self: center;
  justify-content: center;
}

.footer-links {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 34px;
  align-items: center;
}

.footer-links a {
  width: fit-content;
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
}

.footer-controls {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.privacy-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  cursor: pointer;
}

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

.privacy-switch {
  width: 46px;
  height: 26px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(217, 164, 65, 0.44);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.08);
}

.privacy-switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.privacy-toggle input:checked + .privacy-switch {
  background: rgba(31, 81, 58, 0.72);
}

.privacy-toggle input:checked + .privacy-switch::before {
  background: var(--gold);
  transform: translateX(20px);
}

.language-select {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(217, 164, 65, 0.32);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.language-select span {
  color: var(--muted);
  font-size: 0.82rem;
}

.language-select select {
  width: 100%;
  border: 0;
  color: var(--cream);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.language-select option {
  color: #121008;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 250, 240, 0.06);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.18);
  transform: translateY(-1px);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .shop-hero-art {
    min-height: 420px;
    background-position: center 62%;
  }

  .hero {
    min-height: 480px;
  }

}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: center;
    justify-items: center;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 6px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .footer-branding {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    text-align: left;
  }

  .footer-logo {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin-top: 0;
    width: clamp(110px, 30vw, 150px);
  }

  .footer-controls {
    grid-column: 1 / -1;
    grid-row: 3;
    width: min(100%, 360px);
    justify-self: center;
    align-items: center;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 4;
    width: min(100%, 420px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-self: center;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }

  .social-links {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 380px;
    grid-template-columns: 1fr;
    padding-top: 40px;
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.84) 0%, rgba(5, 7, 11, 0.72) 48%, rgba(5, 7, 11, 0.94) 100%),
      var(--wallpaper) 35% center / cover no-repeat;
  }

  .page-hero::before,
  .section::before {
    inset-inline: -12px;
  }

  .feature-grid,
  .split,
  .beta-signup,
  .updates-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .updates-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .update-tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .updates-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .page-hero.contact::after {
    display: none;
  }

  .home-page-body .site-header,
  .shop-page-body .site-header {
    position: static;
    left: auto;
    transform: none;
    width: min(1120px, calc(100% - 24px));
    padding-top: 14px;
  }

  .support-header {
    margin-bottom: 24px;
  }

  .support-card {
    text-align: left;
    padding: 20px;
  }

  body {
    overflow-x: hidden;
  }

}

@media (max-width: 460px) {
  .site-header,
  .site-footer,
  .hero,
  .section,
  .page-hero,
  .shop-hero,
  .shop-main-layout,
  .shop-staged-products,
  .shop-callout,
  .product-main,
  .legal-content {
    width: calc(100% - 24px);
  }

  .nav {
    gap: 10px;
    font-size: 0.86rem;
  }
  h1 {
    font-size: 3rem;
  }

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

  .contact-methods a {
    width: 100%;
  }

  .shop-hero {
    margin-top: 22px;
  }

  .shop-hero-copy {
    padding: 34px 24px 38px;
  }

  .shop-hero-copy h1 {
    font-size: 3rem;
  }

  .shop-hero-art {
    min-height: 330px;
  }

  .staged-products-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 1200px) {
  .hero {
    min-height: calc(100vh - 92px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 26px;
    padding: 30px max(20px, calc((100vw - 1120px) / 2)) 44px;
  }

  h1 {
    max-width: 560px;
    font-size: clamp(2.65rem, 4.6vw, 5rem);
    line-height: 0.92;
  }

  .hero-copy {
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-panel {
    max-width: 410px;
    padding: 22px;
    justify-self: start;
  }

  .hero-panel strong {
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  }
}

@media (min-width: 2200px) {
  .hero {
    min-height: calc(100vh - 92px);
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.9fr);
    gap: 34px;
    padding: 38px max(32px, calc((100vw - 1320px) / 2)) 56px;
  }

  h1 {
    max-width: 640px;
    font-size: clamp(3.1rem, 4.4vw, 6rem);
  }

  .hero-copy {
    max-width: 580px;
    font-size: 1.08rem;
    line-height: 1.75;
  }

  .hero-panel {
    max-width: 450px;
    padding: 24px;
  }

  .nav a {
    font-size: 0.98rem;
  }
}

@media (min-width: 3000px) {
  .hero {
    min-height: calc(100vh - 92px);
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.95fr);
    gap: 42px;
    padding: 46px max(36px, calc((100vw - 1480px) / 2)) 64px;
  }

  h1 {
    max-width: 720px;
    font-size: clamp(3.8rem, 4vw, 7rem);
  }

  .hero-copy {
    max-width: 640px;
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .hero-panel {
    max-width: 500px;
    padding: 28px;
  }

  .hero-panel strong {
    font-size: clamp(2rem, 2.3vw, 3.2rem);
  }

  .nav a {
    font-size: 1.04rem;
  }
}

@media (min-width: 3200px) and (max-width: 3839px) {
  .hero {
    min-height: calc(100vh - 92px);
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.92fr);
    gap: 38px;
    padding: 42px max(34px, calc((100vw - 1400px) / 2)) 60px;
  }

  h1 {
    max-width: 680px;
    font-size: clamp(3.35rem, 3.55vw, 6.3rem);
  }

  .hero-copy {
    max-width: 610px;
    font-size: 1.14rem;
    line-height: 1.78;
  }

  .hero-panel {
    max-width: 470px;
    padding: 26px;
  }

  .hero-panel strong {
    font-size: clamp(1.9rem, 2.1vw, 2.95rem);
  }

  .nav a {
    font-size: 1.01rem;
  }
}

/* Email opt-in checkbox */
.email-optin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,250,240,0.04);
  border: 1px solid rgba(247,239,226,0.12);
  cursor: pointer;
  transition: all 160ms;
}

.email-optin-check:hover {
  background: rgba(255,250,240,0.07);
  border-color: rgba(247,239,226,0.2);
}

.email-optin-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--clay);
}

.email-optin-check label {
  cursor: pointer;
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--cream);
}
