/* Biscuit's Big Bite — biscuitsbigbite.com. Colours from the game: the kitchen's sky, the cream cards, the label
   brown (63, 30, 16) and the Main Menu PLAY button (sky-blue capsule, navy outline, white navy-outlined letters).
   Fredoka is the game's own font (SIL OFL), served from this site. No header bar (Rob). The falling items are cut out
   of the game's own rendering (each item with its real trail, glow and sparkles: GameScene.stageTrailSprites); they
   fall through the hero behind its content and dissolve at its bottom (site.js). */

@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-500-normal.ttf") format("truetype");
             font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin-700-normal.ttf") format("truetype");
             font-weight: 700; font-display: swap; }

:root {
  --brown: #3f1e10;
  --brown-soft: #6b3d24;
  --cream: #fff6e6;
  --sky-1: #8fd3ff;
  --sky-2: #d9f2ff;
  --navy: #0e3c54;               /* the PLAY button's outline */
  --play-top: #4ad3fd;
  --play-mid: #1fb8f3;
  --play-low: #10b0f0;
  --play-band: #0291e0;
  --radius: 28px;
  --card-shadow: 0 10px 0 rgba(63, 30, 16, .10), 0 18px 36px rgba(63, 30, 16, .14);
  --phone-shadow: 0 24px 48px rgba(0, 0, 0, .22), 0 6px 14px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--brown);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-weight: 500; font-size: 18px; line-height: 1.5; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: #0b6fb3; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Keyboard focus is always visible (WCAG 2.4.7): a navy ring on the light pages, a cream one on the brown footer. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.footer :focus-visible { outline-color: #fff6e6; }
#main:focus { outline: none; }                     /* the skip link's target, focused only to move the reading point */

/* "Pause animations" (WCAG 2.2.2): stops the falling items, the gameplay clips and every looping animation. Shown
   by site.js; with Reduce Motion on, nothing moves to begin with, so it stays hidden. */
