:root {
  --background: #0a0806;
  --foreground: #ead9b8;
  --card: #14100b;
  --card-foreground: #ead9b8;
  --popover: #100c09;
  --primary: #7a1717;
  --primary-foreground: #f3e2b8;
  --secondary: #241c14;
  --muted: #1c1610;
  --muted-foreground: #b39d78;
  --accent: #2a1c12;
  --border: rgba(201, 164, 74, 0.28);
  --gold: #c9a44a;
  --bronze: #8d6b32;
  --crimson: #7a1717;
  --crimson-deep: #4a0d0d;
  --cream: #ead9b8;
  --ink: #070504;
  --stone: #1a1510;
  --radius: 0.45rem;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cpath fill='none' stroke='%23c9a44a' stroke-width='1.15' d='M0 7h4V1h6v6h4V1h6v6h8'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site {
  position: relative;
  min-height: 100vh;
}

.meander-rail {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 70;
  height: 10px;
  background-color: var(--ink);
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-size: 28px 8px;
  background-position: center 1px;
  border-bottom: 1px solid var(--bronze);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bg-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(122, 23, 23, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 40%, rgba(201, 164, 74, 0.08), transparent 50%);
}

.glow {
  position: absolute;
  border-radius: 999px;
}

.glow-a {
  left: -10rem;
  top: -6rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(closest-side, rgba(122, 23, 23, 0.22), rgba(122, 23, 23, 0.06) 55%, transparent 75%);
}

.glow-b {
  right: -13rem;
  top: 33%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(closest-side, rgba(201, 164, 74, 0.12), rgba(141, 107, 50, 0.05) 55%, transparent 75%);
}

.glow-c {
  bottom: -16rem;
  left: 33%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(closest-side, rgba(122, 23, 23, 0.12), rgba(234, 217, 184, 0.03) 55%, transparent 75%);
}

.sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--bronze);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 1.35rem;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  animation: drop-in 0.7s ease both;
}

.nav {
  display: flex;
  width: 100%;
  max-width: 62rem;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  padding: 0.45rem 0.7rem 0.45rem 0.55rem;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(201, 164, 74, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  transition: transform 0.3s;
}

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

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold);
  filter: drop-shadow(0 4px 12px rgba(122, 23, 23, 0.45));
}

.brand span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.28rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  border-radius: 3px;
  padding: 0.58rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #9a2222 0%, var(--crimson) 48%, var(--crimson-deep) 100%);
  color: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(243, 226, 184, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(243, 226, 184, 0.28),
    0 14px 28px rgba(122, 23, 23, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.btn-ghost {
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--cream);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(201, 164, 74, 0.08);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 80%, transparent);
  border-color: var(--gold);
  filter: none;
}

.btn-display {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  padding: 0.9rem 1.45rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 60;
  inset: 5.5rem 1rem auto;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 4px;
  padding: 0.75rem;
  flex-direction: column;
  gap: 0.15rem;
}

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

.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: 3px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mobile-nav a:hover {
  background: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.9) contrast(1.12) brightness(0.72);
}

.hero-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.35) 0%, rgba(10, 8, 6, 0.55) 42%, var(--background) 92%),
    radial-gradient(70% 90% at 72% 48%, transparent, rgba(10, 8, 6, 0.72));
}

.dust span {
  position: absolute;
  border-radius: 999px;
  background: color-mix(in oklab, var(--cream) 25%, transparent);
  animation: rise-dust 12s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: 72rem;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  text-align: center;
}

.hero-kicker {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise-in 0.8s ease 0.05s both;
}

.hero h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2.35rem, 6.2vw, 4.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  animation: rise-in 0.8s ease 0.15s both;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: rise-in 0.8s ease 0.4s both;
}

.hero-portrait {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 38rem;
}

.crest-ring {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 5px var(--bronze),
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(122, 23, 23, 0.22);
}

.crest-ring::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 2;
  height: 8px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  pointer-events: none;
}

.crest-ring::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  height: 8px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  pointer-events: none;
}

.crest-ring img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  animation: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: var(--muted-foreground);
  z-index: 2;
}

.section {
  position: relative;
  z-index: 10;
  padding: 8rem 1.5rem;
}

.section-tight {
  padding: 6rem 1.5rem;
}

.wrap {
  margin: 0 auto;
  max-width: 72rem;
}

.wrap-narrow {
  margin: 0 auto;
  max-width: 48rem;
}

.wrap-wide {
  margin: 0 auto;
  max-width: 80rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.glass {
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(201, 164, 74, 0.08);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.05em;
  color: var(--cream);
}

h3 {
  margin: 0;
  color: var(--cream);
}

.muted {
  color: var(--muted-foreground);
}

.contract-card {
  position: relative;
  border-radius: 6px;
  padding: 2rem;
  overflow: hidden;
}

.contract-card::before {
  content: "";
  position: absolute;
  inset-inline: 1.25rem;
  top: 0;
  height: 8px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  opacity: 0.85;
}

.contract-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contract-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.eyes {
  width: 5rem;
  height: 1.75rem;
  color: var(--cream);
}

.ca-row {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  padding: 1.25rem;
}

.ca-row code {
  min-width: 0;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  word-break: break-all;
}

.fineprint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.lore-head {
  max-width: 40rem;
}

.lore-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.lore-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(201, 164, 74, 0.1);
}

