/* Fundameme link hub.
   Layout: one ink stage. Hero lockup (mascot, wordmark, tagline, links) centred, then crossing tickers,
   a swipe game, a reel of Shorts, a physics sticker pit and a loading bar. Dark by design: the brand lives on ink. */
:root {
  --ink: #0E1116;
  --ink-2: #151A21;
  --ink-3: #1F2630;
  --line: #2B3340;
  --fg: #F3F5EF;
  --muted: #A1AAA5;
  --lime: #D2F534;
  --lime-logo: #D4FA34;
  --yellow: #FFD23F;
  --coral: #FF5D47;
  --violet: #7B5CFF;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow-hard: 6px 7px 0 rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--lime); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 7vw, 84px); }
h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--lime); letter-spacing: -0.02em; }
p { margin: 0; }

/* stickers shared */
.sticker {
  display: inline-block; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--ink); padding: 0.32em 0.62em 0.4em; border-radius: 0.42em; box-shadow: var(--shadow-hard);
}
.s-yellow { background: var(--yellow); } .s-white { background: var(--white); } .s-lime { background: var(--lime); }
.s-violet { background: var(--violet); color: var(--white); } .s-coral { background: var(--coral); color: var(--white); }

/* sound toggle */
.sound {
  position: fixed; z-index: 40; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(21, 26, 33, 0.82); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.sound[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; padding: calc(70px + env(safe-area-inset-top, 0px)) var(--gutter) 56px; isolation: isolate; }
.dots { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255,255,255,0.065) 1.6px, transparent 1.6px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 35%, #000 30%, transparent 75%); }
.hero::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 240px; width: min(900px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(212, 250, 52, 0.20), transparent); pointer-events: none; }
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; font-size: clamp(13px, 1.6vw, 20px); will-change: transform; }
.fl:nth-child(1) { left: 6%; top: 18%; } .fl:nth-child(2) { right: 7%; top: 14%; }
.fl:nth-child(3) { left: 4%; top: 58%; } .fl:nth-child(4) { right: 5%; top: 52%; }
.fl:nth-child(5) { left: 5%; top: 93%; } .fl:nth-child(6) { right: 5%; top: 92%; }
.fl:nth-child(7) { left: 22%; top: 8%; } .fl:nth-child(8) { right: 24%; top: 34%; }
@media (max-width: 700px) { .fl:nth-child(n+3):not(:nth-child(7)) { display: none; } .fl:nth-child(7) { left: auto; right: 8%; top: 4%; } }
.shades-mini { width: clamp(60px, 7vw, 96px); }
.shades-mini img { width: 100%; height: auto; filter: drop-shadow(4px 5px 0 rgba(0,0,0,0.5)); }
.shades-mini svg, .m-shades svg { width: 100%; height: 100%; display: block; }

.hero-inner { max-width: 980px; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: clamp(16px, 2.4vw, 26px); }

/* mascot */
.mascot { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: clamp(170px, 26vw, 260px); aspect-ratio: 1; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.mascot-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.m-base, .m-full { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 26px rgba(0,0,0,0.5)); }
/* with JS, start bare-faced so the shades can drop; without JS the full logo shows */
.js .m-full, .js .m-shades { opacity: 0; }
.m-shades img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the real shades, lifted out of the logo: 485x142 at (91, 239) on the 640 px icon */
.m-shades { position: absolute; left: 14.22%; top: 37.34%; width: 75.78%; height: 22.19%; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.m-shadow { position: absolute; left: 18%; right: 18%; bottom: -16px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent); z-index: -1; }
.m-quip {
  position: absolute; left: 82%; top: 2%; z-index: 3; opacity: 0; pointer-events: none;
  background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(13px, 1.5vw, 16px);
  padding: 8px 12px 10px; border-radius: 14px 14px 14px 4px; white-space: nowrap; box-shadow: var(--shadow-hard); letter-spacing: -0.01em;
}
@media (max-width: 560px) { .m-quip { left: 50%; top: -18%; transform: translateX(-50%); border-radius: 14px; } }

/* wordmark */
.wordmark { display: flex; align-items: baseline; justify-content: center; line-height: 0.9; flex-wrap: nowrap; }
.wordmark span span { display: inline-block; will-change: transform; }
.w-funda { font-family: var(--display); font-weight: 800; letter-spacing: -0.055em; color: var(--white); font-size: clamp(60px, 13vw, 150px); }
.w-meme { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; color: var(--lime); font-size: clamp(68px, 14.7vw, 170px); margin-left: 0.03em; }

