  /* ---------- the Dice Album (dice-album.md §3): the hub's Album pane in the lobby pages' look, its sheets and the pack opening ----------
     Loaded after shop.css: the pane's cards sit on account.css's .anote / .ahd / .tscard rules and quests.css's .qtabs; the dice are dice.js's
     flat previews (.diepv, skins.css; album.js's flatDie, never the 3D render), the chips table.css's .chip markup. Every class here is its own (alb…), so nothing else moves. */
  #albumPage .ptitle { transform: rotate(-3deg); flex: 0 0 auto; }
  /* the head's right side: the Chip round's round button over the days left (the packs pill went with the pack pop-up, packs-and-chip-round.md §4: packs open on screen) */
  #albumPage .pagehead .row { align-items: flex-start; }
  .albhr { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 4px; }
  .albhrow { display: flex; align-items: center; gap: 8px; } /* (the Chip round's round button, chip-round.md) */
  .albcr { width: 40px; height: 40px; flex: 0 0 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 3px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2); transition: transform 80ms, box-shadow 80ms; }
  .albcr .chip { width: 28px; height: 28px; font-size: 13px; } .albcr:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); } .albcr:hover:not(:disabled) { filter: none; } .albcr:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  .albleft { font: 14px/1 var(--lilita); color: #D6F2E0; text-shadow: 0 1px 0 rgba(0,0,0,.35); white-space: nowrap; } .albleft:empty { display: none; }
  .abody { padding-top: 10px; }
  .albtabs { margin-top: 4px; }
  /* the progress card: a line, the gold bar, a note */
  .albprog { background: #0B3D22; border: 4px solid var(--ink2); border-radius: 20px; box-shadow: 0 5px 0 var(--ink2); padding: 12px 14px 12px; margin-top: 18px; color: #fff; }
  .albbar { height: 14px; margin-top: 10px; border: 3px solid var(--ink2); border-radius: 999px; background: #06281A; overflow: hidden; } .albbar i { display: block; height: 100%; background: #FFD23F; }
  .albnote { display: block; margin-top: 8px; font: 800 13px/1.35 var(--nunito); color: #CFEBD9; } .albnote .gem { width: 14px; height: 14px; }
  /* the sets, two across: the die, a check when complete, the name, "5 / 7" and the reward */
  .albgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .albset { position: relative; min-width: 0; min-height: 150px; padding: 14px 8px 12px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 20px; box-shadow: 0 5px 0 var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-weight: 400; transition: none; }
  .albset:hover:not(:disabled) { filter: none; } .albset:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); }
  .albset.done { border-color: #FFD23F; box-shadow: 0 5px 0 var(--ink2), 0 0 0 3px #FFF2A8; }
  .albset .albdie { height: 60px; display: grid; place-items: center; } .albset .albdie .diepv { width: 54px; height: 54px; padding: 8px; border-radius: 18%; }
  .albset b { font: 19px/1.1 var(--lilita); } .albset .albn { font: 800 13px/1.2 var(--nunito); color: #5a4a1a; }
  .albset .albrw { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: 2px; font: 800 12px/1.3 var(--nunito); color: #6B5A3A; } .albset .albrw .gem { width: 14px; height: 14px; }
  .albck { position: absolute; top: -12px; right: -8px; width: 32px; height: 32px; border-radius: 50%; background: #7ED957; border: 3px solid var(--ink2); color: var(--ink2); font: 18px/1 var(--lilita); display: grid; place-items: center; }
  /* stars under an item (gold, the rest dim) and the count badge on a duplicate */
  .albstars { display: block; font: 12px/1 var(--lilita); color: #E0A21A; letter-spacing: 1px; white-space: nowrap; } .albstars i { font-style: normal; color: rgba(27,18,6,.22); }
  .albcnt { position: absolute; top: -8px; right: -8px; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 999px; background: #E8343B; border: 2px solid var(--ink2); color: #fff; font: 13px/1 var(--lilita); display: grid; place-items: center; z-index: 2; }
  /* the centre card's art and the Card set's small cards: a cream playing card with two dice on it */
  /* an album card `.albcard` (album.js albumCardHtml): Blackjack's card (cardface.css .bjcardt, copied here so Blackjack's stays its own; no corner total), --cw its width,
     set per place: cream, 86/60 tall, the two dice at half the width, centred top to bottom, staggered (the first right, the second left). A Card set pair has the plain pip dice (poker.css
     .pdie); a set's centre card `.albcc` has the set's flat dice (.diepv in its skin's colours) with the same ink outline, and a 3 px shadow */
  .albcard { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cw) * .06); width: var(--cw); height: calc(var(--cw) * 86 / 60); flex: 0 0 auto; box-sizing: border-box; padding: 0; background: #FFF4D6; border: 3px solid var(--ink2); border-radius: calc(var(--cw) * .17); box-shadow: 0 4px 0 var(--ink2); --pd: calc(var(--cw) * .5); }
  .albcard > .pdie { border-width: 2px; box-shadow: 0 2px 0 var(--ink2); transform: translateX(calc(var(--cw) * .16)); }
  .albcard > .diepv { flex: 0 0 auto; width: var(--pd); height: var(--pd); box-sizing: border-box; padding: calc(var(--pd) * .12); gap: 0; border: 2px solid var(--ink2); border-radius: 22%; box-shadow: 0 2px 0 var(--ink2), inset 0 0 0 1px rgba(0,0,0,.1); transform: translateX(calc(var(--cw) * .16)); }
  .albcard > :is(.pdie, .diepv) + :is(.pdie, .diepv) { transform: translateX(calc(var(--cw) * -.16)); }
  .albcc { box-shadow: 0 3px 0 var(--ink2); }
  .albcard .albstars { font-size: 9px; line-height: 1; letter-spacing: 0; margin-top: 1px; } .albk .albcard { --pd: calc(var(--cw) * .42); gap: calc(var(--cw) * .06); } /* (the Cards tab's 36: smaller dice, so the staggered pair doesn't touch, Kiril's ask; the set's centre card and the pack's keep half the width) */ /* (no top padding on an album card: Blackjack's is the corner total's room, and an album card has none, so the dice sit in the middle with as much room above as below, Kiril's ask) */
  /* a set's sheet: the ring (a square), six slots on a hexagon around the centre card (the dice at a fifth of the box, 40% out from the middle: the top and bottom ones clear the card's stars, the four at the sides clear its edges); a missing item is a grey silhouette */
  .albring { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 6px auto 0; container-type: inline-size; }
  .albslot { position: absolute; width: 20%; margin-left: -10%; margin-top: -10%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .albslot > .diepv { width: 100%; height: auto; aspect-ratio: 1; padding: 13%; border-radius: 18%; }
  .albslot.centre { left: 50%; top: 50%; width: 26%; margin-left: -13%; margin-top: calc(-13% * 86 / 60); --cw: 26cqw; } /* (the card a quarter of the ring: the ring is the size container) */
  .albring .albcnt { top: -6px; right: -6px; }
  .albslot.miss > .diepv, .albslot.miss .albcc, .albchip.miss .chip, .albk.miss .albcard .pdie { filter: grayscale(1) brightness(.55); opacity: .55; } .albk.miss .albcard { background: #EFE6D2; }
  .albsetline { display: flex; align-items: center; gap: 12px; } .albsetline .t { flex: 1; min-width: 0; } .albsetline .t b { display: block; font: 20px/1.1 var(--lilita); font-weight: 400; } .albsetline .t small { display: block; margin-top: 4px; font: 800 13px/1.35 var(--nunito); color: #5f5648; }
  .albsetline .art { flex: 0 0 auto; } .albsetline .art > .diepv { width: 48px; height: 48px; padding: 7px; border-radius: 18%; }
  /* the Chips tab: the rack's sixteen, four across, the game's chips with their stars; the Cards tab: the 6 × 6 grid */
  .albchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .albchip, .albk { position: relative; min-width: 0; padding: 8px 4px 6px; background: #FFF4D6; border: 3px solid var(--ink2); border-radius: 14px; box-shadow: 0 3px 0 var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; transition: none; }
  .albchip:hover:not(:disabled), .albk:hover:not(:disabled) { filter: none; } .albchip:active:not(:disabled), .albk:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink2); }
  .albchip .chip { width: 52px; height: 52px; font-size: .82rem; }
  .albkgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
  .albk { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; gap: 0; --cw: 52px; } .albk:active:not(:disabled) { transform: none; } .albk:active:not(:disabled) .albcard { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); } /* (the tile is the card itself; a press sinks the card) */ .albk .albcnt { min-width: 20px; height: 18px; font-size: 11px; top: -6px; right: -6px; }
  @media (max-width: 379px) { .albk { --cw: 48px; } .albchip .chip { width: 46px; height: 46px; font-size: .74rem; } }
  /* ---------- the pack pop-up (packs-and-chip-round.md §4): a rated pack in the middle of the screen, over the hub (z 8: under the pages, the jail and the loading screen) ----------
     The layer is ink at 72% over the felt's glow. The pack is --pw wide and 1.4× tall (200 × 280 on a phone, scaled with the screen, 240 × 336 at most), rounded 18 px, the 5 px ink
     outline and the hard shadow, a vertical gradient in its rating's colour (s1 cream, s2 green, s3 blue, s4 purple, s5 gold); the top strip tears off along a zig-zag; the three card backs
     peek out of it once torn. A card rises out of the pack to --cw wide (160 × 224 on a phone) and turns over on the Y axis (.pin / .pb / .pf, the old pack sheet's card); the cards
     shown so far sit small in three slots near the top; the cream summary takes the stage's place. Reduce motion: no bob, shake, tear, rise or turn: every step a 200 ms fade. */
  .modal.packpop { z-index: 8; padding: 0; align-items: stretch; justify-content: center; background: linear-gradient(rgba(27,18,6,.72), rgba(27,18,6,.72)), radial-gradient(ellipse at 50% 45%, #2A9A58 0%, #0B3D22 70%); --pw: clamp(160px, min(52vw, (var(--app-h, 100dvh) - 330px) * .714), 240px); --cw: clamp(128px, min(42vw, (var(--app-h, 100dvh) - 330px) * .571), 192px); }
  .ppstage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; box-sizing: border-box; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; } .ppstage[hidden] { display: none; }
  .pppill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #FFD23F; color: var(--ink2); border: 3px solid var(--ink2); box-shadow: 0 3px 0 var(--ink2); font: 400 16px/1 var(--lilita); } .pppill[hidden] { display: none; }
  .pptap { min-height: 26px; font: 400 22px/1.1 var(--lilita); color: #fff; text-shadow: 0 2px 0 var(--ink2), 2px 2px 0 var(--ink2), -1px -1px 0 var(--ink2); text-align: center; } .pptap[hidden] { visibility: hidden; display: block; } /* (its room stays, so the pack never jumps) */
  .ppslots { display: flex; justify-content: center; gap: 10px; min-height: calc(var(--cw) * .5 * 1.4 + 6px); } .ppslots[hidden] { display: none; }
  .ppslot { width: calc(var(--cw) * .5); height: calc(var(--cw) * .5 * 1.4); border-radius: 10px; border: 3px dashed rgba(255,244,214,.35); box-sizing: border-box; position: relative; } .ppslot.filled { border: 0; }
  .ppscene { position: relative; width: var(--pw); height: calc(var(--pw) * 1.4 + 40px); display: flex; align-items: flex-start; justify-content: center; } /* (the pack's box with room under it for the slide down; a card rising out of it takes the same place) */
  .pack { position: absolute; left: 0; top: 0; width: var(--pw); height: calc(var(--pw) * 1.4); box-sizing: border-box; border: 5px solid var(--ink2); border-radius: 18px; box-shadow: 0 8px 0 var(--ink2); overflow: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .pack.s1 { background: linear-gradient(#FFF4D6, #E9DDBB); } .pack.s2 { background: linear-gradient(#7ED957, #3FA34D); } .pack.s3 { background: linear-gradient(#5BBCFF, #2E7CC4); } .pack.s4 { background: linear-gradient(#B57BFF, #7A3FD1); } .pack.s5 { background: linear-gradient(#F7D46A, #E6B84C); }
  .pack.bob { animation: ppbob 1.6s ease-in-out infinite; } @keyframes ppbob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(4px); } }
  .pack.shake { animation: ppshake .3s ease-in-out; } @keyframes ppshake { 0%, 100% { transform: rotate(0); } 17% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 83% { transform: rotate(-4deg); } }
  .pack .ptop { position: absolute; left: -5px; right: -5px; top: -5px; height: 34px; background: rgba(27,18,6,.22); border: 5px solid var(--ink2); border-bottom: 0; border-radius: 18px 18px 0 0; clip-path: polygon(0 0, 100% 0, 100% 72%, 95% 100%, 90% 72%, 85% 100%, 80% 72%, 75% 100%, 70% 72%, 65% 100%, 60% 72%, 55% 100%, 50% 72%, 45% 100%, 40% 72%, 35% 100%, 30% 72%, 25% 100%, 20% 72%, 15% 100%, 10% 72%, 5% 100%, 0 72%); transition: transform .5s ease-out, opacity .5s ease-out; z-index: 3; }
  .pack .pedge { position: absolute; left: 0; right: 0; top: 24px; height: 7px; background: var(--ink2); clip-path: polygon(0 0, 100% 0, 100% 40%, 95% 100%, 90% 40%, 85% 100%, 80% 40%, 75% 100%, 70% 40%, 65% 100%, 60% 40%, 55% 100%, 50% 40%, 45% 100%, 40% 40%, 35% 100%, 30% 40%, 25% 100%, 20% 40%, 15% 100%, 10% 40%, 5% 100%, 0 40%); z-index: 2; } /* (the tear line: the ragged ink edge the strip leaves behind) */
  .pack.torn .ptop { transform: translateY(-60px) rotate(12deg); opacity: 0; }
  .pack.torn { transform: translateY(40px); }
  .pack .pface { position: absolute; inset: 29px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink2); z-index: 2; }
  .pack .pplogo { font: 400 calc(var(--pw) * .1) var(--marker); color: var(--lob-yellow); transform: rotate(-4deg); text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 3px 0 var(--ink2); white-space: nowrap; }
  .pack .ppkind { margin-top: calc(var(--pw) * .04); font: 400 calc(var(--pw) * .085) var(--lilita); letter-spacing: .04em; color: var(--ink2); } .pack.s2 .ppkind, .pack.s3 .ppkind, .pack.s4 .ppkind { color: #fff; text-shadow: 0 2px 0 var(--ink2); }
  .pack .ppstars { font: 400 calc(var(--pw) * .17) var(--lilita); line-height: 1.1; color: #FFD23F; letter-spacing: 1px; text-shadow: -2px -2px 0 var(--ink2), 2px -2px 0 var(--ink2), -2px 2px 0 var(--ink2), 2px 2px 0 var(--ink2), 0 4px 0 var(--ink2); white-space: nowrap; }
  .pack.s4 .ppstars, .pack.s5 .ppstars { font-size: calc(var(--pw) * .145); letter-spacing: 0; }
  .pack .ppalbum { margin-top: calc(var(--pw) * .03); font: 800 calc(var(--pw) * .065) var(--nunito); color: var(--ink2); } .pack.s2 .ppalbum, .pack.s3 .ppalbum, .pack.s4 .ppalbum { color: #fff; }
  .pack .ppeek { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 1; opacity: 0; transition: opacity .3s .25s; } /* (the three card backs' tops, rising out of the torn pack) */
  .pack .ppeek .pb { position: absolute; left: 50%; width: calc(var(--pw) * .5); height: calc(var(--pw) * .7); margin-left: calc(var(--pw) * -.25); border-radius: 12px; border: 3px solid var(--ink2); background: repeating-linear-gradient(45deg, #1F3A8A 0 8px, #2B4FB3 8px 16px); transition: transform .35s, opacity .2s; }
  .pack .ppeek .pb:nth-child(1) { transform: translateY(-34px) rotate(-6deg) translateX(-14px); } .pack .ppeek .pb:nth-child(2) { transform: translateY(-40px); } .pack .ppeek .pb:nth-child(3) { transform: translateY(-34px) rotate(6deg) translateX(14px); }
  .pack.torn .ppeek { opacity: 1; } .pack .ppeek .pb.gone { opacity: 0; }
  .ppflash { position: absolute; inset: -40px; border-radius: 40px; background: #fff; opacity: 0; pointer-events: none; z-index: 4; } .ppflash.on { animation: ppflash .45s ease-out .3s; } @keyframes ppflash { 0% { opacity: .9; } 100% { opacity: 0; } }
  /* a card out of the pack: it starts small at the pack's top and rises to a full card, then turns over; shrinking into a slot it glides there */
  .ppcard { position: absolute; left: calc((var(--pw) - var(--cw)) / 2); top: calc(var(--pw) * .7 - var(--cw) * .7); width: var(--cw); height: calc(var(--cw) * 1.4); perspective: 900px; z-index: 5; transform: translateY(calc(var(--pw) * -.2)) scale(.5); opacity: 0; transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
  .ppcard.risen { transform: none; opacity: 1; } .ppcard.toslot { transition: transform .32s ease-in; }
  .ppcard .pin { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .56s cubic-bezier(.2, .8, .2, 1); }
  .ppcard.flipped .pin { transform: rotateY(180deg); }
  .ppcard .pb, .ppcard .pf { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 4px solid var(--ink2); border-radius: 16px; box-shadow: 0 6px 0 var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; box-sizing: border-box; overflow: hidden; }
  .ppcard .pb { background: repeating-linear-gradient(45deg, #1F3A8A 0 8px, #2B4FB3 8px 16px); color: #FFD23F; } .ppcard .pb .q { font: 400 calc(var(--cw) * .4) var(--marker); text-shadow: 3px 3px 0 var(--ink2); }
  .pf { background: #FFF4D6; color: var(--ink2); } .ppcard .pf { transform: rotateY(180deg); }
  .pf b { font: 400 calc(var(--cw) * .11) var(--lilita); text-align: center; overflow-wrap: anywhere; line-height: 1.1; } .pf small { font: 800 calc(var(--cw) * .085) var(--nunito); color: #6B5A3A; }
  .pf .pfart { display: grid; place-items: center; height: calc(var(--cw) * .5); --pf: var(--cw); } .pf .pfart > .diepv { width: calc(var(--cw) * .4); height: calc(var(--cw) * .4); padding: calc(var(--cw) * .06); border-radius: 18%; } .pf .pfart .albcard { --cw: calc(var(--pf) * .35); } /* (--pf: the pop-up card's width, which the album card's own --cw is a share of) */
  .pf .albstars { font-size: calc(var(--cw) * .085); }
  .pf .pnew { position: absolute; top: 6px; left: 6px; padding: 4px 8px; border-radius: 999px; background: #E8343B; border: 2px solid var(--ink2); color: #fff; font: 400 calc(var(--cw) * .09) var(--lilita); transform: rotate(-8deg); }
  .ppcard.flipped .pf .pnew { animation: ppnew .4s cubic-bezier(.3, 1.6, .5, 1) .3s both; } @keyframes ppnew { from { transform: rotate(-8deg) scale(0); } to { transform: rotate(-8deg) scale(1); } }
  .ppcard.hi.flipped .pf { animation: albflash .8s ease-out .3s; }
  .ppcard.flipped .pf .albcard > :is(.pdie, .diepv) { animation: bjfloat 250ms ease-out .56s both; } /* (a revealed card: its dice turn up in a line and, once the card has turned, float apart into the stagger, once: Blackjack's float, cardface.css's keyframes; a single face doesn't float) */
  @keyframes albflash { 0% { box-shadow: 0 6px 0 var(--ink2); } 30% { box-shadow: 0 6px 0 var(--ink2), 0 0 0 6px #FFF2A8, 0 0 28px 10px #FFD23F; } 100% { box-shadow: 0 6px 0 var(--ink2); } }
  /* the small cards: in the slots and on the summary (--cw halved) */
  .pf.small { position: relative; width: calc(var(--cw) * .5); height: calc(var(--cw) * .5 * 1.4); border: 3px solid var(--ink2); border-radius: 10px; box-shadow: 0 3px 0 var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 3px; box-sizing: border-box; overflow: hidden; }
  .pf.small b { font-size: calc(var(--cw) * .06); } .pf.small small { font-size: calc(var(--cw) * .05); } .pf.small .pfart { height: calc(var(--cw) * .26); } .pf.small .pfart > .diepv { width: calc(var(--cw) * .2); height: calc(var(--cw) * .2); padding: calc(var(--cw) * .03); } .pf.small .pfart .albcard { --cw: calc(var(--pf) * .175); border-width: 2px; box-shadow: 0 2px 0 var(--ink2); } .pf.small .pfart .albcard > :is(.pdie, .diepv) { border-width: 1px; box-shadow: 0 1px 0 var(--ink2); } .pf.small .albstars { font-size: calc(var(--cw) * .05); letter-spacing: 0; }
  .pf.small .pnew { top: 2px; left: 2px; padding: 2px 5px; font-size: calc(var(--cw) * .055); border-width: 2px; }
  .ppslot .pf.small { animation: rmfade .2s ease-out; }
  /* Later: a quiet text button, never skewed */
  .pplater { background: none; border: 0; box-shadow: none; padding: 10px 16px; min-height: 44px; font: 800 16px/1 var(--nunito); color: rgba(255,244,214,.7); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; transition: none; } .pplater:hover:not(:disabled) { filter: none; color: #FFF4D6; } .pplater:active:not(:disabled) { transform: none; } .pplater[hidden] { visibility: hidden; display: block; }
  /* the summary: a cream card (the sheets' look) rising in the stage's place */
  .ppsum { align-self: center; width: min(100% - 32px, 380px); max-height: calc(var(--app-h, 100dvh) - 32px); box-sizing: border-box; overflow-y: auto; margin: 0 auto; padding: 16px 16px 18px; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 24px; box-shadow: 0 7px 0 var(--ink2), 0 20px 50px rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; gap: 12px; animation: pprise .4s cubic-bezier(.2, .8, .2, 1); } .ppsum[hidden] { display: none; } .ppsum.rm { animation: rmfade .2s ease-out; }
  @keyframes pprise { from { transform: translateY(60px); opacity: 0; } }
  .ppsumt { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 26px/1.1 var(--lilita); color: var(--ink2); } .ppsumst { font-size: 22px; color: #E0A21A; text-shadow: -1px -1px 0 var(--ink2), 1px -1px 0 var(--ink2), -1px 1px 0 var(--ink2), 1px 1px 0 var(--ink2); letter-spacing: 1px; }
  .ppsumcards { display: flex; justify-content: center; gap: 10px; }
  .ppsumlines { display: flex; flex-direction: column; gap: 4px; width: 100%; font: 800 13px/1.35 var(--nunito); color: #5a4a1a; text-align: center; } .ppsumlines:empty { display: none; }
  .ppsumacts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; } .ppsumacts .pplater { color: #6B5A3A; } .ppsumacts .pplater:hover:not(:disabled) { color: var(--ink2); }
  .ppbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 58px; padding: 6px 12px; border-radius: 16px; border: 4px solid var(--ink2); box-shadow: 0 5px 0 var(--ink2); color: var(--ink2); font-weight: 400; transition: none; }
  .ppbtn b { font: 400 21px/1 var(--lilita); } .ppbtn small { font: 800 12px/1.2 var(--nunito); color: #3b2f10; } .ppbtn.gold { background: #FFD23F; } .ppbtn.green { background: #7ED957; }
  .ppbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); } .ppbtn:hover:not(:disabled) { filter: none; } .ppbtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  /* Reduce motion (Settings → Accessibility, or the phone's): no bob, shake, tear, rise or turn; each step fades in over 200 ms */
  body.rm .pack, body.rm .pack .ptop, body.rm .pack .ppeek, body.rm .pack .ppeek .pb, body.rm .ppcard, body.rm .ppcard .pin { transition: none; animation: none; }
  body.rm .pack.torn { transform: none; } body.rm .pack.torn .ptop { transform: none; opacity: 0; } body.rm .ppflash.on { animation: none; }
  body.rm .ppcard { transform: none; opacity: 1; animation: rmfade .2s ease-out; } body.rm .ppcard.flipped .pf { animation: rmfade .2s ease-out; } body.rm .ppcard.hi.flipped .pf { animation: rmfade .2s ease-out; } body.rm .ppcard.flipped .pf .pnew { animation: none; } body.rm .ppcard.flipped .pf .albcard > :is(.pdie, .diepv) { animation: none; } /* (the stagger at once) */
  @media (max-height: 700px) { .ppstage { gap: 10px; } .ppsum { padding: 12px 14px 14px; gap: 10px; } .ppsumt { font-size: 23px; } }
  /* the send flow: the friends (picture, name, online), then the duplicates (art, name, how many, stars) */
  .albfriends, .albdupes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .albfr, .albdupe { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px; background: #06281A; color: #fff; border: 3px solid var(--ink2); border-radius: 16px; box-shadow: 0 3px 0 var(--ink2); text-align: left; font-weight: 400; transition: none; }
  .albfr:hover:not(:disabled), .albdupe:hover:not(:disabled) { filter: none; } .albfr:active:not(:disabled), .albdupe:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink2); }
  .albfr .avw { font-size: 40px; flex: 0 0 auto; } .albfr .who, .albdupe .who { flex: 1; min-width: 0; } .albfr .who b, .albdupe .who b { display: block; font: 18px/1.1 var(--lilita); font-weight: 400; } .albfr .who small, .albdupe .who small { display: block; margin-top: 3px; font: 800 13px/1.2 var(--nunito); color: #CFEBD9; }
  .albdupe .art { flex: 0 0 56px; display: grid; place-items: center; } .albdupe .art > .diepv { width: 40px; height: 40px; padding: 6px; border-radius: 18%; } .albdupe .art .albcard { --cw: 36px; } .albdupe .art .chip { width: 44px; height: 44px; font-size: .7rem; }
  .albdupe .albstars { flex: 0 0 auto; }
  .albout { margin-top: 6px; }
  /* ---------- Past albums (season-archive.md §4): the head's Past pill, the page's list of cards, a past collection read-only ---------- */
  .albpast { height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink2); border: 3px solid var(--ink2); box-shadow: 0 4px 0 var(--ink2); font: 16px/1 var(--lilita); letter-spacing: .3px; transition: transform 80ms, box-shadow 80ms; }
  .albpast[hidden] { display: none; } .albpast:hover:not(:disabled) { filter: none; } .albpast:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink2); } .albpast:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  .pastbody { padding-bottom: 28px; }
  .pastlist { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
  .pastcard { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px 14px; text-align: left; background: #FFF4D6; color: var(--ink2); border: 4px solid var(--ink2); border-radius: 20px; box-shadow: 0 5px 0 var(--ink2); }
  .pastcard:hover:not(:disabled) { filter: none; } .pastcard:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink2); }
  .pastcard .pastart { flex: 0 0 56px; height: 64px; display: grid; place-items: center; --cw: 40px; } .pastcard .pastart > .diepv { width: 50px; height: 50px; padding: 7px; border-radius: 18%; } .pastcard .pastart .chip { width: 46px; height: 46px; font-size: 15px; }
  .pastcard .t { min-width: 0; display: flex; flex-direction: column; gap: 2px; } .pastcard b { font: 18px/1.15 var(--lilita); overflow-wrap: anywhere; } .pastcard small { font: 800 13px/1.3 var(--nunito); color: #5a4a1a; }
  .pastmaster { align-self: flex-start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #F7D46A, #F08A24); border: 2px solid var(--ink2); font: 800 12px/1.2 var(--nunito); color: var(--ink2); }
  .pastended { margin-top: 6px; padding: 10px 14px; background: #06281A; border: 3px solid var(--ink2); border-radius: 16px; color: #fff; } .pastended b { display: block; font: 17px/1.2 var(--lilita); color: #FFD23F; } .pastended small { display: block; margin-top: 3px; font: 800 13px/1.3 var(--nunito); color: #CFEBD9; }
  .pastbody .albprog { margin-top: 12px; }
  #setSend[hidden] { display: none; } /* (a past album's set sheet is read-only: no Send) */
  #setModal .actions:has(#setSend[hidden]) #setDone { flex: 1 1 auto; } /* (alone in a past set's sheet, Done takes the row) */
