:root {
  color-scheme: dark;
  --bg: #020204;
  --ink: #f8fafc;
  --muted: #b8c1d2;
  --dim: #7d8798;
  --panel: rgba(15, 18, 27, 0.86);
  --panel-solid: #111827;
  --panel-raised: #171f2f;
  --line: rgba(255, 255, 255, 0.13);
  --line-red: rgba(255, 49, 49, 0.34);
  --red: #ff3131;
  --red-dark: #9d0707;
  --red-soft: #ff8078;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.22), rgba(2, 2, 4, 0.9) 62%, #020204),
    url("/assets/vein-game-bg-clean.webp?v=vein-bg-20260703-1") center top / cover fixed,
    #020204;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 17%, rgba(255, 49, 49, 0.2), transparent 26%),
    radial-gradient(circle at 12% 72%, rgba(255, 49, 49, 0.14), transparent 28%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.48);
  background-size: 58px 58px;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 14px clamp(18px, 4vw, 72px);
  background: rgba(4, 7, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(255, 49, 49, 0.45);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--red-soft);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-community {
  color: #d6deec;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.site-nav,
.auth-actions {
  display: flex;
  align-items: center;
}

.site-nav {
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.site-nav a {
  color: #d6deec;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: #fff;
}

.mobile-login-link,
.mobile-register-link {
  display: none;
}

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

.login-link,
.register-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.login-link {
  padding: 0 14px;
  color: #d6deec;
}

.register-link,
.primary-action {
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff3131, #a90707);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(255, 49, 49, 0.28);
}

.secondary-action {
  padding: 0 18px;
  color: #f8fafc;
  background: rgba(15, 18, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d6deec;
  background: rgba(17, 24, 39, 0.74);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

main {
  overflow: hidden;
}

.hero-landing {
  min-height: min(640px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px) 0 clamp(42px, 7vw, 78px);
}

.hero-copy {
  max-width: 840px;
}

.eyebrow,
.feature-grid small {
  margin: 0 0 12px;
  color: var(--red-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.showcase-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
}

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

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-width: 158px;
}

.stat-strip,
.section-heading,
.feature-grid,
.showcase-section,
.site-footer {
  width: min(1260px, calc(100% - 36px));
  margin-inline: auto;
}

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

.stat-strip article {
  min-height: 96px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 49, 49, 0.22);
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.76);
  text-align: center;
}

.stat-strip strong {
  color: var(--red);
  font-size: 1.08rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.stat-strip span {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading h2,
.showcase-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p {
  margin-top: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 90px;
}

.feature-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 12px;
  background: rgba(12, 17, 26, 0.88);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-grid div {
  padding: 22px;
}

.feature-grid h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-grid p {
  margin-top: 14px;
  color: #aeb9cc;
  line-height: 1.58;
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  padding: 36px;
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.11), transparent 34%),
    rgba(8, 12, 20, 0.88);
}

.showcase-copy p {
  margin-top: 18px;
}

.showcase-copy .secondary-action {
  margin-top: 24px;
}

.map-preview {
  margin: 0;
  width: min(100%, 760px);
  aspect-ratio: 1198 / 1313;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 49, 49, 0.26);
  border-radius: 10px;
  background: rgba(6, 10, 15, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.map-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.site-footer {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 48px 18px 44px;
  border-top: 0;
  text-align: center;
  color: #dbe4f4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(255, 49, 49, 0.08)),
    rgba(0, 0, 0, 0.28);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.social-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.social-button i {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1;
}

.social-facebook {
  background: linear-gradient(135deg, #1b78ff, #1145a9);
}

.social-instagram {
  background: linear-gradient(135deg, #ffd166, #ff3131 48%, #8f24ff);
}

.social-tiktok {
  background: linear-gradient(135deg, #171b25, #050608);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-discord {
  background: linear-gradient(135deg, #7289da, #3e55b8);
}

/* 2026-07-03 hub-board landing refresh */
body {
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 49, 49, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(2, 2, 4, 0.74), #020204 72%),
    url("/assets/vein-game-bg-clean.webp?v=vein-bg-20260703-1") center top / cover fixed,
    #020204;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 49, 49, 0.08) 58.2%, transparent 59%),
    radial-gradient(circle at 82% 20%, rgba(255, 49, 49, 0.18), transparent 25%);
}

body::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    rgba(0, 0, 0, 0.5);
  background-size: 52px 52px;
}

.landing-header {
  width: min(900px, calc(100% - 18px));
  min-height: 62px;
  margin: 16px auto 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 49, 49, 0.24);
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(180deg, rgba(12, 15, 22, 0.96), rgba(5, 7, 11, 0.96)),
    #07090e;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: perspective(1300px) rotateX(1.1deg) rotateY(-1.3deg) rotateZ(-0.2deg);
  transform-origin: top center;
}

.brand {
  order: 1;
}

.site-nav {
  order: 2;
}

.auth-actions {
  order: 3;
}

.menu-button {
  order: 4;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(10, 13, 19, 0.86);
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: #d8dfec;
  font-size: 0.68rem;
}

.site-nav a:first-child,
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 49, 49, 0.12);
}

.site-nav .mobile-login-link,
.site-nav .mobile-register-link {
  display: none;
}

.login-link,
.register-link {
  min-height: 34px;
  font-size: 0.74rem;
}

.login-link {
  padding-inline: 10px;
}

.register-link {
  padding-inline: 13px;
}

.landing-board {
  width: min(900px, calc(100% - 18px));
  margin-inline: auto;
}

.landing-board {
  position: relative;
  margin-top: 12px;
  padding: clamp(10px, 1.35vw, 16px);
  border: 1px solid rgba(255, 49, 49, 0.28);
  border-radius: 10px 18px 10px 10px;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.96), rgba(3, 4, 7, 0.96));
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transform: perspective(1300px) rotateX(1.1deg) rotateY(-1.3deg) rotateZ(-0.2deg);
  transform-origin: top center;
}

.board-topline {
  position: absolute;
  inset: 9px 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 49, 49, 0.75), transparent);
  transform: rotate(-1.4deg);
  transform-origin: left center;
}

.hero-landing {
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.82fr);
  gap: clamp(12px, 2vw, 22px);
  align-items: stretch;
  margin: 0;
  padding: 20px 0 0;
}