/* tagline */
.tagline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3vw, 32px); letter-spacing: -0.02em; }
.t-fact, .t-meme { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.t-meme .t-word { color: var(--yellow); }
.t-stamp { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 0.8em; font-weight: 800; box-shadow: 3px 4px 0 rgba(0,0,0,0.5); }
.t-bar { position: relative; display: inline-block; width: 4.6em; height: 0.95em; border-radius: 999px; border: 2px solid var(--yellow); overflow: hidden; font-size: 0.75em; }
.t-bar i { position: absolute; inset: 0; width: 0%; background: var(--yellow); }
.t-bar b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--body); font-size: 0.62em; font-weight: 700; color: var(--ink); mix-blend-mode: normal; }

/* links */
.links { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(900px, 100%); }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; max-width: 440px; } }
.link {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; cursor: pointer;
  padding: 16px 18px; border-radius: 20px; background: var(--ink-2); border: 2px solid var(--line); min-width: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0); transition: border-color .2s, background-color .2s, box-shadow .2s; will-change: transform;
}
.link:hover { border-color: var(--lime); box-shadow: var(--shadow-hard); }
.link:active { transform: scale(0.97); }
.l-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.l-ico svg { width: 26px; height: 26px; fill: currentColor; }
.yt .l-ico { background: #FF0033; color: var(--white); }
.ig .l-ico { background: linear-gradient(135deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 80%, #4F5BD5); color: var(--white); }
.mail .l-ico { background: var(--lime); color: var(--ink); }
.l-txt { display: grid; min-width: 0; }
.l-txt b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.l-txt small { color: var(--muted); font-size: 13.5px; }
.mail .l-txt small { white-space: nowrap; font-size: 13px; }
.l-go { margin-left: auto; font-size: 20px; color: var(--muted); transition: transform .25s, color .2s; }
.link:hover .l-go { transform: translate(3px, -3px) rotate(8deg); color: var(--lime); }

.scroll-cue { margin-top: 14px; display: inline-grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-cue i { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ================= TICKER ================= */
.ticker { position: relative; height: clamp(150px, 18vw, 210px); overflow: hidden; margin-block: 10px 30px; }
.band { position: absolute; left: -5%; width: 110%; padding: 14px 0; overflow: hidden; box-shadow: 0 10px 0 rgba(0,0,0,0.35); }
.band-a { top: 22%; background: var(--lime); transform: rotate(-3deg); z-index: 2; }
.band-b { top: 42%; background: var(--yellow); transform: rotate(2.5deg); }
.track { display: flex; width: max-content; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 34px); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; will-change: transform; }
.track span { padding-inline: 0.6em; }
.track span.dot { padding: 0; }

/* section heads */
main > section { padding: clamp(60px, 9vw, 110px) var(--gutter); }
.sec-head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.sec-head p { color: var(--muted); font-size: 17px; max-width: 52ch; }
.kicker { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: 6px 10px; border-radius: 6px; transform: rotate(-2deg); }

/* ================= GAME ================= */
.game-wrap { max-width: 520px; margin: 0 auto; display: grid; gap: 22px; }
.score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sc-item { display: grid; gap: 2px; text-align: center; padding: 10px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.sc-item small { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sc-item b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.deck { position: relative; height: clamp(340px, 62vw, 380px); touch-action: pan-y; }
.card {
  position: absolute; inset: 0; border-radius: 26px; padding: 26px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  background: var(--white); color: var(--ink); box-shadow: 0 24px 50px rgba(0,0,0,0.45), var(--shadow-hard);
  cursor: grab; user-select: none; will-change: transform; transform-origin: 50% 110%;
}
.card:active { cursor: grabbing; }
.card.behind { pointer-events: none; }
.card .c-tag { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 5px 9px; border-radius: 6px; }
.card .c-q { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.03em; line-height: 1.08; align-self: center; text-wrap: balance; }
.card .c-hint { color: #5C6560; font-size: 13.5px; display: flex; justify-content: space-between; }
.card .c-badge { position: absolute; top: 24px; padding: 6px 12px 8px; border: 4px solid; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 26px; opacity: 0; pointer-events: none; }
.card .b-fact { right: 22px; color: #1C9A4A; border-color: #1C9A4A; transform: rotate(10deg); }
.card .b-myth { left: 22px; color: var(--coral); border-color: var(--coral); transform: rotate(-10deg); }
.card.reveal { background: var(--ink-3); color: var(--fg); cursor: default; border: 2px solid var(--line); }
.card.reveal .c-verdict { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.03em; line-height: 1; }
.card.reveal .c-verdict.ok { color: var(--lime); } .card.reveal .c-verdict.no { color: var(--coral); }
.card.reveal .c-why { font-size: 16px; line-height: 1.5; color: var(--fg); align-self: start; }
.card.reveal .c-why small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.card.reveal .c-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--fg); border: 2px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { padding: 16px; border-radius: 18px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; box-shadow: var(--shadow-hard); transition: transform .12s; }
.choice:active { transform: translate(3px, 4px); box-shadow: 2px 3px 0 rgba(0,0,0,0.55); }
.c-myth { background: var(--coral); color: var(--white); }
.c-fact { background: var(--lime); color: var(--ink); }
.choice:disabled { opacity: 0.4; cursor: default; }
.card.done { background: var(--lime); color: var(--ink); cursor: default; text-align: center; justify-items: center; }
.card.done .c-q { font-size: clamp(28px, 6vw, 38px); }

/* ================= SHORTS ================= */
.reel { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); perspective: 900px; }
@media (max-width: 860px) {
  .reel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .short { scroll-snap-align: center; }
}
.short { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; text-decoration: none; background: var(--ink-3); box-shadow: 0 20px 40px rgba(0,0,0,0.45); transform-style: preserve-3d; will-change: transform; }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.short.wide { background: #000; } .short.wide img { object-fit: contain; }
.short:hover img { transform: scale(1.06); }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,17,22,0.92)); pointer-events: none; }
.sh-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: grid; gap: 4px; }
.sh-meta b { font-family: var(--display); font-size: clamp(16px, 1.7vw, 19px); letter-spacing: -0.02em; line-height: 1.12; color: var(--white); }
.sh-meta small { color: var(--lime); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sh-rank { position: absolute; z-index: 2; top: 12px; left: 12px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); background: var(--lime); padding: 4px 9px 5px; border-radius: 8px; transform: rotate(-4deg); box-shadow: 3px 4px 0 rgba(0,0,0,0.5); }
.sh-play { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 16px; padding-left: 3px; transform: scale(0.6); opacity: 0; transition: transform .3s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.short:hover .sh-play, .short:focus-visible .sh-play { transform: scale(1); opacity: 1; }
@media (hover: none) { .sh-play { transform: scale(1); opacity: 1; } }
.short .glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.22), transparent 45%); opacity: 0; transition: opacity .3s; }
.short:hover .glare { opacity: 1; }

/* ================= PIT ================= */
/* touch-action stays pan-y: the page scrolls unless a finger lands on a sticker (site.js grabs those) */
.pit-box { position: relative; max-width: 1100px; height: clamp(380px, 50vw, 520px); margin: 0 auto; border-radius: 28px; background: var(--ink-2); border: 2px dashed var(--line); overflow: hidden; touch-action: pan-y; }
.pit-box canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pit-more { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--lime); color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-hard); }
.pit-tilt { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--ink-3); color: var(--fg); font-weight: 800; cursor: pointer; }
.pit-tilt[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pit-more:active { transform: translate(3px, 4px); box-shadow: 2px 3px 0 rgba(0,0,0,0.55); }

/* ================= SOON ================= */
.soon { text-align: center; display: grid; justify-items: center; gap: 18px; }
.soon-h { font-size: clamp(34px, 6vw, 64px); }
.soon-bar { position: relative; width: min(560px, 100%); height: 34px; border-radius: 999px; border: 3px solid var(--lime); overflow: hidden; }
.soon-bar i { position: absolute; inset: 0; width: 0%; background: repeating-linear-gradient(-45deg, var(--lime) 0 16px, #BFE02A 16px 32px); background-size: 45px 45px; animation: stripes 1s linear infinite; }
.soon-bar b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; mix-blend-mode: normal; }
@keyframes stripes { to { background-position: 45px 0; } }
.soon-p { color: var(--muted); }

/* ================= FOOTER ================= */
.foot { padding: 60px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 14px; text-align: center; }
.foot-mark { display: flex; align-items: baseline; line-height: 0.9; }
.foot-mark .w-funda { font-size: clamp(44px, 8vw, 80px); }
.foot-mark .w-meme { font-size: clamp(50px, 9vw, 90px); }
.foot-tag { font-family: var(--display); font-weight: 600; font-size: 20px; } .foot-tag span { color: var(--yellow); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-weight: 700; }
.foot-links a, .foot-mail { text-decoration: none; border: 0; background: none; cursor: pointer; padding: 0; border-bottom: 2px solid transparent; }
.foot-links a:hover, .foot-mail:hover { border-bottom-color: var(--lime); }
.foot-about { color: var(--muted); font-size: 14.5px; max-width: 48ch; }
.foot-small { color: var(--muted); font-size: 13px; }

/* toast + confetti */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--lime); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-hard); transition: transform .35s cubic-bezier(.3,1.5,.5,1), visibility .35s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue i::after, .soon-bar i { animation: none; }
}
