:root {
    --bg: #000000; --y: #F0B90B; --y-light: #FCD535; --y-deep: #C99400;
    --text: #FDEBB0; --muted: rgba(253,235,176,.66); --line: rgba(240,185,11,.28);
    --display: 'Fredoka', 'Baloo 2', 'Nunito', system-ui, sans-serif;
    --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: dark;
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #000000; --y: #F0B90B; --text: #FDEBB0; } }
  :root[data-theme="dark"] { --bg: #000000; --y: #F0B90B; --text: #FDEBB0; }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  img, svg, canvas { max-width: 100%; }
  a { color: inherit; }
  button { font: inherit; color: inherit; cursor: pointer; }
  :focus-visible { outline: 3px solid var(--y-light); outline-offset: 3px; border-radius: 6px; }
  h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: .92; letter-spacing: -.015em; }
  p { margin: 0; }
  .wrap { width: min(1180px, 100% - 2.5rem); margin: 0 auto; }

  /* NAV */
  .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(0,0,0,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .nav .wrap { display: flex; align-items: center; gap: 1rem; height: 64px; }
  .brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--y); text-decoration: none; }
  .brand-mark { width: 36px; height: 36px; object-fit: contain; display: block; flex: none; }
  .nav-links { display: flex; gap: 1.3rem; margin-left: 1.2rem; }
  .nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
  .nav-links a:hover { color: var(--y); }
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
  .pill { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; font-weight: 600; background: transparent; white-space: nowrap; }
  .pill svg { width: 16px; height: 16px; fill: var(--y); }
  .ca-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); animation: blink 1.4s infinite; }
  .ca-pill.live .dot { animation: none; }
  @keyframes blink { 50% { opacity: .2; } }
  .treats { color: var(--y); }
  .treats.bump { animation: bump .35s; }
  @keyframes bump { 40% { transform: scale(1.18); } }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .85rem 1.5rem; font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s; }
  .btn:active { transform: scale(.96); }
  .btn-y { background: var(--y); color: #000; }
  .btn-y:hover { background: var(--y-light); }
  .btn-o { border: 2px solid var(--y); color: var(--y); background: transparent; }
  .btn-o:hover { background: rgba(240,185,11,.12); }
  .btn-k { background: #000; color: var(--y); }
  .nav .btn { padding: .55rem 1.1rem; font-size: .92rem; }
  @media (max-width: 1360px) { .nav-links { display: none; } }
  .nav-links a, .brand { white-space: nowrap; }
  @media (max-width: 560px) { .ca-pill .ca-text { display: none; } .nav .wrap { gap: .5rem; } .brand span { display: none; } }

  /* ===== POLISH ===== */
  html { scrollbar-color: var(--y) #000; }
  ::selection { background: var(--y); color: #000; }
  .progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--y); transform-origin: 0 50%; transform: scaleX(0); }
  .sec.yl::before, .sec.yl::after, footer::before { content: ""; position: absolute; left: 0; right: 0; height: 22px; background-size: 44px 22px; background-repeat: repeat-x; pointer-events: none; z-index: 1; }
  .sec.yl::before, footer::before { top: -1px; background-image: radial-gradient(circle at 22px 0, #000 15px, transparent 16px); }
  .sec.yl::after { bottom: -1px; background-image: radial-gradient(circle at 22px 22px, #000 15px, transparent 16px); }
  .sec.divide { border-top: 2px solid var(--line); }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
  .hero-word { position: absolute; right: -4vw; bottom: -7vw; font-family: var(--display); font-weight: 700; font-size: 36vw; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(240,185,11,.11); letter-spacing: -.04em; transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px)); }
  .floater { position: absolute; width: var(--s); height: var(--s); fill: var(--y); opacity: .22; transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px)); }
  .floater svg { width: 100%; height: 100%; display: block; animation: drift var(--t) ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateY(-12px) rotate(var(--r0)); } to { transform: translateY(12px) rotate(var(--r1)); } }
  .hero .wrap { position: relative; z-index: 1; }
  .hero-ring { position: absolute; left: 50%; top: 0; width: min(100%, 460px); aspect-ratio: 1; transform: translateX(-50%); pointer-events: none; }
  .hero-ring::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; border: 2px dashed rgba(240,185,11,.4); animation: spin 40s linear infinite; }
  .hero-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(240,185,11,.16), rgba(240,185,11,0) 70%); }
  @keyframes spin { to { transform: rotate(360deg); } }
  .hero-pet { position: relative; z-index: 1; }
  .hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
  .hero-chips span { border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; color: var(--text); }
  .hero-chips .launch { border-color: var(--y); color: var(--y); font-variant-numeric: tabular-nums; }
  @media (max-width: 860px) { .hero-ring { width: min(70vw, 300px); } .hero-word { font-size: 52vw; bottom: 0; } }
  @media (prefers-reduced-motion: reduce) { .floater svg, .hero-ring::before { animation: none; } }

  /* MENU */
  .menu-btn { display: none; color: var(--text); }
  .menu-btn:hover { border-color: var(--y); }
  @media (max-width: 1360px) { .menu-btn { display: inline-flex; } }
  .menu { position: fixed; inset: 0; z-index: 45; background: #000; padding: calc(env(safe-area-inset-top, 0px) + 100px) 0 40px; overflow-y: auto; }
  .menu[hidden] { display: none; }
  .menu nav { display: grid; gap: .2rem; }
  .menu a { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.6rem); color: var(--y); text-decoration: none; line-height: 1.15; display: flex; align-items: center; gap: .8rem; }
  .menu a svg { width: .7em; height: .7em; fill: var(--y); opacity: 0; transform: translateX(-10px); transition: opacity .2s, transform .2s; }
  .menu a:hover svg, .menu a:focus-visible svg { opacity: 1; transform: none; }

  /* TIERS */
  .tier-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; margin-top: 3rem; align-items: start; }
  .bag { border: 2px solid var(--line); border-radius: 30px; padding: clamp(1.4rem, 3vw, 2.2rem); }
  .bag label { color: var(--muted); font-size: .95rem; }
  .bag-num { font-family: var(--display); font-weight: 700; color: var(--y); font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.1; margin-top: .2rem; }
  .bag-rows { display: grid; gap: .5rem; }
  .bag .note { margin: 1rem 0 1.2rem; font-size: .85rem; color: var(--muted); }
  .tier-list { display: grid; gap: .8rem; }
  .tier { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; align-items: center; border: 2px solid var(--line); border-radius: 24px; padding: .8rem 1.2rem .8rem .8rem; transition: background .3s, border-color .3s, transform .3s; }
  .tier svg { width: 76px; height: 86px; }
  .tier h3 { font-size: 1.6rem; color: var(--y); }
  .tier p { color: var(--muted); font-size: .92rem; margin-top: .2rem; }
  .tier .need { font-family: var(--display); font-weight: 600; color: var(--y); white-space: nowrap; text-align: right; }
  .tier.got { border-color: rgba(240,185,11,.55); }
  .tier.on { background: var(--y); border-color: var(--y); transform: scale(1.02); }
  .tier.on h3, .tier.on .need { color: #000; }
  .tier.on p { color: rgba(0,0,0,.75); }
  .tier-status { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--y); margin-bottom: .3rem; }
  @media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } .tier { grid-template-columns: 58px 1fr; } .tier svg { width: 58px; height: 66px; } .tier .need { grid-column: 2; text-align: left; } }

  /* QUIZ */
  .quiz { margin-top: 2.5rem; background: #000; color: var(--text); border-radius: 34px; padding: clamp(1.4rem, 4vw, 3rem); min-height: 420px; }
  .q-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
  .q-dots { display: flex; gap: .4rem; }
  .q-dots i { width: 34px; height: 8px; border-radius: 999px; background: rgba(240,185,11,.2); }
  .q-dots i.on { background: var(--y); }
  .q-text { font-family: var(--display); font-weight: 700; color: var(--y); font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.05; margin: 1.4rem 0 1.6rem; max-width: 22ch; }
  .q-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .q-answers button { text-align: left; border: 2px solid var(--line); background: transparent; color: var(--text); border-radius: 20px; padding: 1.1rem 1.2rem; font-size: 1.02rem; font-weight: 500; transition: border-color .15s, background .15s, transform .15s; }
  .q-answers button:hover { border-color: var(--y); background: rgba(240,185,11,.08); }
  .q-answers button:active { transform: scale(.98); }
  .q-answers button.pick { background: var(--y); color: #000; border-color: var(--y); }
  .q-anim { animation: qin .35s cubic-bezier(.2,.9,.3,1.1); }
  @keyframes qin { from { opacity: 0; transform: translateX(30px); } }
  .q-result { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; }
  .q-result svg { width: 100%; max-width: 340px; display: block; margin: 0 auto; }
  .q-result .kick { color: var(--muted); font-weight: 600; }
  .q-result h3 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--y); margin: .2rem 0 .4rem; }
  .q-result .role { font-family: var(--display); font-weight: 600; color: var(--y-light); font-size: 1.3rem; }
  .q-result p.desc { margin: 1rem 0 1.4rem; max-width: 34rem; }
  .q-result .ctrl-row { display: flex; gap: .7rem; flex-wrap: wrap; }
  @media (max-width: 760px) { .q-answers { grid-template-columns: 1fr; } .q-result { grid-template-columns: 1fr; } .q-result svg { max-width: 220px; } }

  /* MEMES */
  .meme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: center; }
  .meme-stage { border: 3px solid var(--y); border-radius: 26px; overflow: hidden; background: #000; }
  #memeCv { display: block; width: 100%; height: auto; aspect-ratio: 1; }
  .meme-ctrl { display: grid; gap: 1.2rem; }
  .meme-ctrl .ctrl h4 { color: var(--y); }
  .meme-in { width: 100%; border: 2px solid var(--line); background: transparent; border-radius: 14px; padding: .75rem 1rem; font: inherit; font-weight: 600; color: var(--text); }
  .meme-in:focus { border-color: var(--y); outline: none; }
  @media (max-width: 900px) { .meme-grid { grid-template-columns: 1fr; } }

  /* WALLET + X */
  .x-pill { text-decoration: none; color: var(--text); }
  .x-pill b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--y); color: #000; font-size: .78rem; font-weight: 800; }
  .x-pill:hover { border-color: var(--y); }
  .wallet-wrap { position: relative; }
  .wallet-btn { white-space: nowrap; }
  .wallet-btn .wdot { width: 8px; height: 8px; border-radius: 50%; background: #000; }
  .wallet-btn.wrong { background: transparent; color: var(--y); border: 2px solid var(--y); }
  .wallet-btn.wrong .wdot { background: var(--y); animation: blink 1s infinite; }
  .wallet-btn img { width: 20px; height: 20px; border-radius: 5px; }
  .w-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; background: #000; border: 2px solid var(--y); border-radius: 22px; padding: 1.1rem; display: grid; gap: .8rem; z-index: 80; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
  .w-menu[hidden] { display: none; }
  .w-addr { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--y); display: flex; align-items: center; gap: .5rem; }
  .w-addr img { width: 26px; height: 26px; border-radius: 7px; }
  .w-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
  .w-row b { color: var(--y); font-weight: 600; }
  .w-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .w-acts button, .w-acts a { border: 2px solid var(--line); background: transparent; color: var(--text); border-radius: 12px; padding: .55rem; font-weight: 600; font-size: .88rem; text-align: center; text-decoration: none; }
  .w-acts button:hover, .w-acts a:hover { border-color: var(--y); color: var(--y); }
  .w-acts .full { grid-column: 1 / -1; }
  .w-warn { background: var(--y); color: #000; border-radius: 12px; padding: .6rem .8rem; font-size: .88rem; font-weight: 600; }
  .modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1.2rem; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .modal[hidden] { display: none; }
  .modal-box { width: min(420px, 100%); background: #000; border: 3px solid var(--y); border-radius: 28px; padding: 1.6rem; display: grid; gap: 1rem; }
  .modal-head { display: flex; justify-content: space-between; align-items: center; }
  .modal-head h3 { color: var(--y); font-size: 1.8rem; }
  .modal-x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--y); font-size: 1.3rem; line-height: 1; }
  .w-opt { display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; align-items: center; text-align: left; border: 2px solid var(--line); background: transparent; border-radius: 18px; padding: .8rem 1rem; color: var(--text); text-decoration: none; }
  .w-opt:hover { border-color: var(--y); }
  .w-opt[aria-busy="true"] { opacity: .6; pointer-events: none; }
  .w-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--y); color: #000; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; overflow: hidden; }
  .w-ico img { width: 100%; height: 100%; object-fit: cover; }
  .w-opt strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--y); }
  .w-opt small { color: var(--muted); font-size: .85rem; }
  .w-tag { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .25rem .6rem; background: rgba(240,185,11,.15); color: var(--y); white-space: nowrap; }
  .w-tag.ok { background: var(--y); color: #000; }
  .modal-note { color: var(--muted); font-size: .85rem; }
  .modal-err { color: #000; background: var(--y); border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; font-weight: 600; }
  .modal-err[hidden] { display: none; }
  @media (max-width: 760px) { .treats { display: none; } .x-pill span { display: none; } .x-pill { padding: .4rem; } }
  @media (max-width: 400px) { .ca-pill { display: none; } }

  /* PAW TRAIL */
  .paw-trail { position: fixed; z-index: 40; width: 22px; height: 22px; pointer-events: none; fill: var(--y); opacity: .5; animation: pawfade 1.3s forwards; }
  @keyframes pawfade { to { opacity: 0; transform: var(--t) scale(.6); } }

  /* HERO */
  .hero { min-height: 100vh; min-height: 100svh; padding: 120px 0 60px; display: flex; align-items: center; position: relative; overflow: hidden; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
  .hero h1 { font-size: clamp(3.4rem, 8.6vw, 8rem); color: var(--y); }
  .hero h1 .ln { display: block; }
  .hero h1 .ln span { display: inline-block; animation: rise .8s cubic-bezier(.2,.9,.3,1.3) both; }
  .hero h1 .ln:nth-child(2) span { animation-delay: .12s; }
  .hero h1 .ln:nth-child(3) span { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(110%) rotate(4deg); opacity: 0; } }
  .hero .lede { margin-top: 1.6rem; max-width: 34rem; font-size: 1.2rem; color: var(--text); }
  .hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
  .stage { position: relative; display: flex; flex-direction: column; align-items: center; }
  .hero-pet { width: min(100%, 460px); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s; }
  .hero-pet:active { cursor: grabbing; }
  .hero-pet.wiggle { animation: wiggle .45s; }
  @keyframes wiggle { 25% { transform: rotate(-5deg) scale(1.03); } 75% { transform: rotate(5deg) scale(1.03); } }
  .pet-happy { display: none; }
  .is-happy .pet-happy { display: inline; }
  .is-happy .pet-eyes { display: none; }
  .bark { position: absolute; top: 4%; right: 2%; background: var(--y); color: #000; font-family: var(--display); font-weight: 700; font-size: 1.6rem; padding: .35rem 1rem; border-radius: 22px 22px 22px 4px; transform: scale(0); transform-origin: bottom left; transition: transform .25s cubic-bezier(.2,.9,.3,1.5); pointer-events: none; }
  .bark.show { transform: scale(1); }
  .meter { width: min(100%, 340px); margin-top: .8rem; }
  .meter-top { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
  .meter-bar { height: 12px; border-radius: 999px; border: 1.5px solid var(--y); overflow: hidden; }
  .meter-fill { height: 100%; width: 0; background: var(--y); transition: width .25s; }
  .heart { position: fixed; z-index: 45; pointer-events: none; width: 26px; height: 26px; fill: var(--y); animation: heart 1s forwards ease-out; }
  @keyframes heart { to { transform: translate(var(--dx), -90px) scale(.4) rotate(var(--r)); opacity: 0; } }
  .scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
  .scroll-hint svg { width: 18px; height: 18px; fill: var(--y); animation: hop 1.6s infinite; }
  @keyframes hop { 50% { transform: translateY(6px); } }
  @media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: left; }
    .stage { order: -1; }
    .hero-pet { width: min(70vw, 300px); }
    .hero { padding-top: 96px; }
    .scroll-hint { display: none; }
  }

  /* MARQUEE */
  .marquee { background: var(--y); color: #000; overflow: hidden; border-block: 3px solid #000; }
  .marquee-track { display: flex; gap: 2.5rem; padding: .9rem 0; width: max-content; animation: slide 30s linear infinite; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
  .marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
  .marquee-track svg { width: 26px; height: 26px; fill: #000; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

  /* SECTIONS */
  .sec { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
  .sec.yl { background: var(--y); color: #000; }
  .sec h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); color: var(--y); }
  .sec.yl h2 { color: #000; }
  .sec .intro { margin-top: 1.1rem; max-width: 38rem; font-size: 1.15rem; color: var(--muted); }
  .sec.yl .intro { color: rgba(0,0,0,.74); }

  /* PACK (sticky) */
  #pack { height: 420vh; padding: 0; }
  #pack .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
  #pack .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
  .pack-kicker { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--muted); }
  .pack-name { font-size: clamp(4rem, 11vw, 9.5rem); color: var(--y); margin-top: .3rem; }
  .pack-role { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-top: .6rem; color: var(--y-light); }
  .pack-bio { margin-top: 1rem; max-width: 30rem; min-height: 5.2em; }
  .stats { margin-top: 1.4rem; display: grid; gap: .7rem; max-width: 26rem; }
  .stat { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; gap: .8rem; align-items: center; font-size: .92rem; color: var(--muted); }
  .stat-bar { height: 10px; border-radius: 999px; background: rgba(240,185,11,.16); overflow: hidden; }
  .stat-fill { height: 100%; background: var(--y); width: 0; transition: width .6s cubic-bezier(.2,.9,.3,1.1); }
  .stat b { color: var(--y); text-align: right; font-weight: 600; }
  .pack-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
  .pack-pet { width: min(100%, 440px); cursor: pointer; transition: transform .45s cubic-bezier(.2,.9,.3,1.4), opacity .3s; }
  .pack-pet.out { transform: scale(.4) rotate(-18deg); opacity: 0; }
  .pack-pet.boop { animation: wiggle .45s; }
  .pack-say { min-height: 1.8em; margin-top: .4rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--y); text-align: center; }
  .pack-dots { display: flex; gap: .6rem; margin-top: 1.2rem; }
  .pack-dots button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: transparent; padding: 7px; }
  .pack-dots button svg { width: 100%; height: 100%; fill: var(--muted); }
  .pack-dots button.on { border-color: var(--y); background: var(--y); }
  .pack-dots button.on svg { fill: #000; }
  @media (max-width: 860px) {
    #pack .wrap { grid-template-columns: 1fr; gap: .5rem; }
    .pack-stage { order: -1; }
    .pack-pet { width: min(56vw, 250px); }
    .pack-name { font-size: clamp(3.4rem, 16vw, 5rem); }
    .pack-bio { min-height: 0; font-size: .98rem; }
    .pack-role { font-size: 1.15rem; }
    .stats { margin-top: 1rem; gap: .45rem; }
  }

  /* PLAYTIME YARD */
  .yard-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 1rem; }
  .seg-dark { display: flex; flex-wrap: wrap; gap: .5rem; }
  .seg-dark button { border: 2px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: .55rem 1rem; font-weight: 600; font-size: .95rem; }
  .seg-dark button:hover { border-color: var(--y); }
  .seg-dark button[aria-pressed="true"] { background: var(--y); color: #000; border-color: var(--y); }
  .yard-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
  .yard-acts .btn { padding: .55rem 1.1rem; font-size: .95rem; }
  .yard { position: relative; height: min(580px, 78vh); border: 3px solid var(--y); border-radius: 30px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pw: 110px; }
  .yard-wall { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: repeating-linear-gradient(90deg, rgba(240,185,11,.2) 0 14px, transparent 14px 70px); border-bottom: 3px solid rgba(240,185,11,.45); }
  .yard-wall::before, .yard-wall::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: rgba(240,185,11,.2); }
  .yard-wall::before { top: 30%; } .yard-wall::after { top: 68%; }
  .yard-ground { position: absolute; left: 0; right: 0; top: 34%; bottom: 0; background-image: radial-gradient(rgba(240,185,11,.13) 2px, transparent 2.6px); background-size: 38px 38px; }
  .yard-sun { position: absolute; right: 7%; top: 9%; width: 70px; height: 70px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 10px rgba(240,185,11,.15), 0 0 0 22px rgba(240,185,11,.07); cursor: pointer; transition: transform .3s; }
  .yard-sun:hover { transform: scale(1.08) rotate(20deg); }
  .yard.m-ball, .yard.m-treat { cursor: crosshair; }
  .yard.m-laser { cursor: none; touch-action: none; }
  .yp { position: absolute; left: 0; top: 0; width: var(--pw); transform-origin: 50% 100%; will-change: transform; cursor: grab; touch-action: none; }
  .yard:not(.m-pet) .yp { cursor: inherit; touch-action: inherit; }
  .yp.held { cursor: grabbing; }
  .yp svg { width: 100%; display: block; transform-origin: 50% 100%; }
  .yp.sleeping svg { animation: breathe 2.4s infinite ease-in-out; }
  @keyframes breathe { 50% { transform: scale(1.045, .965); } }
  .yp-emote { position: absolute; left: 50%; bottom: 96%; transform: translate(-50%, 8px) scale(0); background: var(--y); color: #000; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: .12rem .65rem; border-radius: 14px 14px 14px 3px; white-space: nowrap; transition: transform .22s cubic-bezier(.2,.9,.3,1.5); pointer-events: none; }
  .yp-emote.show { transform: translate(-50%, 0) scale(1); }
  .y-shadow { position: absolute; left: 0; top: 0; width: calc(var(--pw) * .72); height: 16px; border-radius: 50%; background: rgba(240,185,11,.2); transform-origin: 50% 50%; pointer-events: none; }
  .y-obj { position: absolute; left: 0; top: 0; pointer-events: none; }
  .y-obj svg { display: block; width: 100%; height: 100%; }
  .y-laser { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--y-light); box-shadow: 0 0 0 6px rgba(252,213,53,.3), 0 0 26px 10px rgba(252,213,53,.55); pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 5000; }
  .y-laser.on { opacity: 1; }
  .y-flash { position: absolute; inset: 0; background: var(--y-light); opacity: 0; pointer-events: none; z-index: 6000; }
  .y-flash.go { animation: yflash .8s ease-out; }
  @keyframes yflash { 0% { opacity: .95; } 100% { opacity: 0; } }
  .y-hint { position: absolute; left: 18px; top: 14px; right: 110px; z-index: 5500; color: var(--y); font-weight: 600; font-size: .92rem; pointer-events: none; }
  .yard-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
  .yard-log { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--y); min-height: 1.6em; }
  .calls { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; color: var(--muted); font-size: .92rem; }
  .calls button { border: 2px solid var(--line); background: transparent; color: var(--y); border-radius: 999px; padding: .35rem .8rem; font-weight: 600; font-size: .9rem; }
  .calls button:hover { border-color: var(--y); }
  .marquee.alt .marquee-track { animation-direction: reverse; }
  @media (max-width: 700px) { .yard { height: 470px; } .y-hint { right: 16px; font-size: .84rem; } .yard-sun { width: 40px; height: 40px; top: 22%; right: 5%; } .yard-log { font-size: 1.05rem; } }

  /* TAX */
  .tax-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; margin-top: 3rem; align-items: start; }
  .donut-wrap { display: flex; flex-direction: column; gap: 1.8rem; align-items: stretch; }
  .donut { width: 220px; height: 220px; flex: none; align-self: center; }
  .donut circle.seg { fill: none; stroke-width: 34; transition: stroke-width .25s, opacity .25s; cursor: pointer; }
  .donut.focus circle.seg { opacity: .3; }
  .donut.focus circle.seg.on { opacity: 1; stroke-width: 44; }
  .donut-center { font-family: var(--display); font-weight: 700; }
  .legend { display: grid; gap: .6rem; }
  .legend button { display: grid; grid-template-columns: 22px 1fr auto; gap: .8rem; align-items: center; text-align: left; background: transparent; border: 2px solid rgba(0,0,0,.2); border-radius: 16px; padding: .8rem 1rem; color: #000; }
  .legend button:hover, .legend button.on { border-color: #000; background: rgba(0,0,0,.07); }
  .legend .sw { width: 22px; height: 22px; border-radius: 6px; }
  .legend strong { font-family: var(--display); font-size: 1.5rem; }
  .legend small { display: block; font-size: .88rem; color: rgba(0,0,0,.7); }
  .calc { background: #000; color: var(--text); border-radius: 30px; padding: clamp(1.4rem, 3vw, 2.2rem); }
  .calc h3 { color: var(--y); font-size: 1.9rem; }
  .calc label { display: block; margin-top: 1rem; color: var(--muted); font-size: .95rem; }
  .calc .vol { font-family: var(--display); font-weight: 700; color: var(--y); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--y) var(--p, 30%), rgba(240,185,11,.2) var(--p, 30%)); margin: .9rem 0 1.2rem; }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--y); border: 4px solid #000; box-shadow: 0 0 0 2px var(--y); cursor: grab; }
  input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--y); border: 4px solid #000; cursor: grab; }
  .calc-out { display: grid; grid-template-columns: 1fr 140px; gap: 1rem; align-items: end; }
  .calc-rows { display: grid; gap: .5rem; }
  .calc-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; font-size: .95rem; }
  .calc-row b { color: var(--y); font-weight: 600; }
  .calc-row.big b { font-family: var(--display); font-size: 1.5rem; }
  .bowl { width: 140px; }
  .calc .note { margin-top: 1rem; font-size: .82rem; color: var(--muted); }
  @media (max-width: 900px) { .tax-grid { grid-template-columns: 1fr; } .calc-out { grid-template-columns: 1fr 100px; } .bowl { width: 100px; } }

  /* GAME */
  .game-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
  .game-box { position: relative; margin-top: 2.5rem; border: 3px solid var(--y); border-radius: 30px; overflow: hidden; height: min(520px, 70vh); background: #000; }
  #game { display: block; width: 100%; height: 100%; touch-action: none; cursor: none; }
  .hud { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--y); pointer-events: none; }
  .hud .lives svg { width: 22px; height: 22px; fill: var(--y); margin-left: 3px; }
  .hud .lives svg.lost { fill: none; stroke: var(--y); stroke-width: 2; opacity: .5; }
  .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 1.5rem; background: rgba(0,0,0,.84); }
  .overlay[hidden] { display: none; }
  .overlay h3 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--y); }
  .overlay p { max-width: 30rem; color: var(--text); }
  .legend-items { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; font-size: .92rem; color: var(--muted); }
  .legend-items span { display: inline-flex; align-items: center; gap: .4rem; }
  .legend-items canvas { width: 28px; height: 28px; }
  .game-help { margin-top: .9rem; color: var(--muted); font-size: .9rem; }

  /* BUILDER */
  .builder { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; align-items: center; }
  .card-pet { background: #000; border-radius: 34px; padding: 1.6rem; color: var(--y); position: relative; }
  .card-pet svg.big { width: 100%; max-width: 380px; display: block; margin: 0 auto; cursor: pointer; }
  .card-meta { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-top: .6rem; border-top: 2px dashed var(--line); padding-top: 1rem; }
  .card-meta h3 { font-size: 2.4rem; word-break: break-word; }
  .card-meta small { color: var(--muted); font-size: .9rem; }
  .card-id { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-align: right; white-space: nowrap; }
  .controls { display: grid; gap: 1.3rem; }
  .ctrl h4 { margin: 0 0 .55rem; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
  .seg-group { display: flex; flex-wrap: wrap; gap: .5rem; }
  .seg-group button { border: 2px solid #000; background: transparent; color: #000; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .95rem; }
  .seg-group button[aria-pressed="true"] { background: #000; color: var(--y); }
  .name-in { width: 100%; border: 2px solid #000; background: transparent; border-radius: 14px; padding: .75rem 1rem; font: inherit; font-weight: 600; color: #000; }
  .name-in::placeholder { color: rgba(0,0,0,.45); }
  .ctrl-row { display: flex; gap: .7rem; flex-wrap: wrap; }
  @media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

  /* VOTE */
  .votes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
  .vote { text-align: left; background: transparent; border: 2px solid var(--line); border-radius: 24px; padding: 1.3rem 1.4rem; color: var(--text); display: grid; gap: .6rem; transition: border-color .2s, transform .15s; }
  .vote:hover { border-color: var(--y); }
  .vote:active { transform: scale(.985); }
  .vote.mine { border-color: var(--y); background: rgba(240,185,11,.08); }
  .vote-top { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
  .vote h3 { font-size: 1.6rem; color: var(--y); line-height: 1.05; }
  .vote p { color: var(--muted); font-size: .95rem; }
  .vote-pct { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--y); }
  .vote-bar { height: 12px; border-radius: 999px; background: rgba(240,185,11,.14); overflow: hidden; }
  .vote-fill { height: 100%; background: var(--y); width: 0; transition: width .7s cubic-bezier(.2,.9,.3,1.1); }
  .vote-foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
  .vote-note { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
  @media (max-width: 760px) { .votes { grid-template-columns: 1fr; } }

  /* ROADMAP */
  .road { position: relative; margin-top: 3.5rem; padding-left: 70px; }
  .road-line { position: absolute; left: 24px; top: 0; bottom: 0; width: 6px; border-radius: 6px; background: rgba(0,0,0,.18); }
  .road-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: #000; border-radius: 6px; }
  .road-paw { position: absolute; left: 7px; top: 0; width: 40px; height: 40px; background: #000; border-radius: 50%; display: grid; place-items: center; transform: translateY(-50%); }
  .road-paw svg { width: 24px; height: 24px; fill: var(--y); }
  .mile { position: relative; padding: 0 0 3.5rem; opacity: .4; transition: opacity .4s; }
  .mile:last-child { padding-bottom: 0; }
  .mile::before { content: ""; position: absolute; left: -54px; top: .4rem; width: 22px; height: 22px; border-radius: 50%; border: 4px solid #000; background: var(--y); transition: background .3s; }
  .mile.on { opacity: 1; }
  .mile.on::before { background: #000; }
  .mile .when { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
  .mile h3 { font-size: clamp(1.9rem, 4vw, 3rem); margin-top: .2rem; }
  .mile p { margin-top: .6rem; max-width: 36rem; color: rgba(0,0,0,.76); }

  /* RECEIPTS */
  .receipts { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; margin-top: 3rem; }
  .empty { border: 2px dashed var(--line); border-radius: 26px; padding: 2rem; display: grid; gap: 1rem; align-content: center; justify-items: start; min-height: 260px; }
  .empty svg { width: 60px; height: 60px; fill: var(--y); }
  .empty h3 { color: var(--y); font-size: 1.8rem; }
  .empty p { color: var(--muted); max-width: 30rem; }
  .wallets { display: grid; gap: 1rem; }
  .wallet { border: 2px solid var(--line); border-radius: 22px; padding: 1.2rem 1.3rem; }
  .wallet h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--y); }
  .wallet code { display: block; margin-top: .4rem; font-size: .88rem; color: var(--muted); word-break: break-all; }
  @media (max-width: 860px) { .receipts { grid-template-columns: 1fr; } }

  /* STEPS */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; counter-reset: s; }
  .step { border: 2px solid #000; border-radius: 26px; padding: 1.4rem; counter-increment: s; display: grid; gap: .6rem; align-content: start; }
  .step::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; }
  .step h3 { font-size: 1.5rem; }
  .step p { color: rgba(0,0,0,.76); font-size: .96rem; }
  .step .btn { margin-top: .4rem; justify-self: start; padding: .6rem 1.1rem; font-size: .92rem; }
  @media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

  /* FAQ */
  .faq { margin-top: 2.5rem; max-width: 50rem; }
  .faq details { border-bottom: 2px solid var(--line); }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--y); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--y); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .25s, background .25s, color .25s; }
  .faq details[open] summary .pm { transform: rotate(45deg); background: var(--y); color: #000; }
  .faq details p { padding: 0 0 1.4rem; color: var(--text); max-width: 42rem; }

  /* FOOTER */
  footer { background: var(--y); color: #000; padding: 80px 0 40px; overflow: hidden; position: relative; cursor: pointer; user-select: none; -webkit-user-select: none; }
  .foot-big { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 19vw, 17rem); line-height: .85; letter-spacing: -.03em; }
  .foot-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; font-size: .92rem; cursor: auto; }
  .foot-row p { max-width: 36rem; }
  .foot-hint { font-family: var(--display); font-weight: 600; }
  .confetti { position: fixed; z-index: 60; width: 26px; height: 26px; pointer-events: none; fill: #000; }

  .toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; white-space: nowrap; max-width: calc(100vw - 2rem); overflow: hidden; text-overflow: ellipsis; background: var(--y); color: #000; font-weight: 700; padding: .8rem 1.3rem; border-radius: 999px; z-index: 70; transition: transform .3s cubic-bezier(.2,.9,.3,1.3); border: 2px solid #000; }
  .toast.show { transform: translate(-50%, 0); visibility: visible; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }