:root {
  color-scheme: dark;
  --bg: #0d1110;
  --panel: #151b18;
  --panel-strong: #1d251f;
  --text: #f3f7f1;
  --muted: #aab8ac;
  --line: rgba(255, 255, 255, 0.13);
  --green: #82c66f;
  --gold: #e1b95a;
  --blue: #62a7d9;
  --coral: #df6e5f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

body.has-lightbox {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 16, 0.9);
  backdrop-filter: blur(16px);
}

.brand img {
  width: clamp(58px, 7vw, 86px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.brand-name {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 
    0 0 7px #fff,
    0 0 10px #8EBF77,
    0 0 21px #8EBF77;
}

.clover { color: #8EBF77; }
.lark { color: #4EB3BB; }

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.about p,
.privacy p {
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.capability-grid span {
  min-height: 68px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: var(--text);
  font-weight: 750;
  line-height: 1.25;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.game-card {
  align-self: start;
  min-width: 0;
}

.game-card-button {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.game-card-button:hover,
.game-card-button:focus-visible {
  border-color: rgba(130, 198, 111, 0.75);
  outline: none;
}

.game-image-wrap {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--panel-strong);
}

.game-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.game-card-copy strong {
  font-size: 1.2rem;
}

.game-card-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.privacy a {
  color: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-footer strong,
.site-footer a {
  color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 16, 0.88);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: #050706;
}

.lightbox-media img {
  width: 100%;
  max-height: calc(100vh - 44px);
  object-fit: contain;
}

.lightbox-content {
  padding: 32px;
  overflow: auto;
}

.lightbox-content h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.lightbox-content p {
  color: var(--muted);
  line-height: 1.6;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.thumbnail-button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: var(--panel-strong);
  cursor: pointer;
}

.thumbnail-button.is-active {
  border-color: var(--green);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

  .lightbox-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .lightbox-media {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .site-nav {
    justify-content: flex-start;
  }

  .capability-grid,
  .games-grid {
    grid-template-columns: 1fr;
  }

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