:root {
  --ink: #241c35;
  --muted: #62576f;
  --purple: #6f45d8;
  --purple-dark: #4b2a9a;
  --pink: #ff5fa8;
  --mint: #2dd4bf;
  --gold: #ffc857;
  --blue: #4aa8ff;
  --paper: #fffafc;
  --surface: #ffffff;
  --line: rgba(88, 64, 135, 0.14);
  --shadow: 0 18px 50px rgba(87, 62, 140, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 200, 87, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 5%, rgba(45, 212, 191, 0.2), transparent 24rem),
    linear-gradient(180deg, #fff7fe 0%, #f7fbff 45%, #fffaf0 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

#main {
  min-height: 68vh;
}

.site-header,
.site-footer,
.hero,
.section,
.page {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 10px 24px rgba(111, 69, 216, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--purple-dark);
  background: rgba(111, 69, 216, 0.08);
}

.hero {
  display: grid;
  gap: 34px;
  align-items: center;
  padding: 44px 0 56px;
}

.hero h1,
.page h1,
.section h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero__tagline {
  margin: 8px 0 0;
  color: var(--purple);
  font-size: clamp(1.6rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
}

.hero__copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__actions,
.daily-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 14px 30px rgba(111, 69, 216, 0.22);
}

.button--secondary {
  color: var(--purple-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.button--disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  cursor: default;
}

.hero__visual {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 10px;
  max-width: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 18px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: inset 0 -8px 0 rgba(36, 28, 53, 0.08);
}

.tile--mint {
  background: var(--mint);
}

.tile--pink {
  background: var(--pink);
}

.tile--gold {
  color: #5d3b00;
  background: var(--gold);
}

.tile--purple {
  background: var(--purple);
}

.tile--white {
  color: var(--purple-dark);
  background: #ffffff;
  border: 1px solid var(--line);
}

.section,
.page {
  padding: 54px 0;
}

.section__header,
.page__header {
  max-width: 720px;
}

.section h2,
.page h1 {
  font-size: clamp(2rem, 9vw, 3.6rem);
}

.section__header p:not(.eyebrow),
.page__header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.daily-preview,
.feature,
.game-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(87, 62, 140, 0.1);
}

.daily-preview {
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
}

.daily-preview h3,
.feature h3,
.game-card h3 {
  margin: 0 0 8px;
  line-height: 1.18;
}

.daily-preview p,
.feature p,
.game-card p {
  margin: 0;
  color: var(--muted);
}

.game-grid,
.feature-grid,
.daily-link-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.daily-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-link-grid a {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(87, 62, 140, 0.08);
}

.game-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
}

.game-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.game-card h3 a {
  text-decoration: none;
}

.game-card h3 a:hover {
  color: var(--purple);
}

.game-card__meta,
.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.game-card__meta span,
.game-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(111, 69, 216, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.game-card__button {
  margin-top: 14px;
}

.section__actions {
  margin-top: 24px;
}

.game-hero,
.detail-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(87, 62, 140, 0.1);
}

.game-hero {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
}

.game-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 4.8rem);
  line-height: 1.04;
}

.game-hero p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.game-hero__icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 18px 40px rgba(111, 69, 216, 0.2);
}

.detail-section {
  max-width: 860px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.12;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
}

.detail-section--split {
  display: grid;
  gap: 16px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--mint);
  content: "+";
  font-weight: 950;
}

.feature {
  padding: 20px;
  border-radius: 20px;
}

.page__content {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.04rem;
}

.page__content a {
  color: var(--purple-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--purple-dark);
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
    padding-top: 72px;
  }

  .game-grid,
  .feature-grid,
  .daily-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-grid--hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-hero {
    grid-template-columns: 100px 1fr;
    padding: 28px;
  }

  .detail-section--split {
    grid-template-columns: 1fr auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
