:root {
  color-scheme: light;
  --ink: #19324a;
  --paper: #fff9ef;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(25, 50, 74, 0.08);
  --sky: #77d6ff;
  --sun: #ffd45c;
  --melon: #ff8d6b;
  --leaf: #5fcf8f;
  --berry: #5672ff;
  --shadow: 0 24px 60px rgba(42, 88, 120, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.9) 0, transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(255, 212, 92, 0.55) 0, transparent 18%),
    radial-gradient(circle at 70% 72%, rgba(95, 207, 143, 0.26) 0, transparent 22%),
    linear-gradient(180deg, #87dbff 0%, #c0f0ff 42%, #fff1c7 100%);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.hero,
.game-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  min-height: 46vh;
  padding: 24px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.game-head {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(25, 50, 74, 0.58);
}

.hero h1,
.hero h2,
.game-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(3.4rem, 12vw, 7rem);
}

.hero h2,
.game-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero-text,
.hero-card p,
.game-copy,
.coming-soon,
.game-status,
.score-label {
  margin: 0;
  line-height: 1.45;
}

.hero-card {
  align-content: start;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 240, 180, 0.85));
}

.hero-card-label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(25, 50, 74, 0.62);
}

.hero-link,
.secondary-button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.hero-link {
  justify-self: start;
  background: linear-gradient(135deg, var(--melon), #ffbb61);
  color: white;
  box-shadow: 0 18px 28px rgba(255, 141, 107, 0.3);
}

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

.game-card {
  padding: 20px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.game-card-featured {
  grid-column: span 2;
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-pill {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(25, 50, 74, 0.08);
}

.score-pill strong {
  display: block;
  margin-top: 2px;
  font-size: 1.5rem;
}

.star-button {
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  border: 0;
  border-radius: 28px;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.3) 26%, transparent 27%),
    linear-gradient(180deg, #6cd8ff 0%, #779dff 100%);
  box-shadow: 0 26px 40px rgba(86, 114, 255, 0.22);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.star-button.is-popping {
  transform: scale(0.94) rotate(-6deg);
  box-shadow: 0 16px 24px rgba(86, 114, 255, 0.2);
}

.star-shape {
  display: inline-block;
  font-size: clamp(5rem, 14vw, 8rem);
  color: var(--sun);
  text-shadow: 0 8px 0 rgba(233, 170, 24, 0.24);
}

.action-row {
  display: flex;
  gap: 12px;
}

.secondary-button {
  background: linear-gradient(135deg, var(--leaf), #4eb7d1);
  color: white;
  box-shadow: 0 18px 28px rgba(79, 184, 162, 0.24);
}

.coming-soon {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(25, 50, 74, 0.16);
}

.hero-link:focus-visible,
.secondary-button:focus-visible,
.star-button:focus-visible {
  outline: 3px solid rgba(25, 50, 74, 0.24);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 10px;
  }

  .hero,
  .game-card {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-link,
  .secondary-button {
    width: 100%;
  }

  .action-row {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
