/* Detective Academy: the progress tracker and the six training rooms. Loaded only by academy.html. */

/* ---------- the page, tracker and rooms ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.academy-page [hidden] { display: none !important; }
.academy-tracker { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); padding: 1rem clamp(.6rem, 3vw, 1.4rem) .8rem; border-radius: 10px; text-align: center;
  border: 2px solid rgba(226, 168, 69, .45); background: var(--grain), linear-gradient(180deg, rgba(20, 30, 52, .92), rgba(9, 14, 28, .92)); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.tracker-paws { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.2rem, 1.5vw, .8rem); }
.tracker-paws a { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-decoration: none; color: var(--muted); padding: .3rem 0; border-radius: 8px; }
.tracker-paws a:hover { color: var(--gold); background: rgba(226, 168, 69, .08); }
.tp-paw { width: clamp(34px, 9vw, 54px); aspect-ratio: 1; display: grid; place-items: center; }
.tp-paw svg { width: 100%; height: 100%; fill: none; stroke: rgba(185, 211, 240, .5); stroke-width: 2.5; stroke-dasharray: 5 4; transform: rotate(-12deg); transition: fill .4s, stroke .4s; }
.tracker-paws li:nth-child(even) .tp-paw svg { transform: rotate(14deg) translateY(4px); }
.tracker-paws a.done .tp-paw svg { fill: var(--gold); stroke: #7a4b14; stroke-dasharray: none; filter: drop-shadow(0 0 7px rgba(226, 168, 69, .85)); }
.tracker-paws a.done { color: var(--gold); }
.tracker-paws a.just .tp-paw { animation: paw-earned 1.4s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes paw-earned { 0% { transform: scale(.4); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.tp-name { font-family: var(--type); font-size: clamp(.62rem, 2.6vw, .85rem); letter-spacing: .04em; line-height: 1.1; }
.tracker-count { margin: .6rem 0 0; font-family: var(--spooky); color: var(--lime); font-size: 1.15rem; }

.academy-room { max-width: 940px; margin: 0 auto clamp(2.5rem, 7vw, 4.5rem); padding-top: clamp(1.6rem, 4vw, 2.4rem); text-align: center;
  border-top: 2px dashed rgba(226, 168, 69, .3); scroll-margin-top: 80px; }
.academy-tracker + .academy-room { border-top: 0; padding-top: 0; }
.riddle-room { max-width: 680px; }
.room-no { display: inline-block; font-family: var(--type); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--lime); margin-bottom: .3rem; }
.room-heading { font-size: clamp(2.1rem, 6vw, 3.2rem); color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .75), 0 0 24px rgba(226, 168, 69, .35); margin-bottom: .3rem; }
.room-intro { color: var(--muted); margin: 0 auto 1.4rem; max-width: 640px; }
.room-done { padding: 2rem 1.4rem; border-radius: 10px; border: 2px dashed rgba(226, 168, 69, .7); background: var(--grain), rgba(226, 168, 69, .08); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.room-done .riddle-stamp { font-size: 1.2rem; color: #6fcf6f; transform: rotate(-6deg); }
.academy-memo { max-width: 640px; margin: 0 auto 1.2rem; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@keyframes wiggle { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(7px) rotate(3deg); } 60% { transform: translateX(-5px) rotate(-2deg); } 80% { transform: translateX(3px); } }
.wiggle { animation: wiggle .5s ease-in-out; }

/* ---------- 1. the Riddle Room ---------- */
.riddle-list { text-align: left; }
.riddle-list .a { color: var(--gold); font-weight: 700; }
.riddle-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem; margin-bottom: 1.2rem; }
.riddle-progress .paws { display: flex; gap: .3rem; }
.riddle-progress .paw { width: clamp(20px, 6vw, 28px); aspect-ratio: 1; display: grid; place-items: center; }
.riddle-progress .paw svg { width: 100%; height: 100%; fill: rgba(185, 211, 240, .22); transform: rotate(20deg); transition: fill .3s, transform .3s; }
.riddle-progress .paw.now svg { fill: rgba(226, 168, 69, .55); animation: now-pulse 1.6s ease-in-out infinite; }
.riddle-progress .paw.done svg { fill: var(--gold); filter: drop-shadow(0 0 5px rgba(226, 168, 69, .8)); }
.riddle-count { font-family: var(--type); letter-spacing: .1em; color: var(--lime); font-size: .95rem; }

