:root {
  color-scheme: light;
  --ink: #143633;
  --muted: #4d6661;
  --page-top: #f8f4e8;
  --page-bottom: #dff3ec;
  --border: rgba(20, 54, 51, 0.1);
  --shadow: 0 24px 70px rgba(12, 48, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(78, 180, 147, 0.22), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(91, 147, 224, 0.18), transparent 26%),
    linear-gradient(180deg, var(--page-top) 0%, var(--page-bottom) 100%);
}

.shell {
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.hero {
  padding: 8px 6px 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #23866b;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.lead {
  max-width: 790px;
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.games-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #f6fffe;
  background-color: #163b37;
  background-image: var(--card-image);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(12, 48, 43, 0.22);
  filter: saturate(1.06);
}

.game-card__image,
.game-card__shade {
  position: absolute;
  inset: 0;
}

.game-card__image--sorter {
  background:
    linear-gradient(180deg, rgba(214, 250, 246, 0.12), rgba(11, 32, 47, 0.16)),
    url("../eko-sorter/assets/scratch-stage.svg");
  background-size: cover;
  background-position: center;
}

.sorter-belt {
  position: absolute;
  left: 7%;
  right: 9%;
  top: 46%;
  height: 13%;
  background: #07090c;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06);
}

.sorter-trash {
  position: absolute;
  z-index: 1;
  width: auto;
  filter: drop-shadow(0 8px 8px rgba(4, 9, 14, 0.32));
}

.sorter-trash--bottle {
  height: 22%;
  left: 14%;
  top: 31%;
  transform: rotate(-8deg);
}

.sorter-trash--paper {
  height: 15%;
  left: 45%;
  top: 37%;
  transform: rotate(7deg);
}

.sorter-trash--glass {
  height: 21%;
  left: 71%;
  top: 33%;
  transform: rotate(4deg);
}

.game-card__shade {
  background:
    linear-gradient(180deg, rgba(8, 17, 26, 0.04) 0%, rgba(8, 17, 26, 0.14) 28%, rgba(8, 17, 26, 0.82) 100%),
    linear-gradient(135deg, rgba(39, 127, 110, 0.28), rgba(7, 28, 43, 0.08));
}

.game-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 22px 18px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(236, 251, 247, 0.18);
  backdrop-filter: blur(6px);
}

.game-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.02;
}

.game-card p {
  margin: 0;
  max-width: 33ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(246, 255, 254, 0.92);
}

@media (max-width: 900px) {
  .shell {
    padding-bottom: 28px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(180px, 1fr);
  }
}

@media (min-width: 901px) {
  .games-grid {
    grid-auto-rows: minmax(0, 1fr);
  }
}


.mobile-rotate-note {
  display: none;
}

@media (max-width: 820px) {
  .mobile-rotate-note {
    display: inline-block;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(35, 134, 107, 0.12);
    border: 1px solid rgba(35, 134, 107, 0.18);
    color: #1c5f4e;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
  }
}
