.main:has(#view-collection.active) { background:#0c0e10; }
.content:has(#view-collection.active) { padding:0; overflow-anchor:none; }
#view-collection.active { animation:none; }
.pokemon-collection-page { --collection-gutter:24px; min-height:100%; color:#eff1f1; }
.pokemon-collection-toolbar {
  position:sticky; top:0; z-index:10; padding:0 var(--collection-gutter);
  background:#111416;
}
.pokemon-collection-toolbar [hidden] { display:none; }
.pokemon-workshop-bar {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  max-width:1500px; margin:0 auto; padding:9px 0;
}
#pokemonCardsPanel { max-width:1548px; margin:0 auto; padding:0 var(--collection-gutter) 38px; }
.pokemon-collection-hero { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:22px 0 12px; }
.pokemon-collection-hero h2 { margin:0; font-size:31px; font-weight:800; }
.pokemon-collection-progress { width:min(275px,35%); text-align:right; }
.pokemon-collection-progress strong { font:800 16px 'JetBrains Mono',monospace; }
.pokemon-collection-progress span,.pokemon-collection-progress small { color:#b1b8b6; font-size:11px; }
.pokemon-progress-track { height:3px; margin:7px 0 2px; border-radius:4px; background:#222729; overflow:hidden; }
.pokemon-progress-track span { display:block; width:0; height:100%; background:#9fd4bb; border-radius:inherit; transition:width .45s ease; }
.pokemon-collection-stats { display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom:22px; }
.pokemon-collection-stat { display:flex; flex-direction:row-reverse; align-items:baseline; gap:6px; }
.pokemon-collection-stat small { color:#a7afad; font-size:11px; }
.pokemon-collection-stat b { color:#eceeed; font:750 12px 'JetBrains Mono',monospace; }
.pokemon-collection-controls { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; max-width:1500px; margin:0 auto; padding:0 0 9px; }
.pokemon-collection-tabs { display:flex; align-items:center; gap:3px; }
.pokemon-collection-tabs button { border:0; border-radius:6px; min-height:32px; padding:5px 10px; background:transparent; color:#b0b8b6; font:750 11px Manrope,sans-serif; cursor:pointer; }
.pokemon-collection-tabs button:hover,.pokemon-collection-tabs button.active { color:#f3f6f4; background:#292f30; }
.pokemon-collection-search,.pokemon-collection-rarity { height:34px; border:0; border-radius:6px; background:#1c2123; color:#d7ddda; font:750 11px Manrope,sans-serif; }
.pokemon-collection-search { display:flex; flex:1; align-items:center; gap:7px; min-width:138px; max-width:285px; padding:0 9px; }
.pokemon-collection-search svg { flex:none; width:15px; height:15px; fill:none; stroke:#a7b2ae; stroke-width:1.7; }
.pokemon-collection-search input { width:100%; min-width:0; padding:0; background:none; border:0; color:inherit; font:inherit; }
.pokemon-collection-rarity { padding:0 10px; min-width:108px; }
.pokemon-collection-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(158px,1fr)); gap:19px 14px; }
.pokemon-dex-card { display:block; position:relative; min-width:0; padding:0; border:0; background:none; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.pokemon-dex-print { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:63/88; overflow:hidden; border-radius:7px; background:#171b1e; color:#a1aaa8; font-size:11px; }
.pokemon-dex-print img { width:100%; height:100%; object-fit:contain; display:block; }
.pokemon-dex-card:not(.missing) .pokemon-dex-print { transition:transform .2s ease; }
.pokemon-dex-card:not(.missing):hover .pokemon-dex-print { transform:translateY(-3px); }
.pokemon-dex-card:focus-visible { outline:2px solid #a4e0c4; outline-offset:4px; border-radius:7px; }
.pokemon-dex-label { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:3px 6px; padding:6px 1px 0; }
.pokemon-dex-label b { font-size:12px; overflow-wrap:anywhere; }
.pokemon-dex-rarity { color:rgb(var(--rarity-rgb,182,191,189)); font:750 9px Manrope,sans-serif; }
.pokemon-dex-copies { position:absolute; right:7px; top:7px; min-width:25px; padding:4px 6px; border-radius:5px; background:#0b0f13ef; color:#fff; font:800 10px 'JetBrains Mono',monospace; text-align:center; }
.pokemon-dex-card.missing { cursor:default; }
.pokemon-dex-card.missing .pokemon-dex-print { background:linear-gradient(145deg,#1b2022,#141719); font:800 24px 'JetBrains Mono',monospace; color:#747e7c; }
.pokemon-dex-card.missing b { color:#a6afad; font-weight:700; }
.pokemon-collection-more { display:block; margin:22px auto 0; border:0; border-radius:7px; padding:10px 16px; background:#232a2d; color:#e1e5e4; cursor:pointer; font:800 12px Manrope,sans-serif; }
.pokemon-collection-more[hidden] { display:none; }
.pokemon-collection-empty { grid-column:1/-1; min-height:180px; display:grid; place-items:center; color:#a7afad; font-size:12px; }
.pokemon-collection-legal { color:#868f8c; margin:28px 0 0; font-size:10px; line-height:1.6; }
.trade-dialog.pokemon-collection-preview-dialog {
  width:min(386px,calc(100vw - 42px),max(105px,calc((100dvh - 126px)*.69)));
  max-height:calc(100dvh - 32px); padding:0; border:0; background:none; box-shadow:none; overflow:visible;
}
.pokemon-collection-preview { display:grid; gap:9px; }
.pokemon-preview-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pokemon-preview-head h3 { margin:0; color:#f3f5f3; font-size:17px; overflow-wrap:anywhere; }
.pokemon-preview-head button { flex:none; }
.pokemon-preview-card {
  display:grid; place-items:center; width:100%; aspect-ratio:63/88; min-width:0; min-height:0; overflow:hidden;
  padding:3px; border:6px solid transparent; border-radius:8px; box-shadow:0 22px 58px #0009;
  color:#edf5f1; font-size:12px; cursor:default; user-select:none;
}
.pokemon-preview-card img { display:block; width:100%; height:100%; min-width:0; min-height:0; border-radius:4px; object-fit:contain; }
.pokemon-preview-rarity { display:flex; justify-content:center; }
.workshop-view-tabs { display:flex; flex-wrap:wrap; gap:4px; min-width:0; margin-right:auto; }
.workshop-view-tabs button {
  display:inline-flex; align-items:center; gap:7px; border:0; border-radius:7px; min-height:35px;
  padding:5px 10px; color:#b8bcc5; background:transparent; cursor:pointer; font:800 12px Manrope,sans-serif;
}
.workshop-view-tabs button:hover { background:#191c23; color:#fff; }
.workshop-view-tabs button[aria-selected="true"] { color:#f4f5f8; background:#292f30; }
.workshop-view-tabs button:focus-visible { outline:2px solid #c6b8f8; }
.workshop-view-tabs svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.4; }
.workshop-wallet { display:flex; align-items:center; gap:6px; padding-right:4px; }
.workshop-wallet strong { color:#edf0f7; font:700 16px 'JetBrains Mono',monospace; }
.workshop-wallet span,.workshop-muted { color:#b3b7b9; font-size:12px; }
.workshop-disc {
  display:inline-block; flex:none; width:1.15em; aspect-ratio:1; border-radius:50%; vertical-align:middle;
  background:radial-gradient(circle,#212334 0 13%,#ffffffa8 14% 19%,transparent 21%),conic-gradient(from 32deg,#b1fbfc,#765dce,#edaecc,#fff6c5,#81d2ec,#9e8fe6,#b1fbfc);
  box-shadow:inset 0 0 0 1px #fffd,0 1px 3px #17112069;
}
.workshop-pack-icon {
  width:.92em; height:1.22em; border:1px solid #fff3c9; border-radius:2px; display:inline-block; flex:none;
  background:linear-gradient(135deg,#f8d388 8%,#a771bd 44%,#f4bb75 70%,#f6df9c); box-shadow:inset 0 2px #fdf1c8;
}
.workshop-pack-count { min-width:19px; padding:1px 4px; text-align:center; color:#bff6dd; background:#133a2e; border-radius:4px; }
.workshop-primary,.workshop-secondary,.workshop-icon {
  appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:6px 12px;
  border:1px solid #3b4643; border-radius:7px; background:#202a29; color:#edf6f1;
  font:750 12px Manrope,sans-serif; cursor:pointer; transition:background .16s,border-color .16s,scale .16s;
}
.workshop-primary { border-color:#bbf0d5; background:#bbf0d5; color:#112820; }
.workshop-primary:enabled:hover { background:#defbec; }
.workshop-secondary:enabled:hover,.workshop-icon:enabled:hover { border-color:#8ba49a; background:#303d3a; }
.workshop-primary:enabled:active,.workshop-secondary:enabled:active,.workshop-icon:enabled:active { scale:.96; }
.workshop-primary:disabled,.workshop-secondary:disabled { opacity:.45; cursor:default; }
.workshop-icon { width:36px; padding:0; font-size:20px; }
.workshop-secondary svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.5; }
.workshop-primary:focus-visible,.workshop-secondary:focus-visible,.workshop-icon:focus-visible,.workshop-owned-copy:focus-visible { outline:2px solid #c4f3da; outline-offset:2px; }
.workshop-rarity {
  display:inline-flex; align-items:center; justify-content:center; gap:4px; width:max-content; max-width:100%; padding:3px 7px;
  border:1px solid rgba(var(--rarity-rgb,218,224,227),.5); border-radius:5px;
  background:rgba(var(--rarity-rgb,218,224,227),.12); color:rgb(var(--rarity-rgb,218,224,227));
  font:800 11px/1 Manrope,sans-serif; white-space:nowrap;
}
.workshop-rarity svg { width:.9em; height:.9em; fill:currentColor; }
.trade-card-chart-top .workshop-rarity { font-size:10px; margin-left:auto; }
.day-card-dialog .day-card-change { position:absolute; z-index:5; top:0; left:12px; min-height:31px; }
.day-showcase-shell.is-first-card-reveal { animation:workshopFirstLook .86s cubic-bezier(.16,.8,.22,1) both; }
.is-first-card-reveal .workshop-rarity { animation:workshopRarityReveal 1s .25s ease both; }
@keyframes workshopFirstLook {
  0% { opacity:0; transform:perspective(900px) translateY(44px) rotateY(-72deg) scale(.85); }
  54% { opacity:1; transform:perspective(900px) translateY(-9px) rotateY(9deg) scale(1.03); }
  100% { opacity:1; transform:none; }
}
@keyframes workshopRarityReveal {
  42% { box-shadow:0 0 20px rgba(var(--rarity-rgb,218,224,227),.58); }
}
.trade-dialog.pokemon-workshop-dialog {
  isolation:isolate; position:relative; z-index:2; width:min(650px,100%); max-height:calc(100dvh - 40px);
  padding:0; border:1px solid #374540; border-radius:8px; background:#111615; color:#f2f6f4;
}
.workshop-panel { padding:16px 20px 18px; min-width:0; }
.workshop-heading { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid #2b3532; }
.workshop-heading h3 { margin:0; font-size:19px; }
.workshop-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.workshop-actions button:last-child { margin-left:auto; }
.workshop-status { min-height:20px; margin:9px 0; color:#d2e8de; text-align:center; font-size:13px; overflow-wrap:anywhere; }
.workshop-wheel-panel { max-width:960px; margin:0 auto; padding:26px 0 8px; text-align:center; }
.workshop-wheel-panel h2 { margin:0 0 16px; font-size:30px; }
.workshop-wheel-layout { display:grid; justify-items:center; min-height:220px; }
.workshop-wheel-stage {
  position:relative; isolation:isolate; width:min(480px,100%,63dvh); aspect-ratio:1; margin:4px auto 0; display:grid; place-items:center;
  border-radius:50%; background:#22282a; box-shadow:0 18px 45px #0008;
}
.workshop-wheel-stage::after {
  content:""; position:absolute; z-index:2; top:1%; width:8%; aspect-ratio:1.03; clip-path:polygon(0 0,100% 0,50% 100%);
  background:#b9efd3;
}
.workshop-wheel {
  position:absolute; inset:2.6%; border-radius:50%; overflow:hidden;
  background:conic-gradient(var(--segments));
}
.workshop-wheel .wheel-sector { position:absolute; inset:0; display:grid; justify-items:center; align-items:start; transform:rotate(var(--angle)); }
.workshop-wheel .wheel-sector span { display:grid; justify-items:center; gap:3px; margin-top:9%; color:#fff8ee; line-height:1; }
.wheel-sector b { display:grid; justify-items:center; font:800 23px/1 'JetBrains Mono',monospace; text-shadow:0 1px #0002; }
.wheel-sector small { margin-top:3px; font:800 10px/1 Manrope,sans-serif; }
.workshop-wheel-hub {
  position:relative; z-index:1; display:grid; justify-items:center; align-content:center; gap:4px; width:24%; aspect-ratio:1;
  border:0; border-radius:50%; background:#b9efd3;
  color:#18382a; box-shadow:0 5px 18px #0008; cursor:pointer;
  font:800 14px Manrope,sans-serif;
}
.workshop-wheel-hub:enabled:hover { background:#d2f7e5; }
.workshop-wheel-hub:enabled:active { scale:.97; }
.workshop-wheel-hub:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.workshop-wheel-hub:disabled { cursor:default; color:#e2e6e4; background:#191e20; }
.workshop-wheel-hub svg { width:21%; fill:currentColor; }
.workshop-wheel-result { min-height:60px; margin-top:12px; padding:0 8px; }
.workshop-wheel-result .workshop-status { margin-bottom:4px; color:#e9f3ee; font-size:15px; font-weight:800; }
.workshop-wheel-result small { font:650 11px 'JetBrains Mono',monospace; color:#bfc2cf; }
.is-wheel-winner .workshop-wheel-result { animation:workshopWheelWin .55s cubic-bezier(.2,.7,.2,1); }
@keyframes workshopWheelWin { from { opacity:.5; transform:translateY(8px) scale(.92); } 55% { transform:translateY(0) scale(1.06); } to { opacity:1; transform:none; } }
.workshop-pack {
  --seal-height:10%; position:relative; isolation:isolate; width:min(216px,62%,27dvh); aspect-ratio:6/11;
  margin:22px auto 14px; user-select:none; filter:drop-shadow(0 11px 20px #000b);
}
.workshop-pack-face {
  display:block; width:100%; height:100%; object-fit:fill; pointer-events:none;
  clip-path:inset(var(--seal-height) 0 0); border-radius:4px;
}
.workshop-pack-cap {
  position:absolute; z-index:2; inset:0 0 auto; height:var(--seal-height); border-radius:4px 4px 0 0;
  background:var(--pack-art) center top/100% auto no-repeat;
  transform:translateX(var(--tear,0px)); touch-action:none;
}
.workshop-pack-light {
  position:absolute; z-index:1; top:var(--seal-height); left:3%; right:3%; height:3px; translate:0 -50%; border-radius:50%;
  background:#fffcdf; box-shadow:0 0 8px 2px #fff3aa,0 -8px 22px 5px #f9b349,0 8px 25px 6px #fa846fb3;
  opacity:var(--seal-energy,0); pointer-events:none; transform-origin:left; scale:var(--seal-progress,0) 1;
}
.is-cut-left .workshop-pack-light { transform-origin:right; }
.workshop-pack-light::after {
  content:""; position:absolute; inset:-50px -8% -18px; background:radial-gradient(ellipse at 50% 72%,#fff0aa76,transparent 63%);
  transform-origin:center bottom; pointer-events:none;
}
.is-sealed .workshop-pack-cap { cursor:grab; }
.is-sealed .workshop-pack-cap::after {
  content:""; position:absolute; inset:2px 0 0;
  border-bottom:1px dashed #fff2bd8f; box-shadow:inset 0 -5px 10px #ffc66928; pointer-events:none;
}
.is-sealed .workshop-pack-cap:active,.pack-theater-stack:active { cursor:grabbing; }
.is-torn .workshop-pack-cap { animation:workshopTear .48s cubic-bezier(.25,.75,.38,1) both; }
.is-torn .workshop-pack-light { animation:workshopSealLight .48s ease-out both; }
@keyframes workshopTear { 22% { translate:12px -9px; } to { translate:var(--tear-end,170px) -145px; rotate:23deg; opacity:0; } }
@keyframes workshopSealLight {
  from { opacity:.7; scale:.72; }
  32% { opacity:1; scale:1.13 1.8; }
  to { opacity:.3; scale:1.04 .65; }
}
html:has(.trade-modal.open .is-pack-theater) { scrollbar-gutter:auto; }
.trade-modal:has(.is-pack-theater) { padding:0; }
.trade-dialog.pokemon-workshop-dialog.is-pack-theater {
  max-height:none; width:100%; height:100dvh; padding:0; overflow:hidden; border:0; border-radius:0; background:#101419;
}
.is-pack-theater .workshop-panel { height:100%; padding:0; }
.is-pack-theater .workshop-heading { position:absolute; inset:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) auto auto; z-index:6; margin:0; padding:0; border:0; }
.is-pack-theater .workshop-heading h3 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.is-pack-theater .workshop-heading button { background:#20272c; border-color:transparent; color:#e6efee; }
.is-pack-theater .workshop-heading button:hover { background:#344043; }
.pack-theater-board {
  --pack-width:min(285px,72vw,max(86px,calc((100dvh - 152px)*.49)));
  --pull-width:min(314px,80vw,max(95px,calc((100dvh - 168px)*.65)));
  --object-center:45%;
  position:absolute; inset:0; isolation:isolate; overflow:hidden; color:#eff4f2;
  background:linear-gradient(145deg,#121919,#20292e 44%,#151c26 66%,#101216);
}
.pack-theater-board::before {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0; transition:opacity .4s ease;
  background:linear-gradient(160deg,#201c30,#2b333c 56%,#11272a);
}
.pack-theater-board.is-rare-pull::before { opacity:1; }
.pack-theater-gallery { position:absolute; z-index:0; pointer-events:none; inset:18% auto auto max(4%,calc(50% - 625px)); width:min(26vw,390px); height:54%; }
.pack-theater-gallery img {
  position:absolute; object-fit:contain; width:48%; height:auto; aspect-ratio:63/88; opacity:.27; border-radius:6px;
  filter:saturate(.72) brightness(.81); box-shadow:0 18px 42px #0008;
}
.pack-theater-gallery img:nth-child(1) { left:7%; top:14%; transform:rotate(-21deg); }
.pack-theater-gallery img:nth-child(2) { left:36%; top:3%; transform:rotate(13deg); }
.pack-theater-gallery img:nth-child(3) { left:27%; top:27%; transform:rotate(-6deg); opacity:.38; }
.pack-theater-odds {
  position:absolute; z-index:5; right:max(22px,5%,calc(50% - 620px)); top:var(--object-center); translate:0 -50%;
  width:min(21vw,218px); color:#e7efeb; padding:12px 14px; border-radius:8px; background:#12191cee;
}
.pack-theater-odds summary { width:max-content; line-height:1.65; cursor:pointer; font-size:13px; font-weight:800; }
.pack-theater-odds table { width:100%; margin-top:6px; border-collapse:collapse; font-size:11px; }
.pack-theater-odds th,.pack-theater-odds td { padding:5px 0; border:0; text-transform:none; letter-spacing:0; }
.pack-theater-odds th { text-align:left; color:rgb(var(--rarity-rgb,195,204,201)); font-weight:700; }
.pack-theater-odds td { text-align:right; font-family:'JetBrains Mono',monospace; }
.pack-theater-wrapper {
  position:absolute; z-index:4; top:var(--object-center); left:50%; width:var(--pack-width); translate:-50% -50%;
}
.pack-theater-wrapper .workshop-pack { width:100%; margin:0; filter:drop-shadow(0 16px 25px #1d3b6a50); }
.pack-model-canvas { position:absolute; z-index:3; inset:0; width:100%; height:100%; pointer-events:none; }
.has-pack-model .workshop-pack-face,.has-pack-model .workshop-pack-cap { opacity:0; }
.has-pack-model .workshop-pack { filter:none; }
.has-pack-model .workshop-pack-cap::after { display:none; }
.is-opening .pack-theater-wrapper { animation:packWrapperFalls .82s cubic-bezier(.35,.06,.61,1) both; }
.is-opening .pack-theater-wrapper.has-pack-model { animation:none; }
@keyframes packWrapperFalls {
  0%,32% { transform:translateY(0); opacity:1; }
  80% { opacity:1; }
  to { transform:translateY(67dvh); opacity:0; }
}
.pack-theater-stack {
  position:absolute; z-index:2; left:50%; top:var(--object-center); width:var(--pull-width); aspect-ratio:63/88; translate:-50% -50%;
  opacity:0; touch-action:pan-y; cursor:grab; perspective:900px; outline:none;
}
.pack-theater-stack:focus-visible .pack-theater-face .pack-theater-print { outline:2px solid #b9efd3; outline-offset:3px; }
.is-opening .pack-theater-stack { animation:packFirstCardRises .82s cubic-bezier(.2,.66,.32,1) both; }
.is-revealing .pack-theater-stack { opacity:1; }
@keyframes packFirstCardRises {
  0%,32% { transform:translateY(61dvh) scale(.87); opacity:0; }
  37% { opacity:1; }
  to { transform:translateY(0) scale(1); opacity:1; }
}
.pack-theater-face,.pack-theater-peek { position:absolute; inset:0; pointer-events:none; }
.pack-theater-face { z-index:1; transform:translateX(var(--swipe,0px)); transform-style:preserve-3d; }
.pack-theater-peek { opacity:0; }
.pack-theater-peek.is-peeking { opacity:1; }
.pack-theater-print {
  position:relative; width:100%; height:100%; display:grid; place-items:center; overflow:hidden; border-radius:6px;
  background:#20272b; box-shadow:0 10px 30px #02050760; color:#e3edec; font-weight:800;
}
.pack-theater-print img { display:block; width:100%; height:100%; object-fit:contain; user-select:none; }
.pack-theater-new {
  position:absolute; z-index:2; left:0; bottom:calc(100% + 5px); padding:2px 7px; border-radius:6px;
  background:#9e3055; color:#fff7fc; font:800 10px/1.35 Manrope,sans-serif; text-transform:uppercase;
}
.is-rare-pull .pack-theater-face .pack-theater-print { animation:packFoilTurn .72s cubic-bezier(.2,.72,.24,1) both; }
.is-rare-pull .pack-theater-face .pack-theater-print::after {
  content:""; position:absolute; inset:-18%; pointer-events:none;
  background:linear-gradient(112deg,transparent 38%,#f8f3ff92 46%,#fff9dbec 50%,#a4e3f5aa 54%,transparent 64%);
  animation:packFoilShine .93s .12s ease-out both;
}
@keyframes packFoilTurn {
  from { transform:rotateY(-12deg) scale(.99); }
  36% { transform:rotateY(56deg) scale(.91); }
  72% { transform:rotateY(-8deg) scale(1.01); }
  to { transform:none; }
}
@keyframes packFoilShine { from { transform:translateX(-85%); } to { transform:translateX(85%); } }
.pack-theater-reflections { position:absolute; inset:0; z-index:1; pointer-events:none; opacity:0; transition:opacity .3s; }
.is-rare-pull .pack-theater-reflections { opacity:1; }
.pack-theater-reflections i {
  position:absolute; width:18px; height:18px; background:#fff9ec;
  clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
}
.pack-theater-reflections i:nth-child(1) { top:21%; left:calc(50% - var(--pull-width)*.68); }
.pack-theater-reflections i:nth-child(2) { top:32%; right:calc(50% - var(--pull-width)*.67); scale:.55; }
.pack-theater-reflections i:nth-child(3) { top:63%; right:calc(50% - var(--pull-width)*.65); }
.pack-theater-reflections i:nth-child(4) { top:70%; left:calc(50% - var(--pull-width)*.61); scale:.65; }
.pack-theater-footer {
  position:absolute; z-index:4; left:50%; top:calc(var(--object-center) + var(--pack-width)*.917 + 16px); translate:-50% 0;
  width:min(440px,94%); display:grid; justify-items:center; gap:10px; text-align:center;
}
.is-revealing .pack-theater-footer { top:calc(var(--object-center) + var(--pull-width)*.70 + 16px); }
.is-opening .pack-theater-footer { visibility:hidden; }
.pack-theater-meta {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px;
  color:#d4e3dd; font:800 12px/1.4 Manrope,sans-serif;
}
.pack-theater-meta .workshop-rarity { background:#1c2427; border-color:#6b7d7d; }
.pack-rarity-marks { display:inline-flex; gap:2px; }
.pack-rarity-marks svg { width:14px; height:14px; fill:rgb(var(--rarity-rgb,254,248,221)); }
.pack-theater-progress { min-width:31px; font-family:'JetBrains Mono',monospace; }
.pack-theater-error { margin:0; color:#ffb7c9; font-size:12px; }
.pack-theater-error:empty { display:none; }
.pack-theater-controls { display:flex; align-items:center; gap:6px; }
.pack-theater-controls [hidden] { display:none; }
.pack-theater-controls button { min-height:34px; color:#173128; background:#b9efd3; border-color:transparent; }
.pack-theater-controls button:enabled:hover { background:#d5f8e7; }
.pack-theater-controls .workshop-icon { background:#283437; color:#e6efec; }
.pack-theater-controls .workshop-icon:enabled:hover { background:#39484b; }
.workshop-pull-caption { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:7px; text-align:center; }
.workshop-pull-caption small,.workshop-swap-current small,.workshop-owned-copy small { color:#b3c3bd; }
.workshop-odds { margin:10px 0 0; color:#b4c8bd; font-size:11px; }
.workshop-odds summary { width:max-content; margin-inline:auto; cursor:pointer; }
.workshop-odds dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:5px 0; }
.workshop-odds dl div { display:flex; justify-content:space-between; gap:4px; padding:4px 6px; border-bottom:1px solid #3a4c44; }
.workshop-odds dd { margin:0; }
.workshop-swap-current { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; min-height:57px; }
.workshop-swap-current img { width:36px; aspect-ratio:63/88; object-fit:contain; }
.workshop-swap-current b,.workshop-swap-current small { display:block; margin-bottom:3px; }
.workshop-swap-current > span { margin-left:auto; }
.workshop-swap-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(104px,125px) minmax(104px,125px); gap:6px; margin-bottom:8px; }
.workshop-swap-filters input,.workshop-swap-filters select {
  width:100%; min-width:0; height:36px; box-sizing:border-box; padding:6px 8px; border:1px solid #3b4a43; border-radius:7px;
  background:#1b2421; color:#edf4f0; font:750 12px Manrope,sans-serif; outline-color:#b5e9d2;
}
.workshop-swap-filters select { color-scheme:dark; }
.workshop-swap-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start; gap:7px; min-height:120px; max-height:41dvh; overflow:auto; padding:3px; }
.workshop-swap-grid p { grid-column:1/-1; }
.workshop-swap-pages,.workshop-swap-page-buttons { display:flex; align-items:center; gap:6px; }
.workshop-swap-pages { justify-content:space-between; min-height:34px; padding-top:5px; }
.workshop-swap-page-buttons .workshop-icon { width:30px; min-height:28px; line-height:1; }
.workshop-swap-page-buttons .workshop-icon:disabled { opacity:.45; cursor:default; }
.workshop-swap-pages + .workshop-status:empty { min-height:0; margin:0 0 7px; }
.workshop-owned-copy {
  min-width:0; display:grid; align-content:start; justify-items:start; gap:5px; padding:8px;
  border:1px solid #34413d; border-radius:7px; background:#1a2421; color:#edf7f3; text-align:left; cursor:pointer;
  transition:background .2s,border-color .2s; overflow-wrap:anywhere;
}
.workshop-owned-copy img { width:100%; height:110px; display:block; object-fit:contain; }
.workshop-owned-copy b { font-size:12px; }
.workshop-owned-copy small { font-size:10px; }
.workshop-owned-copy:enabled:hover { background:#243632; border-color:#7b9d8e; }
.workshop-owned-copy[aria-pressed="true"] { border-color:#b8f1d3; background:#2a483c; }
.workshop-owned-copy:disabled { cursor:default; }
.workshop-owned-copy:disabled img { filter:saturate(.66); }
.workshop-panel [hidden] { display:none; }
@media(max-width:879px),(max-height:474px) {
  .pack-theater-gallery { inset:23% auto auto 0; width:32vw; opacity:.48; }
  .pack-theater-odds { top:max(14px,env(safe-area-inset-top)); left:14px; right:auto; translate:none; width:max-content; max-width:calc(100% - 76px); padding:7px 10px; }
  .pack-theater-odds[open] { width:180px; }
}
@media(max-width:550px) {
  .pokemon-collection-page { --collection-gutter:12px; }
  .pokemon-collection-hero h2 { font-size:24px; }
  .pokemon-collection-progress { width:40%; }
  .pokemon-collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 9px; }
  .pokemon-collection-search { min-width:120px; }
  .pokemon-collection-tabs { flex-basis:100%; }
  .workshop-wheel-panel { padding-inline:12px; }
  .workshop-panel { padding:11px 12px 14px; }
  .workshop-swap-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workshop-swap-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workshop-swap-filters input { grid-column:1/-1; }
  .workshop-odds dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .day-card-dialog .day-card-change { top:4px; left:7px; padding-inline:7px; font-size:10px; }
  .day-card-dialog:has(.day-card-change) .day-card-date { max-width:calc(100% - 153px); margin-left:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .trade-card-chart-top .workshop-rarity { font-size:9px; padding-inline:4px; }
  .workshop-wheel-panel { padding-top:18px; }
  .workshop-wheel .wheel-sector b { font-size:16px; }
  .workshop-wheel .wheel-sector small { font-size:8px; }
  .workshop-wheel-hub { font-size:11px; }
  .pokemon-workshop-bar .workshop-primary { min-height:32px; padding-inline:7px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  .day-showcase-shell.is-first-card-reveal,.is-first-card-reveal .workshop-rarity,.is-torn .workshop-pack-cap,.is-torn .workshop-pack-light,.is-wheel-winner .workshop-wheel-result,.is-rare-pull .pack-theater-face .pack-theater-print { animation:none; }
  .is-rare-pull .pack-theater-face .pack-theater-print::after { display:none; }
  .workshop-primary,.workshop-secondary,.workshop-icon,.workshop-owned-copy { transition:none; }
  .pokemon-dex-card:not(.missing) .pokemon-dex-print,.pokemon-progress-track span { transition:none; }
}
