:root {
  color-scheme: light;
  --ink: #2c2c2c;
  --muted: #6d6f70;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #d3d3d3;
  --torch-red: #ed6767;
  --torch-gold: #eeb75f;
  --torch-yellow: #eceb67;
  --torch-purple: #713c97;
  --torch-lavender: #adaed7;
  --torch-green: #289a48;
  --torch-mint: #93cc86;
  --shadow: 0 18px 50px rgba(44, 44, 44, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 241, 241, 0.98)),
    repeating-linear-gradient(90deg, rgba(237, 103, 103, 0.05) 0 1px, transparent 1px 84px);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}

.spark-ray {
  position: absolute;
  width: 30px;
  height: 30px;
  transform-origin: bottom center;
}

.ray-red {
  left: -2px;
  bottom: -3px;
  background: var(--torch-red);
  transform: rotate(-24deg);
}

.ray-gold {
  left: 8px;
  bottom: -5px;
  background: var(--torch-gold);
}

.ray-green {
  right: -3px;
  bottom: -3px;
  background: var(--torch-green);
  transform: rotate(24deg);
}

.spark-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup small {
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.primary-action,
.secondary-action,
.card-link,
.card-button,
.identity-board button,
.map-pin {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.primary-action:hover,
.secondary-action:hover,
.card-link:hover,
.card-button:hover,
.identity-board button:hover,
.map-pin:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(21, 33, 38, 0.12);
  border-color: rgba(21, 33, 38, 0.28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 30px;
  align-items: stretch;
  min-height: calc(100vh - 148px);
  padding: 16px 0 36px;
}

.hero-copy {
  align-self: center;
  padding: 34px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--torch-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.45rem, 8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

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

.primary-action,
.secondary-action,
.card-link,
.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action,
.card-link {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.secondary-action,
.card-button {
  background: #fff;
}

.neighborhood-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #adaed7 0 42%, #dff0dc 42% 61%, #7f8080 61% 66%, #f1f1f1 66% 100%);
  box-shadow: var(--shadow);
}

.sun {
  position: absolute;
  top: 26px;
  right: 34px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f5c94d;
  border: 4px solid rgba(255, 255, 255, 0.72);
}

.street-skyline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28%;
  height: 28%;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.building {
  flex: 1;
  display: block;
  min-width: 42px;
  border: 3px solid rgba(38, 46, 50, 0.72);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0 12px, transparent 12px 26px), #d66f4e;
}

.b1 { height: 68%; background-color: var(--torch-gold); }
.b2 { height: 92%; background-color: var(--torch-lavender); }
.b3 { height: 76%; background-color: var(--torch-red); }
.b4 { height: 58%; background-color: var(--torch-mint); }

.gallery-path {
  position: absolute;
  inset: 58% 7% 8%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 78px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 28px rgba(20, 27, 31, 0.18);
}

.earthkin-pin { background: var(--torch-green); }
.pride-pin { background: linear-gradient(135deg, #ed6767, #eeb75f 22%, #eceb67 38%, #289a48 54%, #adaed7 72%, #713c97); }
.locked-pin { background: #6b6b6b; }

.games-section,
.identity-section {
  padding: 58px 0;
  border-top: 1px solid rgba(21, 33, 38, 0.1);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

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

.game-card {
  display: flex;
  min-height: 420px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 33, 38, 0.08);
}

.game-art {
  position: relative;
  min-height: 160px;
  overflow: hidden;
}

.earthkin-art {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f1f1f1;
}

.earthkin-art img {
  display: block;
  width: min(100%, 150px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(44, 44, 44, 0.16);
}

.pride-art {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
}

.flag-stripe { display: block; }
.red { background: var(--torch-red); }
.orange { background: var(--torch-gold); }
.yellow { background: var(--torch-yellow); }
.green { background: var(--torch-green); }
.blue { background: var(--torch-lavender); }
.violet { background: var(--torch-purple); }

.future-art {
  display: flex;
  align-items: end;
  gap: 12px;
  justify-content: center;
  background: linear-gradient(180deg, #adaed7, #f1f1f1);
}

.future-art span {
  display: block;
  width: 48px;
  height: 92px;
  border: 3px dashed rgba(21, 33, 38, 0.32);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.future-art span:nth-child(2) {
  height: 126px;
}

.future-art.night {
  background: linear-gradient(180deg, #27384a, #62736a);
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.game-kicker {
  margin: 0;
  color: var(--torch-purple);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-body p:not(.game-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.game-body .card-link,
.game-body .card-button {
  margin-top: auto;
  width: 100%;
}

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

.identity-section p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.identity-board {
  display: grid;
  gap: 12px;
}

.identity-board button {
  display: grid;
  min-height: 94px;
  padding: 16px;
  text-align: left;
}

.identity-board strong,
.identity-board span {
  display: block;
}

.identity-board span {
  color: var(--muted);
  margin-top: 4px;
}

.spark-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(21, 33, 38, 0.2);
  border-radius: 8px;
  background: #152126;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.spark-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 28px 0 34px;
  color: var(--muted);
  border-top: 1px solid rgba(21, 33, 38, 0.1);
}

.site-footer p {
  max-width: 720px;
  margin: 0;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.family-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .identity-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  h1 {
    font-size: 2.58rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .neighborhood-preview {
    min-height: 380px;
  }

  .gallery-path {
    grid-template-columns: 1fr;
    inset: 46% 8% 7%;
  }

  .map-pin {
    min-height: 54px;
  }

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

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