/* Local-only theme pack: stickers, album, partner cards. Never part of the public build.
   Everything is scoped to .pk (set on <html>/<body> only while the theme is on) or to pk- classes. */
.pk .nib, .pk .nib-say { display: none !important; }
body.pk-exam .pm-root, body.pk-exam #pk-guide, body.pk-exam .pk-toast, body.pk-exam .pk-snooze { display: none !important; }

/* a sticker: white die-cut edge, a little tilt, lifts when touched */
.pk-slot img, .pk-recent img, .pk-toast img, .pk-bk { filter: drop-shadow(0 2px 2px rgba(10, 20, 40, .28)); }

/* ---------------------------------------------------------------- the guide button and its panel */
#pk-guide { position: fixed; left: 18px; bottom: 16px; z-index: 44; display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border: 2.5px solid #24356b; border-radius: 99px; background: #ffd93b; color: #1d2a55; font: 800 15px var(--f-head, system-ui); cursor: pointer; box-shadow: 0 4px 0 #24356b; transition: transform .12s, box-shadow .12s; }
#pk-guide svg { width: 22px; height: 22px; }
#pk-guide:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #24356b; }
#pk-guide:active { transform: translateY(3px); box-shadow: 0 1px 0 #24356b; }
#pk-guide:focus-visible { outline: 3px solid #2557d6; outline-offset: 3px; }
.pk-panel { left: 18px; bottom: 76px; }
.pk-who { display: flex; align-items: center; gap: 8px; margin: -2px 26px 8px 0; font: 800 13px var(--f-head, system-ui); color: #5b6b85; }
.pk-who img { width: 34px; height: 34px; border-radius: 50%; background: #eef2f8; object-fit: cover; }
:root[data-theme="dark"] .pk-panel { background: #17243a; color: #e6ecf5; border-color: #7aa2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pk-panel { background: #17243a; color: #e6ecf5; border-color: #7aa2ff; } }

/* ---------------------------------------------------------------- the notebook's name, with company */
.pk-brand { width: 34px; height: 34px; margin-left: 8px; border-radius: 50%; background: var(--paper); object-fit: cover; box-shadow: 0 0 0 2px var(--hl); vertical-align: middle; }
@media (max-width: 980px) { .pk-brand { display: none; } }

/* ---------------------------------------------------------------- "new sticker" card */
.pk-toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 24px)); padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--card, #fff); color: var(--ink, #172b4d); border: 2.5px solid var(--ink, #172b4d); box-shadow: 0 6px 0 var(--ink, #172b4d), 0 22px 40px -18px rgba(10, 20, 40, .7); }
.pk-toast > img { width: 84px; height: 84px; object-fit: contain; flex: none; }
.pk-toast small { display: block; font: 700 17px var(--f-hand, cursive); color: var(--red, #c8372d); }
.pk-toast b { display: block; font: 800 21px/1.15 var(--f-head, system-ui); }
.pk-toast span { display: block; font-size: 14px; color: var(--muted, #5b6b85); }
.pk-toast > div:not(.pk-row) { flex: 1; min-width: 150px; } .pk-toast.many { max-width: min(660px, calc(100vw - 24px)); }
.pk-toast .pk-row { display: flex; } .pk-toast .pk-row img { width: 46px; height: 46px; margin-left: -12px; } .pk-toast .pk-row img:first-child { margin-left: 0; }
.pk-btn { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--pen, #2557d6); color: #fff; font: 800 14px var(--f-head, system-ui); text-decoration: none; }
.pk-btn:focus-visible { outline: 3px solid var(--hl, #ffe14d); outline-offset: 2px; }
.pk-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.pk-x:hover { background: rgba(120, 130, 150, .2); } .pk-x:focus-visible { outline: 3px solid var(--hl, #ffe14d); }
.pk-burst { position: absolute; left: 54px; top: 50%; width: 0; height: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .pk-toast { animation: pk-in .5s cubic-bezier(.3, 1.5, .5, 1) both; }
  .pk-toast.out { animation: pk-out .3s ease-in both; }
  @keyframes pk-in { from { transform: translate(-50%, 140%) scale(.8); } }
  @keyframes pk-out { to { transform: translate(-50%, 140%); opacity: 0; } }
  .pk-toast > img { animation: pk-pop .7s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  @keyframes pk-pop { from { transform: scale(0) rotate(-40deg); } }
  .pk-burst::before, .pk-burst::after { content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: repeating-conic-gradient(var(--hl, #ffe14d) 0 8deg, transparent 8deg 30deg); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 64%); mask: radial-gradient(circle, transparent 38%, #000 40%, #000 62%, transparent 64%); animation: pk-ray .9s ease-out .2s both; }
  .pk-burst::after { animation-delay: .35s; background: repeating-conic-gradient(var(--red, #c8372d) 0 5deg, transparent 5deg 36deg); }
  @keyframes pk-ray { from { transform: scale(.2) rotate(0); opacity: 1; } to { transform: scale(1.5) rotate(40deg); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .pk-burst { display: none; } }
@media (max-width: 560px) { .pk-toast { left: 12px; right: 12px; transform: none; bottom: 78px; } .pk-toast > img { width: 60px; height: 60px; } .pk-toast b { font-size: 18px; } @keyframes pk-in { from { transform: translateY(140%); } } @keyframes pk-out { to { transform: translateY(140%); opacity: 0; } } }

/* ---------------------------------------------------------------- album */
.pk-ahead { display: flex; align-items: center; gap: 20px; margin: 6px 0 16px; }
.pk-hero { width: 124px; height: 124px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 8px rgba(10, 20, 40, .25)); }
.pk-ahead h1 { margin: 0; } .pk-ahead > div { flex: 1; min-width: 0; }
.pk-bar { height: 14px; max-width: 520px; margin-top: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pk-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pen), var(--hl)); }
.pk-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pk-how > div { padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pk-how b { display: block; font: 800 26px/1.1 var(--f-head); color: var(--pen); font-variant-numeric: tabular-nums; }
.pk-how span { font-size: 14.5px; color: var(--muted); }
.pk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pk-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--pen-soft); }
.pk-seg button { padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 700 14.5px var(--f-body); cursor: pointer; }
.pk-seg button.on { background: var(--card); box-shadow: var(--shadow); color: var(--pen); }
.pk-seg button:focus-visible, .pk-slot:focus-visible, .pk-choices button:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
#pk-q, #pk-any { flex: 1; min-width: 180px; max-width: 320px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 16px var(--f-body); }
.pk-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-left: auto; font-size: 14.5px; }
.pk-set label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; padding: 18px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pk-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border: 1.5px dashed var(--line); border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; transition: transform .16s cubic-bezier(.3, 1.5, .5, 1), background .16s; }
.pk-slot img { width: 92px; height: 92px; object-fit: contain; transform: rotate(var(--r, 0deg)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.pk-slot .pk-no { font: 600 11.5px var(--f-body); color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-slot b { font: 700 13.5px/1.2 var(--f-head); text-align: center; overflow-wrap: anywhere; }
.pk-slot.got { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--tc) 13%, transparent); }
.pk-slot.got:hover img { transform: rotate(0deg) scale(1.14); }
.pk-slot:hover { transform: translateY(-3px); }
.pk-slot.miss img { filter: brightness(0) opacity(.2); transform: none; }
:root[data-theme="dark"] .pk-slot.miss img { filter: brightness(0) invert(1) opacity(.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pk-slot.miss img { filter: brightness(0) invert(1) opacity(.22); } }
.pk-slot.miss b { color: var(--muted); }
.pk-slot.shiny::after, .pk-partner.shiny::after { content: "✦"; position: absolute; top: 6px; right: 9px; font-size: 17px; color: #e3a600; }
.pk-slot.shiny { background: linear-gradient(135deg, color-mix(in srgb, var(--tc) 16%, transparent), color-mix(in srgb, var(--hl) 40%, transparent), color-mix(in srgb, var(--tc) 16%, transparent)); background-size: 220% 220%; }
@media (prefers-reduced-motion: no-preference) { .pk-slot.shiny { animation: pk-holo 5s ease-in-out infinite; } @keyframes pk-holo { 50% { background-position: 100% 100%; } } .pk-slot.shiny::after, .pk-partner.shiny::after { animation: pk-tw 1.8s ease-in-out infinite; } @keyframes pk-tw { 50% { transform: scale(1.35) rotate(20deg); opacity: .6; } } }

/* one sticker, close up */
.pk-card { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(12, 20, 38, .55); overflow: auto; }
.pk-card-in { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 22px; width: min(720px, 100%); padding: 22px; border-radius: 22px; background: var(--card, #fff); color: var(--ink, #172b4d); border: 3px solid var(--tc); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.pk-card-in > .pk-x { position: absolute; top: 10px; right: 10px; }
.pk-art { display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tc) 30%, transparent), color-mix(in srgb, var(--tc) 8%, transparent) 70%); min-height: 250px; }
.pk-art img { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(10, 20, 40, .3)); }
.pk-card-in.miss .pk-art img { filter: brightness(0) opacity(.25); }
.pk-card-in.shiny .pk-art { background: conic-gradient(from 0deg at 50% 50%, #ffe9a8, #c9f0ff, #ffd0ee, #d6ffd9, #ffe9a8); }
.pk-info h2 { margin: 2px 0 0; font: 800 30px/1.1 var(--f-head, system-ui); }
.pk-info .pk-no { font: 700 14px var(--f-body, system-ui); color: var(--muted, #5b6b85); }
.pk-genus { margin: 2px 0 8px; color: var(--muted, #5b6b85); }
.pk-types { display: flex; gap: 6px; margin: 0 0 10px; }
.pk-types i { padding: 2px 12px; border-radius: 99px; background: var(--tc); color: #fff; font: 700 13px var(--f-head, system-ui); font-style: normal; text-transform: capitalize; }
.pk-bio { margin: 0 0 10px; font-size: 16px; line-height: 1.55; }
.pk-why { margin: 0 0 14px; font-size: 14px; color: var(--muted, #5b6b85); } .pk-why b { color: var(--ink, #172b4d); margin-right: 6px; }
.pk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .pk-card-in { animation: pk-card .32s cubic-bezier(.3, 1.4, .5, 1) both; } @keyframes pk-card { from { transform: scale(.85) rotate(-3deg); opacity: 0; } } .pk-art img { animation: pk-bob 3.2s ease-in-out infinite; } @keyframes pk-bob { 50% { transform: translateY(-9px); } } }
@media (max-width: 640px) { .pk-card-in { grid-template-columns: minmax(0, 1fr); padding: 16px; } .pk-art { min-height: 190px; } .pk-art img { width: 170px; height: 170px; } .pk-ahead { gap: 12px; } .pk-hero { width: 84px; height: 84px; } .pk-set { margin-left: 0; } .pk-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 12px 8px; } .pk-slot img { width: 76px; height: 76px; } }

/* ---------------------------------------------------------------- choose a partner */
.pk-pick { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; overflow: auto; background: rgba(12, 20, 38, .7); }
.pk-pick-in { width: min(860px, 100%); padding: 26px 28px 22px; border-radius: 24px; background: var(--paper, #fafbfd); color: var(--ink, #172b4d); border: 3px solid var(--ink, #172b4d); box-shadow: 0 8px 0 var(--ink, #172b4d), 0 30px 60px -20px #000; background-image: linear-gradient(var(--grid, #e3eaf4) 1px, transparent 1px), linear-gradient(90deg, var(--grid, #e3eaf4) 1px, transparent 1px); background-size: 24px 24px; }
.pk-pick-in h2 { margin: 0 0 6px; font: 800 34px/1.1 var(--f-head, system-ui); }
.pk-pick-in .pen { margin: 0; }
.pk-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 16px 0; }
.pk-choices button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border: 2.5px solid transparent; border-radius: 16px; background: color-mix(in srgb, var(--tc) 14%, var(--card, #fff)); color: inherit; font: inherit; cursor: pointer; transition: transform .16s cubic-bezier(.3, 1.5, .5, 1); }
.pk-choices img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(10, 20, 40, .25)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.pk-choices b { font: 800 15px var(--f-head, system-ui); }
.pk-choices button:hover { transform: translateY(-4px); } .pk-choices button:hover img { transform: scale(1.1); }
.pk-choices button.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 28%, var(--card, #fff)); box-shadow: 0 4px 0 var(--tc); }
.pk-choices button.on img { transform: scale(1.16) translateY(-4px); }
.pk-pick-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .pk-pick-in { animation: pk-card .4s cubic-bezier(.3, 1.4, .5, 1) both; } .pk-choices button { animation: pk-rise .45s cubic-bezier(.3, 1.4, .5, 1) both; } .pk-choices button:nth-child(n) { animation-delay: calc(40ms * var(--n, 0)); } @keyframes pk-rise { from { transform: translateY(26px); opacity: 0; } } }
@media (max-width: 560px) { .pk-pick-in { padding: 18px 14px; } .pk-pick-in h2 { font-size: 26px; } .pk-choices { grid-template-columns: repeat(3, 1fr); gap: 6px; } .pk-choices img { width: 70px; height: 70px; } }

/* ---------------------------------------------------------------- on the app's own pages */
.tile.book .pk-bk { width: 46px; height: 46px; object-fit: contain; flex: none; margin: 2px 0 -2px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.tile.book:hover .pk-bk, .tile.book:focus-visible .pk-bk { transform: scale(1.3) translateY(-4px) rotate(6deg); }
.pk-partner { position: relative; display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 8px 16px 8px 8px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; max-width: 340px; }
.pk-partner img { width: 64px; height: 64px; object-fit: contain; flex: none; filter: brightness(0) opacity(.22); }
.pk-partner.got img { filter: drop-shadow(0 3px 3px rgba(10, 20, 40, .25)); }
.pk-partner span { display: grid; gap: 1px; min-width: 0; }
.pk-partner small { font: 700 12px var(--f-head); color: var(--pen); }
.pk-partner b { font: 800 17px/1.15 var(--f-head); }
.pk-partner em { font-style: normal; font-size: 13px; color: var(--muted); }
.pk-meter { display: block; height: 7px; margin-top: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pk-meter i { display: block; height: 100%; border-radius: 99px; background: var(--pen); }
.pk-partner.got .pk-meter i { background: var(--green); } .pk-partner.shiny .pk-meter i { background: #e3a600; }
.pk-partner:hover { border-color: var(--pen); } .pk-partner:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.chh:has(.pk-partner) { flex-wrap: wrap; }
.pk-trainer { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; padding: 12px 18px; border-radius: 18px; border: 2px solid var(--ink); background: linear-gradient(120deg, color-mix(in srgb, var(--hl) 55%, var(--card)), var(--card) 55%); box-shadow: 0 4px 0 var(--ink); }
.pk-trainer .pk-hero { width: 104px; height: 104px; margin: -18px 0 -10px; }
.pk-tc { flex: 1; min-width: 0; } .pk-tc h3 { margin: 0; font: 800 22px/1.2 var(--f-head); } .pk-tc p { margin: 3px 0 6px; font-size: 15.5px; }
.pk-recent { display: flex; gap: 2px; min-height: 40px; } .pk-recent img { width: 40px; height: 40px; object-fit: contain; transition: transform .16s; } .pk-recent a:hover img { transform: scale(1.3) rotate(-6deg); }
@media (prefers-reduced-motion: no-preference) { .pk-trainer .pk-hero { animation: pk-bob 3.4s ease-in-out infinite; } }
@media (max-width: 760px) { .pk-trainer { flex-wrap: wrap; gap: 10px; } .pk-trainer .pk-hero { width: 72px; height: 72px; margin: 0; } .pk-partner { margin-left: 0; max-width: none; flex-basis: 100%; } }
.pk-walk { image-rendering: pixelated; pointer-events: none; }

/* ---------------------------------------------------------------- secrets */
.pk-fly { position: fixed; left: -120px; top: 30vh; width: 96px; z-index: 90; pointer-events: none; image-rendering: pixelated; animation: pk-fly 4s linear both; }
@keyframes pk-fly { 0% { transform: translate(0, 0); } 25% { transform: translate(30vw, -12vh); } 50% { transform: translate(55vw, 8vh); } 75% { transform: translate(80vw, -10vh); } 100% { transform: translate(calc(100vw + 240px), 0); } }
.pk-snooze { position: fixed; left: 50%; bottom: 0; z-index: 43; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; }
.pk-snooze img { width: 150px; display: block; filter: drop-shadow(0 -2px 8px rgba(10, 20, 40, .3)); }
.pk-snooze span { position: absolute; right: -6px; top: 4px; font: 800 22px var(--f-hand, cursive); color: var(--pen, #2557d6); }
.pk-snooze:focus-visible { outline: 3px solid var(--hl, #ffe14d); outline-offset: 4px; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { .pk-snooze img { animation: pk-breathe 3.6s ease-in-out infinite; transform-origin: 50% 100%; } @keyframes pk-breathe { 50% { transform: scale(1.05, .96); } } .pk-snooze span { animation: pk-zz 2.4s ease-in-out infinite; } @keyframes pk-zz { 50% { transform: translate(8px, -12px) scale(1.2); opacity: .5; } } }
@media print { #pk-guide, .pk-toast, .pk-snooze, .pm-root { display: none !important; } }

/* the mascot walks along the bottom of the screen: these always stay in front of it */
#pk-guide, .pk-panel { z-index: 2147483001; }
.pk-toast, .pk-snooze { z-index: 2147483002; }
.pk-card, .pk-pick { z-index: 2147483003; }
/* books grow a little so the partner on the spine never squeezes the title */
.pk .tile.book { height: calc(var(--h) + 46px); }

/* ---------------------------------------------------------------- the catch: watched scene before the "new sticker" card (2.5 s timeline) */
.pk-catch { position: fixed; inset: 0; z-index: 2147483002; display: grid; place-items: center; background: rgba(10, 20, 40, .38); cursor: pointer; animation: pk-c-in .25s ease-out both; transition: opacity .3s ease-in; }
.pk-catch.out { opacity: 0; }
.pk-c-stage { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pk-c-say { font: 800 26px/1.15 var(--f-head, system-ui); color: #fff; text-shadow: 0 2px 0 var(--ink, #172b4d), 0 0 14px rgba(10, 20, 40, .6); animation: pk-c-say 2.5s ease-out both; }
.pk-c-spot { position: relative; width: min(190px, 55vw); height: min(190px, 55vw); }
.pk-catch.partner .pk-c-spot { width: min(230px, 62vw); height: min(230px, 62vw); }
.pk-c-art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(10, 20, 40, .35)); animation: pk-c-art 2.5s linear both; }
.pk-c-spot::before { content: ""; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(255, 255, 255, 0) 65%); opacity: 0; pointer-events: none; animation: pk-c-flash 2.5s linear both; }
/* our own ball: red top, white bottom, ink band, a yellow star for the button */
.pk-c-ball { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 3px solid var(--ink, #172b4d); box-sizing: border-box; background: linear-gradient(var(--red, #c8372d) 0 45%, var(--ink, #172b4d) 45% 55%, #fff 55%); box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12), 0 6px 10px -4px rgba(10, 20, 40, .6); transform-origin: 50% 90%; animation: pk-c-ball 2.5s both; }
.pk-c-ball::after { content: "★"; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid var(--ink, #172b4d); box-sizing: border-box; background: #fff; color: var(--hl, #ffe14d); font: 900 11px/14px system-ui; text-align: center; -webkit-text-stroke: .6px var(--ink, #172b4d); }
.pk-catch.shut .pk-c-ball::after { background: var(--hl, #ffe14d); color: #fff; box-shadow: 0 0 12px 4px var(--hl, #ffe14d); }
.pk-catch .pk-burst { left: 50%; top: 50%; }
.pk-c-skip { margin-top: 4px; font: 600 13px var(--f-head, system-ui); color: rgba(255, 255, 255, .8); }
@keyframes pk-c-in { from { opacity: 0; } }
@keyframes pk-c-say { 0% { opacity: 0; transform: translateY(8px); } 10%, 100% { opacity: 1; transform: none; } }
/* 0-0.5 s shadow fills with colour · 0.9-1.2 s flash + pulled into the ball */
@keyframes pk-c-art { 0% { opacity: 0; transform: scale(.7); filter: brightness(0); } 8% { opacity: 1; transform: scale(1); filter: brightness(0); } 20%, 36% { opacity: 1; transform: scale(1); filter: brightness(1); } 42% { opacity: 1; transform: scale(.6); filter: brightness(4); } 48%, 100% { opacity: 0; transform: scale(0); filter: brightness(4); } }
@keyframes pk-c-flash { 0%, 36% { opacity: 0; } 42% { opacity: .95; } 54%, 100% { opacity: 0; } }
/* 0.5-0.9 s arc in from below · 1.2-2.1 s three wobbles · then still */
@keyframes pk-c-ball {
  0%, 19.9% { opacity: 0; transform: translate(0, 60vh) scale(1.5) rotate(0); }
  20% { opacity: 1; transform: translate(0, 60vh) scale(1.5) rotate(0); animation-timing-function: ease-out; }
  29% { transform: translate(0, -90px) scale(1.15) rotate(-400deg); animation-timing-function: ease-in; }
  36% { transform: translate(0, 0) scale(1) rotate(-720deg); }
  40% { transform: translate(0, -10px) rotate(-720deg); } 44%, 48% { transform: translate(0, 0) rotate(-720deg); }
  52% { transform: rotate(-738deg); } 56% { transform: rotate(-704deg); } 60% { transform: rotate(-720deg); }
  64% { transform: rotate(-738deg); } 68% { transform: rotate(-704deg); } 72% { transform: rotate(-720deg); }
  76% { transform: rotate(-738deg); } 80% { transform: rotate(-704deg); } 84%, 100% { opacity: 1; transform: rotate(-720deg); }
}
@media (max-width: 560px) { .pk-c-say { font-size: 22px; } }

/* 11-14 phone: the sticker toast was wider than the screen and pushed its × off the edge */
@media (max-width: 560px) {
  .pk-toast { gap: 10px; padding-right: 40px; }
  .pk-toast > .pk-x { position: absolute; top: 6px; right: 6px; }
  .pk-toast > div:not(.pk-row) { min-width: 0; }
  .pk-toast > .pk-btn { flex: none; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .pk-toast .pk-row img { width: 38px; height: 38px; }
  .pk-toast.many { flex-wrap: wrap; }
  .pk-toast.many > .pk-row { flex-basis: 100%; }
  .pk-toast.many > div:not(.pk-row) { flex: 1 1 140px; }
}

/* 11-14 legend secrets: hidden objects, the League note, the gold catch */
.pk-note { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99999; max-width: 92vw; padding: 10px 16px; border-radius: 12px; background: #1d2433; color: #fff; font: 600 14px/1.35 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }

/* zygarde: a small green cell */
.pk-cell { position: fixed; z-index: 45; width: 14px; height: 14px; padding: 0; border: 0; cursor: pointer; background: #3ec06a; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); box-shadow: none; filter: drop-shadow(0 0 3px rgba(62, 192, 106, .8)); opacity: .9; animation: pk-cell-in .4s ease-out both, pk-cell-pulse 2.4s ease-in-out .4s infinite; }
.pk-cell:hover, .pk-cell:focus-visible { opacity: 1; background: #6ee08f; outline: none; }
@keyframes pk-cell-in { from { opacity: 0; transform: scale(.2); } }
@keyframes pk-cell-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* latias: a faint shape crossing the page */
.pk-shimmer { position: fixed; left: 0; z-index: 45; width: 120px; height: 120px; object-fit: contain; opacity: .18; filter: blur(1px); cursor: pointer; animation: pk-shimmer 6s linear both; }
@keyframes pk-shimmer { 0% { transform: translateX(-140px); } 100% { transform: translateX(calc(100vw + 20px)); } }
.pk-shimmer.calm { left: 40vw; animation: pk-shimmer-calm 6s ease-in-out both; }
@keyframes pk-shimmer-calm { 0%, 100% { opacity: 0; } 30%, 70% { opacity: .18; } }

/* the gold catch: legends and mythicals */
.pk-catch.legend { background: radial-gradient(circle at 50% 46%, rgba(255, 214, 90, .28), rgba(10, 20, 40, .5) 62%); }
.pk-catch.legend .pk-c-ball { background: linear-gradient(#e6b422 0 45%, var(--ink, #172b4d) 45% 55%, #fff6cf 55%); box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12), 0 0 22px 6px rgba(255, 210, 74, .75), 0 6px 10px -4px rgba(10, 20, 40, .6); }
.pk-catch.legend .pk-c-spot::before { background: radial-gradient(circle, #fff7d6 0 30%, rgba(255, 214, 90, 0) 65%); }
.pk-catch.legend .pk-burst::before { background: repeating-conic-gradient(#ffd24a 0 8deg, transparent 8deg 30deg); }
.pk-catch.legend .pk-burst::after { background: repeating-conic-gradient(#fff3b0 0 5deg, transparent 5deg 36deg); }
.pk-catch.legend .pk-c-say { text-shadow: 0 2px 0 var(--ink, #172b4d), 0 0 18px rgba(255, 210, 74, .85); }
@media (prefers-reduced-motion: reduce) {
  .pk-cell { animation: none; }
  .pk-shimmer { animation: none; left: 40vw; opacity: .18; }
  .pk-shimmer.calm { animation: pk-shimmer-calm 6s ease-in-out both; }
  .pk-catch.legend .pk-burst { display: none; }
}
