:root {
  --ink: #f8efd9;
  --muted: #c9bfa7;
  --navy: #09111d;
  --navy-2: #111d2c;
  --panel: #172435;
  --cream: #fff2d5;
  --cream-ink: #1c2633;
  --teal: #6fb6c6;
  --gold: #d5af62;
  --line: rgba(255, 242, 213, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(111, 182, 198, 0.16), transparent 34rem),
    linear-gradient(180deg, #09111d 0%, #101b2a 46%, #0b1320 100%);
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 29, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.button {
  border: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a:hover {
  background: rgba(255, 242, 213, 0.08);
}

.nav-links .play-link,
.button.primary {
  background: linear-gradient(135deg, var(--gold), #f2d793);
  color: #1b2531;
  box-shadow: 0 14px 30px rgba(213, 175, 98, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 242, 213, 0.08);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--navy));
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 118px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  color: var(--cream);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

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

.section.compact {
  padding-top: 42px;
}

.section-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-title h2,
.page-hero h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-title p,
.page-hero p,
.text-block p,
.card p,
.rule-list li,
.faq-item p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

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

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

.card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: rgba(23, 36, 53, 0.82);
}

.lobby-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.lobby-card h2,
.lobby-card p {
  margin-bottom: 0;
}

.field-label {
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(9, 17, 29, 0.74);
  color: var(--ink);
  font: inherit;
}

.site-input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(111, 182, 198, 0.25);
}

.lobby-result {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  background: rgba(255, 242, 213, 0.08);
}

.lobby-result h2 {
  margin-bottom: 0.5rem;
}

.lobby-copy-link,
.lobby-message {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.lobby-message.error {
  color: #ffd3c7;
}

.card img {
  width: calc(100% + 2.4rem);
  max-width: none;
  margin: -1.2rem -1.2rem 1rem;
  height: auto;
  object-fit: contain;
  border-radius: 8px 8px 0 0;
}

.card h3,
.faq-item h2 {
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.light-band {
  background: var(--cream);
  color: var(--cream-ink);
}

.light-band .section-title p,
.light-band .card p,
.light-band .rule-list li {
  color: #4b5360;
}

.light-band .card {
  border-color: rgba(28, 38, 51, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.rule-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

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

.text-block {
  max-width: 760px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 0;
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 54px 0 84px;
  }

  .split,
  .grid,
  .grid.two,
  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .section {
    align-items: flex-start;
    flex-direction: column;
  }
}