.hero-media {
  margin: 0;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 49, 49, 0.24);
  border-radius: 8px;
  background: #06080c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  max-width: none;
  display: grid;
  align-content: center;
  padding: clamp(4px, 1vw, 16px) 0;
}

h1 {
  max-width: 360px;
  font-size: clamp(1.62rem, 3.05vw, 2.38rem);
  line-height: 1;
}

.hero-lede {
  max-width: 330px;
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 16px;
}

.primary-action,
.secondary-action,
.login-link,
.register-link {
  border-radius: 7px;
}

.hub-section {
  padding-top: 12px;
}

.hub-section > .eyebrow {
  margin-bottom: 10px;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.hub-card {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 49, 49, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 49, 49, 0.08), rgba(10, 13, 19, 0.82)),
    #0b0e14;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-card:hover,
.hub-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 49, 49, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 49, 49, 0.16), rgba(10, 13, 19, 0.88)),
    #0b0e14;
}

.hub-icon {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  color: #ff3131;
  filter: drop-shadow(0 0 9px rgba(255, 49, 49, 0.48));
}

.hub-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: #ff3131;
}

.hub-icon path {
  fill: #ff3131 !important;
}

.hub-card strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.hub-card span {
  color: #aeb9cc;
  font-size: 0.64rem;
  line-height: 1.38;
}

.hub-card small {
  align-self: end;
  color: var(--red-soft);
  font-size: 0.62rem;
  font-weight: 950;
}

