/* Nuz unlock landing + Quiz Me / Pet Portrait category pages (index.html, quiz.html, portrait.html).
   Moved out of index.html 2026-09-27, unchanged. Tokens copied from css/tokens/colors.css (ponytail: standalone pages, no site.css cascade).
   The art directions (js/landing-looks.js) restyle these classes under [data-look=…]. */
:root {
  --paper: #F6F4FA; --cream: #FFF8EE; --ink: #1E1B2E; --ink-2: #33304A; --ink-3: #5C5A70;
  --violet: #6E56A8; --violet-core: #3B2A5E; --violet-light: #B3A3D9;
  --orange: #E07B39; --orange-core: #9A4A1E; --orange-light: #F2B58A;
  --blue: #3F72A6; --blue-core: #1F3A5C; --blue-light: #93B7DB;
  --blush: #F5A8B8;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Gaegu", "Comic Sans MS", "Chalkboard SE", cursive;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body);
  background-image: radial-gradient(rgba(30, 27, 46, .07) 1.2px, transparent 1.3px); background-size: 22px 22px;
  overflow-x: hidden;
}
.doodles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page {
  position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column;
  max-width: 1180px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--violet); }
.brand img { height: 30px; width: auto; display: block; }
.brand .mark { height: 34px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 5; }

/* hint: the subtle hand-lettered line */
.hint { text-align: center; margin: 10px 0 14px; font-family: var(--hand); color: var(--ink-2); line-height: 1; transform: rotate(-1.5deg); }
.hint b { display: block; font-size: clamp(30px, 6.4vw, 42px); color: var(--ink); }
.hint span { display: block; font-size: clamp(19px, 3.8vw, 24px); color: var(--ink-3); margin-top: 4px; }
.hint svg { display: block; margin: 2px auto 0; width: 150px; height: 12px; }
.hint.pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }

/* the three big buttons */
/* carousel (js carousel()): the right card slides off, the left takes its place, the one that left comes back round on the left.
   Phones: same, top to bottom. .car clips; its padding leaves room for hover lift + shadow (kept smaller than the gap, so the incoming clone stays hidden). */
.cats { display: flex; flex-direction: column; gap: 16px; }
.car { overflow: visible; margin: -6px -16px -14px; padding: 6px 16px 14px; }
.track { display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0; will-change: transform; }
.cat {
  --bg: var(--blue); --shade: #36669A;
  position: relative; flex: 0 0 auto; height: clamp(168px, 29svh, 236px); width: 100%; padding: 14px 18px; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 44%) 1fr; align-items: center; gap: 10px; text-align: left;
  border: 4px solid var(--ink); border-radius: 30px 38px 28px 42px / 40px 28px 42px 30px;
  background-color: var(--bg);
  background-image: radial-gradient(var(--shade) 2px, transparent 2.2px); background-size: 16px 16px;
  box-shadow: 0 7px 0 var(--ink); color: #fff; font: inherit;
  transform: rotate(var(--tilt, 0deg)); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.cat[data-cat=quiz] { --tilt: -.8deg; }