.lore-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
}

.lore-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.7s;
}

.lore-card:hover .lore-photo img {
  transform: scale(1.05);
}

.lore-num {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.lore-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.5rem;
}

.lore-copy h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.lore-copy p {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.center {
  text-align: center;
  margin: 0 auto;
  max-width: 40rem;
}

.badge {
  display: inline-block;
  border-radius: 2px;
  border: 1px solid var(--gold);
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  background: color-mix(in srgb, var(--ink) 50%, transparent);
}

.center h2 {
  margin-top: 1.25rem;
}

.center p {
  margin: 1.25rem 0 0;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.play-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}

.play-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  min-height: 100%;
  transition: box-shadow 0.5s, transform 0.35s;
}

.play-card:hover {
  box-shadow: 0 28px 70px -36px var(--gold);
}

.play-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.play-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.9s ease-out;
}

.play-card:hover .play-media img {
  transform: scale(1.06);
}

.play-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 11, 0.92) 0%, transparent 46%);
}

.chip-row {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border-radius: 2px;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(7, 5, 4, 0.72);
  color: var(--cream);
  border: 1px solid rgba(201, 164, 74, 0.35);
  backdrop-filter: blur(8px);
}

.chip-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.chip-time {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.play-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
}

.play-body h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.play-card.featured .play-body h3 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.play-body p {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  flex: 1;
}

.play-body .btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.gallery-head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-head h2 {
  max-width: 36rem;
}

.gallery-head p {
  max-width: 22rem;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.masonry {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.masonry figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
}

.masonry img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.masonry figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3rem 1.25rem 1rem;
  background: linear-gradient(to top, var(--background), transparent);
  color: var(--cream);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.5s, transform 0.5s;
}

.masonry figure {
  position: relative;
}

.masonry figure:hover img {
  transform: scale(1.07);
}

.masonry figure:hover figcaption {
  opacity: 1;
  transform: none;
}

.view-all {
  margin-top: 3.5rem;
  display: flex;
  justify-content: center;
}

.view-all button,
.view-all .btn-ghost {
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
}

.community-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1.5rem;
}

.community-card {
  position: relative;
  display: flex;
  min-height: 16rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 6px;
  padding: 2rem;
}

.community-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: rgba(122, 23, 23, 0.28);
  filter: blur(48px);
  opacity: 0;
  transition: opacity 0.7s;
}

.community-card:hover::before {
  opacity: 1;
}

.community-card h3 {
  margin-top: 1.25rem;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.community-card .row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.community-card .row p {
  max-width: 18rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.arrow {
  font-size: 1.5rem;
  color: var(--bronze);
  transition: transform 0.5s, color 0.5s;
}

.community-card:hover .arrow {
  transform: translateX(0.25rem);
  color: var(--gold);
}

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 4rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 8px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  opacity: 0.7;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.footer-inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bronze);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-note {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7, 5, 4, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox.is-open,
.modal.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 56rem);
  max-height: 86vh;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px -40px #000c;
}

.modal-card {
  width: min(92vw, 56rem);
  max-height: 90vh;
  overflow: auto;
  border-radius: 6px;
  padding: 1.5rem;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h3 {
  font-size: 1.8rem;
}

.close-x {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.tool-grid {
  display: grid;
  gap: 1rem;
}

.canvas-wrap {
  position: relative;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 16rem;
}

.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.file-btn input {
  display: none;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field input,
.field select {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--cream);
  border-radius: 3px;
  padding: 0.75rem 1rem;
}

.templates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.templates button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.templates img {
  width: 100%;
  height: 4rem;
  object-fit: cover;
}

.game-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem 2rem;
}

.game-shell {
  width: min(92vw, 44rem);
}

.game-hud {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #120e0a;
}

.board canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.whack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}

.hole {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #2a1c12;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hole img,
.hole .jeet {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  transform: translateY(110%);
  transition: transform 0.18s ease;
}

.hole.up img,
.hole.up .jeet {
  transform: translateY(0);
}

.jeet {
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: radial-gradient(circle at 30% 30%, #ffce7a, #c45a12);
  border-radius: 999px;
}

@media (max-width: 639px) {
  .nav > .btn {
    display: none;
  }

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

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .contract-card {
    padding: 3.5rem;
  }

  .ca-row {
    flex-direction: row;
    align-items: center;
  }

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

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

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .gallery-head {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

@media (min-width: 860px) {
  .lore-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
    margin-top: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .lore-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
  }

  .play-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .play-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-height: 0;
  }

  .play-card.featured .play-media {
    flex: 1.2 1 0;
    width: 58%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 16.5rem;
    align-self: center;
  }

  .play-card.featured .play-body {
    flex: 0.9 1 0;
    justify-content: center;
    padding: 1.6rem 2rem;
    min-width: 0;
  }

  .play-card.featured .play-body h3 {
    font-size: clamp(2rem, 3vw, 2.7rem);
  }

  .play-card.featured .play-media::after {
    background: linear-gradient(to right, transparent 40%, rgba(20, 16, 11, 0.94) 100%);
  }

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

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rise-dust {
  from {
    transform: translateY(110vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translateY(-10vh);
    opacity: 0;
  }
}