.showcase-section {
  width: 100%;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.1), rgba(8, 11, 17, 0.94)),
    #080b11;
}

.showcase-copy h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.22rem);
}

.showcase-copy p {
  font-size: 0.8rem;
}

.map-preview {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 7;
  border-radius: 8px;
}

.map-preview img {
  object-fit: cover;
}

.made-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  font-size: clamp(0.78rem, 1.25vw, 0.98rem);
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.heart-beat {
  position: relative;
  width: 13px;
  height: 13px;
  display: inline-block;
  margin-inline: 2px 1px;
  transform: rotate(-45deg);
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 49, 49, 0.75);
  animation: double-heartbeat 1.35s ease-in-out infinite;
}

.heart-beat::before,
.heart-beat::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--red);
}

.heart-beat::before {
  top: -6.5px;
  left: 0;
}

.heart-beat::after {
  top: 0;
  left: 6.5px;
}

@keyframes double-heartbeat {
  0%,
  100% {
    transform: rotate(-45deg) scale(1);
  }

  12% {
    transform: rotate(-45deg) scale(1.22);
  }

  22% {
    transform: rotate(-45deg) scale(0.96);
  }

  34% {
    transform: rotate(-45deg) scale(1.16);
  }

  48% {
    transform: rotate(-45deg) scale(1);
  }
}

.copyright {
  margin-top: 10px;
  color: #d6deec;
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin-top: 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a {
  padding-inline: 12px;
}

.footer-links a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px;
}

.auth-modal.is-open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.auth-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 49, 49, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.13), transparent 38%),
    rgba(12, 16, 25, 0.98);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.62);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.auth-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 18px;
  box-shadow: 0 0 32px rgba(255, 49, 49, 0.5);
}

.auth-dialog > .eyebrow,
.auth-dialog h2 {
  text-align: center;
}

.auth-dialog h2 {
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
}

.auth-copy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #dbe4f4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: rgba(2, 6, 13, 0.82);
  outline: 0;
}

.auth-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.18);
}

.auth-form .totp-panel {
  margin-top: 2px;
}

.auth-form .totp-panel input {
  text-align: center;
  letter-spacing: 0.22em;
  font-size: 1.15rem;
  font-weight: 950;
}

.recaptcha-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  margin: 0 0 -2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.recaptcha-wrap[hidden] {
  display: none;
}

.recaptcha-wrap.is-loading {
  opacity: 0.86;
}

.recaptcha-slot {
  width: 296px;
  height: 70px;
  min-height: 70px;
  border-radius: 7px;
  background: #1f1f1f;
  overflow: hidden;
  transform-origin: top center;
}

.recaptcha-slot iframe {
  display: block;
  border: 0 !important;
  transform: translate(-4px, -4px);
}

.auth-error {
  min-height: 20px;
  color: #ffaaa5;
  font-size: 0.9rem;
  line-height: 1.4;
}

.auth-error:empty {
  display: none;
  min-height: 0;
}

.auth-submit {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff3131, #a90707);
  box-shadow: 0 16px 34px rgba(255, 49, 49, 0.26);
  font-weight: 900;
  cursor: pointer;
}

.auth-submit[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  filter: saturate(0.72);
}

.auth-submit.is-busy[disabled] {
  cursor: wait;
  filter: none;
}

