:root {
  color-scheme: dark;
  --canvas: #071713;
  --surface: #0e2922;
  --surface-raised: #15372e;
  --text: #f6f1dd;
  --muted: #abc3b9;
  --line: #2b5146;
  --gold: #f2bf55;
  --mint: #71d6b8;
  --red: #e87068;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 20rem;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgb(113 214 184 / 13%), transparent 27rem),
    radial-gradient(circle at 92% 28%, rgb(242 191 85 / 9%), transparent 24rem),
    var(--canvas);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--canvas);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 0.48rem);
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
}

.brand-mark i {
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint);
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) { background: var(--gold); }

.support-link {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: var(--muted);
  text-decoration: none;
}

.support-link:hover,
.support-link:focus-visible { border-color: var(--mint); color: var(--text); }

.hero {
  display: grid;
  min-height: clamp(27rem, 67vh, 43rem);
  align-content: center;
  padding-block: 5rem;
}

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

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 9vw, 6.8rem);
  letter-spacing: -0.055em;
}

h1 span { color: var(--gold); }

.hero-copy {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.3vw, 1.35rem);
}

.games { padding: 3rem 0 6rem; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-heading h2,
.support h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.game-art {
  display: grid;
  min-height: 15rem;
  place-content: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent),
    #0b211b;
}

.suits {
  grid-template-columns: repeat(4, clamp(3.4rem, 8vw, 5.2rem));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 4.7rem);
  line-height: 1;
  text-align: center;
}

.suits span {
  display: grid;
  aspect-ratio: 0.72;
  place-content: center;
  border: 1px solid #d8cfac;
  border-radius: 0.55rem;
  background: #f6efd8;
  color: #10221d;
  box-shadow: 0.4rem 0.55rem 0 rgb(0 0 0 / 20%);
  transform: rotate(-5deg);
}

.suits span:nth-child(2),
.suits span:nth-child(3) { color: #b83d39; transform: translateY(-0.65rem) rotate(2deg); }
.suits span:nth-child(4) { transform: rotate(6deg); }

.dot-grid {
  grid-template-columns: repeat(3, 1rem);
  gap: 2.9rem;
}

.dot-grid span {
  width: 1rem;
  aspect-ratio: 1;
  border: 0.2rem solid #0b211b;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0.18rem var(--gold);
}

.dot-grid span:nth-child(2),
.dot-grid span:nth-child(4),
.dot-grid span:nth-child(6),
.dot-grid span:nth-child(8) { background: var(--mint); box-shadow: 0 0 0 0.18rem var(--mint); }

.game-content { padding: clamp(1.4rem, 4vw, 2.2rem); }

.game-type {
  margin: 0 0 0.55rem;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-content h3 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.game-content > p:not(.game-type) { min-height: 5.2rem; color: var(--muted); }

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 99rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.card-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.7rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-action { background: var(--gold); color: #17251f; }
.secondary-action { border: 1px solid var(--line); color: var(--muted); }
.primary-action:hover,
.primary-action:focus-visible { background: #ffd67c; }
.secondary-action:hover,
.secondary-action:focus-visible { border-color: var(--mint); color: var(--text); }

.support {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  margin-bottom: 5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
}

.support-copy { color: var(--muted); }
.support-copy p { margin-top: 0; }
.support-copy a { color: var(--gold); font-size: 1.08rem; font-weight: 750; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p { margin: 0; }

a:focus-visible { outline: 0.18rem solid var(--mint); outline-offset: 0.2rem; }

@media (max-width: 47rem) {
  .game-grid,
  .support { grid-template-columns: 1fr; }
  .game-content > p:not(.game-type) { min-height: 0; }
  .support { gap: 1.5rem; }
}

@media (max-width: 34rem) {
  .site-header { min-height: 4.8rem; }
  .support-link { padding-inline: 0.75rem; font-size: 0.82rem; }
  .hero { min-height: 30rem; }
  .suits { grid-template-columns: repeat(4, 3.3rem); }
  .game-art { min-height: 12.5rem; }
  footer { display: block; }
  footer p + p { margin-top: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
