/* Pocket card: on phones /card/<handle> is a single card you hold. The 3D world plays inside
   the card frame; swipe up flips it to a deck of works. Desktop never gets the .pocket class. */

html.pocket, html.pocket body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.pocket body {
  background: radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%), var(--ink);
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
html.pocket .top, html.pocket .foot, html.pocket .scrim { display: none; }
html.pocket main { padding: 0; min-height: 0; }
html.pocket .toasts { left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 96px); }

.pk-stage {
  position: fixed; inset: 0; display: grid; perspective: 1100px;
  padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 10px) calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 10px);
}
.pk-card {
  --gx: 50%; --gy: 30%;
  position: relative; overflow: hidden; border-radius: 28px; isolation: isolate;
  background: #0a0d18; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), 0 0 70px -24px var(--glow);
  touch-action: none; will-change: transform; animation: pk-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.pk-card.settling { transition: transform .42s cubic-bezier(.2, .9, .3, 1.2); }
.pk-card::after { /* inner frame line, like a printed card */
  content: ""; position: absolute; inset: 7px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1); pointer-events: none; z-index: 3;
}
.pk-world { position: absolute; inset: 0; z-index: 0; }
html.pocket .pk-world #gl, html.pocket .pk-world .scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.pk-glare {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: radial-gradient(70% 50% at var(--gx) var(--gy), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 60%);
}

/* faces */
.pk-face { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 18px 20px 14px; }
.pk-face[hidden] { display: none; }
.pk-front { background: linear-gradient(180deg, rgba(4, 6, 14, .45) 0%, rgba(4, 6, 14, 0) 18%, rgba(4, 6, 14, 0) 42%, rgba(4, 6, 14, .72) 66%, rgba(4, 6, 14, .94) 100%); }
.pk-back { background: linear-gradient(180deg, rgba(5, 7, 15, .7), rgba(5, 7, 15, .9) 45%, rgba(5, 7, 15, .96)); }
.pk-front > *, .pk-back > * { animation: pk-rise .6s ease both; }
.pk-front > :nth-child(2), .pk-back > :nth-child(2) { animation-delay: .08s; }
.pk-front > :nth-child(3), .pk-back > :nth-child(3) { animation-delay: .16s; }
.pk-front > :nth-child(4), .pk-back > :nth-child(4) { animation-delay: .24s; }

.pk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pk-bar-right { display: flex; align-items: center; gap: 8px; }
.pk-brand { color: var(--paper); text-shadow: 0 1px 10px rgba(0, 0, 0, .5); padding: 10px 2px; }
.pk-round, .pk-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; border-radius: 999px;
  color: var(--paper); background: rgba(5, 7, 15, .42); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.pk-pill { padding: 0 14px 0 11px; }
.pk-pill[hidden] { display: none; }
.pk-round svg, .pk-pill svg { width: 18px; height: 18px; }
.pk-count { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .1em; }
.pk-count span { color: var(--gold); }

