:root {
  --motion-count-ms: 300;
  --motion-mark: 433ms;
  --motion-arrive: 360ms;
  --motion-burst: 560ms;
  --motion-out: cubic-bezier(.2,.8,.2,1);
}
.market-object { display:block; width:64px; height:64px; object-fit:contain; }
.pagehead > .market-object { flex:none; width:52px; height:52px; }
.flow-content > .market-object,.identity-link > .market-object { margin:0 auto var(--space-3); }
#panel-body > .market-object { float:right; width:48px; height:48px; }
.welcome-fuzzy { display:block; margin-bottom:var(--space-4); }
.welcome-fuzzy img { display:block; width:clamp(76px,14vh,124px); height:auto; }
.achievement-art .fuzzy-pose { display:block; }
.achievement-art .fuzzy-pose img { aspect-ratio:1; object-fit:contain; animation-duration:var(--motion-arrive); animation-timing-function:var(--motion-out); }
.achievement-art .success-check,.achievement-art > .market-object {
  position:absolute; right:4%; bottom:5%; width:44px; height:44px;
}
.success-check { display:grid; place-items:center; background:var(--money-green); color:var(--on-green); border-radius:50%; }
.success-check svg { width:26px; height:26px; }
.achievement-art > .market-object { width:58px; height:58px; animation:none; }
.achievement .burst { z-index:1; }
.achievement .burst i { animation-duration:var(--motion-burst); animation-timing-function:var(--motion-out); }
.foot .refresh-market { display:none; color:inherit; background:transparent; border:0; font:inherit; cursor:pointer; }
.pull-enabled { overscroll-behavior-y:contain; }
.pull-enabled .foot .refresh-market { display:inline-flex; align-items:center; min-height:44px; }
.market-pull {
  position:fixed; z-index:30; left:50%; top:max(calc(env(safe-area-inset-top) + 10px), 14px);
  width:40px; height:40px; border-radius:50%; background:var(--surface2); color:var(--ink);
  display:grid; place-items:center; opacity:0; visibility:hidden; pointer-events:none;
  transform:translate(-50%,calc(-16px + var(--pull,0) * 32px));
}
.market-pull[data-state] { visibility:visible; opacity:var(--pull,1); }
.market-pull svg { width:22px; height:22px; transform:rotate(calc(var(--pull,0) * 135deg)); }
.market-pull[data-state="ready"] { color:var(--money-green); }
.market-pull[data-state="refreshing"] { color:var(--money-green); transform:translate(-50%,16px); }
@media (prefers-reduced-motion: no-preference) {
  .success-check svg { animation:check-in var(--motion-mark) var(--motion-out) backwards; }
  .badge-reveal > .market-object { animation:badge-in 600ms var(--motion-out) backwards; }
  .market-pull[data-state="refreshing"] svg { animation:refresh-spin 800ms linear infinite; }
  .earn-featured .earn-art :is(.earn-character,.earn-publisher) { rotate:var(--art-angle,0deg); }
  .earn-featured .earn-art .earn-publisher { scale:1.06; }
}
@keyframes check-in { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }
@keyframes badge-in { from { opacity:0; transform:translateY(8px) rotate(-12deg) scale(.8); } to {opacity:1;transform:none;} }
@keyframes refresh-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:0s!important; scroll-behavior:auto!important; }
  .burst { display:none; }
  .market-pull,.market-pull[data-state="refreshing"] { transform:translateX(-50%); }
  .market-pull svg { transform:none; }
}
@media (max-height:580px) {
  .welcome-fuzzy img,.flow-content > .market-object { width:46px; height:46px; }
  .welcome-fuzzy,.flow-content > .market-object { margin-bottom:var(--space-2); }
}

.chrome-object { display:block; width:72px; height:72px; object-fit:contain; background:#000; border-radius:var(--radius-card); }
.pagehead > .chrome-object { flex:none; width:56px; height:56px; }
.flow-content > .chrome-object { width:96px; height:96px; margin:0 0 var(--space-4); }
.cash-medal .chrome-object { width:100%; height:100%; border-radius:inherit; }
.cash-badge:is(.locked,.unknown) .chrome-object { filter:grayscale(1); opacity:.65; }
.achievement-art > .chrome-object { position:absolute; right:2%; bottom:3%; width:70px; height:70px; animation:none; }
.earn-section h2:has(.chrome-object) { display:flex; align-items:center; gap:var(--space-2); }
.earn-section h2 .chrome-object { width:44px; height:44px; border-radius:12px; }
.earn-type:has(.chrome-object) { display:flex; align-items:center; gap:4px; padding-left:4px; }
.earn-type .chrome-object { width:24px; height:24px; border-radius:50%; }
.earn-empty > .chrome-object,#main > .chrome-object:has(+ .empty) { margin:var(--space-4) auto; width:96px; height:96px; }
.tabs.category-tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--space-2); max-width:44rem; overflow:visible; }
.tabs.category-tiles a { display:grid; place-items:center; gap:var(--space-1); padding:var(--space-2) 2px; background:#000; color:var(--muted); border:0; min-width:0; border-radius:var(--radius-card); }
.tabs.category-tiles a[aria-current] { background:var(--surface2); color:var(--ink); font-weight:700; }
.category-tiles .chrome-object { width:clamp(42px,12vw,70px); height:auto; border-radius:50%; }
@media (prefers-reduced-motion:no-preference) {
  .badge-reveal > .chrome-object { animation:badge-in 600ms var(--motion-out) backwards; }
}

.cash-badge-info .turning-clover .chrome-object { width:128px; height:128px; }
.pad-keys[hidden],.amount-presets[hidden] { display:none!important; }

.flow-disclosure { color:var(--muted); font-size:12px; line-height:1.4; }

@media (max-width:767px) and (prefers-reduced-motion:no-preference) {
  #panel[open],dialog.market-onboarding[open] {
    animation:sheet-enter 500ms cubic-bezier(.1,.82,.18,1) both;
  }
}
@keyframes sheet-enter {
  from { transform:translateY(min(62vh,500px)); }
  to { transform:none; }
}