/* the case-file card: manila paper that flips over to the answer */
.riddle-card { perspective: 1400px; }
.riddle-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1.1); }
.riddle-card.flipped .riddle-inner { transform: rotateY(180deg); }
.riddle-card.swap .riddle-inner { animation: riddle-swap .4s ease-out; }
@keyframes riddle-swap { from { opacity: 0; transform: translateX(40px) rotate(2deg); } }
.riddle-face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; min-height: clamp(260px, 52vw, 320px);
  padding: 2.2rem clamp(1.2rem, 5vw, 2.6rem) 1.8rem; border-radius: 6px 18px 10px 10px; color: var(--paper-ink);
  background: var(--grain), linear-gradient(170deg, #ead9b0, #d8bf86); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(90, 67, 32, .25);
  position: relative;
}
.riddle-face::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(180deg, rgba(240, 228, 196, .85), rgba(214, 196, 150, .8)); box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  clip-path: polygon(0 12%, 5% 0, 30% 6%, 55% 0, 80% 7%, 100% 0, 97% 50%, 100% 100%, 75% 92%, 50% 100%, 25% 93%, 3% 100%, 0 88%, 3% 50%);
}
.riddle-back { transform: rotateY(180deg); background: var(--grain), linear-gradient(170deg, #f1e4c2, #e0c992); }
.riddle-stamp { display: inline-block; font-family: var(--type); text-transform: uppercase; letter-spacing: .16em; font-size: .9rem; color: #b8322b; border: 2px solid currentColor;
  border-radius: 4px; padding: .2rem .7rem .1rem; transform: rotate(-3deg); }
.riddle-stamp.solved { color: #2e6a2e; }
.riddle-q { margin: 0; font-family: var(--spooky); -webkit-text-stroke: .02em currentColor; font-size: clamp(1.35rem, 4.6vw, 1.85rem); line-height: 1.3; }
.riddle-a { margin: 0; font-family: var(--creep); letter-spacing: .04em; font-size: clamp(2.2rem, 8vw, 3.2rem); color: #7a2a12; line-height: 1.05; }
.riddle-face .btn { min-width: 210px; }
.riddle-cleared { margin: 0; font-family: var(--creep); letter-spacing: .03em; font-size: clamp(1.7rem, 6vw, 2.6rem); color: var(--gold); line-height: 1.15;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .7), 0 0 24px rgba(226, 168, 69, .45); animation: riddle-pop .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes riddle-pop { from { transform: scale(.6); opacity: 0; } }

/* ---------- 2. Paw Print Matching ---------- */
.match-game { user-select: none; -webkit-user-select: none; }
.match-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.5rem, 2vw, .9rem); min-height: 96px; padding: 1rem; border-radius: 10px;
  background: var(--grain), linear-gradient(180deg, #5b4630, #3d2e1f); box-shadow: inset 0 4px 14px rgba(0, 0, 0, .5); }
.match-tray:empty::after { content: "All tracks matched!"; align-self: center; color: #e9dcb8; font-family: var(--spooky); font-size: 1.2rem; }
.match-track { width: clamp(72px, 20vw, 92px); aspect-ratio: 1; padding: .55rem; border: 0; border-radius: 8px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  color: #4a2e15; background: var(--grain), linear-gradient(170deg, #ead9b0, #d4b97f); box-shadow: 0 4px 0 #7a5a2c, 0 8px 16px rgba(0, 0, 0, .4); transition: transform .2s, box-shadow .2s; }
.match-track svg { width: 100%; height: 100%; pointer-events: none; }
.match-track:hover { transform: translateY(-3px) rotate(-2deg); }
.match-track.picked { outline: 4px solid var(--gold); outline-offset: 3px; transform: translateY(-5px) scale(1.06); box-shadow: 0 8px 0 #7a5a2c, 0 0 26px rgba(226, 168, 69, .7); }
.match-track.dragging { position: relative; z-index: 50; cursor: grabbing; transition: none; box-shadow: 0 18px 30px rgba(0, 0, 0, .6); }
.match-say { min-height: 3.2em; margin: 1rem auto; max-width: 560px; color: var(--lime); font-weight: 700; }
.match-animals { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 2vw, 1rem); max-width: 640px; margin: 0 auto 1.2rem; }
.match-animal { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: clamp(110px, 28vw, 140px); padding: .7rem .4rem;
  border-radius: 10px; border: 2px dashed rgba(185, 211, 240, .45); background: rgba(14, 22, 40, .8); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .3s, background .3s; }
.match-animal:hover, .match-animal.over { border-color: var(--gold); background: rgba(226, 168, 69, .12); }
.ma-emoji { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; }
.ma-name { font-family: var(--spooky); font-size: clamp(1.05rem, 3.6vw, 1.3rem); }
.ma-slot { position: absolute; top: 6px; right: 6px; width: clamp(30px, 8vw, 40px); color: #4a2e15; }
.ma-slot:empty { display: none; }
.match-animal.matched { border: 2px solid var(--gold); background: radial-gradient(circle at 50% 40%, rgba(226, 168, 69, .35), rgba(14, 22, 40, .85) 70%);
  box-shadow: 0 0 0 3px rgba(226, 168, 69, .25), 0 0 30px rgba(226, 168, 69, .65); animation: match-glow 1.2s ease-out; cursor: default; }
.match-animal.matched .ma-slot { padding: 3px; border-radius: 6px; background: #ead9b0; }
@keyframes match-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 220, 120, .9); transform: scale(1.06); } 100% { box-shadow: 0 0 0 3px rgba(226, 168, 69, .25), 0 0 30px rgba(226, 168, 69, .65); } }

/* ---------- 3. Spot the Difference ---------- */
.spot-bar { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.spot-count { font-family: var(--spooky); font-size: 1.4rem; color: var(--lime); }
.section .spot-hint { min-height: 44px; padding: .4rem 1rem; font-size: 1.05rem; }
.section .spot-hint[disabled] { opacity: .4; cursor: default; }
.spot-puzzle { display: grid; gap: clamp(.8rem, 2.5vw, 1.4rem); margin-bottom: 1.2rem; }
@media (min-width: 760px) { .spot-puzzle { grid-template-columns: 1fr 1fr; } }
.spot-pic { position: relative; border: 6px solid #d9cfb8; border-bottom-width: 14px; border-radius: 2px; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); cursor: crosshair;
  overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.spot-pic img { width: 100%; pointer-events: none; }
.spot-tag { position: absolute; left: 8px; top: 8px; font-family: var(--type); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-ink);
  background: rgba(240, 228, 196, .9); padding: .1rem .5rem; border-radius: 3px; pointer-events: none; }
.spot-ring, .spot-miss, .spot-hintring { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.spot-ring { border: 4px solid #ff3b30; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 14px rgba(255, 59, 48, .6); animation: ring-pop .45s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes ring-pop { from { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
.spot-miss { border: 3px solid rgba(255, 255, 255, .85); animation: miss-fade .7s ease-out forwards; }
@keyframes miss-fade { to { transform: translate(-50%, -50%) scale(1.8); opacity: 0; } }
.spot-hintring { background: radial-gradient(circle, rgba(255, 230, 140, .6), rgba(255, 210, 90, .2) 55%, transparent 70%); animation: hint-pulse 1.3s ease-in-out 2; }
@keyframes hint-pulse { 50% { transform: translate(-50%, -50%) scale(1.15); opacity: .55; } }

/* ---------- 4. Sniff Test ---------- */
.sniff-top { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 3vw, 1.6rem); margin-bottom: 1.4rem; text-align: left; }
.sniff-wrigley { width: clamp(84px, 24vw, 140px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #2e6fd8; box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
  flex: none; animation: sniffing 1.1s ease-in-out infinite; }
.sniff-wrigley.happy { animation: happy-hop .5s ease-in-out 3; }
@keyframes sniffing { 50% { transform: rotate(-4deg) translateY(-2px); } }
@keyframes happy-hop { 50% { transform: translateY(-12px) rotate(4deg); } }
.sniff-bubble { position: relative; max-width: 460px; padding: .9rem 1.2rem; border-radius: 14px; color: var(--paper-ink); background: var(--grain), linear-gradient(170deg, #f1e4c2, #e0c992);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.sniff-bubble::before { content: ""; position: absolute; left: -24px; top: 50%; border: 10px solid transparent; border-right: 16px solid #ecdcb4; transform: translateY(-50%); }
.sniff-round { font-family: var(--type); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #b8322b; }
.sniff-clue { margin: .2rem 0 0; font-family: var(--spooky); font-size: clamp(1.15rem, 4.2vw, 1.6rem); line-height: 1.25; }
.sniff-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.5rem, 2.5vw, 1.2rem); max-width: 620px; margin: 0 auto; }
.sniff-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .6rem .5rem .7rem; border: 0; border-radius: 8px; cursor: pointer; font: inherit;
  color: var(--paper-ink); background: var(--grain), linear-gradient(170deg, #ead9b0, #d4b97f); box-shadow: 0 5px 0 #7a5a2c, 0 10px 20px rgba(0, 0, 0, .4); transition: transform .2s, opacity .3s, filter .3s; }
.sniff-card:nth-child(1) { transform: rotate(-2deg); }
.sniff-card:nth-child(3) { transform: rotate(2deg); }
.sniff-card:hover { transform: translateY(-4px) rotate(0); }
.sniff-card img, .sniff-emoji { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #24324f; }
.sniff-emoji { display: grid; place-items: center; font-size: clamp(2.6rem, 12vw, 4.6rem); }
.sniff-card figcaption { font-family: var(--spooky); font-size: clamp(.95rem, 3.4vw, 1.25rem); line-height: 1.1; }
.sniff-card.right { transform: scale(1.06); box-shadow: 0 0 0 4px #6fcf6f, 0 0 34px rgba(111, 207, 111, .7); }
.sniff-card.nope { animation: wiggle .5s ease-in-out; filter: grayscale(.8) brightness(.7); cursor: default; }
.sniff-card.faded { opacity: .35; }
.sniff-say { min-height: 3em; margin: 1rem auto .6rem; max-width: 560px; color: var(--lime); font-weight: 700; }

/* ---------- 5. Secret Code Breaker ---------- */
.code-key-box { max-width: 760px; margin: 0 auto 1.6rem; padding: .8rem 1rem 1.2rem; border-radius: 10px; color: var(--paper-ink); background: var(--grain), linear-gradient(170deg, #ead9b0, #d4b97f); box-shadow: var(--shadow); }
.section .code-key-box .btn-ghost { color: #4a2e15; border-color: #4a2e15; }
.section .code-key-box .btn-ghost:hover { color: #4a2e15; background: rgba(74, 46, 21, .1); }
.code-key-box summary { cursor: pointer; font-family: var(--spooky); font-size: 1.35rem; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(44px, 12vw, 60px), 1fr)); gap: .4rem; margin: .8rem 0 1rem; }
.key-cell { display: flex; flex-direction: column; align-items: center; padding: .25rem 0; border-radius: 6px; background: rgba(255, 255, 255, .35); color: #3a2410; }
.key-cell b { font-family: var(--type); font-size: 1.05rem; }
.paw-glyph { width: clamp(30px, 8.5vw, 48px); height: auto; aspect-ratio: 1; }
.key-cell .paw-glyph { width: clamp(36px, 10vw, 50px); }
.code-messages { display: grid; gap: 1.4rem; max-width: 760px; margin: 0 auto 1.4rem; }
.code-msg { padding: 1.1rem clamp(.7rem, 3vw, 1.4rem) 1.2rem; border-radius: 10px; border: 2px solid rgba(185, 211, 240, .3); background: rgba(14, 22, 40, .82); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.code-msg .riddle-stamp { color: #ff8a80; }
.code-msg.cracked { border-color: #6fcf6f; box-shadow: 0 0 22px rgba(111, 207, 111, .3); }
.code-line, .code-own-out, .ap-msg { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.3rem; color: #e9dcb8; }
.cw { display: inline-flex; gap: .15rem; }
.cg { display: flex; flex-direction: column; align-items: center; }
.cg-plain { justify-content: flex-start; font-size: 1.5rem; font-weight: 700; padding-top: .2rem; }
.cs { min-width: 1.2em; height: 1.4em; font-family: var(--type); font-size: 1.05rem; text-align: center; border-bottom: 2px solid rgba(185, 211, 240, .4); }
.cs.good { color: var(--gold); border-color: var(--gold); }
.cs.bad { color: #ff8a80; border-color: #ff8a80; }
.code-try { width: min(100%, 520px); font: inherit; font-family: var(--type); font-size: clamp(.9rem, 3.7vw, 1.15rem); letter-spacing: .04em; text-transform: uppercase; text-align: center;
  padding: .65rem .6rem; border-radius: 10px; border: 3px solid var(--lime); background: #fffbe9; color: #1b1206; }
.code-try[readonly] { border-color: #6fcf6f; background: #eaf7e4; }
.code-ok { margin: 0; color: #9be39b; font-weight: 700; }
.code-done { max-width: 760px; margin: 0 auto 1.6rem; }
.code-writer { max-width: 760px; margin: 0 auto; padding: 1.2rem clamp(.8rem, 3vw, 1.6rem); border-radius: 10px; border: 2px dashed rgba(226, 168, 69, .6); display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.code-writer h3 { margin: 0; font-family: var(--spooky); color: var(--gold); font-size: 1.6rem; }
.code-own { width: 100%; font: inherit; font-family: var(--type); font-size: 1.1rem; text-transform: uppercase; padding: .6rem .9rem; border-radius: 10px; border: 3px solid var(--gold); background: #fffbe9; color: #1b1206; resize: vertical; }
.code-own-out:empty { display: none; }
.section .code-print-own[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 6. Detective Oath ---------- */
.oath-locked { max-width: 560px; margin: 0 auto; padding: 1.4rem; border-radius: 10px; border: 2px dashed rgba(185, 211, 240, .4); background: rgba(14, 22, 40, .8); }
.oath-lock-icon { font-size: 2.6rem; margin: 0; }
.oath-left { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .9rem; }
.oath-card { max-width: 640px; margin: 0 auto; padding: clamp(1.6rem, 5vw, 2.6rem) clamp(1.1rem, 5vw, 2.6rem); color: #3b2a14; transform: rotate(-.6deg); border-radius: 3px;
  background: var(--grain), radial-gradient(ellipse at 50% 40%, #f3e3bb 0%, #e3c98f 60%, #b88d4f 100%);
  box-shadow: inset 0 0 40px rgba(110, 66, 20, .55), inset 0 0 6px rgba(80, 45, 10, .6), 0 18px 40px rgba(0, 0, 0, .55);
  clip-path: polygon(0 2%, 4% 0, 18% 1%, 33% 0, 52% 1.5%, 70% 0, 86% 1%, 100% 0, 99% 22%, 100% 47%, 99% 73%, 100% 100%, 82% 99%, 63% 100%, 45% 98.5%, 27% 100%, 9% 99%, 0 100%, 1% 76%, 0 50%, 1% 24%); }
.oath-text { font-family: var(--spooky); font-size: clamp(1.3rem, 4.4vw, 1.75rem); line-height: 1.45; margin: 1rem 0 1.4rem; }
.oath-form label { display: block; font-weight: 700; margin-bottom: .5rem; }
.oath-card .small { color: #5a4527; }
.oath-badge { margin-top: 2rem; }
.oath-badge .badge { width: min(420px, 100%); margin: 0 auto 1.4rem; padding: 1.2rem; border-radius: 26px; background: #fffbe9; color: #2b2418; box-shadow: var(--shadow), 0 0 50px rgba(226, 168, 69, .35); }

/* ---------- printing (the key, a secret message, the badge) ---------- */
.academy-print { display: none; }
@media print {
  body.academy-printing > *:not(.academy-print) { display: none !important; }
  body.academy-printing { background: #fff !important; color: #000; }
  body.academy-printing .academy-print { display: block; text-align: center; font-family: "Andika", sans-serif; color: #000; }
  .academy-print h1 { font-family: "Luckiest Guy", sans-serif; font-size: 26pt; margin: 0 0 .1in; color: #000; text-shadow: none; }
  .academy-print h2 { font-family: "Luckiest Guy", sans-serif; font-size: 16pt; color: #000; }
  .academy-print .key-grid { grid-template-columns: repeat(7, 1fr); gap: .1in; }
  .academy-print .key-cell { background: none; border: 1px solid #999; color: #000; }
  .academy-print .key-cell b { font-size: 14pt; }
  .academy-print .paw-glyph { width: .6in; height: .6in; }
  .academy-print.ap-own .key-grid .paw-glyph { width: .42in; height: .42in; }
  .academy-print .ap-msg { color: #000; margin: .3in 0; gap: .15in .35in; }
  .academy-print .ap-msg .paw-glyph { width: .7in; height: .7in; }
  .academy-print .ap-cut { color: #777; letter-spacing: .1em; margin: .2in 0; }
  .academy-print .badge { width: 5in; margin: 0 auto; padding: .2in; border: 2px dashed #999; border-radius: 26px; box-shadow: none; background: #fffbe9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .academy-print .ap-foot { margin-top: .3in; font-size: 10pt; color: #555; }
  @page { size: letter portrait; margin: .4in; }
}
@media (prefers-reduced-motion: reduce) { .riddle-inner { transition: none; } .sniff-wrigley, .wiggle, .sniff-card.nope, .match-animal.matched { animation: none; } }
