:root {
  color-scheme: dark;
  --ink: #fff8d5;
  --muted: #d2d0a9;
  --mud: #151007;
  --bog: #102112;
  --bog-deep: #071109;
  --panel: rgba(18, 33, 18, 0.84);
  --panel-strong: rgba(30, 52, 24, 0.92);
  --line: rgba(220, 232, 123, 0.22);
  --moss: #8fca3f;
  --slime: #b8f24f;
  --coin: #f3d24a;
  --amber: #d38d24;
  --water: #2a7964;
  --shadow: rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(184, 242, 79, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(184, 242, 79, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(143, 202, 63, 0.34), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(211, 141, 36, 0.24), transparent 24%),
    linear-gradient(180deg, #0a170d 0%, #102112 42%, #070a05 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(ellipse at 20% 90%, rgba(42, 121, 100, 0.28), transparent 42%),
    radial-gradient(ellipse at 70% 95%, rgba(143, 202, 63, 0.16), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.48) 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(108deg, transparent 0 46%, rgba(184, 242, 79, 0.1) 46% 47%, transparent 47%),
    linear-gradient(72deg, transparent 0 50%, rgba(243, 210, 74, 0.06) 50% 51%, transparent 51%);
  background-size: 180px 160px;
  opacity: 0.48;
}

body.not-found-page {
  min-height: 100svh;
}

a {
  color: inherit;
}

code {
  padding: 0.08rem 0.34rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--slime);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.9em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 9, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  filter: drop-shadow(0 0 14px rgba(184, 242, 79, 0.45));
}

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

.nav-links a {
  min-height: 40px;
  padding: 0.7rem 0.92rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(184, 242, 79, 0.1);
  outline: none;
}

.play-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.46fr) minmax(340px, 1.16fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  min-height: calc(100svh - 72px);
  padding: clamp(2rem, 5vw, 5rem) 5vw;
  overflow: hidden;
}

.play-copy,
.coin-panel,
.game-shell {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.18) contrast(1.08);
}

.play-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 9, 0.88), rgba(7, 17, 9, 0.56) 42%, rgba(7, 17, 9, 0.72)),
    linear-gradient(180deg, transparent 0%, rgba(7, 17, 9, 0.76) 100%);
  pointer-events: none;
}

.play-copy {
  max-width: 680px;
}

.swamp-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.reed {
  position: absolute;
  bottom: -8px;
  width: 9px;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cce76c, #355e22 72%, #101607);
  transform-origin: bottom center;
  box-shadow:
    16px 16px 0 -2px #294b20,
    30px 42px 0 -3px #5f8e2b;
}

.reed::before,
.reed::after {
  position: absolute;
  width: 56px;
  height: 12px;
  border-radius: 999px 0 999px 0;
  content: "";
  background: #5f8e2b;
}

.reed::before {
  top: 44px;
  left: -44px;
  transform: rotate(-28deg);
}

.reed::after {
  top: 74px;
  left: 4px;
  transform: rotate(24deg);
}

.reed-one {
  left: 3vw;
  height: 190px;
  transform: rotate(-7deg);
}

.reed-two {
  right: 9vw;
  height: 230px;
  transform: rotate(8deg);
}

.reed-three {
  left: 43vw;
  height: 124px;
  opacity: 0.7;
  transform: rotate(4deg);
}

.lily {
  position: absolute;
  width: 96px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 45%, #294b20 0 18%, #6ca239 19% 72%, #26481f 73%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  opacity: 0.72;
}

.lily::after {
  position: absolute;
  top: 7px;
  right: 13px;
  width: 28px;
  height: 22px;
  content: "";
  background: var(--bog-deep);
  clip-path: polygon(100% 0, 0 48%, 100% 100%);
}

.lily-one {
  right: 28vw;
  bottom: 58px;
  transform: rotate(-8deg);
}

.lily-two {
  left: 18vw;
  bottom: 28px;
  transform: rotate(13deg) scale(0.78);
}

.coin-glint {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(243, 210, 74, 0.8);
  transform: rotate(45deg);
  opacity: 0.8;
}

.glint-one {
  top: 18%;
  right: 32%;
}

.glint-two {
  top: 62%;
  left: 31%;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--coin);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 5px 0 #27421c,
    0 18px 34px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.62rem;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 36rem;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}

.action-row,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-badges {
  margin-top: 1rem;
}

.hero-badges span {
  padding: 0.48rem 0.64rem;
  border: 1px solid rgba(184, 242, 79, 0.24);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 17, 9, 0.54);
  font-size: 0.82rem;
  font-weight: 900;
}

.mascot-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  max-width: 420px;
  margin: 1rem 0 0;
  padding: 0.72rem;
  border: 1px solid rgba(243, 210, 74, 0.26);
  border-radius: 8px;
  background: rgba(7, 17, 9, 0.64);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.mascot-card img {
  width: 86px;
  height: 102px;
  border-radius: 7px;
  object-fit: cover;
  object-position: top;
}

