/* Eastlake Pets TCG
   Layout: soft pastel "binder page" — airy white ground, pastel tiles that echo card-sleeve colors,
   a sticky top bar on desktop that becomes a thumb-reach tab bar on phones. */
:root {
  --bg: #F7F5FC;
  --surface: #FFFFFF;
  --ink: #26223A;
  --muted: #625D78;
  --line: #E6E1F2;
  --lilac: #E1D8FC;
  --mint: #CDEFDF;
  --peach: #FFDCCC;
  --butter: #FFEFB5;
  --sky: #D5E6FB;
  --accent: #5B46C8;
  --accent-ink: #FFFFFF;
  --accent-soft: #EEEAFE;
  --danger: #C2410C;
  --shadow: 0 1px 2px rgb(38 34 58 / .06), 0 8px 24px -8px rgb(38 34 58 / .14);
  --shadow-lg: 0 2px 4px rgb(38 34 58 / .06), 0 24px 48px -16px rgb(38 34 58 / .28);
  --scrim: rgb(28 24 44 / .55);

  --font-display: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --card-r: 4.2%;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --topbar-h: 68px;
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131D; --surface: #201D2B; --ink: #F1EEFA; --muted: #ABA5BF; --line: #322E43;
    --lilac: #3A3260; --mint: #22433A; --peach: #4B3129; --butter: #463E22; --sky: #223853;
    --accent: #B9AAFF; --accent-ink: #1A1530; --accent-soft: #2B2546; --danger: #FB923C;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
    --scrim: rgb(6 5 12 / .72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15131D; --surface: #201D2B; --ink: #F1EEFA; --muted: #ABA5BF; --line: #322E43;
  --lilac: #3A3260; --mint: #22433A; --peach: #4B3129; --butter: #463E22; --sky: #223853;
  --accent: #B9AAFF; --accent-ink: #1A1530; --accent-soft: #2B2546; --danger: #FB923C;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
  --scrim: rgb(6 5 12 / .72);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.display--lg { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
.display--md { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.08; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .75rem; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 56ch; margin: 1rem 0 0; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .9rem;
}
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1.5px rgb(38 34 58 / .12); }
.dot--mint { background: var(--mint); } .dot--peach { background: var(--peach); } .dot--lilac { background: var(--lilac); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 1.5rem; letter-spacing: -.01em; }
.fineprint { font-size: .85rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg-b: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary svg { transition: transform .2s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--sm { min-height: 44px; padding: .55rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .4; cursor: default; transform: none; }

/* ---------- Top bar + tabs ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner {
  max-width: 1160px; margin-inline: auto; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; stroke: none; transition: transform .4s var(--spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__card { fill: var(--lilac); stroke: var(--accent); stroke-width: 2; }
.brand__paw { fill: var(--accent); }
.brand__text { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__text b { font-weight: 700; }
.brand__text small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: .15rem .4rem; border-radius: 6px; background: var(--butter); vertical-align: .2em; margin-left: .15rem; }

.tabs { position: relative; display: flex; gap: .25rem; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .5rem 1rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; color: var(--muted); text-decoration: none;
  transition: color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tab svg { width: 1.1rem; height: 1.1rem; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--ink); }
.tabs__pill {
  position: absolute; z-index: 0; top: .3rem; left: 0; height: calc(100% - .6rem); width: 0;
  border-radius: 999px; background: var(--lilac);
  transition: transform .45s var(--spring), width .45s var(--spring);
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; --tabbar-h: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .topbar__inner { justify-content: center; }
  .tabs {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    justify-content: space-around; gap: 0;
    padding: .4rem max(8px, env(safe-area-inset-right, 0px)) calc(.4rem + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-radius: 0; border: 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -6px 24px -12px rgb(38 34 58 / .2);
  }
  .tab { flex: 1; flex-direction: column; gap: .2rem; min-height: 54px; padding: .35rem .2rem; font-size: .72rem; border-radius: 14px; }
  .tab svg { width: 1.35rem; height: 1.35rem; }
  .tabs__pill { top: .4rem; height: 54px; border-radius: 14px; }
  body { padding-bottom: var(--tabbar-h); }
}

/* ---------- Views + transitions ---------- */
main { outline: none; min-height: 60vh; }
.view { padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.view.is-entering { animation: view-in .55s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* Reveal on scroll: content is visible at rest; JS only adds a gentle entrance when it is offscreen at load */
.reveal.will-reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-revealed { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 4rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__copy { min-width: 0; }
.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .06s; }
.hero__copy > :nth-child(3) { animation-delay: .12s; }
.hero__copy > :nth-child(4) { animation-delay: .18s; }
.hero__copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.25rem 0 0; }
.hero__stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem 1.1rem; min-width: 7.5rem; }
.hero__stats dt { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd { margin: .1rem 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.hero__stage { position: relative; min-width: 0; display: grid; place-items: center; padding: 2rem 0; }
.fan { position: relative; width: min(330px, 70vw); aspect-ratio: 63 / 88; z-index: 2; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fan__card { position: absolute; inset: 0; border-radius: var(--card-r); }
.fan__card--back { box-shadow: var(--shadow-lg); animation: deal .9s var(--spring) both .25s; }
.fan__card--l { --rot: -13deg; --tx: -26%; }
.fan__card--r { --rot: 11deg; --tx: 24%; animation-delay: .35s; }
.fan__card--back { transform: translateX(var(--tx)) rotate(var(--rot)) scale(.92); }
@keyframes deal { from { transform: translateX(0) rotate(0) scale(.92); opacity: 0; } to { transform: translateX(var(--tx)) rotate(var(--rot)) scale(.92); opacity: 1; } }
.fan__card--front { z-index: 2; animation: pop .8s var(--spring) both .1s; }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.cardback {
  position: absolute; inset: 0; border-radius: var(--card-r); overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, var(--surface) 0 17%, transparent 17.5%),
    radial-gradient(circle at 50% 50%, var(--accent) 0 21%, transparent 21.5%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(255 255 255 / .35) 14px 16px),
    linear-gradient(160deg, var(--lilac), var(--sky) 55%, var(--mint));
  border: 7px solid var(--surface);
}
.cardback::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='25' rx='7' ry='6'/%3E%3Ccircle cx='11' cy='16' r='3.2'/%3E%3Ccircle cx='16.5' cy='10.5' r='3.2'/%3E%3Ccircle cx='23.5' cy='10.5' r='3.2'/%3E%3Ccircle cx='29' cy='16' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cellipse cx='20' cy='25' rx='7' ry='6'/%3E%3Ccircle cx='11' cy='16' r='3.2'/%3E%3Ccircle cx='16.5' cy='10.5' r='3.2'/%3E%3Ccircle cx='23.5' cy='10.5' r='3.2'/%3E%3Ccircle cx='29' cy='16' r='3.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; animation: drift 14s ease-in-out infinite; }
.blob--lilac { width: 62%; aspect-ratio: 1; background: var(--lilac); top: 4%; right: 6%; }
.blob--mint { width: 34%; aspect-ratio: 1; background: var(--mint); bottom: 2%; left: 4%; animation-delay: -4s; }
.blob--peach { width: 22%; aspect-ratio: 1; background: var(--peach); top: 10%; left: 12%; animation-delay: -8s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(10px, -12px) scale(1.05); } }

/* ---------- Holo card ---------- */
.holo {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --shine: 0;
  position: relative; border-radius: var(--card-r); overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease), box-shadow .3s var(--ease);
  background: var(--surface);
}
.holo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 63 / 88; }
.holo.is-tilting { transition: transform .08s linear, box-shadow .3s var(--ease); }
.holo__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--shine);
  transition: opacity .35s var(--ease);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .55), transparent 45%),
    linear-gradient(115deg, transparent 20%, rgb(255 180 220 / .35) 36%, rgb(170 230 255 / .35) 48%, rgb(200 255 200 / .3) 58%, transparent 75%);
  background-size: 100% 100%, 220% 220%;
  background-position: center, var(--mx) var(--my);
  mix-blend-mode: soft-light;
}
.holo:hover, .holo.is-tilting { box-shadow: 0 30px 60px -20px rgb(38 34 58 / .45); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 clamp(3rem, 2rem + 4vw, 6rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.step__num { position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--muted); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); }
.step__art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step__art svg { width: 36px; height: 36px; stroke-width: 2.2; }
.step__art--peach { background: var(--peach); } .step__art--lilac { background: var(--lilac); } .step__art--mint { background: var(--mint); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 .4rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 4vw, 4.5rem); align-items: center; background: var(--peach); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.feature__card { width: min(320px, 100%); justify-self: center; cursor: pointer; }
.feature__copy { min-width: 0; }
.feature__copy p { max-width: 54ch; margin: 1rem 0 0; }
.feature__copy .eyebrow { color: var(--ink); opacity: .75; }
.feature__copy .btn { margin-top: 1.5rem; }
.statline { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.statline li { display: flex; align-items: baseline; gap: .5rem; background: var(--surface); border-radius: 999px; padding: .45rem 1rem; }
.statline span { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.statline b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--lilac); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.cta-band > div { min-width: 0; flex: 1 1 22rem; }
.cta-band p { margin: .6rem 0 0; max-width: 50ch; }

/* ---------- Gallery ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.search { flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: .6rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 1rem; min-height: 48px; transition: border-color .2s; }
.search:focus-within { border-color: var(--accent); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 1rem var(--font-body); color: var(--ink); padding: .7rem 0; }
.search input::placeholder { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .9rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .swatch { width: .7rem; height: .7rem; border-radius: 50%; }
.select select { min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .92rem var(--font-body); padding: 0 2.4rem 0 1rem; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0 0 1.25rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(1rem, .6rem + 1.5vw, 1.75rem); }
.tile { min-width: 0; display: flex; flex-direction: column; gap: .75rem; animation: tile-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.tile__btn { all: unset; display: block; cursor: pointer; border-radius: var(--card-r); }
.tile__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.tile__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-inline: .2rem; }
.tile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0; }
.tile__sub { font-size: .85rem; color: var(--muted); margin: 0; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; background: var(--tc, var(--lilac)); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.ghost { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 63 / 88; border-radius: var(--card-r); border: 2.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 1.25rem; color: var(--muted); background: color-mix(in srgb, var(--accent-soft) 55%, transparent); transition: background-color .25s, transform .3s var(--ease), border-color .25s; }
.ghost:hover { background: var(--accent-soft); transform: translateY(-4px); border-color: var(--accent); color: var(--ink); }
.ghost__plus { width: 54px; height: 54px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow); transition: transform .4s var(--spring); }
.ghost:hover .ghost__plus { transform: rotate(90deg); }
.ghost b { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.ghost span { font-size: .88rem; }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: .4rem; }

/* ---------- Viewer (card modal) ---------- */
.viewer { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(980px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; }
.viewer::backdrop { background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in .45s var(--spring); }
.viewer[open]::backdrop { animation: fade .3s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.viewer__body { background: var(--surface); border-radius: var(--r-lg); padding: clamp(1rem, .6rem + 2vw, 2.25rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start; max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: var(--shadow-lg); }
.viewer__card { width: 100%; max-width: 420px; justify-self: center; }
.viewer__info { min-width: 0; padding-top: .25rem; }
.viewer__species { color: var(--muted); font-weight: 600; margin: .35rem 0 0; }
.viewer__move { background: var(--bg); border-radius: var(--r); padding: 1rem 1.15rem; margin-top: 1.25rem; }
.viewer__move b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; margin-bottom: .25rem; }
.viewer__move p { margin: 0; color: var(--muted); font-size: .95rem; }
.viewer__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.viewer__stats div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .55rem .8rem; }
.viewer__stats dt { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.viewer__stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer__story { margin: 1rem 0 0; }
.viewer__nav { display: flex; gap: .5rem; margin-top: 1.5rem; }
.viewer__close { position: absolute; top: -10px; right: -10px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.viewer__close:hover { transform: rotate(90deg); }

/* ---------- Submit ---------- */
.submit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start; }
.submit__form { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.submit__form iframe { display: block; width: 100%; height: 1500px; border: 0; background: var(--surface); }
.formcard { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.formcard__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.formcard__icon { width: 56px; height: 56px; border-radius: 18px; background: var(--mint); display: grid; place-items: center; }
.formcard__icon svg { width: 28px; height: 28px; }
.formcard h2 { margin: 0; }
.formcard p { color: var(--muted); max-width: 52ch; }
.formcard__preview { margin: 1.5rem 0; display: grid; gap: .65rem; }
.field { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .7rem 1rem; display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: .95rem; }
.field span { color: var(--muted); font-weight: 600; font-size: .85rem; }
.formcard__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.notice { font-size: .88rem; color: var(--muted); background: var(--butter); border-radius: var(--r-sm); padding: .75rem 1rem; margin-top: 1.25rem; }
.notice b { color: var(--ink); }
.submit__tips { min-width: 0; display: grid; gap: .5rem; }
.tips, .asklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.tips li { display: flex; gap: .85rem; align-items: flex-start; }
.tip-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tip-ic--butter { background: var(--butter); } .tip-ic--peach { background: var(--peach); } .tip-ic--sky { background: var(--sky); } .tip-ic--mint { background: var(--mint); } .tip-ic--lilac { background: var(--lilac); }
.tips b { display: block; }
.tips div { color: var(--muted); font-size: .95rem; } .tips div b { color: var(--ink); }
.asklist li { position: relative; padding-left: 1.6rem; }
.asklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 4px; background: var(--mint); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 15%, transparent); }

.asklist i { font-style: normal; color: var(--muted); font-weight: 600; }
.perk { display: flex; gap: 1rem; align-items: flex-start; background: var(--butter); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1rem; }
.perk__icon { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--surface);
  color: var(--accent); box-shadow: var(--shadow); animation: twinkle 3.2s ease-in-out infinite; }
.perk__icon svg { fill: currentColor; stroke-width: 1.5; }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-10deg) scale(1.08); } }
.perk .h3 { margin-bottom: .35rem; }
.perk p, .ai-note p { margin: 0; font-size: .95rem; }
.ai-note { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.ai-note .h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.ai-note p { color: var(--muted); }

/* ---------- Submit button card (Google Form link-out) ---------- */
.submit__form:has(.form-cta) { background: linear-gradient(160deg, var(--lilac), var(--sky) 55%, var(--mint)); border: 0; }
.form-cta { padding: clamp(1.75rem, 1.2rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 3vw, 3rem); display: grid; justify-items: center; text-align: center; gap: 1rem; }
.form-cta p { margin: 0; max-width: 40ch; }
.form-cta__art { position: relative; width: 150px; height: 120px; margin-bottom: .5rem; }
.mini { position: absolute; top: 6px; left: 50%; width: 76px; aspect-ratio: 63 / 88; margin-left: -38px; border-radius: 9px; border: 4px solid var(--surface); box-shadow: var(--shadow-lg); }
.mini--l { background: var(--peach); transform: translateX(-38px) rotate(-14deg); animation: mini-l 3.6s ease-in-out infinite; }
.mini--r { background: var(--butter); transform: translateX(38px) rotate(12deg); animation: mini-r 3.6s ease-in-out infinite; }
.mini--c { background: var(--surface); display: grid; place-items: center; color: var(--accent); border-color: var(--accent); border-style: dashed; animation: float 4s ease-in-out infinite; }
.mini--c svg { width: 30px; height: 30px; stroke-width: 2.5; }
@keyframes mini-l { 0%, 100% { transform: translateX(-38px) rotate(-14deg); } 50% { transform: translateX(-44px) rotate(-18deg); } }
@keyframes mini-r { 0%, 100% { transform: translateX(38px) rotate(12deg); } 50% { transform: translateX(44px) rotate(16deg); } }
.form-cta__needs { list-style: none; padding: 0; margin: .25rem 0 .75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.form-cta__needs li { background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .9rem; }
.btn--xl { min-height: 60px; padding: 1rem 2rem; font-size: 1.1rem; }
.form-cta .btn--xl:hover { transform: translateY(-3px) scale(1.02); }
.form-cta__note { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Built-in pet form ---------- */
.pform { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); display: grid; gap: 1.75rem; }
.pform__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.pform__group + .pform__group { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.pform legend { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; padding: 0; margin-bottom: .25rem; }
.pform__step { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; background: var(--lilac); }
.pform__group:nth-of-type(2) .pform__step { background: var(--peach); }
.pform__group:nth-of-type(3) .pform__step { background: var(--butter); }
.pform__group:nth-of-type(4) .pform__step { background: var(--mint); }
.pform__help { margin: -.25rem 0 0; font-size: .92rem; color: var(--muted); }
.pform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pfield { display: grid; gap: .4rem; min-width: 0; }
.pfield label { font-weight: 700; font-size: .95rem; }
.pfield label i, .check i { font-style: normal; font-weight: 600; font-size: .8rem; color: var(--muted); margin-left: .25rem; }
.pfield input, .pfield select, .pfield textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: 600 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pfield textarea { resize: vertical; min-height: 5.5rem; }
.pfield input::placeholder, .pfield textarea::placeholder { color: var(--muted); font-weight: 400; opacity: .85; }
.pfield input:focus, .pfield select:focus, .pfield textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.pfield select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - .8rem) 52%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.pfield #f-speciesOther { margin-top: .25rem; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.check.is-invalid { outline: 2px solid var(--danger); }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  min-height: 132px; padding: 1.25rem; border-radius: var(--r); border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 50%, transparent); color: var(--muted); cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.drop svg { width: 2rem; height: 2rem; color: var(--accent); }
.drop b { color: var(--ink); }
.drop:hover, .drop.is-over { background: var(--accent-soft); border-color: var(--accent); }
.drop.is-over { transform: scale(1.01); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.is-full { display: none; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); animation: pop .4s var(--spring) both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(20 18 30 / .7); color: #FFFFFF; cursor: pointer; }
.thumb__x svg { width: 1rem; height: 1rem; }

.check { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: var(--bg); cursor: pointer; font-weight: 600; }
.check input { width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.check--foil { background: var(--butter); }
.pform__reveal { display: grid; gap: 1rem; padding: 1rem; border-radius: 14px; border: 1.5px dashed var(--line); }
.pform__reveal.is-open { animation: view-in .4s var(--ease) both; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pform__footer { display: grid; gap: .75rem; justify-items: start; }
.pform__error { margin: 0; padding: .75rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--ink); font-weight: 600; font-size: .95rem; }
.pform__fallback { font-weight: 700; color: var(--accent); }
.pform__fine { margin: 0; font-size: .85rem; color: var(--muted); }
.btn--submit { min-width: 12rem; }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn--submit.is-busy .spinner { display: inline-block; }
.btn--submit.is-busy { cursor: progress; opacity: .85; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.sent { padding: clamp(1.5rem, 1rem + 3vw, 3rem); text-align: center; display: grid; justify-items: center; gap: .75rem; outline: none; }
.sent.is-in { animation: view-in .6s var(--ease) both; }
.sent__badge { width: 76px; height: 76px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; animation: pop .7s var(--spring) both .1s; }
.sent__badge svg { width: 38px; height: 38px; stroke-width: 2.6; }
.sent p { color: var(--muted); max-width: 42ch; margin: 0; }
.sent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .75rem; }
@media (max-width: 560px) { .pform__row { grid-template-columns: minmax(0, 1fr); } .btn--submit { width: 100%; } }

/* ---------- Find ---------- */
.spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .35rem; }
.spot h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.spot p { margin: 0; color: var(--muted); font-size: .92rem; }
.spots-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 2vw, 2rem); margin-bottom: 2.5rem; }
.spots-empty__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--sky); display: grid; place-items: center; }
.spots-empty__icon svg { width: 32px; height: 32px; }
.spots-empty h2 { margin: 0 0 .25rem; }
.spots-empty p { margin: 0; color: var(--muted); }
.kinds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.host { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.25rem, 1rem + 3vw, 3rem); background: var(--mint); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
.host__copy { min-width: 0; }
.host__copy p { max-width: 52ch; }
.contact { font-weight: 700; }
.contact a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.host__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.host__list li { background: var(--surface); border-radius: var(--r); padding: .9rem 1.1rem; font-weight: 700; display: flex; align-items: center; gap: .75rem; }
.host__list li::before { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.about__copy { min-width: 0; }
.about__photo { margin: 0; position: sticky; top: calc(var(--topbar-h) + 24px + env(safe-area-inset-top, 0px)); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg);
  border: 8px solid var(--surface); box-shadow: var(--shadow-lg); transform: rotate(-2deg); transition: transform .5s var(--spring); }
