:root {
  color-scheme: light;
  --background: #f4ecdf;
  --background-deep: #eadcc6;
  --surface: rgba(243, 232, 218, 0.9);
  --surface-strong: rgba(255, 248, 239, 0.96);
  --surface-border: rgba(114, 93, 68, 0.14);
  --text-primary: #2f2419;
  --text-secondary: #6f5e4d;
  --accent: #d88f66;
  --accent-soft: #f2cfb2;
  --shadow: 0 28px 80px rgba(88, 68, 42, 0.09);
  --font-sans: "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  --content-width: 70rem;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
    radial-gradient(circle at bottom right, rgba(232, 205, 173, 0.55), transparent 28%),
    linear-gradient(180deg, #fbf6ee 0%, var(--background) 58%, var(--background-deep) 100%);
  color: var(--text-primary);
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 1.5rem;
}

.site-shell {
  width: min(100%, var(--content-width));
  display: grid;
  gap: 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.25rem;
  align-items: start;
  justify-content: space-between;
  min-height: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--surface-border);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  max-width: 34rem;
  display: flex;
  align-items: flex-start;
}

.hero-support {
  display: grid;
  justify-items: start;
  align-self: center;
}

h1 {
  margin: 0;
}

.brand-mark {
  width: fit-content;
}

.brand-icon {
  display: block;
  width: clamp(10.5rem, 20vw, 14rem);
  height: auto;
}

.intro {
  margin: 0;
  max-width: none;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status {
  margin: 0.55rem 0 0;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(114, 93, 68, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.games {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--surface-border);
  border-radius: 2rem;
  background: rgba(255, 250, 244, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  margin-top: 0;
}

.section-header {
  max-width: 40rem;
}

.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
h3 {
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.section-intro {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

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

.game-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(114, 93, 68, 0.12);
  border-radius: 1.5rem;
  background: rgba(255, 252, 248, 0.82);
}

.game-art {
  min-height: 12rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 248, 239, 0.95));
}

.game-art-tide {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 20%),
    linear-gradient(180deg, #cfe5e7 0%, #a8cfd2 45%, #f5e5d5 100%);
}

.art-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.75);
  box-shadow: 0 1rem 2rem rgba(57, 111, 119, 0.14);
}

.art-orb-large {
  width: 7rem;
  height: 7rem;
  left: 1.5rem;
  bottom: -1rem;
}

.art-orb-small {
  width: 3rem;
  height: 3rem;
  right: 1.75rem;
  top: 1.75rem;
}

.game-art-grove {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(180deg, #f2e1bc 0%, #d7c38a 40%, #bbc98f 100%);
}

.art-stem {
  position: absolute;
  left: calc(50% - 0.25rem);
  bottom: 0;
  width: 0.5rem;
  height: 6rem;
  border-radius: 999px 999px 0 0;
  background: rgba(92, 112, 57, 0.68);
}

.art-leaf {
  position: absolute;
  bottom: 4rem;
  width: 4.8rem;
  height: 3rem;
  border-radius: 100% 0 100% 0;
  background: rgba(120, 153, 88, 0.76);
}

.art-leaf-left {
  left: calc(50% - 4.8rem);
  transform: rotate(-12deg);
}

.art-leaf-right {
  left: 50%;
  transform: scaleX(-1) rotate(-12deg);
}

.game-art-rain {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 26%),
    linear-gradient(180deg, #d6dff0 0%, #b6c6e4 45%, #f0d9cf 100%);
}

.art-drop {
  position: absolute;
  width: 2.6rem;
  height: 4rem;
  border-radius: 100% 100% 100% 100% / 72% 72% 128% 128%;
  background: rgba(255, 255, 255, 0.72);
  transform: rotate(18deg);
}

.art-drop-one {
  top: 2rem;
  left: 2.25rem;
}

.art-drop-two {
  top: 4rem;
  left: calc(50% - 1.3rem);
}

.art-drop-three {
  top: 2.5rem;
  right: 2rem;
}

.game-body {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.game-heading {
  display: grid;
  gap: 0.35rem;
}

.game-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 {
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.game-description {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(114, 93, 68, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.store-link[aria-disabled="true"] {
  color: var(--text-secondary);
}

.site-footer {
  padding: 0.5rem 0 0.25rem;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .hero-support {
    justify-items: start;
  }

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

@media (max-width: 640px) {
  .page {
    padding: 0.75rem;
  }

  .hero {
    border-radius: 1.25rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-support {
    align-self: start;
  }

  .games {
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 0;
  }

  h2 {
    white-space: normal;
  }

  h1 {
    max-width: 10ch;
  }

  .intro {
    white-space: normal;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
  }

  .games {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: none;
  }
}
