/* PenlockHolmes — "The Case of the Missing Penguins"
   (app/Views/creators/penlockholmes.php).
   A detective's desk at night: deep navy, her ice blue and the gold of the
   braid on her cap. Cinzel for titles, a typewriter for the dossier, a
   pencil hand for the notes on the board. No live blur; motion is
   transform and opacity only, paused off screen by site.js and stopped for
   reduced motion and lite mode (docs/MOTION.md, the mobile-performance
   rules). */

@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/cinzel-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/courier-prime-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/assets/fonts/courier-prime-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('/assets/fonts/caveat-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Quicksand'; src: url('/assets/fonts/quicksand-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-penlockholmes {
  --pl-ink: #070d22; --pl-navy: #0d1a3d; --pl-panel: #13224d; --pl-panel2: #1a2d63; --pl-line: rgba(143, 196, 255, .22);
  --pl-royal: #2f5fd0; --pl-ice: #8fc4ff; --pl-ice-l: #cfe5ff; --pl-gold: #e8b84a; --pl-gold-l: #f6d88a; --pl-red: #c8322f;
  --pl-paper: #f3ead6; --pl-paper2: #e7dcc1; --pl-type: #2a2418;
  --pl-tx: #eef4ff; --pl-tx2: #c3d2f0; --pl-tx3: #8597c2;
  --pl-head: 'Cinzel', Georgia, serif;
  --pl-body: 'Quicksand', system-ui, sans-serif;
  --pl-typewriter: 'Courier Prime', 'Courier New', monospace;
  --pl-hand: 'Caveat', 'Comic Sans MS', cursive;
  --scroll-acc: #8fc4ff;
  background: var(--pl-ink);
}
html:has(> body.cp-theme-penlockholmes) { --scroll-acc: #8fc4ff; }

.pl { position: relative; overflow-x: clip; padding: 0 0 40px; color: var(--pl-tx); font-family: var(--pl-body); font-weight: 600; background:
  radial-gradient(ellipse 55% 40% at 72% 10%, rgba(232, 184, 74, .14), transparent 70%),
  radial-gradient(ellipse 50% 40% at 6% 32%, rgba(47, 95, 208, .24), transparent 70%),
  radial-gradient(ellipse 70% 35% at 92% 66%, rgba(143, 196, 255, .1), transparent 70%),
  linear-gradient(180deg, #0b1533 0%, var(--pl-ink) 45%, #060b1c 100%); }
.pl img { display: block; max-width: 100%; }

/* ---- dust in the lamp light (one fixed layer) ---- */
.pl-dust { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pl-dust i { position: absolute; top: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--pl-gold-l); box-shadow: 0 0 8px 2px rgba(246, 216, 138, .35); opacity: 0; animation: pl-drift 16s linear infinite; }
.pl-dust i:nth-child(3n) { animation-duration: 21s; width: 3px; height: 3px; background: var(--pl-ice-l); }
.pl-dust i:nth-child(4n) { animation-duration: 13s; }
@keyframes pl-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  12% { opacity: .5; }
  50% { transform: translate3d(-24px, 55vh, 0); }
  88% { opacity: .3; }
  100% { opacity: 0; transform: translate3d(16px, 110vh, 0); }
}

/* ---- type ---- */
.pl-kick { margin: 0 0 10px; font-family: var(--pl-body); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--pl-gold); }
.pl-title { margin: 0; text-transform: none; font-family: var(--pl-head); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: .03em; color: var(--pl-tx); }
.pl-text { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.7; color: var(--pl-tx2); }
.pl-text a { color: var(--pl-gold-l); border-bottom: 1px solid currentColor; }

/* ---- panels ---- */
.pl-panel { position: relative; border: 2px solid var(--pl-line); border-radius: 22px; background:
  radial-gradient(ellipse 80% 60% at 100% 0%, rgba(143, 196, 255, .1), transparent 70%),
  linear-gradient(160deg, var(--pl-panel2), var(--pl-panel) 60%, var(--pl-navy));
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(207, 229, 255, .08); }

/* ---- hero ---- */
.pl-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; max-width: 1240px; min-height: min(100vh, 860px); margin: 0 auto; padding: 120px 32px 40px; }
.pl-name { margin: 0; line-height: 1; font-family: var(--pl-head); font-weight: 700; font-size: clamp(48px, 7vw, 96px); text-transform: none; color: var(--pl-ice-l); }
.pl-name img { width: min(100%, 560px); height: auto; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .5)); }
.pl-summary { max-width: 540px; margin: 16px 0 0; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; line-height: 1.6; color: var(--pl-ice-l); }
.pl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.pl-tags li { padding: 6px 14px; border-radius: 40px; background: rgba(143, 196, 255, .1); border: 1px solid rgba(143, 196, 255, .4); color: var(--pl-tx); font-size: 14px; font-weight: 700; }
.pl-tags li::before { content: "◆ "; font-size: 10px; vertical-align: 2px; color: var(--pl-gold); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border: 2px solid rgba(232, 184, 74, .5); border-radius: 40px; background: transparent; color: var(--pl-tx); font-family: var(--pl-body); font-weight: 700; font-size: 16px; letter-spacing: .02em; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .18s, color .18s, box-shadow .18s, border-color .18s; }
.pl-btn:hover { transform: translateY(-3px); border-color: var(--pl-gold); box-shadow: 0 10px 24px -10px rgba(232, 184, 74, .6); }
.pl-btn.is-hot { border-color: var(--pl-gold); background: var(--pl-gold); color: #13203f; box-shadow: 0 5px 0 #a27a1f; }
.pl-btn.is-hot:hover { background: var(--pl-gold-l); border-color: var(--pl-gold-l); box-shadow: 0 8px 0 #a27a1f, 0 16px 30px -10px rgba(232, 184, 74, .7); }
.pl-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pl-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--pl-line); color: var(--pl-tx2); transition: color .15s, border-color .15s, background-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.pl-socials a:hover { color: #13203f; background: var(--pl-ice); border-color: var(--pl-ice); transform: translateY(-3px) scale(1.06); }
.pl-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* The evidence board: cork, a pinned photo, a suspect note, red string. */
.pl-board { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; justify-self: center; border-radius: 14px; border: 10px solid #4a2f1a; box-shadow: inset 0 0 0 2px #2c1b0e, inset 0 0 50px rgba(0, 0, 0, .45), 0 30px 60px -20px rgba(0, 0, 0, .8);
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .12) 0 1px, transparent 2px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .08) 0 1px, transparent 2px) 0 0 / 7px 7px,
    radial-gradient(ellipse at 40% 30%, #c08a55, #a26f3f 60%, #8a5a31); }
.pl-string { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.pl-string path { fill: none; stroke: var(--pl-red); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.pl-pin { position: absolute; z-index: 3; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a72, var(--pl-red) 60%, #7a1412); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); }
.pl-pin.is-blue { background: radial-gradient(circle at 35% 35%, #9fc9ff, var(--pl-royal) 60%, #183a8a); }
.pl-photo { position: absolute; z-index: 1; left: 9%; top: 8%; width: 54%; margin: 0; padding: 10px 10px 34px; background: #fbf8f2; box-shadow: 0 14px 26px -8px rgba(0, 0, 0, .6); transform: rotate(-4deg); transform-origin: 50% 0; animation: pl-sway 8s ease-in-out infinite; }
.pl-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pl-photo figcaption { position: absolute; left: 0; right: 0; bottom: 4px; font-family: var(--pl-hand); font-size: 22px; color: #1d2b55; text-align: center; }
@keyframes pl-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-2.6deg); } }
.pl-note { position: absolute; z-index: 1; right: 6%; top: 46%; width: 42%; padding: 18px 14px 14px; background: linear-gradient(180deg, #fff6b8, #f6e48a); color: #2b2a1c; font-family: var(--pl-hand); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.2; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .55); transform: rotate(3deg); }
.pl-note p { margin: 0 0 4px; overflow-wrap: anywhere; }
.pl-note b { font-weight: 600; color: var(--pl-red); }
.pl-idle { position: absolute; z-index: 4; left: -8%; bottom: -10%; width: 42%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); pointer-events: none; }

/* ---- the hidden penguins (creators/penlockholmes.js) ---- */
.pl-clue { position: absolute; z-index: 5; width: 46px; height: 52px; padding: 0; border: 0; background: none; cursor: zoom-in; opacity: .62; transform: rotate(var(--tilt, -8deg)); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent; }
.pl-clue img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.pl-clue:hover, .pl-clue:focus-visible { opacity: 1; transform: rotate(0) scale(1.25); }
.pl-clue:focus-visible { outline: 2px dashed var(--pl-gold); outline-offset: 4px; border-radius: 10px; }
.pl-clue.is-board { right: 4%; bottom: 5%; --tilt: 10deg; }
.pl-clue.is-dossier { left: 18px; bottom: 16px; --tilt: -12deg; }
.pl-clue.is-head { position: relative; flex: none; width: 36px; height: 42px; margin-right: auto; margin-left: 6px; align-self: center; --tilt: 14deg; opacity: .45; }
.pl-clue.is-join { right: 24px; top: -26px; --tilt: -6deg; }
.pl-clue.is-found { pointer-events: none; animation: pl-caught .7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pl-caught { 0% { opacity: 1; transform: scale(1); } 40% { opacity: 1; transform: scale(1.7) rotate(-10deg); } 100% { opacity: 0; transform: scale(.2) translateY(-60px); } }
.pl-clue.is-gone { visibility: hidden; }

/* ---- sections ---- */
.pl-sec { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 34px 32px 20px; }
.pl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pl-more { flex: none; padding: 7px 14px; border-radius: 40px; border: 2px solid var(--pl-line); font-weight: 700; font-size: 14px; color: var(--pl-gold-l); transition: background-color .15s, color .15s, border-color .15s; }
.pl-more:hover { background: var(--pl-gold); border-color: var(--pl-gold); color: #13203f; }
.pl .pl-row-h { margin: 24px 0 10px; font-family: var(--pl-body); font-weight: 700; font-size: 18px; letter-spacing: .02em; color: var(--pl-tx2); text-transform: none; }
.pl .pl-row-h::before { content: "◆ "; font-size: 12px; color: var(--pl-gold); }

/* The dossier: a manila folder with a typed page in it. */
.pl-dossier { position: relative; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 34px; align-items: start; padding: 40px 38px 36px; border-radius: 6px 18px 18px 18px; color: var(--pl-type);
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(42, 36, 24, .06) 31px 32px), linear-gradient(170deg, var(--pl-paper), var(--pl-paper2));
  box-shadow: 0 0 0 8px #d8b46a, 0 0 0 10px #8e6a2a, 0 30px 60px -20px rgba(0, 0, 0, .8); }
.pl-dossier::before { content: "Penguin Waddle P.D."; position: absolute; left: 22px; top: -34px; padding: 6px 18px 10px; border-radius: 10px 10px 0 0; background: #d8b46a; color: #4a3610; font-family: var(--pl-typewriter); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.pl-stamp { position: absolute; right: 26px; top: 22px; padding: 6px 14px; border: 3px solid rgba(200, 50, 47, .75); border-radius: 6px; color: rgba(200, 50, 47, .8); font-family: var(--pl-typewriter); font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; transform: rotate(8deg); }
.pl-dossier-art img { width: 100%; height: auto; padding: 8px; background: #fff; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .5); transform: rotate(-2deg); }
.pl-file { margin: 0 0 6px; font-family: var(--pl-typewriter); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #6d5c3c; }
.pl-dossier .pl-title { color: #13203f; }
.pl-typed { margin: 12px 0 0; font-family: var(--pl-typewriter); font-size: 16.5px; line-height: 1.7; color: var(--pl-type); }
.pl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 20px 0 0; }
.pl-facts div { padding: 6px 0; border-bottom: 1px dashed rgba(42, 36, 24, .3); }
.pl-facts dt { font-family: var(--pl-typewriter); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8b6a24; }
.pl-facts dd { margin: 2px 0 0; font-family: var(--pl-typewriter); font-size: 15px; color: var(--pl-type); }
.pl-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.pl-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 40px; border: 2px solid #13203f; color: #13203f; font-weight: 700; font-size: 14px; transition: background-color .15s, color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.pl-links a:hover { background: #13203f; color: var(--pl-paper); transform: translateY(-2px); }
.pl-links svg { width: 16px; height: 16px; fill: currentColor; }
.pl-discord { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; color: var(--pl-type); }
.pl-discord svg { width: 18px; height: 18px; fill: var(--pl-royal); }

/* Videos */
.pl-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30%, 400px); gap: 18px; overflow-x: auto; padding: 6px 6px 18px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.pl-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.pl-rail::-webkit-scrollbar { height: 10px; }
.pl-rail::-webkit-scrollbar-thumb { background: var(--pl-gold); border-radius: 10px; }
.pl-rail::-webkit-scrollbar-track { background: var(--pl-panel); border-radius: 10px; }
.pl-card { scroll-snap-align: start; margin: 0; }
.pl-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; border: 2px solid var(--pl-line); background: var(--pl-panel); transition: border-color .18s, transform .22s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.pl-card.is-tall .pl-card-thumb { aspect-ratio: 9 / 16; }
.pl-card-thumb > a, .pl-card-thumb img, .pl-card-thumb iframe { display: block; width: 100%; height: 100%; }
.pl-card-thumb img { object-fit: cover; }
.pl-card:hover .pl-card-thumb { border-color: var(--pl-gold); transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(232, 184, 74, .5); }
/* The play button is a magnifying glass. */
.pl-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.pl-play svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.pl-play circle { fill: rgba(207, 229, 255, .88); stroke: var(--pl-gold); stroke-width: 2; }
.pl-play .pl-play-handle { stroke: var(--pl-gold); stroke-width: 3.2; stroke-linecap: round; }
.pl-play .pl-play-tri { fill: #13203f; }
.pl-card:hover .pl-play { transform: scale(1.14) rotate(-8deg); }
.pl-chip { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 40px; background: rgba(7, 13, 34, .85); color: var(--pl-gold-l); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pl .pl-card-title { margin: 10px 2px 0; font-family: var(--pl-body); font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--pl-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-empty, .pl-follow { max-width: 620px; padding: 20px 24px; }
.pl-follow { display: flex; align-items: center; gap: 12px; }
.pl-follow svg { width: 22px; height: 22px; fill: var(--pl-ice); }
.pl-follow .pl-more { margin-left: auto; }

/* ---- the case file (creators/penlockholmes.js) ---- */
.pl-casefile { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 30px 34px; overflow: hidden; }
.pl-progress { margin: 16px 0 0; font-family: var(--pl-typewriter); font-size: 18px; color: var(--pl-tx2); }
.pl-progress b { font-size: 28px; color: var(--pl-gold-l); }
.pl-reset { margin-top: 18px; }
.pl-reset[hidden] { display: none; }
.pl-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pl-slots li { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px dashed rgba(143, 196, 255, .35); background: rgba(7, 13, 34, .45); }
.pl-slots span { font-family: var(--pl-head); font-size: 30px; color: rgba(143, 196, 255, .4); }
.pl-slots img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.pl-slots li.is-found { border-style: solid; border-color: var(--pl-gold); background: radial-gradient(circle, rgba(232, 184, 74, .22), rgba(7, 13, 34, .45) 70%); }
.pl-slots li.is-found span { opacity: 0; }
.pl-slots li.is-found img { opacity: 1; transform: none; }
.pl-closed { position: absolute; right: 8%; top: 50%; padding: 8px 22px; border: 5px solid var(--pl-red); border-radius: 10px; color: var(--pl-red); background: rgba(243, 234, 214, .92); font-family: var(--pl-typewriter); font-weight: 700; font-size: clamp(28px, 4vw, 48px); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; opacity: 0; transform: translateY(-50%) rotate(-10deg) scale(2); }
.pl-casefile.is-closed .pl-closed { animation: pl-stamp .5s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes pl-stamp { to { opacity: 1; transform: translateY(-50%) rotate(-10deg) scale(1); } }
/* A small note when a penguin is caught, wherever it was. */
.pl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; padding: 10px 18px; border-radius: 40px; background: var(--pl-paper); color: #13203f; font-family: var(--pl-typewriter); font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7), 0 0 0 2px var(--pl-gold); transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.pl-toast.is-up { transform: translate(-50%, 0); }

/* ---- gallery ---- */
.pl-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pl-gallery a { position: relative; display: block; padding: 8px 8px 30px; background: #fbf8f2; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .7); transform: rotate(var(--r, -1.5deg)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.pl-gallery li:nth-child(3n+2) a { --r: 1.8deg; }
.pl-gallery li:nth-child(3n) a { --r: -.6deg; }
.pl-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pl-gallery a:hover { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 22px 34px -12px rgba(0, 0, 0, .8), 0 0 0 3px var(--pl-gold); }
.pl-tag-no { position: absolute; left: 10px; bottom: 4px; font-family: var(--pl-hand); font-size: 20px; color: #1d2b55; }
.pl-tag-no::before { content: "Evidence #"; }

/* ---- the viewer (creators/penlockholmes.js) ---- */
.pl-zoom { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: clamp(14px, 4vmin, 44px); background: radial-gradient(ellipse at 50% 50%, rgba(19, 34, 77, .94), rgba(4, 8, 20, .97) 70%); opacity: 0; transition: opacity .22s ease; }
.pl-zoom[hidden] { display: none; }
.pl-zoom.is-open { opacity: 1; }
.pl-zoom-win { position: relative; max-width: min(92vw, 1100px); padding: 10px 10px 36px; background: #fbf8f2; box-shadow: 0 30px 70px rgba(0, 0, 0, .7); transform: scale(.94) rotate(-1deg); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.pl-zoom.is-open .pl-zoom-win { transform: none; }
.pl-zoom-img { display: block; max-width: min(88vw, 1080px); max-height: calc(84vh - 50px); width: auto; height: auto; margin: 0 auto; }
.pl-zoom-cap { position: absolute; left: 14px; bottom: 6px; font-family: var(--pl-hand); font-size: 22px; color: #1d2b55; }
.pl-zoom-x, .pl-zoom-nav { display: grid; place-items: center; border: 2px solid var(--pl-gold); background: #13203f; color: var(--pl-gold-l); font-family: var(--pl-body); font-weight: 700; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background-color .15s, color .15s; }
.pl-zoom-x { position: absolute; top: -16px; right: -16px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; font-size: 22px; line-height: 1; }
.pl-zoom-x:hover, .pl-zoom-nav:hover { background: var(--pl-gold); color: #13203f; transform: scale(1.1); }
.pl-zoom-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; font-size: 22px; }
.pl-zoom-nav.is-prev { left: 18px; }
.pl-zoom-nav.is-next { right: 18px; }
.pl-zoom-nav[hidden] { display: none; }
@media (max-width: 700px) { .pl-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-zoom, .pl-zoom-win { transition: none; } }

/* ---- shop ---- */
.pl-soon { display: flex; align-items: center; gap: 24px; max-width: 760px; padding: 24px 28px; }
.pl-soon-art { flex: none; width: 120px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); animation: pl-sway 7s ease-in-out infinite; }
.pl-soon .pl-text { margin-top: 0; }

/* ---- join ---- */
.pl-join { margin-top: 30px; }
.pl-join-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding: 36px 34px; }
.pl-join .pl-title { margin: 8px 0 6px; }
.pl-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pl-nums li { padding: 16px; border-radius: 14px; border: 1px solid var(--pl-line); background: rgba(7, 13, 34, .5); }
.pl-nums b { display: block; font-family: var(--pl-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--pl-gold-l); }
.pl-nums span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--pl-tx3); }

/* ---- end ---- */
.pl-end { position: relative; z-index: 1; border: 0; background: none; max-width: 1240px; margin: 50px auto 0; padding: 40px 32px 10px; text-align: center; }
.pl-end-face { width: 130px; height: auto; margin: 0 auto 10px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; animation: pl-waddle 2.4s ease-in-out infinite; }
@keyframes pl-waddle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.pl-end-line { margin: 0; font-family: var(--pl-head); font-weight: 700; font-size: clamp(24px, 3vw, 36px); color: var(--pl-tx); }
.pl-credits { margin: 14px 0 0; font-size: 14px; color: var(--pl-tx3); }
.pl-credits a { color: var(--pl-gold-l); }

/* The menu bar, in her colours. */
body.cp-theme-penlockholmes .cpnav-in { background: rgba(10, 18, 44, .95); border-color: var(--pl-line); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
body.cp-theme-penlockholmes .cpnav-who { color: var(--pl-tx); border-left-color: var(--pl-line); font-family: var(--pl-head); font-weight: 700; }
body.cp-theme-penlockholmes .cpnav-av { border-color: var(--pl-gold); }
body.cp-theme-penlockholmes .cpnav-links a { color: var(--pl-tx2); font-family: var(--pl-body); font-weight: 700; }
body.cp-theme-penlockholmes .cpnav-links a:hover { color: #fff; background: rgba(143, 196, 255, .18); }
body.cp-theme-penlockholmes .cpnav-links a[aria-current="true"] { background: var(--pl-gold); color: #13203f; box-shadow: none; }
body.cp-theme-penlockholmes :is(.cpnav-burger, .cpnav-account) { background: var(--pl-panel2); color: var(--pl-tx); }
body.cp-theme-penlockholmes .cpnav-burger span { background: var(--pl-gold); }
body.cp-theme-penlockholmes .cpnav-cart { background: var(--pl-gold); color: #13203f; box-shadow: 0 4px 0 #a27a1f; font-family: var(--pl-body); font-weight: 700; }
body.cp-theme-penlockholmes .cpnav-cart:hover { background: var(--pl-gold-l); box-shadow: 0 4px 0 #a27a1f; }
/* The video player, in her colours. */
body.cp-theme-penlockholmes .cp-player { background: radial-gradient(ellipse at 50% 50%, rgba(19, 34, 77, .94), rgba(4, 8, 20, .97) 70%); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.cp-theme-penlockholmes .cp-player-frame { border: 3px solid var(--pl-gold); border-radius: 18px; box-shadow: 0 0 0 8px #13203f, 0 34px 80px rgba(0, 0, 0, .7); }
body.cp-theme-penlockholmes .cp-player-caption { font-family: var(--pl-body); font-weight: 700; color: var(--pl-gold-l); }
body.cp-theme-penlockholmes .cp-player-close { background: var(--pl-gold); color: #13203f; border: 2px solid #13203f; }
body.cp-theme-penlockholmes .cp-player-close:hover { background: var(--pl-gold-l); }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .pl-hero { grid-template-columns: 1fr; padding: 104px 18px 30px; min-height: 0; text-align: center; }
  .pl-name img { margin: 0 auto; }
  .pl-summary { margin-inline: auto; }
  .pl-tags, .pl-actions, .pl-socials { justify-content: center; }
  .pl-board { max-width: 440px; margin-top: 10px; }
  .pl-sec { padding: 26px 18px 16px; }
  .pl-dossier { grid-template-columns: 1fr; gap: 22px; padding: 34px 20px 26px; }
  .pl-dossier-art { max-width: 240px; margin: 0 auto; }
  .pl-stamp { font-size: 14px; right: 14px; top: 14px; }
  .pl-rail { grid-auto-columns: 86%; }
  .pl-rail.is-tall { grid-auto-columns: 58%; }
  .pl-casefile { grid-template-columns: 1fr; padding: 24px 18px; }
  .pl-closed { right: 50%; top: 60%; transform: translate(50%, -50%) rotate(-10deg) scale(2); }
  @keyframes pl-stamp { to { opacity: 1; transform: translate(50%, -50%) rotate(-10deg) scale(1); } }
  .pl-join-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 20px; }
  .pl-sec-head { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .pl-note { width: 48%; font-size: 15px; padding: 14px 10px 10px; }
  .pl-idle { width: 38%; left: -4%; }
  .pl-facts { grid-template-columns: 1fr; }
  .pl-slots { gap: 6px; }
  .pl-soon { flex-direction: column; text-align: center; }
}

/* ---- calmer when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .pl-dust, .pl-photo, .pl-soon-art, .pl-end-face, .pl-clue.is-found, .pl-casefile.is-closed .pl-closed { animation: none; }
  .pl-dust { display: none; }
  .pl-clue.is-found { opacity: 0; }
  .pl-casefile.is-closed .pl-closed { opacity: 1; transform: translateY(-50%) rotate(-10deg); }
}
.perf-lite .pl-dust { display: none; }
.perf-lite :is(.pl-photo, .pl-soon-art, .pl-end-face) { animation: none; }