/* identity block */
.pk-id { margin-top: auto; display: flex; flex-direction: column; gap: 12px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.pk-who { display: flex; align-items: center; gap: 12px; }
.pk-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: #e7ddcd; color: #1b1712; font: 300 26px var(--display); box-shadow: 0 0 0 2px rgba(5, 7, 15, .7), 0 0 0 3.5px var(--gold);
}
.pk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pk-handle { display: flex; flex-direction: column; gap: 3px; font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pk-handle small { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .1em; }
.pk-name { margin: 0; font: 400 clamp(2.6rem, 13.5vw, 3.8rem)/.98 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
html[lang=zh] .pk-name { letter-spacing: 0; line-height: 1.1; }
.pk-bio { margin: 0; font-size: 16.5px; line-height: 1.42; color: var(--paper); opacity: .92; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pk-links { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; margin: 0 -20px; padding: 2px 20px; mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.pk-links::-webkit-scrollbar { display: none; }
.pk-links a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; border-radius: 999px; font: 400 12.5px var(--mono); letter-spacing: .04em; color: var(--paper); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.pk-links a span { color: var(--gold); }

/* dock: actions on the left, the flip button on the right */
.pk-dock { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pk-acts { display: flex; gap: 4px; }
.pk-act {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; padding: 4px 2px; cursor: pointer;
  background: none; border: 0; color: var(--paper); font: 400 11px var(--display); letter-spacing: .02em;
}
.pk-act svg { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: transform .2s, background .2s, color .2s; }
.pk-act:active svg { transform: scale(.9); }
.pk-act[aria-pressed=true] { color: var(--gold); }
.pk-act[aria-pressed=true] svg { fill: currentColor; background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: var(--gold); }
.pk-act:disabled { opacity: .5; }
.pk-flip {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: #120d08; border: 0; font: 500 15px var(--display); box-shadow: 0 10px 30px -10px var(--gold);
}
.pk-flip svg { width: 18px; height: 18px; }
.pk-flip b { font: 500 12px var(--mono); background: rgba(18, 13, 8, .16); border-radius: 999px; padding: 9px 10px; }
.pk-flip:active { transform: scale(.96); }
.pk-hint { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .75; }
.pk-hint i { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); animation: pk-nudge 2.4s ease-in-out infinite; }
.pk-hint-down i { animation-direction: reverse; }

/* back: the works deck */
.pk-back-head { margin: 10px 0 16px; }
.pk-kicker { margin: 0 0 6px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pk-back-head h2 { margin: 0; font: 400 clamp(1.9rem, 9vw, 2.6rem)/1 var(--display); letter-spacing: -.02em; }
.pk-deck {
  flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 80%; column-gap: 12px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x;
  margin: 0 -20px; padding: 2px 20px 4px; scroll-padding: 0 20px; overscroll-behavior-x: contain;
}
.pk-deck::-webkit-scrollbar { display: none; }
.pk-work {
  --wh: calc(var(--h) + var(--i) * 34);
  scroll-snap-align: start; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px;
  background:
    radial-gradient(120% 70% at 100% 0%, hsl(var(--wh) 85% 60% / .45), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, hsl(calc(var(--wh) + 60) 80% 50% / .3), transparent 65%),
    rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16); color: var(--paper);
  animation: pk-deal .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + .1s);
}
.pk-work::after { content: ""; position: absolute; inset: 6px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none; }
.pk-work-top { display: flex; justify-content: space-between; align-items: baseline; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pk-work-top b { font: 300 46px/1 var(--display); letter-spacing: -.02em; color: var(--paper); opacity: .9; }
.pk-work-top em { font-style: normal; color: var(--gold); padding: 6px 10px; border-radius: 999px; background: rgba(5, 7, 15, .45); }
.pk-work strong { margin-top: auto; font: 400 clamp(1.7rem, 8vw, 2.2rem)/1.04 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pk-work-note { color: var(--muted); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pk-work-foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); font: 400 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-work-foot span:last-child { color: var(--gold); }
.pk-work:active { transform: scale(.98); }
.pk-empty { color: var(--muted); align-self: center; }
.pk-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.pk-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.pk-dots i.on { width: 20px; background: var(--gold); }

@keyframes pk-in { from { opacity: 0; transform: translateY(40px) rotateX(12deg) scale(.94); } }
@keyframes pk-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pk-deal { from { opacity: 0; transform: translateX(60px) rotate(4deg); } }
@keyframes pk-nudge { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-5px); opacity: 1; } }

/* short phones: tighter type so the dock stays on screen */
@media (max-height: 680px) {
  .pk-name { font-size: clamp(2.2rem, 11vw, 3rem); }
  .pk-bio { -webkit-line-clamp: 2; font-size: 15px; }
  .pk-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-front > *, .pk-back > *, .pk-work, .pk-hint i { animation: none; }
}

/* ---------- boarding pass: the card reads as a ticket to its own world ---------- */
.pk-card.notched {
  -webkit-mask: radial-gradient(circle at 0 var(--perf), transparent 13px, #000 13.5px), radial-gradient(circle at 100% var(--perf), transparent 13px, #000 13.5px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 0 var(--perf), transparent 13px, #000 13.5px), radial-gradient(circle at 100% var(--perf), transparent 13px, #000 13.5px);
  mask-composite: intersect;
}
.pk-card::after { border-color: color-mix(in srgb, var(--gold) 26%, transparent); }
.pk-foil { /* holographic sheen that slides with the tilt */
  position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: color-dodge; opacity: .16;
  background: linear-gradient(115deg, transparent 20%, hsl(calc(190deg + var(--hue, 0deg)) 90% 70%) 34%, hsl(calc(280deg + var(--hue, 0deg)) 90% 70%) 42%, hsl(calc(40deg + var(--hue, 0deg)) 95% 70%) 50%, transparent 64%);
  background-size: 220% 100%; background-position: calc(var(--gx) * 1.6 - 30%) 0; transition: background-position .2s;
}
.pk-brand { display: flex; flex-direction: column; gap: 3px; padding: 6px 2px; }
.pk-brand b { font: 500 12px var(--mono); letter-spacing: .22em; }
.pk-brand small { font: 400 9.5px var(--mono); letter-spacing: .24em; color: var(--gold); }
.pk-serial {
  margin: 6px 0 0; display: flex; justify-content: space-between; padding: 7px 0; border-block: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  font: 500 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.pk-serial span:last-child { color: var(--gold); }

.pk-who { position: relative; gap: 14px; }
.pk-avatar { width: 50px; height: 50px; }
.pk-seal { /* the security hologram */
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(from var(--hue, 0deg), #ffd6a8, #b8f3ff, #e0b8ff, #fff3b0, #a8ffd9, #ffd6a8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 0 10px rgba(255, 255, 255, .5), 0 2px 10px rgba(0, 0, 0, .4);
  opacity: .88;
}
.pk-seal i { font: 500 9px var(--mono); font-style: normal; letter-spacing: .14em; color: rgba(20, 16, 30, .7); padding-left: .14em;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed rgba(20, 16, 30, .35); }
.pk-stamp {
  margin-left: auto; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; color: var(--gold); transform: rotate(-14deg); opacity: .78;
  text-shadow: none; mix-blend-mode: screen; margin-right: 4px;
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, .55) 75%); mask: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, .55) 75%);
  animation: pk-stamp .5s cubic-bezier(.3, 1.6, .5, 1) .5s both;
}
.pk-stamp b { font: 500 12px var(--display); letter-spacing: .12em; text-transform: uppercase; }
.pk-stamp small { font: 400 8.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.pk-label, .pk-fields dt { margin: 0; font: 400 9.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: .85; }
.pk-label { margin-bottom: -8px; }
.pk-name { text-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(0, 0, 0, .5), 0 4px 30px rgba(0, 0, 0, .6); } /* a little emboss */
.pk-bio { -webkit-line-clamp: 2; font-size: 15.5px; }
.pk-fields { margin: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-block: 1px solid rgba(255, 255, 255, .12); }
.pk-fields div { padding: 8px 0 8px 10px; border-left: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.pk-fields div:first-child { padding-left: 0; border-left: 0; }
.pk-fields dd { margin: 4px 0 0; font: 400 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pk-perf { position: relative; margin: 14px -20px 0; height: 22px; display: flex; align-items: center; overflow: hidden; }
.pk-perf::before { content: ""; position: absolute; left: 18px; right: 18px; top: 6px; border-top: 2px dotted rgba(255, 255, 255, .32); }
.pk-perf span { position: relative; white-space: nowrap; font: 500 5.5px var(--mono); line-height: 1; letter-spacing: .3em; color: var(--gold); opacity: .55; padding-left: 22px; transform: translateY(5px); }
.pk-stub { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.pk-stub-code { display: flex; flex-direction: column; gap: 4px; }
.pk-code { display: block; width: 100%; height: 26px; fill: var(--paper); opacity: .8; }
.pk-stub-code small { display: flex; justify-content: space-between; font: 400 9.5px var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: lowercase; }
.pk-stub .pk-dock { margin-top: 0; padding-top: 0; border-top: 0; }

/* back: works are torn-off stubs */
.pk-work {
  -webkit-mask: radial-gradient(circle at 0 calc(100% - 50px), transparent 9px, #000 9.5px), radial-gradient(circle at 100% calc(100% - 50px), transparent 9px, #000 9.5px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 0 calc(100% - 50px), transparent 9px, #000 9.5px), radial-gradient(circle at 100% calc(100% - 50px), transparent 9px, #000 9.5px);
  mask-composite: intersect;
}
.pk-work-top > span { display: flex; flex-direction: column; gap: 4px; }
.pk-work-top small { font: 400 9.5px var(--mono); letter-spacing: .22em; color: var(--muted); }
.pk-work-foot { border-top: 2px dotted rgba(255, 255, 255, .3); padding-top: 16px; }

/* the back is darker, so the foil stays quiet there */
.pk-card.flipped .pk-foil { opacity: .06; }

@keyframes pk-stamp { from { opacity: 0; transform: rotate(-30deg) scale(1.8); } }

@media (max-height: 720px) {
  .pk-stamp { width: 76px; height: 76px; }
  .pk-stamp b { font-size: 10.5px; }
  .pk-id { gap: 10px; }
  .pk-name { font-size: clamp(2.2rem, 11vw, 3rem); }
  .pk-bio { display: none; }
  .pk-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pk-stamp { animation: none; } }

/* ---------- palette: Monet (Water Lilies, Impression Sunrise) ----------
   twilight blue-violet ink, canvas cream, lilac, water-lily teal, sage, rose, one sunrise orange */
.pk-stage {
  --ink2: #1c2133; --canvas: #f3ede2; --canvas-2: #e8dfd0;
  --lilac: #b8a6d9; --water: #7fa9b6; --sage: #93b59c; --rose: #e6b4ad; --sunrise: #f2a663; --violet: #6f5f9e;
  --gold: #d9c3e6; /* hairlines, kickers: a pale lilac instead of gold */
}
html.pocket body {
  background:
    radial-gradient(90% 55% at 15% 105%, rgba(127, 169, 182, .28), transparent 60%),
    radial-gradient(80% 50% at 90% -5%, rgba(184, 166, 217, .22), transparent 60%),
    #141726;
}
.pk-card { background: var(--ink2); border-color: rgba(217, 195, 230, .28); box-shadow: 0 40px 70px -30px rgba(5, 6, 14, .95), 0 0 80px -28px rgba(184, 166, 217, .6); }
.pk-card::after { border-color: rgba(217, 195, 230, .22); }
.pk-front { background: linear-gradient(180deg, rgba(28, 33, 51, .5) 0%, rgba(28, 33, 51, 0) 20%, rgba(28, 33, 51, 0) 40%, rgba(28, 33, 51, .66) 62%, rgba(28, 33, 51, .9) 82%); }
.pk-back { background: linear-gradient(180deg, rgba(28, 33, 51, .78), rgba(28, 33, 51, .93) 45%, rgba(24, 28, 44, .97)); }
.pk-foil {
  opacity: .2; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 18%, hsl(calc(260deg + var(--hue, 0deg)) 60% 80%) 32%, hsl(calc(190deg + var(--hue, 0deg)) 55% 75%) 42%, hsl(calc(20deg + var(--hue, 0deg)) 80% 80%) 52%, transparent 66%);
  background-size: 220% 100%; background-position: calc(var(--gx) * 1.6 - 30%) 0;
}
.pk-brand small, .pk-serial span:last-child, .pk-kicker, .pk-count span { color: var(--lilac); }
.pk-serial { border-color: rgba(217, 195, 230, .3); }
.pk-avatar { box-shadow: 0 0 0 2px var(--ink2), 0 0 0 3.5px var(--canvas); }
.pk-seal { background: conic-gradient(from var(--hue, 0deg), #f3d3c6, #c9e2e6, #d9cdef, #f6e6c4, #cfe5d3, #f3d3c6); }
.pk-stamp { /* violet ink, slightly worn */
  border-color: var(--rose); outline-color: var(--rose); color: var(--rose); mix-blend-mode: normal; opacity: .85;
}
.pk-label, .pk-fields dt { color: rgba(243, 237, 226, .62); }
.pk-fields { border-color: rgba(217, 195, 230, .2); }
.pk-fields div { border-color: rgba(217, 195, 230, .2); }
.pk-links a { background: rgba(243, 237, 226, .08); border-color: rgba(243, 237, 226, .18); }
.pk-links a span { color: var(--rose); }

/* the stub is printed on canvas-cream paper */
.pk-perf { margin-bottom: 0; }
.pk-perf::before { border-top-color: rgba(243, 237, 226, .45); }
.pk-perf span { color: var(--lilac); opacity: .7; }
.pk-front .pk-stub {
  margin: 0 -20px -14px; padding: 14px 20px 14px; color: var(--ink2);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(184, 166, 217, .28), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, rgba(147, 181, 156, .3), transparent 60%),
    linear-gradient(180deg, var(--canvas), var(--canvas-2));
}
.pk-front .pk-code { fill: var(--ink2); opacity: .88; }
.pk-front .pk-stub-code small { color: rgba(28, 33, 51, .6); }
.pk-front .pk-act { color: var(--ink2); }
.pk-front .pk-act svg { background: rgba(28, 33, 51, .05); border-color: rgba(28, 33, 51, .22); }
.pk-front .pk-act[aria-pressed=true] { color: #b5544a; }
.pk-front .pk-act[aria-pressed=true] svg { background: rgba(230, 180, 173, .45); border-color: #b5544a; }
.pk-flip { /* the one warm note: Monet's sunrise */
  background: linear-gradient(135deg, #f6bd7f, var(--sunrise) 45%, #e58a6b); color: #2a1a14;
  box-shadow: 0 10px 26px -12px rgba(229, 138, 107, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.pk-flip b { background: rgba(42, 26, 20, .14); }
.pk-front .pk-hint { display: none; }
.pk-hint i { background: rgba(243, 237, 226, .4); }

/* back: each work stub takes one colour from the palette */
.pk-work {
  --tint: var(--water);
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 62%),
    radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--tint) 28%, transparent), transparent 65%),
    rgba(243, 237, 226, .05);
  border-color: rgba(217, 195, 230, .22);
}
.pk-work:nth-child(5n + 2) { --tint: var(--lilac); }
.pk-work:nth-child(5n + 3) { --tint: var(--sage); }
.pk-work:nth-child(5n + 4) { --tint: var(--rose); }
.pk-work:nth-child(5n + 5) { --tint: var(--sunrise); }
.pk-work-top em { color: var(--canvas); background: rgba(28, 33, 51, .5); }
.pk-work-foot span:last-child { color: var(--canvas); }
.pk-dots i.on { background: var(--lilac); }

/* every other page on phones: keep clear of the notch and the home indicator */
.top { padding-top: max(20px, calc(env(safe-area-inset-top) + 8px)); }
.foot { padding-bottom: max(26px, calc(env(safe-area-inset-bottom) + 12px)); }