.about__photo:hover img { transform: rotate(0) scale(1.02); }
.about__photo figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); text-align: center; margin-top: .9rem; }
/* Orca ID card photo: white product shot, so it sits on its own white "print" in both themes */
.about__orcas { margin: .5rem 0 1.6rem; max-width: 460px; }
.about__orcas img { width: 100%; background: #FFFFFF; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.5deg); transition: transform .5s var(--spring); }
.about__orcas:hover img { transform: rotate(0) scale(1.02); }
.about__orcas figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); margin-top: .7rem; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__photo { position: static; width: min(280px, 75%); justify-self: center; }
}
.about .prose { max-width: 64ch; font-size: 1.08rem; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.5rem; display: grid; gap: .4rem; }
.prose .fineprint { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Commission callout ---------- */
.commission { background: var(--lilac); border-radius: var(--r-lg); padding: 1.25rem 1.4rem; margin: 1.75rem 0 .5rem; display: grid; gap: .6rem; justify-items: start; }
.commission .h3 { margin: 0; }
.commission p { margin: 0; }
.commission .btn { word-break: break-all; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; font-size: .92rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer b { color: var(--ink); }
.footer__links { display: flex; gap: 1.25rem; }
.footer__links a { text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--ink); }
.footer__contact a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hero__stage { order: -1; padding: .5rem 0 1rem; }
  .fan { width: min(240px, 56vw); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .feature, .host, .submit { grid-template-columns: minmax(0, 1fr); }
  .viewer__body { grid-template-columns: minmax(0, 1fr); }
  .viewer__card { max-width: 300px; }
}
@media (max-width: 760px) {
  .brand__text { font-size: 1.1rem; }
  .footer { padding-bottom: 1.25rem; }
  .viewer__close { top: 8px; right: 8px; }
}
@media (max-width: 480px) {
  .hero__stats div { min-width: 0; flex: 1 1 0; padding: .6rem .8rem; }
  .hero__stats dd { font-size: 1.3rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .spots-empty { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal.will-reveal { opacity: 1; transform: none; }
}
