:root {
  --grad-top: #edf0ff;
  --grad-bottom: #ffeaf4;
  --ink: #1f2138;
  --muted: #5b6070;
  --card: #ffffff;
  --panel-shadow: 0 18px 40px -18px rgba(76, 110, 245, 0.45);
  --ring: rgba(76, 110, 245, 0.35);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(170deg, var(--grad-top) 0%, var(--grad-bottom) 100%);
  background-attachment: fixed;
}

h1,
h2,
h3,
.font-display {
  font-family: 'Fredoka', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.blob-a {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: #b7c4ff;
}

.blob-b {
  width: 380px;
  height: 380px;
  top: 30%;
  right: -140px;
  background: #ffc0e0;
}

.blob-c {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: 18%;
  background: #c9f4dc;
}

.card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--panel-shadow);
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(76, 110, 245, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #3e7bfa;
  color: #fff;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 500;
  padding: 0.9rem 1.6rem;
  border-radius: 16px;
  box-shadow: 0 8px 0 -1px #2b58dc;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #3069e6;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 -1px #2b58dc;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(76, 110, 245, 0.28);
  text-decoration: none;
  transition: background 0.12s ease;
}

.btn-ghost:hover {
  background: rgba(76, 110, 245, 0.08);
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(76, 110, 245, 0.1);
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button[aria-pressed='true'] {
  background: #fff;
  color: #3e7bfa;
  box-shadow: 0 2px 8px -2px rgba(76, 110, 245, 0.4);
}

.shot {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}

.shot img {
  display: block;
  width: 100%;
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  flex: none;
}

.gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery > figure {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 240px;
  margin: 0;
}

.gallery figcaption {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 0.85rem;
}

.rule-chip {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  color: #3e7bfa;
  box-shadow: 0 6px 16px -8px rgba(76, 110, 245, 0.6);
  flex: none;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.75;
}

.legal ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.25rem;
}

.legal a {
  color: #3e7bfa;
  font-weight: 700;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  color: #fff;
}

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