:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f7f4ea;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 205, 80, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(52, 168, 143, 0.18), transparent 24rem),
    linear-gradient(135deg, #fffaf0 0%, #edf7f4 52%, #eef3ff 100%);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0 48px;
}

.hero {
  display: grid;
  min-height: 31vh;
  align-items: end;
  padding-bottom: 28px;
}

.eyebrow,
.tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #0b7a70;
}

h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-size: clamp(3.1rem, 8vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 650px;
  margin: 0;
  color: #42506a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.game-card {
  position: relative;
  display: flex;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  color: white;
  isolation: isolate;
}

.game-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-color: #156b7a;
  background-image:
    linear-gradient(135deg, rgba(255, 194, 71, 0.28), rgba(16, 135, 125, 0.28)),
    var(--game-image, none);
  background-size: cover;
  background-position: center;
}

.game-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(9, 17, 28, 0.2), rgba(9, 17, 28, 0.82));
}

.game-card-1::before {
  background-color: #374aa1;
}

.game-card-2::before {
  background-color: #9b4a46;
}

.game-card-3::before {
  background-color: #5d6b2f;
}

.card-copy {
  align-self: flex-end;
  width: 100%;
  padding: 26px;
}

.tag {
  color: #ffd36c;
}

h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.card-copy p:last-child {
  max-width: 30rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.play-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #162033;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.play-link:focus-visible {
  outline: 3px solid #ffd36c;
  outline-offset: 3px;
}

.empty-state,
.upload-status {
  margin: 0;
  color: #42506a;
  font-size: 1.05rem;
}

.upload-shell {
  max-width: 760px;
}

.hero.compact {
  min-height: 24vh;
}

.upload-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
  padding: 24px 0;
}

.upload-form label {
  display: grid;
  gap: 8px;
  color: #42506a;
  font-weight: 800;
}

.upload-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 51, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #172033;
  font: inherit;
}

.upload-button {
  position: static;
  width: fit-content;
  border: 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 520px);
    padding-top: 34px;
  }

  .hero {
    min-height: auto;
    padding: 18px 0 26px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.75rem);
  }

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

  .game-card {
    min-height: 275px;
  }

  .card-copy {
    padding: 22px;
    padding-bottom: 76px;
  }
}