.mascot-card figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  padding: 0.82rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #111607;
  background: linear-gradient(180deg, #f8e46b, #a6c83b 54%, #6d9927);
  box-shadow: 0 16px 40px rgba(184, 242, 79, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(184, 242, 79, 0.08);
  border-color: var(--line);
}

.button.ghost {
  color: var(--coin);
  background: rgba(7, 17, 9, 0.54);
  border-color: rgba(243, 210, 74, 0.34);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.coin-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(243, 210, 74, 0.16), transparent 38%),
    rgba(8, 20, 9, 0.84);
  box-shadow: 0 28px 74px var(--shadow);
}

.coin-panel-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.coin-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.coin-medallion {
  width: clamp(70px, 9vw, 118px);
  height: clamp(70px, 9vw, 118px);
  filter: drop-shadow(0 0 26px rgba(243, 210, 74, 0.28));
}

.coin-stats {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.coin-stats div {
  display: grid;
  grid-template-columns: minmax(78px, 0.52fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid rgba(220, 232, 123, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
}

.coin-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coin-stats dd {
  margin: 0;
  color: var(--coin);
  font-weight: 900;
}

.coin-note {
  margin: 0.9rem 0 0;
  color: #b8b78b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.token-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.token-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem;
  border: 1px solid rgba(243, 210, 74, 0.3);
  border-radius: 7px;
  color: var(--coin);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.token-actions a:hover,
.token-actions a:focus-visible {
  color: #111607;
  background: var(--coin);
  outline: none;
}

.game-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 123, 0.28);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 28px 90px var(--shadow),
    0 0 36px rgba(184, 242, 79, 0.12);
}

.game-toolbar {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 42px;
  padding: 0 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--slime);
  box-shadow: 0 0 18px rgba(184, 242, 79, 0.72);
}

.toolbar-coin {
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(243, 210, 74, 0.4);
  border-radius: 999px;
  color: var(--coin);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
}

.game-frame {
  display: block;
  width: 100%;
  height: min(64svh, 680px);
  min-height: 420px;
  border: 0;
  background: #080809;
}

.content-band {
  padding: clamp(3rem, 8vw, 7rem) 5vw;
  border-top: 1px solid var(--line);
}

.coin-band {
  background:
    linear-gradient(90deg, rgba(42, 121, 100, 0.18), transparent 34%),
    rgba(7, 17, 9, 0.46);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 1120px;
}

.section-grid p {
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.coin-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin-top: 1.4rem;
}

.token-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(243, 210, 74, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(243, 210, 74, 0.12), transparent 34%),
    rgba(7, 17, 9, 0.72);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.24);
}

.token-console .eyebrow {
  margin-bottom: 0.42rem;
}

.ca-line {
  margin-bottom: 0;
  color: var(--slime);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(243, 210, 74, 0.4);
  border-radius: 7px;
  color: #111607;
  background: var(--coin);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copy-status {
  grid-column: 1 / -1;
  min-height: 1em;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.coin-feature,
.update-card {
  min-height: 188px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(184, 242, 79, 0.08), transparent 46%),
    rgba(18, 33, 18, 0.74);
}

.feature-kicker,
.update-date {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--coin);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coin-feature p,
.update-card p {
  margin-bottom: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.updates-band {
  background:
    linear-gradient(90deg, rgba(211, 141, 36, 0.12), transparent 30%),
    rgba(0, 0, 0, 0.18);
}

.media-band {
  background:
    linear-gradient(180deg, rgba(7, 17, 9, 0.28), rgba(0, 0, 0, 0.28)),
    rgba(16, 33, 18, 0.28);
}

.media-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.6fr) repeat(3, minmax(220px, 0.74fr));
  align-items: stretch;
  gap: 1rem;
  max-width: 1240px;
}

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

.media-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 123, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 9, 0.64);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.media-card video,
.media-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  object-fit: cover;
}

.mascot-media-card img {
  object-position: top;
}

.video-card video {
  aspect-ratio: 16 / 11;
}

.art-card img {
  object-position: center;
}

.media-card figcaption {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid rgba(220, 232, 123, 0.18);
  color: var(--coin);
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.updates-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin-bottom: 1.4rem;
}

.text-link {
  color: var(--slime);
  font-weight: 900;
  text-decoration: none;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1120px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 17, 9, 0.74);
  font-size: 0.9rem;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 5vw;
}

.not-found h1 {
  max-width: 9ch;
}

@media (max-width: 1180px) {
  .play-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  }

  .coin-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .coin-panel-top {
    margin-bottom: 0;
  }

  .coin-note {
    grid-column: 1 / -1;
    margin-top: 0;
  }

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

  .media-copy {
    grid-column: 1 / -1;
  }
}

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

  .play-section {
    align-items: start;
  }

  .coin-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .game-frame {
    height: 56svh;
  }

  .coin-feature-grid,
  .update-list,
  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    text-align: center;
  }

  .play-section {
    min-height: auto;
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .button {
    flex: 1 1 150px;
  }

  .mascot-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .mascot-card img {
    width: 72px;
    height: 88px;
  }

  .coin-stats div {
    grid-template-columns: 1fr;
  }

  .token-actions,
  .token-console {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }

  .game-frame {
    min-height: 360px;
  }

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