.motion-toggle { position: absolute; top: 14px; right: max(14px, env(safe-area-inset-right)); z-index: 5;
                 display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; min-height: 36px;
                 border: 2px solid rgba(63, 30, 16, .16); border-radius: 999px; background: rgba(255, 255, 255, .88);
                 color: var(--brown); font: 700 14px/1.2 "Fredoka", system-ui, sans-serif; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { fill: currentColor; }
.motion-toggle .icon-play, .motion-paused .motion-toggle .icon-pause { display: none; }
.motion-paused .motion-toggle .icon-play { display: inline; }
.motion-toggle:hover { background: #fff; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- the PLAY-style button */
.btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 280px; padding: 14px 40px 16px; border: 4px solid var(--navy); border-radius: 999px;
  background: linear-gradient(180deg, #7fe2ff 0%, var(--play-top) 16%, var(--play-mid) 52%, var(--play-low) 80%, var(--play-band) 100%);
  box-shadow: inset 0 -5px 0 var(--play-band), 0 4px 0 var(--navy), 0 12px 22px rgba(14, 60, 84, .28);
  color: #fff; text-decoration: none; cursor: pointer; overflow: hidden;
  font: 700 30px/1.05 "Fredoka", system-ui, sans-serif; letter-spacing: .01em;
  -webkit-text-stroke: 6px var(--navy); paint-order: stroke fill; text-shadow: 0 3px 0 var(--navy);
  transition: transform .12s, box-shadow .12s;
}
.btn::before {                                    /* the capsule's gloss, top left */
  content: ""; position: absolute; left: 7%; top: 9%; width: 13%; height: 24%; border-radius: 999px;
  background: rgba(255, 255, 255, .75); transform: rotate(-14deg); filter: blur(.5px);
}
.btn small { font-size: 17px; letter-spacing: .03em; -webkit-text-stroke: 4px var(--navy); text-shadow: 0 2px 0 var(--navy); }
a.btn:hover { transform: translateY(-2px); }
a.btn:active { transform: translateY(3px); box-shadow: inset 0 -5px 0 var(--play-band), 0 1px 0 var(--navy); }
.btn.soon { cursor: default; }
.badge-link img { height: 64px; width: auto; display: block; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden;           /* blue all the way down the content, cream only at the end */
        background: linear-gradient(180deg, var(--sky-1) 0%, #b4e4ff 55%, #d3f0ff calc(100% - 130px), var(--cream) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 64px 20px 110px;
              display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.logo { width: min(560px, 100%); filter: drop-shadow(0 10px 0 rgba(63, 30, 16, .12)); animation: bob 4s ease-in-out infinite; }
.tagline { font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 12px 0 10px; }
.tagline .pop { color: #2aaefc; display: inline-block; animation: wiggle 2.4s ease-in-out infinite;   /* the logo's */
                -webkit-text-stroke: 6px var(--brown); paint-order: stroke fill; text-shadow: 0 3px 0 var(--brown);   /* "Big Bite" */
                letter-spacing: .02em; margin-left: .12em; }
.lede { font-size: 20px; max-width: 520px; margin: 0 0 26px; color: var(--brown-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; }
.chips li { background: rgba(255, 255, 255, .85); border: 3px solid rgba(63, 30, 16, .1); border-radius: 999px;
            padding: 6px 16px; font-weight: 700; font-size: 16px; white-space: nowrap; }

.hero-phone { position: relative; display: flex; justify-content: center; }
.peek-bear { position: absolute; width: 46%; left: -20%; bottom: -6%; z-index: 3;
             filter: drop-shadow(0 12px 18px rgba(63, 30, 16, .25)); animation: bob 3.2s ease-in-out infinite; }

/* An iPhone around real gameplay. The screen takes the clip's own shape (900 x 1956) and the frame grows round it, so
   the whole clip shows at every width, HUD included (Rob, 2026-10-16: the HUD was cut off at the sides, because the
   frame's 11 px bezel came out of a frame shaped like the clip, and "cover" cropped the rest). Corners at an iPhone's
   own rounding (about 12.5 % of the screen's width). */
.phone { position: relative; width: min(330px, 78vw); border-radius: 50px; padding: 11px;
         background: linear-gradient(145deg, #34343c, #101015); box-shadow: inset 0 0 0 2px #5a5a66, var(--phone-shadow);
         transform: rotate(3deg); }
.phone.small { width: min(290px, 72vw); transform: rotate(-3deg); }
.phone-video { width: 100%; height: auto; aspect-ratio: 900 / 1956; display: block; object-fit: contain;
               border-radius: 39px; background: #9fd8ff; }
.phone.small .phone-video { border-radius: 34px; }
.phone-video { cursor: pointer; }

/* Falling items with their real trails, through the hero (placed and animated by site.js). */
.sky { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fall { position: absolute; top: 0; left: 0; max-width: none; }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.how { padding: 70px 0 80px; }
.section-title { font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; text-align: center; margin: 0 0 12px; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; font-size: 20px; color: var(--brown-soft); margin: 0 0 40px; }

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.card { background: #fffaf1; border: 4px solid #c99a6b; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.play-card { flex: 1 1 180px; max-width: 216px; padding: 22px 18px 24px; text-align: center; transition: transform .2s; }
.play-card:hover { transform: translateY(-6px) rotate(-1deg); }
.card-art { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 96px; margin-bottom: 14px; }
.card-art img { width: 29%; max-width: 64px; filter: drop-shadow(0 0 12px var(--accent)); }
.card-art img:nth-child(2) { width: 33%; max-width: 72px; transform: translateY(-10px); }
.card-art .x3 { width: 44%; max-width: 96px; }
.play-card h3 { font-weight: 700; font-size: 24px; margin: 0 0 8px; line-height: 1.15; }
.play-card p { margin: 0; color: var(--brown-soft); font-size: 17px; }

.grow { background: linear-gradient(180deg, var(--cream) 0%, #ffe2b8 100%); padding: 80px 0 100px; }
.grow-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.grow-copy p { font-size: 20px; color: var(--brown-soft); max-width: 520px; }
.multipliers { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 24px 0; }
.multipliers li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.multipliers img { height: 46px; width: auto; filter: drop-shadow(0 4px 6px rgba(63, 30, 16, .18)); }
.multipliers span { font-size: 15px; font-weight: 700; color: var(--brown-soft); }


.love { padding: 70px 0 80px; background: var(--sky-1); }
.features { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.features li { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 6px 0 rgba(63, 30, 16, .08); }
.features strong { display: block; font-size: 22px; margin-bottom: 4px; }
.features span { color: var(--brown-soft); font-size: 17px; }

.final { padding: 80px 0 90px; background: linear-gradient(180deg, var(--cream), #ffe9c7); }
.final-inner { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.final p { font-size: 22px; color: var(--brown-soft); }
.jump-bear { animation: hop 2.2s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(63, 30, 16, .2)); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--brown); color: #f6dcc0; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 40px 20px max(40px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.brand-logo { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 26px 0 22px; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.footer-links a:hover { text-decoration: underline; }
.fine { font-size: 14px; opacity: .8; margin: 0; }

/* ---------------------------------------------------------------- legal pages */
.legal { background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 240px, var(--cream) 520px); }
.doc { max-width: 820px; margin: 0 auto; padding: 36px 20px 80px; }
.doc-home { display: block; width: min(240px, 60%); margin: 0 auto 26px; }
.doc-home img { display: block; width: 100%; filter: drop-shadow(0 6px 0 rgba(63, 30, 16, .12)); }
.doc .card { padding: clamp(24px, 5vw, 56px); }
.doc h1 { font-weight: 700; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 18px; }
.doc h2 { font-weight: 700; font-size: 26px; margin: 34px 0 10px; line-height: 1.2; }
.doc h3 { font-weight: 700; font-size: 20px; margin: 24px 0 6px; }
.doc p, .doc li { color: #4b2a19; font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { font-weight: 700; overflow-wrap: anywhere; }
.doc a.btn { color: #fff; }

/* ---------------------------------------------------------------- 404: Biscuit got bonked */
.lost { position: relative; overflow: hidden;
        background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%, var(--cream) 100%); }
.lost-inner { position: relative; z-index: 2; max-width: 1040px; min-height: min(100vh, 860px); margin: 0 auto;
              padding: 56px 20px 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.four-oh-four { display: flex; align-items: center; margin: 0; font: 700 clamp(110px, 15vw, 170px)/1 "Fredoka", sans-serif;
                color: #fff; -webkit-text-stroke: 14px var(--navy); paint-order: stroke fill; text-shadow: 0 8px 0 var(--navy);
                letter-spacing: -.02em; }
.four-oh-four img { width: .82em; margin: 0 .04em; filter: drop-shadow(0 0 14px rgba(255, 200, 40, .9));
                    animation: coin-flip 2.6s ease-in-out infinite; }
.lost h1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; margin: 18px 0 10px; }
.lost-copy > p:not(.four-oh-four) { font-size: 20px; color: var(--brown-soft); margin: 0 0 26px; max-width: 460px; }
.lost-links { margin-top: 22px !important; font-size: 17px !important; }
.lost-links a { font-weight: 700; color: var(--brown); }     /* 9:1 on the sky (the site blue was 4.6:1 here) */
.lost-bear { position: relative; width: min(400px, 100%); justify-self: center; }
.lost-bear::after {                                /* his shadow on the floor */
  content: ""; position: absolute; left: 12%; right: 8%; bottom: -2%; height: 9%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(63, 30, 16, .28), transparent); animation: shadow-sway 2.8s ease-in-out infinite;
}
.sway { position: relative; transform-origin: 50% 96%; animation: dizzy 2.8s ease-in-out infinite; }
.dizzy { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(63, 30, 16, .2)); }
.pan { position: absolute; width: 30%; left: -16%; bottom: 0; transform: rotate(-24deg);
       filter: drop-shadow(0 6px 8px rgba(63, 30, 16, .25)); }
/* Sparkle stars circling his head: an ellipse from two eased back-and-forth moves a quarter-turn apart. */
.ring { position: absolute; left: 6%; right: 2%; top: 1%; height: 15%; pointer-events: none; }
.ring .ox, .ring .oy { position: absolute; inset: 0; animation: 1.3s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.ring .ox { animation-name: orbit-x; }
.ring .oy { animation-name: orbit-y; }
.ring img { position: absolute; left: 50%; top: 50%; width: 15%; transform: translate(-50%, -50%); }
.ring .s1 .ox { animation-delay: 0s; }      .ring .s1 .oy { animation-delay: -.65s; }
.ring .s2 .ox { animation-delay: -.87s; }   .ring .s2 .oy { animation-delay: -1.52s; }
.ring .s3 .ox { animation-delay: -1.73s; }  .ring .s3 .oy { animation-delay: -2.38s; }
.ring .star { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- motion */
@keyframes dizzy { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
@keyframes shadow-sway { 0%, 100% { transform: translateX(-4%); } 50% { transform: translateX(4%); } }
@keyframes orbit-x { from { transform: translateX(-50%); } to { transform: translateX(50%); } }
@keyframes orbit-y { from { transform: translateY(-50%) scale(.7); } to { transform: translateY(50%) scale(1.15); } }
@keyframes coin-flip { 0%, 30% { transform: rotateY(0); } 70%, 100% { transform: rotateY(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 40% { transform: translateY(-28px) rotate(2deg); } 60% { transform: translateY(-28px) rotate(2deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-6deg) scale(1.08); } 20% { transform: rotate(5deg) scale(1.08); } 30% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fall { display: none; }
}

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 860px) {
  /* One column: logo, words, the phone, then COMING SOON and the chips under it (Rob). */
  .hero { background: linear-gradient(180deg, var(--sky-1) 0%, #b4e4ff 55%, #d3f0ff calc(100% - 64px), var(--cream) 100%); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: center; padding: 72px 20px 88px; }
  .hero-copy { display: contents; }
  .logo { justify-self: center; }
  .hero-phone { order: 1; }
  .cta-row, .chips { order: 2; }
  .cta-row { justify-content: center; margin-top: 44px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row .btn { width: 100%; max-width: 480px; min-width: 0; }
  .chips { justify-content: center; flex-wrap: nowrap; gap: 6px; }
  .chips li { font-size: clamp(11px, 3.25vw, 15px); padding: .4em .75em; border-width: 2px; }
  .hero-phone { margin-top: 10px; }
  .peek-bear { left: -2%; width: 40%; bottom: -4%; }
  .grow-inner, .final-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .section-title.left { text-align: center; }
  .grow-copy p { margin-left: auto; margin-right: auto; }
  /* "Watch Biscuit grow": the title, then the clip (centred), then the words and the size pills. */
  .grow-inner { gap: 0; }
  .grow-copy { display: contents; }
  .grow-copy > :not(.section-title) { order: 2; }
  .grow-inner .phone.small { order: 1; justify-self: center; margin: 22px 0 30px; }
  .multipliers { justify-content: center; }
  .final-inner .jump-bear { width: 240px; margin: 0 auto; }
  .final .btn { width: 100%; max-width: 480px; min-width: 0; }
  .lost-inner { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 64px 20px 64px; gap: 10px; min-height: 0; }
  .four-oh-four { justify-content: center; -webkit-text-stroke-width: 11px; }
  .lost-copy > p:not(.four-oh-four) { margin-left: auto; margin-right: auto; }
  .lost .btn { width: 100%; max-width: 480px; min-width: 0; }
  .lost-bear { grid-row: 1; width: min(300px, 74%); margin-top: 6px; }
}
@media (max-width: 520px) {
  .play-card { flex-basis: 100%; max-width: none; }
  .btn { font-size: 26px; }
  .footer-links { flex-direction: column; gap: 12px; }
}
@media (max-width: 359px) {                        /* narrower than any current iPhone */
  .chips { flex-wrap: wrap; }
}
