/* Ballistic Ball website: the same look as the game. Fredoka for display, Nunito for body. */
@font-face { font-family: 'Fredoka'; font-weight: 300 700; font-display: swap; src: url('fonts/fredoka.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap; src: url('fonts/nunito.woff2') format('woff2'); }

:root {
  --candy: #ff7fc3; --candy-deep: #e8559f; --ink: #3b2a4a; --cream: #fff8fb; --mint: #58e0b0; --mint-deep: #2aaa7d;
  --gold: #ffcc33; --gold-deep: #b07d00; --sky1: #7fd6ff; --sky2: #cfe9ff; --sky3: #ffd3ec; --hill: #ffb3dc; --hill-deep: #ff8fcb;
  --muted: #8a6f8f; --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif; --font-body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-weight: 700; color: var(--ink); background: var(--sky3); line-height: 1.55; overflow-x: hidden; }
a { color: var(--candy-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.5vw, 44px); color: var(--candy-deep); text-shadow: 0 2px 0 #fff; text-align: center; }
.sub { text-align: center; color: var(--muted); font-size: 18px; max-width: 620px; margin: 10px auto 0; }
.wrap { width: min(1100px, 100% - 40px); margin: 0 auto; }
section { padding: 72px 0; }

/* ---- header ---- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--candy-deep); text-decoration: none; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 0 #fff; }
.brand .mini { width: 30px; height: 30px; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a.pill { text-decoration: none; }

/* ---- pills and buttons, same as the game ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 3px solid #fff; border-radius: 999px; padding: 8px 16px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); box-shadow: 0 4px 0 rgba(59,42,74,.16); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 16px 34px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; background: var(--candy); box-shadow: 0 6px 0 var(--candy-deep); text-decoration: none; cursor: pointer; transition: transform .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--candy-deep); }
.btn.mint { background: var(--mint); box-shadow: 0 6px 0 var(--mint-deep); }
.btn.quiet { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #d9c7d6; }
.btn.soon { opacity: .9; cursor: default; }
.btn svg { width: 24px; height: 24px; }

/* ---- hero: the game's sky, clouds, hills and the animated logo ---- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 110px 0 170px; background: linear-gradient(#7fd6ff 0%, #cfe9ff 55%, #ffd3ec 100%); overflow: hidden; }
.cloud { position: absolute; width: 180px; height: 60px; border-radius: 999px; background: rgba(255,255,255,.88); filter: drop-shadow(0 6px 0 rgba(59,42,74,.06)); animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 28px; top: -40px; }
.cloud::after { width: 60px; height: 60px; left: 90px; top: -28px; }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(110vw); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none; }
.hills svg { width: 100%; height: 100%; display: block; }
.lockup { position: relative; z-index: 2; }
.lockup .top { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 60px); letter-spacing: 3px; color: var(--candy-deep); text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(59,42,74,.15); }
.lockup .big { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(72px, 13vw, 124px); line-height: 1; color: #fff; text-shadow: 0 4px 0 var(--candy-deep), 0 9px 0 rgba(59,42,74,.18); letter-spacing: 2px; }
.ballwrap { position: relative; display: inline-flex; width: .8em; height: .8em; margin: 0 .02em; animation: logoBounce 1.3s ease-in-out infinite; }
.ball { position: absolute; inset: 0; border-radius: 50%; background: #ff4d6d; border: .06em solid rgba(59,42,74,.75); overflow: hidden; box-shadow: 0 .05em 0 rgba(59,42,74,.18); }
.ball .stripe { position: absolute; top: 36%; left: -10%; right: -10%; height: 23%; background: #fff; }
.ball .shine { position: absolute; top: 13%; left: 15%; width: 25%; height: 16%; border-radius: 50%; background: rgba(255,255,255,.6); transform: rotate(-30deg); }
@keyframes logoBounce { 0%,100% { transform: translateY(0) scale(1,1); } 40% { transform: translateY(-22%) scale(.96,1.04); } 50% { transform: translateY(-24%) scale(.96,1.04); } 90% { transform: translateY(0) scale(1.08,.92); } }
.tag { margin-top: 16px; display: inline-block; background: rgba(255,255,255,.85); border: 3px solid #fff; border-radius: 999px; padding: 7px 22px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 2px; box-shadow: 0 4px 0 rgba(59,42,74,.15); }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); max-width: 560px; margin: 22px auto 0; color: var(--ink); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero .fine { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---- how to play ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--cream); border: 3px solid #fff; border-radius: 22px; padding: 24px; box-shadow: 0 6px 0 rgba(59,42,74,.12); }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--candy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--candy-deep); }
.step h3 { font-size: 22px; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); }
.step svg { width: 100%; height: 110px; margin-top: 10px; }

/* ---- worlds ---- */
.worlds { background: linear-gradient(#ffd3ec, #fff0f7); }
.medals { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.medal { text-align: center; width: 128px; }
.medal .disc { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 6px 0 rgba(59,42,74,.16); display: flex; align-items: center; justify-content: center; }
.medal .disc svg { width: 48%; height: 48%; }
.medal.locked .disc { background: #c9c2d9 !important; }
.medal b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.medal small { color: var(--muted); font-size: 13px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.shot { border-radius: 20px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 0 rgba(59,42,74,.14); background: #fff; }
.shot img { aspect-ratio: 1194 / 834; object-fit: cover; }
.shot figcaption { padding: 10px 14px; font-family: var(--font-display); font-weight: 600; font-size: 15px; text-align: center; }

/* ---- monthly events ---- */
.events { background: linear-gradient(#fff0f7, #ffd3ec); }
.months { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 34px; }
.month { background: var(--cream); border: 3px solid #fff; border-radius: 18px; padding: 14px 12px; text-align: center; box-shadow: 0 5px 0 rgba(59,42,74,.12); }
.month .m { font-size: 12px; letter-spacing: 2px; color: var(--muted); font-weight: 900; }
.month .dot { width: 76px; height: 76px; border-radius: 50%; margin: 10px auto; border: 4px solid #fff; box-shadow: 0 4px 0 rgba(59,42,74,.14); display: flex; align-items: center; justify-content: center; }
.month .dot svg { width: 68%; height: 68%; }
.month b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.month.now { border-color: var(--gold); }
.month.now .m { color: var(--gold-deep); }

.month.tbd b { color: var(--muted); }

/* ---- promise ---- */
.promise .card { max-width: 820px; margin: 36px auto 0; text-align: center; padding: 34px 28px; }
.promise ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.promise li::before { content: '\2713'; display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: var(--mint); color: #fff; margin-right: 8px; font-size: 14px; }

/* ---- footer ---- */
footer { background: var(--ink); color: #fff; padding: 36px 0 44px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { color: #ffd3ec; text-decoration: none; margin-left: 18px; font-family: var(--font-display); font-weight: 600; }
footer small { color: #c9b8d4; }

/* ---- plain pages (privacy) ---- */
.page { padding: 120px 0 72px; background: linear-gradient(#7fd6ff 0%, #cfe9ff 30%, #ffd3ec 70%); min-height: 100svh; }
.page .card { max-width: 760px; margin: 0 auto; padding: 36px 32px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); color: var(--candy-deep); text-shadow: 0 2px 0 #fff; }
.page .meta { color: var(--muted); margin: 6px 0 24px; }
.page h2 { font-size: 22px; color: var(--ink); text-align: left; text-shadow: none; margin: 26px 0 8px; }
.page p, .page li { font-weight: 600; font-size: 16px; }
.page ul { padding-left: 22px; }

@media (max-width: 820px) {
  .steps, .shots { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 100px 0 150px; }
}
@media (prefers-reduced-motion: reduce) { .ballwrap, .cloud { animation: none; } }
