/* deploy-fix:2 */
:root {
  --sky: #dff6ff;
  --mint: #c8f0df;
  --leaf: #2f9e78;
  --leaf-deep: #1f7a5c;
  --sun: #ffb84d;
  --coral: #ff7a59;
  --ink: #1a2e2a;
  --ink-soft: #4a635c;
  --paper: #f7fcfa;
  --white: #ffffff;
  --line: rgba(26, 46, 42, 0.08);
  --shadow: 0 18px 40px rgba(31, 122, 92, 0.12);
  --radius: 28px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--sky), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, var(--mint), transparent 55%),
    linear-gradient(180deg, #f3fbf8 0%, var(--paper) 45%, #eef8f4 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: float-orb 12s ease-in-out infinite;
}

.bg-orb--a {
  width: 280px;
  height: 280px;
  background: #9fe8ff;
  top: 12%;
  left: -80px;
}

.bg-orb--b {
  width: 320px;
  height: 320px;
  background: #ffe0a8;
  bottom: 8%;
  right: -100px;
  animation-delay: -4s;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

.site-header,
.hero,
.games,
.site-footer,
.legal {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-logo {
  display: block;
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(229, 53, 53, 0.2);
}

.hero-brand {
  margin: 0 0 1rem;
  animation: rise-in 0.7s ease both;
}

.hero-logo {
  display: block;
  width: clamp(7.5rem, 18vw, 10.5rem);
  height: clamp(7.5rem, 18vw, 10.5rem);
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.85),
    0 0 0 8px rgba(229, 53, 53, 0.12),
    0 18px 40px rgba(229, 53, 53, 0.18);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--leaf-deep);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  animation: rise-in 0.7s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  animation: rise-in 0.7s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise-in 0.7s ease 0.24s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #ff9460);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 122, 89, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(255, 122, 89, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--white);
}

.hero-visual {
  animation: rise-in 0.9s ease 0.2s both;
}

.hero-shot {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-left: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  animation: float-shot 5.5s ease-in-out infinite;
}

@keyframes float-shot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.games {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--leaf-deep);
}

.section-head p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--ink-soft);
}

.game {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.game--reverse .game-media {
  order: 2;
}

.game--reverse .game-body {
  order: 1;
  text-align: right;
}

.game--reverse .game-body p {
  margin-left: auto;
}

.game-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, #e8f7f1, #d9f0ff);
  box-shadow: var(--shadow);
}

.game-media img {
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.game-media--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(126, 200, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 211, 107, 0.28), transparent 45%),
    linear-gradient(160deg, #2a3038, #1c2128);
}

.game-media--icon img {
  width: min(72%, 320px);
  height: auto;
  opacity: 1;
  border-radius: 22%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.game-placeholder-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.game-howto-title {
  margin: 1.15rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.game-howto {
  margin: 0;
  padding-left: 1.15rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.game-howto li {
  margin-bottom: 0.55rem;
}

.game-howto li:last-child {
  margin-bottom: 0;
}

.game--reverse .game-howto {
  margin-left: auto;
  text-align: left;
}

.game-label {
  margin: 0 0 0.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral);
}

.game-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--ink);
}

.game-body p:last-child {
  margin: 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(229, 53, 53, 0.14);
}

.footer-note {
  margin: 0.35rem 0 1rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--leaf);
}

.footer-links a:hover {
  color: var(--leaf-deep);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Privacy page */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--leaf-deep);
}

.legal .meta {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.legal h3 {
  margin: 1.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.legal a {
  color: var(--leaf);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--leaf-deep);
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .notice {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(47, 158, 120, 0.1);
  border: 1px solid rgba(47, 158, 120, 0.2);
  color: var(--ink);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-shot {
    margin: 0 auto;
    max-width: 340px;
  }

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

  .game--reverse .game-media,
  .game--reverse .game-body {
    order: initial;
    text-align: left;
  }

  .game--reverse .game-body p {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }

  .hero,
  .games,
  .site-footer,
  .legal {
    padding-inline: 1rem;
  }
}
