/* The capsule machines and the retired note (club/capsule.js), and the locker on /me/ (club/guy.js): the
   card table's paper cards, ink and hard under-edges. A copy's grade colour is --r. */
.cap-sheet{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:16px;background:rgba(17,21,27,.55);animation:cap-fade .18s ease-out}
.cap-card{position:relative;width:min(420px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:26px 22px 22px;border-radius:22px;background:var(--paper,#f4efe6);color:var(--ink,#241f2c);box-shadow:0 8px 0 rgba(0,0,0,.28);text-align:center;animation:cap-rise .26s cubic-bezier(.2,1.4,.4,1)}
.cap-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:10px;background:#fff;color:#241f2c;box-shadow:0 3px 0 rgba(0,0,0,.14);cursor:pointer}
.cap-kicker{margin:0;font-family:var(--num);font-size:26px;line-height:1;letter-spacing:.03em}
.cap-card h2{margin:12px 0 4px;font-size:24px;font-weight:900;letter-spacing:-.03em}
.cap-card p{margin:0}
.cap-go{display:flex;gap:10px;justify-content:center;margin-top:16px}
.cap-go>*{flex:1;min-height:52px;padding:0 16px}
.cap-go [hidden]{display:none}
.cap-left{margin-top:6px!important;font-weight:800}
.cap-card .error{margin-top:10px;color:#c43d2f;font-weight:700}
.cap-signin{display:inline-flex;align-items:center;min-height:48px;margin-top:12px;padding:0 22px;border-radius:14px;background:var(--ink,#241f2c);color:var(--paper,#f4efe6);font-weight:800;text-decoration:none;box-shadow:0 4px 0 rgba(0,0,0,.22)}
.cap-signin[hidden]{display:none}
.cap-direct{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:95;background:#131726;color-scheme:dark}
.cap-direct[hidden]{display:none}
.cap-dress{display:inline-block;margin-top:14px;color:inherit;font-weight:800;text-underline-offset:3px}

/* The opening (club/gacha.js, lil_guy's showcase machine): it drops in, rattles at each turn of the
   crank, steps back as the capsule rolls out, and the capsule's top twists off. Pixel steps throughout. */
.gacha{position:relative;width:200px;height:280px;margin:12px auto 0}
.gacha[hidden]{display:none}
.mach{image-rendering:pixelated}
.mach.big{width:200px;height:280px;filter:drop-shadow(0 10px 0 rgba(17,21,27,.25))}
.mach.big.drop{animation:cap-mach-drop .42s steps(7) 1}
.mach.big.rattle{animation:cap-rattle .24s steps(4) 1}
.mach.big.take{animation:cap-take .14s steps(2) 1}
@keyframes cap-take{50%{scale:1.03 .97;translate:0 2px}}
/* The stamps that earned a capsule, fed into the machine's slot: under the slit, the clip hides them. */
.gacha .feed,.gacha .feed-clip{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.gacha .feed-clip{overflow:hidden}
.gacha .feed img{position:absolute;left:0;top:0;image-rendering:pixelated;filter:drop-shadow(0 2px 0 rgba(17,21,27,.3));will-change:transform}
.mach.big.away{opacity:0;translate:0 -30px;transition:opacity .3s steps(4),translate .3s steps(4)}
.gacha .cap{position:absolute;left:50%;top:88%;width:168px;height:168px;translate:-50% -50%;scale:.2}
.gacha .cap canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.gacha .cap.out{animation:cap-roll-out .8s steps(12) forwards}
.gacha .cap canvas:last-child{transition:rotate .18s steps(3),translate .38s steps(6),opacity .38s steps(6)}
.gacha .twist1{rotate:-16deg}
.gacha .twist2{rotate:12deg}
.gacha .pop{rotate:-60deg;translate:-30px -150px;opacity:0}

/* What came out: each capsule's two halves part, and the item pops up in its rarity's colour. */
.cap-got{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:16px}
.cap-got:empty{display:none}
.cap-open{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:120px;padding:4px 10px 4px;animation:cap-pop .4s cubic-bezier(.2,1.6,.4,1) var(--d) both}
.cap-got:has(.cap-open:nth-child(2)) .cap-open{min-width:0;flex:1 1 30%}
.cap-item{position:relative;display:block;width:var(--s);max-width:100%;aspect-ratio:1}
.cap-item svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.cap-open .cap-item{animation:cap-item .45s cubic-bezier(.2,1.6,.4,1) calc(var(--d) + .35s) both}
.cap-rarity{margin-top:6px;padding:2px 10px;border-radius:99px;background:var(--r);color:#fff;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.cap-name{font-weight:900;letter-spacing:-.02em}
.cap-open small{color:var(--ink-soft,rgba(36,31,44,.72));font-weight:700}
.cap-wear{min-height:40px!important;margin-top:8px;padding:0 18px!important;font-size:15px!important}

.cap-machines{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;margin-top:16px}
.cap-mach{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px 8px;border:0;border-radius:14px;background:#fff;color:#241f2c;font:inherit;text-align:left;box-shadow:0 3px 0 rgba(0,0,0,.12);cursor:pointer}
.cap-mach:disabled{cursor:default;opacity:.55}
.cap-mach{text-align:center}
.cap-mach.is-ready{box-shadow:0 3px 0 #1f9d5b,0 0 0 2px #1f9d5b}
.cap-mach canvas{display:block;width:80px;height:112px;margin-bottom:4px;image-rendering:pixelated;filter:drop-shadow(0 3px 0 rgba(36,31,44,.14))}
.cap-machines[hidden]{display:none}
.cap-mach b{font-size:14px;font-weight:900;letter-spacing:-.02em}
.cap-mach small{font-size:12px;font-weight:700;color:rgba(36,31,44,.72)}
.cap-mach.is-ready small{color:#1f9d5b}
/* The picker uses the same pixel face as the complete Lil Guys reveal it opens. */
@font-face{font-family:CapsulePixel;src:url('lilguys/fonts/m6x11plus.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:CapsulePixel;src:url('lilguys/fonts/lilguys-punct.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+00B7,U+2019,U+201C-201D,U+2026,U+2192,U+2212,U+2605}
.cap-sheet:has(.cap-roll){background:rgba(8,11,20,.78)}
.cap-roll{width:min(464px,100%);padding:26px 20px 20px;border:2px solid #394159;border-radius:22px;background:#171c2b;color:#fbf6ea;box-shadow:0 8px 0 #090d17,0 24px 70px rgba(0,0,0,.4);text-align:left;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#596580 #171c2b}
.cap-roll .cap-close{top:16px;right:16px;width:44px;height:44px;background:#2b334a;color:#fbf6ea;box-shadow:0 3px 0 #0b101d}
.cap-heading{display:flex;align-items:center;gap:10px;min-height:28px;padding-right:44px}
.cap-roll .cap-kicker{font:20px/1 CapsulePixel,monospace;color:#b1bbd4;letter-spacing:0}
.cap-count{padding:4px 9px 3px;border-radius:6px;background:#93e2bd;color:#12261c;font:20px/1 CapsulePixel,monospace;white-space:nowrap}
.cap-roll h2.cap-title{margin:12px 0 8px;font:34px/.95 CapsulePixel,monospace;letter-spacing:0}
.cap-roll .cap-left{min-height:36px;margin-top:0!important;padding-right:8px;color:#b1bbd4;font-size:13px;font-weight:600;line-height:1.4}
.cap-roll .cap-machines{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin-top:16px;padding-bottom:4px}
.cap-roll .cap-mach{gap:4px;min-width:0;padding:12px 4px 8px;border:2px solid transparent;border-radius:12px;background:#f4efe6;box-shadow:0 4px 0 #858070;transition:transform .12s,box-shadow .12s,border-color .12s}
.cap-roll .cap-mach:enabled:hover{transform:translateY(-2px);border-color:#93e2bd;box-shadow:0 6px 0 #2c8a63}
.cap-roll .cap-mach:enabled:active{transform:translateY(3px);box-shadow:0 1px 0 #2c8a63}
.cap-roll .cap-mach:focus-visible{outline:3px solid #ffd25e;outline-offset:3px}
.cap-roll .cap-mach:disabled{opacity:1;background:#242c40;color:#a5afc8;box-shadow:0 4px 0 #0b101d}
.cap-roll .cap-mach:disabled canvas{opacity:.55}
.cap-roll .cap-mach.is-ready{border-color:#93e2bd;box-shadow:0 4px 0 #2c8a63}
.cap-roll .cap-mach canvas{width:80px;height:112px;margin-bottom:2px}
.cap-roll .cap-mach b{max-width:100%;font:22px/1 CapsulePixel,monospace;letter-spacing:0;overflow-wrap:anywhere}
.cap-roll .cap-mach small{font:16px/1.15 CapsulePixel,monospace;color:#325c48}
.cap-roll .cap-mach:disabled small{color:#a5afc8}
.cap-roll .cap-punch{gap:4px;margin-top:4px;padding:5px 7px}
.cap-roll .cap-punch i{width:8px;height:8px}
.cap-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:14px;border-top:1px solid #394159}
.cap-sandbox{font:16px/1 CapsulePixel,monospace;color:#a5afc8}
.cap-roll .cap-dress{display:inline-flex;align-items:center;min-height:40px;margin:0;color:#fbf6ea;font:20px/1 CapsulePixel,monospace;text-decoration:none}
.cap-roll .cap-dress:hover{text-decoration:underline}
.cap-roll .error{padding:12px;border:1px solid #9d665c;border-radius:10px;background:#392a32;color:#ffd0c5;font-size:14px;line-height:1.4}
@media(max-width:520px){.cap-sheet:has(.cap-roll){align-items:end;padding:12px 10px max(12px,env(safe-area-inset-bottom))}.cap-roll{max-height:calc(100dvh - 24px);padding:22px 16px 16px}.cap-roll h2.cap-title{font-size:32px}.cap-roll .cap-machines{gap:11px 8px}.cap-roll .cap-mach canvas{width:80px;height:112px}.cap-roll .cap-mach b{font-size:20px}.cap-roll .cap-mach small{font-size:15px}}
@media(max-width:360px){.cap-roll .cap-machines{grid-template-columns:repeat(2,minmax(0,1fr))}.cap-roll .cap-mach b{font-size:22px}.cap-roll .cap-mach small{font-size:16px}}
@media(prefers-reduced-motion:reduce){.cap-sheet,.cap-card{animation:none}.cap-roll .cap-mach{transition:none}}
/* A machine's punch card: a ticket in its colour, notched at each end, a ring printed for each stamp
   it takes and a hole punched through for each one played (the card shows through the hole). */
.cap-punch{display:flex;gap:4px;align-items:center;margin-top:6px;padding:5px 10px;border-radius:2px;background:var(--c,#f2c46b);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18);
  -webkit-mask:radial-gradient(circle 4px at 0 50%,#0000 99%,#000) left/51% 100% no-repeat,radial-gradient(circle 4px at 100% 50%,#0000 99%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 4px at 0 50%,#0000 99%,#000) left/51% 100% no-repeat,radial-gradient(circle 4px at 100% 50%,#0000 99%,#000) right/51% 100% no-repeat}
.cap-punch i{display:block;width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(36,31,44,.35)}
.cap-punch i.on{background:#fff;box-shadow:inset 0 2px 0 rgba(36,31,44,.4)}
.cap-held{margin:8px 0 0;font-size:15px;color:var(--ink-soft,rgba(36,31,44,.72))}

.cap-old{display:block;width:160px;height:160px;margin:6px auto 0}
.cap-old svg{display:block;width:100%;height:100%}
/* The retired note: the old guy, then the new one popping in beside him */
.cap-pair{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:8px}
.cap-pair figure{margin:0;display:grid;justify-items:center;gap:6px}
.cap-pair figcaption{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft,rgba(36,31,44,.72))}
.cap-was .cap-old{width:96px;height:96px;margin:0;opacity:.7;filter:grayscale(.6)}
.cap-now .cap-old{width:144px;height:180px;margin:0;animation:cap-pop .5s .6s cubic-bezier(.3,1.6,.5,1) backwards}
.cap-now figcaption{animation:cap-fade .3s .9s backwards}
.cap-arrow{font-size:28px;font-weight:900;color:var(--ink-soft,rgba(36,31,44,.72));animation:cap-fade .3s .35s backwards}

@keyframes cap-fade{from{opacity:0}}
@keyframes cap-rise{from{transform:translateY(30px) scale(.96);opacity:0}}
@keyframes cap-mach-drop{0%{translate:0 -360px}70%{translate:0 12px}85%{translate:0 -6px}100%{translate:0 0}}
@keyframes cap-rattle{25%{translate:-3px 1px}75%{translate:3px -1px}}
@keyframes cap-roll-out{0%{top:88%;scale:.2;rotate:0deg}50%{top:44%;scale:1;rotate:300deg}70%{top:53%;scale:1;rotate:345deg}85%{top:48%;scale:1}100%{top:50%;scale:1;rotate:360deg}}
@keyframes cap-pop{from{transform:scale(.4);opacity:0}}
@keyframes cap-item{from{transform:scale(.2) translateY(20px);opacity:0}}

/* /me/: your lil-guy and the machines, then your locker, slot by slot. */
.guy-top{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.guy-big{display:block;width:150px;height:150px}
.guy-big svg{display:block;width:100%;height:100%}
.guy-top .primary{width:100%;margin-top:10px}
.guy-rolls{margin:4px 0 0;font-weight:800}
.guy-slots{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0 10px}
.guy-slots button{min-height:36px;padding:0 14px;border:0;border-radius:99px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:800;box-shadow:0 3px 0 rgba(0,0,0,.12);cursor:pointer}
.guy-slots button[aria-selected=true]{background:var(--ink);color:var(--paper)}
.guy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.guy-grid button{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:8px 6px 8px;border:0;border-radius:14px;background:none;color:inherit;font:inherit;font-size:12.5px;font-weight:800;line-height:1.15;cursor:pointer}
.guy-grid button[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:2px}
.guy-grid small{font-size:11px;font-weight:800;color:color-mix(in srgb,var(--r) 80%,#000)}
.guy-none{grid-column:1/-1;color:var(--ink-soft);font-weight:700}
.guy-grid .cap-item{width:100%}
@media (max-width:520px){.guy-top{grid-template-columns:1fr;justify-items:center;text-align:center}}
/* The profile opens the earned wardrobe before the old base-parts picker. */
.guy-wardrobe{margin:0 0 28px;padding:24px;border:2px solid #394159;border-radius:22px;background:#171c2b;color:#fbf6ea;box-shadow:0 6px 0 #090d17;scroll-margin-top:20px}
.guy-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.guy-heading .kicker{margin:0 0 6px;color:#b1bbd4;font:18px/1 CapsulePixel,monospace}
.guy-heading h2{margin:0;font:34px/1 CapsulePixel,monospace}
.guy-heading>span{flex:none;color:#93e2bd;font:22px/1 CapsulePixel,monospace}
.guy-content{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;align-items:start}
.guy-stage{display:grid;justify-items:center;gap:14px;text-align:center}
.guy-wardrobe .guy-big{width:176px;height:auto}
.guy-big canvas{display:block;width:100%;height:auto;image-rendering:pixelated}
.guy-wardrobe .guy-rolls{margin:0;color:#b1bbd4;font-size:13px;line-height:1.4;font-weight:600;text-wrap:balance}
.guy-stage .primary{min-height:48px;width:100%;border:0;border-radius:12px;background:#93e2bd;color:#12261c;box-shadow:0 4px 0 #2c8a63;font:24px/1 CapsulePixel,monospace;cursor:pointer}
.guy-stage>small{color:#b1bbd4;font:16px/1 CapsulePixel,monospace}
.guy-wardrobe .guy-slots{gap:7px;margin:0 0 18px}
.guy-wardrobe .guy-slots button{min-height:42px;padding:0 12px;background:#2b334a;color:#d1d8e8;border-radius:9px;box-shadow:0 3px 0 #0b101d;font:20px/1 CapsulePixel,monospace}
.guy-wardrobe .guy-slots button[aria-pressed=true]{background:#93e2bd;color:#12261c;box-shadow:0 3px 0 #2c8a63}
.guy-wardrobe .guy-grid{grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px}
.guy-wardrobe .guy-grid button{height:100%;gap:6px;padding:10px 7px 9px;border:2px solid transparent;border-radius:12px;background:#f4efe6;color:#241f2c;box-shadow:0 4px 0 #858070;font:18px/1 CapsulePixel,monospace}
.guy-wardrobe .guy-grid button[aria-pressed=true]{border-color:#93e2bd;outline:0;box-shadow:0 4px 0 #2c8a63}
.guy-wardrobe button:focus-visible{outline:3px solid #ffd25e;outline-offset:3px}
.guy-wardrobe .guy-grid button:disabled{cursor:wait;opacity:.65}
.guy-item-name{overflow-wrap:anywhere}
.guy-wardrobe .guy-grid small{font:15px/1 CapsulePixel,monospace}

.guy-wardrobe .guy-grid .guy-item-got{color:rgba(36,31,44,.6)}
.guy-item-action{margin-top:auto;padding-top:5px;color:#325c48;font:17px/1 CapsulePixel,monospace}
.guy-error{padding:12px;border-radius:10px;background:#392a32;color:#ffd0c5;font-size:14px}
.guy-wardrobe .guy-none{grid-column:1/-1;color:#b1bbd4;font:20px/1.3 CapsulePixel,monospace}
@media(max-width:620px){.guy-wardrobe{padding:20px 14px}.guy-content{grid-template-columns:1fr;gap:24px}.guy-stage{max-width:260px;justify-self:center}.guy-wardrobe .guy-big{width:154px}.guy-heading h2{font-size:30px}.guy-wardrobe .guy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.guy-wardrobe .guy-slots{justify-content:center}.guy-wardrobe .guy-grid button{font-size:17px}}
@media(max-width:360px){.guy-wardrobe .guy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guy-heading{align-items:start}.guy-heading>span{font-size:18px}}
.cap-pool{display:flex;flex-direction:column;align-items:center;gap:4px;margin:4px 0 14px}
.cap-pool > small{font-size:13px;opacity:.75}
/* The shared punch card: a cream ticket on its ledge, notched at the ends, a stamp for each stamp earned (a
   faint grey one till then); the capsule it fills waits at the end, grey till the card's full, then bobs. Used by the capsule
   sheet and the You page (punchTicket in capsule.js). */
.pc{display:flex;align-items:center;gap:12px;color:inherit}
.pc-row{display:flex;align-items:center;gap:8px}
.pc-ticket{position:relative;display:flex;gap:7px;align-items:center;padding:10px 17px 12px;background:#f8ecd2;border-radius:3px;box-shadow:inset 0 -4px 0 #e8d5a8;
  -webkit-mask:radial-gradient(circle 6px at 0 50%,#0000 99%,#000) left/51% 100% no-repeat,radial-gradient(circle 6px at 100% 50%,#0000 99%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 6px at 0 50%,#0000 99%,#000) left/51% 100% no-repeat,radial-gradient(circle 6px at 100% 50%,#0000 99%,#000) right/51% 100% no-repeat;
  filter:drop-shadow(0 3px 0 rgba(0,0,0,.22))}
.pc-ticket::before{content:'';position:absolute;inset:4px 10px 7px;border:1.5px dashed rgba(36,31,44,.2);border-radius:2px;pointer-events:none}
.pc-ticket i{position:relative;display:block;width:24px;height:31px}
.pc-ticket i.on>img{display:block;width:100%;height:100%;object-fit:contain;transform:rotate(var(--r)) scale(1.14);filter:drop-shadow(0 2px 0 rgba(36,31,44,.3));animation:pc-punch .38s cubic-bezier(.2,1.8,.4,1) both;animation-delay:calc(var(--n) * 70ms)}
.pc-blank{position:absolute;inset:2px 3px;border-radius:2px;background:rgba(36,31,44,.1);box-shadow:inset 0 0 0 1.5px rgba(36,31,44,.18)}
@keyframes pc-punch{from{transform:rotate(var(--r)) scale(.3)}to{transform:rotate(var(--r)) scale(1.14)}}
.pc-cap{width:44px;height:44px;image-rendering:pixelated;filter:grayscale(1) drop-shadow(0 3px 0 rgba(0,0,0,.28));opacity:.5}
.pc.full .pc-cap{filter:drop-shadow(0 3px 0 rgba(0,0,0,.28));opacity:1;animation:pc-bob 1.2s ease-in-out infinite alternate}
@keyframes pc-bob{from{translate:0 0}to{translate:0 -5px}}
.pc-words{display:grid;line-height:1.05}
.pc-words b{font:400 26px/1 var(--num,'Jersey 10',monospace);letter-spacing:.02em}
.pc-words small{font-size:13px;opacity:.72}
.cap-pool .pc{flex-direction:column;gap:6px}.cap-pool .pc-words{justify-items:center}
/* A machine's shelf: every item it can give, before a roll. */
.cap-spot{display:flex;flex-direction:column;gap:6px;min-width:0}
.cap-spot>.cap-mach{flex:1}
.cap-peek{min-height:32px;padding:0 6px;border:0;border-radius:8px;background:#2b334a;color:#fbf6ea;font:16px/1 CapsulePixel,monospace;box-shadow:0 3px 0 #0b101d;cursor:pointer}
.cap-peek:hover{background:#394159}
.cap-peek:focus-visible{outline:3px solid #ffd25e;outline-offset:2px}
.cap-shelf-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-right:44px}
.cap-shelf-top b{font:28px/1 CapsulePixel,monospace}
.cap-shelf-top span{font:18px/1 CapsulePixel,monospace;color:#93e2bd}
.cap-back{min-height:36px;padding:0 12px;border:0;border-radius:8px;background:#2b334a;color:#fbf6ea;font:18px/1 CapsulePixel,monospace;box-shadow:0 3px 0 #0b101d;cursor:pointer}
.cap-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 4px;padding:0;list-style:none}
.cap-shelf-grid li{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;padding:10px 4px 8px;border-radius:12px;background:#242c40;color:#a5afc8;text-align:center}
.cap-shelf-grid li>.cap-item{width:72px;height:72px;opacity:.6}
.cap-shelf-grid li.found{background:#f4efe6;color:#241f2c;box-shadow:0 4px 0 #858070}
.cap-shelf-grid li.found>.cap-item{opacity:1}
.cap-shelf-grid b{max-width:100%;font:18px/1 CapsulePixel,monospace;overflow-wrap:anywhere}
.cap-shelf-grid small{font:15px/1.1 CapsulePixel,monospace}
.cap-shelf-grid li.found small{color:#325c48}
.cap-found{font:14px/1 CapsulePixel,monospace;color:#1f9d5b}
/* The pixel eye that opens an item close up, at a tile's corner. */
.cap-eye{position:absolute;top:6px;right:6px;z-index:2;display:grid;place-items:center;width:34px;height:28px;padding:0;border:0;border-radius:7px;background:#2b334a;color:#fbf6ea;box-shadow:0 2px 0 #0b101d;cursor:pointer}
.cap-eye:hover{background:#394159}
.cap-eye:focus-visible{outline:3px solid #ffd25e;outline-offset:2px}
.guy-wardrobe .guy-grid li{position:relative}
.guy-wardrobe .guy-grid .cap-eye{position:absolute;top:6px;right:6px;z-index:2;display:grid;place-items:center;gap:0;height:28px;min-height:0;width:34px;padding:0;border:0;border-radius:7px;background:#2b334a;color:#fbf6ea;box-shadow:0 2px 0 #0b101d;font:inherit}
.cap-shelf-grid li .cap-eye{top:4px;right:4px}
/* A machine's tiers: the same chances in every machine. */
.cap-tiers{margin-top:14px}
.cap-tiers p{margin:0 0 6px;color:#b1bbd4;font:16px/1.1 CapsulePixel,monospace}
.cap-tiers ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px 6px;margin:0;padding:0;list-style:none}
.cap-tiers li{display:grid;justify-items:center;gap:4px}
.cap-tiers b{justify-self:stretch;padding:4px 6px 3px;border-radius:6px;background:var(--r);box-shadow:0 3px 0 rgba(0,0,0,.35);color:#fff;text-align:center;text-shadow:0 2px 0 rgba(0,0,0,.35);font:16px/1 CapsulePixel,monospace;white-space:nowrap}
.cap-tiers span{font:15px/1 CapsulePixel,monospace;color:#b1bbd4}
/* One item close up, over the page. */
.cap-insp{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:start center;padding:16px;background:rgba(8,11,20,.78);overflow-y:auto}
.cap-insp-card{position:relative;width:min(420px,100%);margin:auto;padding:24px 18px 18px;border:2px solid #394159;border-radius:20px;background:#171c2b;color:#fbf6ea;box-shadow:0 8px 0 #090d17;font:16px/1.3 CapsulePixel,monospace;text-align:left}
.cap-insp .cap-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:0;border-radius:10px;background:#2b334a;color:#fbf6ea;font-size:24px;box-shadow:0 3px 0 #0b101d;cursor:pointer}
.cap-insp-pic{display:block;margin:0 auto 6px;padding:10px;border-radius:14px;background:#f4efe6;box-shadow:inset 0 0 0 3px var(--r)}
.cap-insp h3{margin:8px 0 6px;font:32px/1 CapsulePixel,monospace;text-align:center}
.cap-insp-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0}
.cap-insp-pills span{padding:4px 8px 3px;border-radius:6px;background:#2b334a;font-size:16px}
.cap-insp-pills .cap-tier{background:var(--r);color:#fff}
.cap-insp-whole{margin:10px 0 0;text-align:center;color:#b1bbd4}
.cap-insp-whole b{color:#93e2bd}
.cap-insp-k{margin:18px 0 8px;color:#b1bbd4;font-size:15px;letter-spacing:.04em;text-transform:uppercase}
.cap-insp-odds{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:6px}
.cap-insp-odds div{display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:8px;background:#242c40}
.cap-insp-odds small{color:#b1bbd4;font-size:14px}
.cap-insp-odds b{font-size:17px;font-weight:400;overflow-wrap:anywhere}
.cap-insp-odds span{color:#93e2bd}
.cap-insp-float p{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.cap-insp-float p b{font-size:22px;font-weight:400}
.cap-insp-float p span{padding:3px 7px 2px;border-radius:6px;color:#12261c}
.cap-insp-bar{position:relative;display:flex;height:10px;border-radius:3px;overflow:visible}
.cap-insp-bar i{display:block;height:100%}
.cap-insp-bar b{position:absolute;top:-5px;width:4px;height:20px;margin-left:-2px;background:#fff;box-shadow:0 0 0 2px #171c2b}
.cap-insp-float small{display:block;margin-top:8px;color:#b1bbd4;font-size:15px}
.cap-insp-none{margin:0;color:#b1bbd4}
.cap-insp-note{display:grid;grid-template-columns:1fr auto;gap:2px 8px;margin:0 0 8px;padding:8px;border-radius:8px;background:#242c40}
.cap-insp-note em{font-style:normal;color:#93e2bd}
.cap-insp-note span{grid-column:1/-1;color:#b1bbd4;font-size:15px}
.cap-insp-from{margin:16px 0 0;color:#b1bbd4}
.cap-insp-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0 0}
.cap-insp-links a{color:#93e2bd}
/* The reveal's eye: over the opened capsule once its result shows. */
.cap-direct-eye{position:fixed;top:max(14px,env(safe-area-inset-top));left:14px;z-index:96}
.cap-direct-eye .cap-eye{position:static;width:44px;height:36px}
.cap-direct-eye{display:flex;align-items:center;gap:8px}
.cap-counter{padding:7px 11px;border-radius:999px;background:#11151b;color:#fbf6ea;font:700 14px/1 var(--num,inherit);box-shadow:0 3px 0 rgba(0,0,0,.45)}
/* What the guy being built is made of, part by part, and how rare each part is to be dealt. */
.look-traits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px;width:100%;max-width:420px;margin:14px auto 0;padding:0;list-style:none;font:15px/1.15 CapsulePixel,monospace;color:#fbf6ea}
.look-traits li{display:grid;grid-template-columns:auto 1fr;gap:0 6px;padding:5px 7px 4px;border-radius:6px;background:#242c40}
.look-traits small{grid-column:1/-1;color:#b1bbd4;font-size:13px}
.look-traits b{font-weight:400;overflow-wrap:anywhere}
.look-traits span{justify-self:end;color:#b1bbd4;white-space:nowrap}
.look-traits li.rare span{color:#93e2bd}
.guy-wardrobe:not([data-mode=body]) .look-traits{display:none}
/* The way to the Lil Guys site: the full locker, its editor, how rarity works. */
.guy-site{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px 0 0;padding-top:16px;border-top:2px solid #262d40}
.guy-site a{padding:8px 12px 7px;border-radius:8px;background:#2b334a;color:#fbf6ea;font:18px/1 CapsulePixel,monospace;text-decoration:none;box-shadow:0 3px 0 #0b101d}
.guy-site a:hover{background:#394159}
.cap-insp-facts{display:grid;gap:6px;margin:6px 0 0}
.cap-insp-fact{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#242c40}
.cap-insp-fact small{flex:0 0 64px;color:#b1bbd4;font-size:15px}
.cap-insp-fact>b{flex:1;font-size:18px;font-weight:400;color:#fbf6ea;overflow-wrap:anywhere}
.cap-insp-fact>b.cap-tier{flex:0 1 auto;margin-right:auto;padding:3px 8px 2px;border-radius:6px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.cap-insp .cap-why,.cap-insp-k .cap-why{position:static;flex:0 0 auto;width:30px;height:24px;margin-left:auto;vertical-align:middle}
.cap-insp-k{display:flex;align-items:center;gap:8px}
.cap-why[aria-expanded=true]{background:#93e2bd;color:#12261c}
.cap-why-text{margin:-2px 0 4px;padding:8px 10px;border-radius:8px;background:#0f1320;color:#dfe5f3;font-size:15px;line-height:1.35}
.guy-wardrobe .guy-grid .guy-item-tier{justify-self:center;padding:2px 6px 1px;border-radius:5px;background:var(--r);color:#fff;filter:none;text-shadow:0 1px 0 rgba(0,0,0,.35)}
@media(max-width:699px){.guy-wardrobe[data-mode=body] .guy-stage{align-self:start}.guy-wardrobe[data-mode=body] .guy-big{width:112px}.guy-wardrobe[data-mode=body] .guy-stage{gap:8px}}
.guy-wardrobe .guy-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.guy-wardrobe .guy-grid>li{flex:0 0 calc((100% - 24px)/3);max-width:150px}
.guy-wardrobe .guy-grid .cap-item{width:72%;margin-top:26px}
@media(max-width:360px){.guy-wardrobe .guy-grid>li{flex-basis:calc((100% - 12px)/2)}}
.guy-lg-body{display:grid;justify-items:center;gap:16px}
.guy-wardrobe:not([data-mode=body]) .guy-lg-body{display:none}
.guy-wardrobe .guy-lg-body .look-traits{display:grid}
.guy-lg-edit{display:inline-flex;align-items:center;min-height:52px;padding:0 22px;border-radius:12px;background:#93e2bd;color:#12261c;box-shadow:0 4px 0 #2c8a63;font:24px/1 CapsulePixel,monospace;text-decoration:none}
.guy-wardrobe[data-lilguys] .guy-stage>.look-dice{display:none!important}