.auth-switch {
  width: 100%;
  margin-top: 8px;
  border: 0;
  color: #ffb6b0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.auth-disclaimer {
  width: min(100%, 360px);
  margin: 10px auto 0;
  padding: 9px 14px;
  border: 1px solid rgba(255, 49, 49, 0.26);
  border-radius: 8px;
  color: #d6deec;
  background:
    linear-gradient(135deg, rgba(255, 49, 49, 0.08), rgba(10, 14, 22, 0.8)),
    rgba(10, 14, 22, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.auth-disclaimer span {
  display: block;
}

@media (max-width: 980px) {
  .landing-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(7, 10, 18, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: rgba(255, 49, 49, 0.13);
  }

  .mobile-login-link,
  .mobile-register-link {
    display: flex;
    margin-top: 6px;
    font-weight: 900;
  }

  .mobile-login-link {
    color: #d6deec;
    background: rgba(15, 18, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-register-link {
    color: #fff;
    background: linear-gradient(135deg, #ff3131, #a90707);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(255, 49, 49, 0.22);
  }

  .auth-actions {
    display: none;
  }

  .hero-landing,
  .showcase-section {
    grid-template-columns: 1fr;
  }

  .hero-landing {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .feature-grid img {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 760px) {
  .landing-header {
    min-height: 68px;
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 12px;
  }

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

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .brand-community {
    font-size: 0.54rem;
  }

  .menu-button {
    justify-self: end;
  }

  .hero-landing,
  .stat-strip,
  .section-heading,
  .feature-grid,
  .showcase-section,
  .site-footer {
    width: min(100% - 24px, 1260px);
  }

  .hero-landing {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .stat-strip {
    padding-bottom: 28px;
  }

  .feature-grid {
    padding-bottom: 56px;
  }

  .feature-grid img {
    aspect-ratio: 16 / 10;
  }

  .showcase-section {
    padding: 20px;
  }

  .site-footer {
    padding: 38px 12px 34px;
  }

  .auth-dialog {
    padding: 24px 18px;
  }
}

@media (max-width: 430px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .recaptcha-slot {
    transform: scale(0.88);
  }

  .site-nav {
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 1180px) {
  .hub-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .landing-header {
    width: min(100% - 24px, 1120px);
  }

  .hero-landing {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-copy {
    padding-bottom: 4px;
  }

  .showcase-section {
    grid-template-columns: 1fr;
  }

  .map-preview {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .landing-board {
    width: min(100% - 24px, 1120px);
  }

  .landing-board {
    margin-top: 12px;
    padding: 12px;
  }

  .hero-landing {
    width: 100%;
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

  .hub-card {
    min-height: 158px;
  }

  .showcase-section {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .hub-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 210px;
  }
}

/* 2026-07-04 scale-up pass: keep the reference board, make it fill the viewport more. */
.landing-header,
.landing-board {
  width: min(1080px, calc(100% - 32px));
}

.landing-header {
  min-height: 70px;
  padding: 10px 12px;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand strong {
  font-size: 1.16rem;
}

.brand small {
  font-size: 0.72rem;
}

.site-nav a {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 0.76rem;
}

.login-link,
.register-link {
  min-height: 40px;
  font-size: 0.82rem;
}

.register-link {
  padding-inline: 18px;
}

.menu-button {
  width: 42px;
  height: 42px;
}

.landing-board {
  padding: clamp(14px, 1.65vw, 20px);
}

.hero-landing {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(16px, 2.1vw, 28px);
  padding-top: 24px;
}

.hero-media {
  min-height: 300px;
}

h1 {
  max-width: 430px;
  font-size: clamp(2rem, 3.55vw, 3rem);
}

.hero-lede {
  max-width: 390px;
  font-size: 0.96rem;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 0.9rem;
}

.hub-card-grid {
  gap: 9px;
}

.hub-card {
  min-height: 165px;
  gap: 9px;
  padding: 16px 13px;
}

.hub-icon {
  width: 37px;
  height: 37px;
}

.hub-card strong {
  font-size: 0.9rem;
}

.hub-card span {
  font-size: 0.75rem;
}

.hub-card small {
  font-size: 0.7rem;
}

.showcase-section {
  gap: 20px;
  margin-top: 14px;
  padding: 18px;
}

.showcase-copy h2 {
  font-size: clamp(1.75rem, 3.15vw, 2.85rem);
}

.showcase-copy p {
  font-size: 0.95rem;
}

.map-preview {
  max-height: 280px;
}

@media (max-width: 980px) {
  .landing-header,
  .landing-board {
    width: min(100% - 24px, 1080px);
    transform: none;
  }

  .hero-landing {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 49, 49, 0.24);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(12, 15, 22, 0.98), rgba(5, 7, 11, 0.98)),
      #07090e;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.66);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 42px;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .site-nav .mobile-login-link,
  .site-nav .mobile-register-link {
    display: flex;
  }

  .site-nav .mobile-login-link {
    color: #d6deec;
    background: rgba(15, 18, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .site-nav .mobile-register-link {
    color: #fff;
    background: linear-gradient(135deg, #ff3131, #a90707);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(255, 49, 49, 0.22);
  }

  .auth-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  .landing-header {
    grid-template-columns: auto auto;
    min-height: 68px;
    padding: 10px;
  }

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

  .hero-media {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .hub-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 220px;
  }

  .landing-board {
    overflow: visible;
  }
}

/* 2026-07-04 restore: bring the public landing page back to the original cinematic layout. */
body.landing-restored {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.2), rgba(2, 2, 4, 0.9) 62%, #020204),
    url("/assets/vein-game-bg-clean.webp?v=vein-bg-20260703-1") center top / cover fixed,
    #020204;
}

body.landing-restored::before {
  background:
    radial-gradient(circle at 72% 17%, rgba(255, 49, 49, 0.2), transparent 26%),
    radial-gradient(circle at 12% 72%, rgba(255, 49, 49, 0.14), transparent 28%);
}

body.landing-restored::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(0, 0, 0, 0.48);
  background-size: 58px 58px;
}

body.landing-restored .landing-header {
  width: 100%;
  min-height: 74px;
  margin: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 22px);
  padding: 14px clamp(18px, 4vw, 72px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(4, 7, 12, 0.86);
  box-shadow: none;
  transform: none;
}

body.landing-restored .brand img {
  width: 42px;
  height: 42px;
}

body.landing-restored .brand strong {
  font-size: 1.15rem;
}

body.landing-restored .brand small {
  font-size: 0.7rem;
}

body.landing-restored .brand-community {
  font-size: 0.58rem;
}

body.landing-restored .site-nav {
  gap: clamp(12px, 2vw, 28px);
}

body.landing-restored .site-nav a {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: #d6deec;
  background: transparent;
  font-size: 0.86rem;
}

body.landing-restored .site-nav a:first-child,
body.landing-restored .site-nav a:hover {
  color: #fff;
  background: transparent;
}

body.landing-restored .auth-actions {
  display: flex;
}

body.landing-restored .login-link,
body.landing-restored .register-link {
  min-height: 40px;
  font-size: 0.86rem;
}

body.landing-restored .login-link {
  padding: 0 14px;
}

body.landing-restored .register-link {
  padding: 0 18px;
}

body.landing-restored .menu-button {
  display: none;
  width: 42px;
  height: 42px;
}

body.landing-restored .hero-landing {
  min-height: min(640px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0 clamp(52px, 7vw, 86px);
}

body.landing-restored .hero-copy {
  max-width: 820px;
  display: block;
  padding: 0;
}

body.landing-restored h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

body.landing-restored .hero-lede {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

body.landing-restored .hero-actions {
  margin-top: 30px;
}

body.landing-restored .primary-action,
body.landing-restored .secondary-action {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.86rem;
}

body.landing-restored .stat-strip,
body.landing-restored .section-heading,
body.landing-restored .feature-grid,
body.landing-restored .showcase-section,
body.landing-restored .site-footer {
  width: min(1260px, calc(100% - 36px));
  margin-inline: auto;
}

body.landing-restored .stat-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 70px;
}

body.landing-restored .stat-strip article {
  min-height: 96px;
  place-content: center;
  justify-items: center;
  padding: 18px;
  text-align: center;
}

body.landing-restored .stat-strip strong {
  font-size: 1.08rem;
}

body.landing-restored .stat-strip span {
  font-size: 1.05rem;
}

body.landing-restored .section-heading {
  max-width: 760px;
  margin-bottom: 30px;
  text-align: center;
}

body.landing-restored .section-heading h2,
body.landing-restored .showcase-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

body.landing-restored .section-heading p,
body.landing-restored .showcase-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.62;
}

body.landing-restored .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 90px;
}

body.landing-restored .feature-grid article {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

body.landing-restored .feature-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

body.landing-restored .feature-grid h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
}

body.landing-restored .showcase-section {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 5vw, 58px);
  margin-top: 0;
  padding: 36px;
  border-radius: 14px;
}

body.landing-restored .map-preview {
  width: min(100%, 760px);
  max-height: none;
  aspect-ratio: 1198 / 1313;
}

body.landing-restored .map-preview img {
  object-fit: contain;
}

body.landing-restored .site-footer {
  margin-top: 38px;
}

@media (max-width: 980px) {
  body.landing-restored .landing-header {
    grid-template-columns: auto auto;
    width: 100%;
    max-width: 100%;
    padding: 12px 18px;
  }

  body.landing-restored .menu-button {
    display: block;
    justify-self: end;
  }

  body.landing-restored .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 49, 49, 0.24);
    border-radius: 10px;
    background: rgba(7, 10, 18, 0.96);
    box-shadow: var(--shadow);
  }

  body.landing-restored .site-nav.is-open {
    display: flex;
  }

  body.landing-restored .site-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  body.landing-restored .site-nav a:hover,
  body.landing-restored .site-nav a:first-child {
    background: rgba(255, 49, 49, 0.13);
  }

  body.landing-restored .site-nav .mobile-login-link,
  body.landing-restored .site-nav .mobile-register-link {
    display: flex;
    margin-top: 6px;
  }

  body.landing-restored .site-nav .mobile-login-link {
    color: #d6deec;
    background: rgba(15, 18, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  body.landing-restored .site-nav .mobile-register-link {
    color: #fff;
    background: linear-gradient(135deg, #ff3131, #a90707);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(255, 49, 49, 0.22);
  }

  body.landing-restored .auth-actions {
    display: none;
  }

  body.landing-restored .showcase-section {
    grid-template-columns: 1fr;
  }

  body.landing-restored .feature-grid {
    grid-template-columns: 1fr;
  }

  body.landing-restored .feature-grid article {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  body.landing-restored main {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  body.landing-restored .brand img {
    width: 36px;
    height: 36px;
  }

  body.landing-restored .brand strong {
    font-size: 1rem;
  }

  body.landing-restored .brand small {
    font-size: 0.62rem;
  }

  body.landing-restored .hero-landing,
  body.landing-restored .stat-strip,
  body.landing-restored .section-heading,
  body.landing-restored .feature-grid,
  body.landing-restored .showcase-section,
  body.landing-restored .site-footer {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  body.landing-restored .hero-landing {
    min-height: auto;
    padding-top: 68px;
  }

  body.landing-restored h1 {
    max-width: 100%;
    font-size: clamp(2.36rem, 10vw, 3.28rem);
    line-height: 0.94;
  }

  body.landing-restored .hero-lede,
  body.landing-restored .section-heading p,
  body.landing-restored .showcase-copy p {
    max-width: 100%;
    font-size: 0.98rem;
  }

  body.landing-restored .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.landing-restored .hero-actions .primary-action,
  body.landing-restored .hero-actions .secondary-action {
    width: 100%;
    min-width: 0;
  }

  body.landing-restored .stat-strip {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  body.landing-restored .feature-grid {
    padding-bottom: 56px;
  }

  body.landing-restored .feature-grid img {
    aspect-ratio: 16 / 10;
  }

  body.landing-restored .showcase-section {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  body.landing-restored .site-nav {
    left: 12px;
    right: 12px;
  }
}
