/* SharkClub.win — playful, mobile-first, high-contrast */
/* Digital gold star + sticker collection + absurd shark humor */

/* ---------- Fonts (self-hosted, no external calls) ---------- */
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latinext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

/* ---------- Palette ---------- */
:root {
  --ink:        #0b2545;   /* deep navy text — high contrast */
  --ink-soft:   #31507a;
  --deep:       #124a7e;   /* deep ocean */
  --sea:        #1295c8;   /* mid ocean */
  --sky:        #59d0f0;   /* light sea */
  --foam:       #eafcff;   /* near-white card bg */
  --sand:       #fff7e6;
  --sun:        #ffcf3f;   /* sunny accent */
  --sun-dark:   #f5a623;
  --coral:      #ff5a5f;   /* main action — chunky */
  --coral-dark: #e8484d;
  --sea2:       #20b8a6;   /* secondary teal */
  --sea2-dark:  #17988a;
  --grape:      #8f5fd6;
  --outline:    rgba(11,37,69,.12);
  --card-shadow: 0 10px 0 rgba(11,37,69,.10), 0 18px 30px rgba(11,37,69,.12);
  --radius:     26px;
  --white:      #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', 'Segoe UI Rounded', 'Comic Sans MS', 'Baloo 2',
               ui-rounded, 'Trebuchet MS', sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

/* Ocean backdrop */
body {
  background:
    radial-gradient(circle at 85% -5%, rgba(255,255,255,.55) 0 12%, transparent 60%),
    linear-gradient(180deg, var(--sky) 0%, var(--sea) 42%, var(--deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Wave strip at very top of some pages */
.page {
  max-width: 560px;         /* phone-first column */
  margin: 0 auto;
  padding: 14px 18px 70px;
}

/* ---------- Header / nav ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 4px 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .3px;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.logo .mark {
  width: 38px; height: 38px;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 3px 0 rgba(0,0,0,.16);
  display: grid; place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo .mark img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,.20);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: .95rem;
  backdrop-filter: blur(3px);
}
.nav-links a:active { transform: translateY(2px); }

/* ---------- Cards ---------- */
.card {
  background: var(--foam);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 26px 24px;
  border: 3px solid rgba(255,255,255,.6);
}
.card h1, .card h2, .card h3 { margin-top: 0; }

/* ---------- Type ---------- */
h1 { font-size: 2.15rem; line-height: 1.05; margin: .2em 0 .25em; font-weight: 700; }
h2 { font-size: 1.6rem; line-height: 1.1; font-weight: 700; }
.center { text-align: center; }
.lead  { font-size: 1.22rem; color: var(--ink-soft); font-weight: 500; }
.big-wow { font-size: 2.6rem; letter-spacing: .5px; }
.tag { display:inline-block; background: var(--sun); border-radius:999px; padding:5px 14px; font-weight:700; }

/* ---------- Buttons (huge, thumb-friendly) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  border: none; cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  min-height: 64px;
  padding: 12px 26px;
  font-size: 1.35rem;
  color: var(--white);
  transition: transform .06s ease, box-shadow .06s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(4px); }
.btn-coral { background: var(--coral); box-shadow: 0 7px 0 var(--coral-dark); }
.btn-coral:active { box-shadow: 0 3px 0 var(--coral-dark); }
.btn-sun   { background: var(--sun);    color: var(--ink); box-shadow: 0 7px 0 var(--sun-dark); }
.btn-sun:active   { box-shadow: 0 3px 0 var(--sun-dark); }
.btn-sea   { background: var(--sea2);    box-shadow: 0 7px 0 var(--sea2-dark); }
.btn-sea:active   { box-shadow: 0 3px 0 var(--sea2-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border: 3px solid var(--outline); box-shadow: 0 7px 0 var(--outline); }
.btn-ghost:active { box-shadow: 0 3px 0 var(--outline); }
.btn-lg { min-width: min(86%, 380px); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* ---------- Forms ---------- */
.field { margin: 0 0 18px; }
.field label {
  display:block; font-weight:700; font-size:1.05rem; margin-bottom:7px;
}
.input {
  width:100%;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--deep);
  border-radius: 18px;
  padding: 15px 18px;
  min-height: 58px;
}
.input:focus { outline: 4px solid rgba(255,207,63,.6); border-color: var(--deep); }
.input::placeholder { color: #a9bdcc; font-weight:400; }
.opt { font-size:.92rem; color: var(--ink-soft); margin-top:5px; }

/* ---------- Shark stage ---------- */
.stage { margin: 6px auto 18px; }
.stage img.shark-big {
  width: min(82%, 320px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 0 rgba(11,37,69,.14));
  animation: pop .45s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop {
  0% { transform: scale(.4) rotate(-6deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- Collection grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 6px;
}
.shark-card {
  background: var(--white);
  border-radius: 20px;
  border: 3px solid var(--outline);
  box-shadow: 0 7px 0 rgba(11,37,69,.08);
  padding: 14px 12px 12px;
  text-align: center;
  animation: pop .4s ease backwards;
}
.shark-card img { width: 76%; height: auto; margin: 0 auto 8px; display:block; }
.shark-card .name { font-weight: 700; font-size: 1.05rem; line-height:1.1; }
.shark-card .book { color: var(--ink-soft); font-size: .84rem; line-height:1.2; }
.shark-card .date { color: #8aa0b8; font-size: .74rem; margin-top:3px; }
.count-pill {
  background: var(--sun); color: var(--ink);
  font-weight:700; border-radius:999px; padding:6px 16px; display:inline-block;
}
.ribbon { font-size:.95rem; color: var(--white); opacity:.95; }

/* ---------- small bits ---------- */
.rowline { font-size:1.2rem; font-weight:600; margin:.15em 0; }
.shark-name-big { font-size:2rem; font-weight:700; }
.confetti { font-size:2.6rem; letter-spacing:4px; }
.desc { color: var(--ink-soft); font-size:1.02rem; max-width:40ch; margin:.4em auto; }
.muted { color: #8aa0b8; }
.spacer { height: 8px; }
.hide { display:none; }
a.inline { color: var(--deep); font-weight:700; }
.small-note { font-size:.85rem; color: var(--ink-soft); text-align:center; }

/* footer */
.foot { color: rgba(255,255,255,.85); text-align:center; font-size:.82rem; margin-top:26px; padding-top:6px; }
.foot a { color:#fff; font-weight:600; }

/* decorative floating bubbles */
.bubble {
  position: fixed; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(255,255,255,.05));
  pointer-events:none; z-index:-1;
}

@media (min-width: 720px) {
  .page { max-width: 720px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.6rem; }
}