.cat[data-cat=portrait] { --tilt: .6deg; --bg: var(--violet); --shade: #624B99; border-radius: 40px 28px 38px 30px / 28px 42px 30px 40px; }
.cat[data-cat=games] { --tilt: -.4deg; --bg: var(--orange); --shade: #D06F30; border-radius: 34px 40px 30px 36px / 38px 30px 40px 32px; }
.cat:hover { transform: rotate(var(--tilt)) translateY(-3px) scale(1.01); }
.cat:active { transform: rotate(var(--tilt)) translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.cat:focus-visible { outline: 4px dashed var(--ink); outline-offset: 6px; }
.cat.is-locked { --bg: #A9BBD0; --shade: #9DB0C6; color: #fff; }
.cat.is-locked[data-cat=portrait] { --bg: #B2A8CB; --shade: #A69BC2; }
.cat.is-locked[data-cat=games] { --bg: #E4B999; --shade: #DCAE8C; }
.cat.is-locked .cat-art { opacity: .7; filter: saturate(.5); }
.cat-art { display: grid; place-items: center; height: 100%; min-height: 0; }
.cat-art svg { width: 100%; height: 100%; max-height: 190px; overflow: visible; }
.cat-text { display: grid; gap: 6px; justify-items: start; }
.cat-name {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(27px, 7.4vw, 44px); line-height: .95; letter-spacing: .01em;
  text-shadow: 2.5px 0 var(--ink), -2.5px 0 var(--ink), 0 2.5px var(--ink), 0 -2.5px var(--ink), 2px 2px var(--ink), -2px 2px var(--ink), 2px -2px var(--ink), -2px -2px var(--ink), 0 6px 0 var(--ink);
}
.cat-sub { font-weight: 700; font-size: 15px; color: #fff; text-shadow: 0 1.5px 0 rgba(30, 27, 46, .45); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 12px 5px 10px;
  background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px 900px 999px 950px;
  font: 700 14px/1 var(--body); box-shadow: 0 3px 0 var(--ink);
}
.chip i { font-style: normal; font-family: var(--hand); font-size: 19px; line-height: .7; }
.lock { position: absolute; top: 10px; right: 12px; width: 46px; height: 54px; transform: rotate(9deg); pointer-events: none; }
.lock svg { width: 100%; height: 100%; overflow: visible; }
.cat.can-unlock .lock { animation: jiggle 2.2s ease-in-out infinite; }
.cat.can-unlock[data-cat=portrait] .lock { animation-delay: .25s; }
.cat.can-unlock[data-cat=games] .lock { animation-delay: .5s; }
.cat.unlocking { animation: boing .7s cubic-bezier(.3, 1.6, .5, 1); }
.cat.unlocking .lock .shackle { animation: shackle .45s ease-out forwards; }
.cat.unlocking .lock { animation: drop .9s .25s ease-in forwards; }
.cat.shake { animation: shake .45s; }
/* V2 intro: the two you didn't pick lock — the lock drops in, the card flinches (index.html slam()) */
.cat.slam { animation: shake .45s .3s; }
.cat.slam .lock, .games-btn.slam .gb-chip svg { animation: slam .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.games-btn.slam { animation: gb-flinch .45s .3s; }
@keyframes slam { 0% { transform: translateY(-80px) rotate(-30deg) scale(1.4); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(9deg); opacity: 1; } }
@keyframes gb-flinch { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-3px); } }
body.picking .cat, body.picking .games-btn { cursor: default; }
.done-note { color: var(--ink); }
.foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.legal-links { margin-top: 4px; } .legal-links a { color: inherit; }
.foot button { font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 4px; }

/* confetti doodles */
.bit { position: fixed; width: 22px; height: 22px; z-index: 30; pointer-events: none; animation: fly .95s cubic-bezier(.2, .7, .4, 1) forwards; }
.bit svg { width: 100%; height: 100%; overflow: visible; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 140%);
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 22px 18px 24px 16px; box-shadow: 0 5px 0 var(--ink);
  padding: 10px 18px; font: 700 21px/1.1 var(--hand); max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* category sheet */
dialog.sheet {
  width: min(760px, 100%); max-width: 100%; max-height: 100%; margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: visible;
}
dialog.sheet::backdrop { background: rgba(30, 27, 46, .45); }
.sheet-in {
  margin: 12px; background: var(--paper); border: 4px solid var(--ink); border-radius: 34px 28px 36px 30px / 30px 36px 28px 34px;
  box-shadow: 0 8px 0 var(--ink); overflow: hidden; animation: rise .45s cubic-bezier(.3, 1.4, .5, 1);
  max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
}
.sheet-top {
  --bg: var(--blue); --shade: #36669A; position: relative; padding: 14px 16px 16px; color: #fff; border-bottom: 4px solid var(--ink);
  background-color: var(--bg); background-image: radial-gradient(var(--shade) 2px, transparent 2.2px); background-size: 16px 16px;
  display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 8px;
}
.sheet-top[data-cat="portrait"] { --bg: var(--violet); --shade: #624B99; }
.sheet-top[data-cat="games"] { --bg: var(--orange); --shade: #D06F30; }
.sheet-top .cat-name { font-size: clamp(30px, 8vw, 46px); }
.sheet-top .art { height: 100px; }
.sheet-top .art svg { width: 100%; height: 100%; overflow: visible; }
.back {
  justify-self: start; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
  font: 700 14px/1 var(--body); padding: 7px 12px;
}
.sheet-body { padding: 16px; overflow-y: auto; display: grid; gap: 14px; }
.sheet-note { margin: 0; font: 700 21px/1.1 var(--hand); color: var(--ink-2); text-align: center; }
.mods { gap: 14px; }
.mods-car { margin: -4px -16px -10px; padding: 4px 16px 10px; }
.mod a { height: 100%; }
.mod a {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 22px 26px 20px 28px / 26px 20px 28px 22px; box-shadow: 0 5px 0 var(--ink);
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .1s;
}
.mod a:hover { transform: translateY(-2px); }
.mod a:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.mod a:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.mod .ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--ink); overflow: hidden; }
.mod .ic svg { width: 54px; height: 54px; overflow: visible; }
.mod h3 { margin: 0; font: 400 19px/1.05 var(--display); text-transform: uppercase; }
.mod p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.mod small { display: block; margin-top: 5px; font: 700 12.5px/1 var(--body); color: var(--ink-3); }
.go {
  font: 700 14px/1 var(--body); padding: 9px 13px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--orange); color: #fff;
  box-shadow: 0 3px 0 var(--ink); white-space: nowrap;
}
.mod.is-done .go { background: var(--cream); color: var(--ink); }
@media (max-width: 559px) {
  .mod a { grid-template-columns: 56px 1fr; align-items: start; }
  .mod .ic { width: 56px; height: 56px; } .mod .ic svg { width: 48px; height: 48px; }
  .go { grid-column: 2; justify-self: start; margin-top: 2px; }
}

/* Game: the smaller button under the two big ones */
.games-btn {
  --bg: var(--orange); display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 12px; width: min(620px, 100%); margin: 8px auto 0; min-height: 80px;
  padding: 8px 16px 8px 8px; border: 3px solid var(--ink); border-radius: 22px 26px 20px 28px / 26px 20px 28px 22px; background: var(--bg); color: #fff; box-shadow: 0 5px 0 var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent;
}
.games-btn:hover { transform: translateY(-2px); } .games-btn:active { transform: translateY(3px); }
.games-btn:focus-visible { outline: 4px dashed var(--ink); outline-offset: 5px; }
.games-btn.is-locked { --bg: #E4B999; }
.games-btn.is-locked .gb-art { opacity: .6; filter: saturate(.4); }
.gb-art { display: block; height: 74px; overflow: hidden; border-radius: 14px; }
.gb-art svg, .gb-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.gb-text b { display: block; font: 400 clamp(20px, 5vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.gb-text small { display: block; margin-top: 4px; font-weight: 700; font-size: 14px; opacity: .92; }
.gb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font: 700 14px/1 var(--body); white-space: nowrap; }
.gb-chip svg { width: 16px; height: 18px; }
[data-look=gradient] .games-btn { --bg: #17151F; border: 0; border-radius: 22px; box-shadow: 0 14px 30px -20px rgba(23,21,31,.8); background-image: radial-gradient(circle at 14% 50%, rgba(94,141,251,.34), transparent 34%), radial-gradient(circle at 26% 60%, rgba(255,137,20,.26), transparent 30%); }
[data-look=gradient] .games-btn .gb-text b { background: linear-gradient(90deg, #FFB06A, #8DB4FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-look=gradient] .games-btn.is-locked { --bg: #2B2833; }
@media (max-width: 420px) { .games-btn { grid-template-columns: 78px 1fr; } .gb-chip { grid-column: 2; justify-self: start; padding: 6px 12px; } .gb-art { grid-row: span 2; } }

/* module cards in the sheet: side by side when there are 3 or fewer and room */
@media (min-width: 700px) {
  .mods-car.h .track { flex-direction: row; }
  .mods-car.h .mod { flex: 0 0 calc((100% - (var(--n) - 1) * 14px) / var(--n)); }
  .mods-car.h .mod a { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; justify-items: start; align-items: start; }
}

@media (min-width: 860px) {
  #car .track { flex-direction: row; gap: 16px; }
  #car .cat { flex: 1 1 0; min-width: 0; height: auto; min-height: 340px; }
  .cat { grid-template-columns: 1fr; grid-template-rows: 1fr auto; justify-items: center; text-align: center; padding: 26px 20px 24px; min-height: 420px; }
  .cat-text { justify-items: center; }
  .cat-art svg { max-height: 240px; }
  .lock { width: 58px; height: 66px; top: 16px; right: 18px; }
}
@media (max-width: 380px) { .cat { grid-template-columns: minmax(0, 40%) 1fr; padding: 12px 14px; } .cat-sub { font-size: 14px; } }
@media (max-height: 700px) and (max-width: 859px) { .cat { height: 150px; } .cat-art svg { max-height: 124px; } }
.cat { overflow: hidden; }
.cat-art { width: 100%; }
[data-look=gradient] .cat-art { margin-left: -18px; width: calc(100% + 18px); } /* runners run in from the card edge */
@media (min-width: 860px) { [data-look=gradient] .cat-art { margin: 0 -20px; width: calc(100% + 40px); } }
@media (max-width: 420px) { .brand img { height: 26px; } .brand .mark { height: 30px; } }

@keyframes jiggle { 0%, 70%, 100% { transform: rotate(9deg); } 76% { transform: rotate(-4deg); } 82% { transform: rotate(14deg); } 88% { transform: rotate(3deg); } 94% { transform: rotate(11deg); } }
@keyframes shackle { to { transform: translateY(-14px) rotate(-24deg); } }
@keyframes drop { 0% { transform: rotate(9deg); opacity: 1; } 100% { transform: translate(20px, 140px) rotate(80deg); opacity: 0; } }
@keyframes boing { 0% { transform: rotate(var(--tilt)) scale(1); } 30% { transform: rotate(var(--tilt)) scale(1.05, .94); } 60% { transform: rotate(var(--tilt)) scale(.97, 1.04); } 100% { transform: rotate(var(--tilt)) scale(1); } }
@keyframes shake { 0%, 100% { transform: rotate(var(--tilt)) translateX(0); } 20% { transform: rotate(var(--tilt)) translateX(-9px); } 40% { transform: rotate(var(--tilt)) translateX(8px); } 60% { transform: rotate(var(--tilt)) translateX(-5px); } 80% { transform: rotate(var(--tilt)) translateX(3px); } }
@keyframes fly { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); opacity: 0; } }
@keyframes pop { 0% { transform: rotate(-1.5deg) scale(.8); } 100% { transform: rotate(-1.5deg) scale(1); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.bob { animation: bob 2.6s ease-in-out infinite; transform-box: fill-box; }
.bob.d1 { animation-delay: -.8s; } .bob.d2 { animation-delay: -1.6s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .bit { display: none; }
}

/* ---------- Quiz Me page: quiz.html (js/quiz.js), V2 2026-09-27 ----------
   Hero = the landing's Quiz Me card (same .cat classes, so each look in js/landing-looks.js styles it) + a running pack.
   Cards = the two modules as hub-style blobs (css like portrait.html .mblob) with one question to try right there. */
.catpage main { display: grid; gap: 18px; margin-top: 18px; }
.catpage .cat.ct-hero { cursor: default; height: auto; min-height: 230px; padding: 18px 20px; overflow: hidden; }
.catpage .ct-hero:hover, .catpage .ct-hero:active { transform: none; } /* a banner, not a button */
.ct-hero .cat-art svg { max-height: 220px; }
.ct-hero h1.cat-name { margin: 0; }
.ct-hero .ct-bar { width: min(220px, 100%); height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; margin-top: 4px; }
.ct-hero .ct-bar i { display: block; height: 100%; border-radius: inherit; background: #FFF7E8; transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
[data-look=gradient] .ct-hero .ct-bar i { background: linear-gradient(90deg, #FFB06A, #8DB4FF); }
@media (min-width: 860px) {
  .catpage .cat.ct-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: none; justify-items: stretch; text-align: left; min-height: 380px; padding: 30px 34px; }
  .catpage .ct-hero .cat-art { order: 2; }
  .catpage .ct-hero .cat-text { justify-items: start; gap: 10px; }
  .catpage .ct-hero .cat-name { font-size: clamp(44px, 5.4vw, 64px); }
  .catpage .ct-hero .cat-art svg { max-height: 320px; }
  [data-look=gradient] .catpage .ct-hero .cat-art { margin: -30px -34px -30px 0; width: calc(100% + 34px); height: calc(100% + 60px); }
}
/* the pack: Mia + Pawl cutouts running laps along the bottom of the hero; tap one for more of its kind */
.catpage .cat.ct-hero { --band: 118px; position: relative; padding-bottom: calc(var(--band) + 10px); }
.pack { position: absolute; left: 0; right: 0; bottom: 0; height: var(--band); overflow: hidden; border-radius: 0 0 22px 22px; pointer-events: none; }
.pk { position: absolute; left: 0; bottom: calc(2px + var(--lane) * 12px); z-index: calc(3 - var(--lane)); width: calc(108px - var(--lane) * 18px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  animation: pk-run var(--dur) linear var(--delay) infinite; -webkit-tap-highlight-color: transparent; }
.pk.rev { animation-direction: reverse; } .pk.rev img { scale: -1 1; } /* the art faces left: laps to the right run mirrored */
.pk img { display: block; width: 100%; height: 100%; object-fit: contain; animation: pk-bob .34s ease-in-out infinite alternate; filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .25)); pointer-events: none; user-select: none; }
.pk.hop img { animation: pk-hop .5s cubic-bezier(.3, 1.6, .5, 1); }
.pk.is-new img { animation: pk-pop .45s cubic-bezier(.3, 1.6, .5, 1), pk-bob .34s .45s ease-in-out infinite alternate; }
.pk.is-gone { opacity: 0; transition: opacity .35s; pointer-events: none; }
@keyframes pk-run { from { translate: calc(100cqw + 20px) 0; } to { translate: -110px 0; } }
@keyframes pk-bob { to { transform: translateY(-9%) rotate(-4deg); } }
@keyframes pk-hop { 40% { transform: translateY(-55%) rotate(-10deg) scale(1.15); } }
@keyframes pk-pop { from { transform: scale(0); } }
.pack { container-type: inline-size; }
.tally { display: inline-flex; gap: 6px; margin-top: 2px; }
.tally button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: inherit; font: 700 14px/1 var(--body); cursor: pointer; }
.tally button::before { content: "+"; font-size: 15px; opacity: .7; }
.tally b { font-size: 16px; }
.tally[data-lead=dog] [data-add=dog], .tally[data-lead=cat] [data-add=cat] { background: rgba(255, 255, 255, .92); color: #1E1B2E; }
.tally button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pk { animation: none; translate: calc(var(--x) * 1cqw) 0; } /* --x: 0–85, spread along the band */ .pk img { animation: none !important; } }

/* the cards */
.qz-cards { display: grid; gap: 22px; margin-top: 4px; }
@media (min-width: 820px) { .qz-cards { grid-template-columns: 1fr 1fr; align-items: start; } }
.qz { --bg: #2B2A33; --fg: #FFF7E8; --soft: rgba(255, 247, 232, .82); --well: rgba(255, 255, 255, .12); --opt: rgba(255, 255, 255, .92); --opt-fg: #2B2A33;
  position: relative; display: grid; gap: 12px; padding: 26px 24px 22px; background: var(--bg); color: var(--fg);
  animation: rise .5s cubic-bezier(.3, 1.4, .5, 1) both, qz-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms), calc(var(--i) * -2.3s); }
.qz:hover, .qz:focus-within { animation-play-state: running, paused; }
.qz-signal { border-radius: 48px 56px 52px 72px / 56px 48px 64px 52px; rotate: -.6deg; }
.qz-smarts { border-radius: 30px 30px 30px 90px; rotate: .5deg; animation-duration: .5s, 8.1s; }
@keyframes qz-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.qz-top { display: flex; align-items: center; justify-content: space-between; }
.qz-tag { padding: 4px 10px; border-radius: 999px; background: var(--well); font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.qz-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--soft); font: 700 14px/1 var(--body); }
.qz.is-done .qz-mark { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.qz-title { margin: 0; font: 400 clamp(26px, 5vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.qz-line { margin: 0; font-size: 15px; line-height: 1.4; color: var(--soft); }
.qz-try { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: var(--well); }
.qz-try.is-in { animation: rise .4s cubic-bezier(.3, 1.4, .5, 1); }
.qz-art { justify-self: center; width: min(150px, 50%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.qz-art svg { width: 86%; height: 86%; overflow: visible; }
.qz-eyebrow { margin: 0; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.qz-scene { margin: 0; font-size: 15px; line-height: 1.45; }
.qz-q { margin: 0; font: 700 18px/1.3 var(--body); }
.qz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qz-opts li { animation: rise .35s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 60ms); }
.qz-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px 8px 8px; border: 0; border-radius: 16px; background: var(--opt); color: var(--opt-fg); font: 600 15px/1.3 var(--body); text-align: left; cursor: pointer;
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), background .2s, opacity .2s; }
.qz-opt:hover:not(:disabled) { transform: translateX(4px); }
.qz-opt:active:not(:disabled) { transform: scale(.98); }
.qz-opt:focus-visible, .qz-go:focus-visible, .qz-again:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.qz-k { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(43, 42, 51, .1); font: 700 14px/1 var(--body); }
.qz-opt:disabled { cursor: default; }
.qz-opt.is-right { background: #E3B04B; color: #2B2A33; } .qz-opt.is-right .qz-k { background: #2B2A33; color: #FFF7E8; }
.qz-opt.is-miss { background: rgba(255, 255, 255, .3); color: var(--fg); } .qz-opt.is-miss .qz-k { background: var(--fg); color: var(--bg); }
.qz-opt.is-dim { opacity: .45; }
.qz-reveal { display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .16); font-size: 14.5px; line-height: 1.45; animation: rise .35s cubic-bezier(.3, 1.4, .5, 1); }
.qz-reveal p { margin: 0; }
.qz-h { font: 400 18px/1.1 var(--display) !important; text-transform: uppercase; }
.qz-closer b, .qz-cues span { font-weight: 700; }
.qz-cues { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qz-cues span { width: 100%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.qz-cues em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: var(--well); font-size: 13px; }
.qz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.qz-go { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 700 16px/1 var(--body); text-decoration: none;
  transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.qz-go:hover { transform: translateY(-2px) scale(1.03); }
.qz-again { min-height: 40px; padding: 0 14px; border: 2px solid var(--soft); border-radius: 999px; background: none; color: var(--fg); font: 700 14px/1 var(--body); cursor: pointer; }
.qz-actions small { font: 700 13px/1 var(--body); color: var(--soft); margin-left: auto; }
/* Gradient: dark cards with a glow and gradient titles */
[data-look=gradient] .qz { --bg: #17151F; --fg: #fff; --soft: #D9D3E6; --well: rgba(255, 255, 255, .08); --opt: rgba(255, 255, 255, .1); --opt-fg: #fff;
  background-image: var(--glow); box-shadow: 0 18px 36px -22px rgba(23, 21, 31, .75); }
[data-look=gradient] .qz-signal { --glow: radial-gradient(circle at 20% 10%, rgba(94, 141, 251, .36), transparent 50%); --name: linear-gradient(180deg, #CFE0FF, #8DB4FF 60%, #76A2FF); }
[data-look=gradient] .qz-smarts { --glow: radial-gradient(circle at 80% 8%, rgba(255, 154, 60, .3), transparent 50%); --name: linear-gradient(180deg, #FFD9B5, #FCB067 60%, #FF9A38); }
[data-look=gradient] .qz-title { background: var(--name); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-look=gradient] .qz-k { background: rgba(255, 255, 255, .14); }
[data-look=gradient] .qz-opt.is-right { background: linear-gradient(90deg, #FFB06A, #8DB4FF); color: #17151F; } [data-look=gradient] .qz-opt.is-right .qz-k { background: #17151F; color: #fff; }
[data-look=gradient] .qz-go { background: linear-gradient(90deg, #FFB06A, #8DB4FF); color: #17151F; }
[data-look=gradient] .qz-art { background: rgba(255, 255, 255, .94); }
[data-look=gradient] .tally[data-lead=dog] [data-add=dog], [data-look=gradient] .tally[data-lead=cat] [data-add=cat] { background: linear-gradient(90deg, #FFB06A, #8DB4FF); color: #17151F; }
@media (max-width: 560px) { .catpage .cat.ct-hero { --band: 92px; } .pk { width: calc(84px - var(--lane) * 14px); } .qz { padding: 22px 18px 18px; } .qz-try { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .qz { animation: none; } }
.catpage .sheet-note { margin-top: 4px; }
body.catpage { background-attachment: fixed; } /* pages taller than the screen: the look's gradients/dots stay put instead of tiling */
