:root {
  --ink: #0f2a2e;
  --ink-soft: #1f4a52;
  --mist: #e8f4f2;
  --foam: #f7fcfb;
  --teal: #0d8a7c;
  --teal-deep: #06685e;
  --amber: #e09a1b;
  --amber-deep: #b8740f;
  --shadow: 0 18px 50px rgba(15, 42, 46, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--foam);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 138, 124, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(224, 154, 27, 0.2), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(31, 74, 82, 0.12), transparent 55%),
    linear-gradient(165deg, #f3faf8 0%, #dceeea 45%, #c5e3df 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.04) translate(-1.5%, 1%);
  }
}

.topbar {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.25rem;
}

.topbar .ag-account-root {
  justify-content: flex-end !important;
  margin: 0 !important;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 52rem;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.7s ease-out both;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 22ch;
  animation: rise 0.7s ease-out 0.12s both;
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  opacity: 0.9;
  max-width: 36ch;
  animation: rise 0.7s ease-out 0.22s both;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  animation: rise 0.7s ease-out 0.34s both;
}

.game-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: min(100%, 15rem);
  flex: 1 1 14rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--foam);
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.game-link:hover,
.game-link:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.05);
  outline: none;
}

.game-link--lingua {
  background: linear-gradient(135deg, #1f4a52 0%, #0f2a2e 100%);
}

.game-link--match {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
}

.game-link--fill {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-deep) 100%);
}

.game-link--textack {
  background: linear-gradient(135deg, #e94560 0%, #533483 100%);
}

.game-link__label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.game-link__hint {
  font-size: 0.9rem;
  opacity: 0.92;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100vh - 5.5rem);
    justify-content: flex-start;
    padding-top: 2.5rem;
  }
}
