:root {
  color-scheme: dark;
  --pink-0: #c9c2ff;
  --pink-1: #9b8cff;
  --pink-2: #7a68eb;
  --pink-3: #5948c9;
  --purple-1: #718cff;
  --purple-2: #586fe7;
  --blue-1: #66ccff;
  --green-1: #66ff73;
  --orange-1: #ffd966;
  --red-1: #ff6666;
  --bg-0: #070914;
  --bg-1: #0c1020;
  --bg-2: #141a2d;
  --bg-3: #202a47;
  --bg-4: #2c3a60;
  --panel: rgba(22, 28, 48, .94);
  --panel-solid: #181e33;
  --panel-hover: #303b60;
  --text: #fff;
  --text-soft: #e5e9ff;
  --muted: #aeb6d4;
  --border: rgba(255, 255, 255, .09);
  --success: #66ffb3;
  --danger: #ff6680;
  --warning: #ffd966;
  --shadow: 0 18px 55px rgba(0, 0, 0, .38);
  --easing: cubic-bezier(.22, 1, .36, 1);
  --font: "Nunito", "M PLUS Rounded 1c", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--font);
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; overflow: hidden !important; width: 1px !important; height: 1px !important; padding: 0 !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { min-width: 320px; background: var(--bg-0); }
html.market-loading { overflow: hidden; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 7%, rgba(155,140,255,.18), transparent 27rem),
    radial-gradient(circle at 34% 88%, rgba(113,140,255,.13), transparent 34rem),
    linear-gradient(138deg, #070811 0%, #111426 48%, #090a13 100%);
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -18%;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 26%, rgba(155,140,255,.055) 27%, rgba(155,140,255,.055) 40%, transparent 41%),
    linear-gradient(118deg, transparent 55%, rgba(113,140,255,.05) 56%, rgba(113,140,255,.05) 66%, transparent 67%);
  filter: blur(2px);
  animation: background-drift 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .21;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,.018) 2px 3px);
}
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

/* lazer-style transition screen */
.game-loader {
  --loader-progress: 0%;
  --space-accent-rgb: 72, 174, 255;
  --space-secondary-rgb: 73, 111, 246;
  --space-tertiary-rgb: 63, 225, 231;
  --space-deep-rgb: 4, 19, 45;
  --space-mid-rgb: 8, 45, 91;
  --space-soft-rgb: 205, 235, 255;
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 20px;
  color: #fff;
  background: rgb(var(--space-deep-rgb));
  opacity: 1;
  transition: opacity .24s var(--easing), visibility .24s;
}
.game-loader[data-loader-theme="notifications"] {
  --space-accent-rgb: 48, 219, 225;
  --space-secondary-rgb: 57, 132, 238;
  --space-tertiary-rgb: 84, 246, 174;
  --space-deep-rgb: 3, 28, 39;
  --space-mid-rgb: 5, 66, 80;
  --space-soft-rgb: 204, 255, 250;
}
.game-loader[data-loader-theme="collection"] {
  --space-accent-rgb: 159, 105, 255;
  --space-secondary-rgb: 83, 112, 255;
  --space-tertiary-rgb: 226, 98, 239;
  --space-deep-rgb: 21, 10, 51;
  --space-mid-rgb: 54, 31, 103;
  --space-soft-rgb: 236, 222, 255;
}
.game-loader[data-loader-theme="create"] {
  --space-accent-rgb: 255, 151, 82;
  --space-secondary-rgb: 255, 91, 164;
  --space-tertiary-rgb: 255, 210, 112;
  --space-deep-rgb: 48, 16, 37;
  --space-mid-rgb: 103, 39, 69;
  --space-soft-rgb: 255, 231, 211;
}
html.market-loading .game-loader, .game-loader.is-active { display: grid; }
.game-loader.is-leaving { visibility: hidden; opacity: 0; }
.game-loader::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: -25%;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(var(--space-secondary-rgb), .29), transparent 31%),
    radial-gradient(ellipse at 76% 68%, rgba(var(--space-accent-rgb), .23), transparent 34%),
    radial-gradient(ellipse at 54% 13%, rgba(var(--space-tertiary-rgb), .15), transparent 26%);
  filter: blur(16px);
  animation: loader-nebula-drift 14s ease-in-out infinite alternate;
}
.game-loader::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -40%;
  opacity: .48;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(167,210,255,.55) 0 .8px, transparent 1.2px);
  background-position: 0 0, 34px 51px;
  background-size: 98px 98px, 137px 137px;
  animation: loader-star-drift 18s linear infinite;
}
.loader-space {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.loader-space i {
  position: absolute;
  width: 38vmin;
  height: 38vmin;
  border: 1px solid rgba(var(--space-soft-rgb), .1);
  border-radius: 50%;
  opacity: .5;
  box-shadow: inset 0 0 80px rgba(var(--space-accent-rgb), .05), 0 0 80px rgba(var(--space-secondary-rgb), .05);
}
.loader-space i:nth-child(1) { top: -14vmin; left: -9vmin; }
.loader-space i:nth-child(2) { right: -18vmin; bottom: -7vmin; width: 52vmin; height: 52vmin; }
.loader-space i:nth-child(3) { top: 20%; right: 9%; width: 12vmin; height: 12vmin; }
.loader-screen {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 580px);
  padding: 30px;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--space-soft-rgb), .25);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 88% 4%, rgba(var(--space-accent-rgb), .18), transparent 46%),
    linear-gradient(145deg, rgba(var(--space-mid-rgb), .9), rgba(var(--space-deep-rgb), .96) 58%, rgba(var(--space-mid-rgb), .82));
  box-shadow:
    0 34px 90px rgba(0,0,0,.48),
    0 0 60px rgba(var(--space-accent-rgb), .14),
    inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(125%);
}
.loader-screen::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgb(var(--space-secondary-rgb, 84, 115, 255)), rgb(var(--space-accent-rgb, 151, 115, 255)), transparent);
  box-shadow: 0 0 22px rgba(var(--space-accent-rgb, 151, 115, 255), .5);
}
.loader-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 250px;
  top: -150px;
  right: -90px;
  border: 42px solid rgba(var(--space-accent-rgb, 151, 115, 255), .055);
  border-radius: 50%;
}
.loader-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.loader-brand > span { display: grid; gap: 1px; }
.loader-brand strong { font-size: 1.02rem; font-weight: 900; letter-spacing: -.01em; }
.loader-brand small { color: rgba(210,220,248,.62); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.loader-logo {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(var(--space-accent-rgb, 151, 115, 255), .14), 0 0 30px rgba(var(--space-accent-rgb, 151, 115, 255), .18);
  animation: loader-logo-float 3.2s ease-in-out infinite;
}
.loader-logo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-top-color: rgba(var(--space-soft-rgb, 190, 202, 255), .8);
  border-right-color: rgba(var(--space-accent-rgb, 151, 115, 255), .22);
  border-radius: 50%;
  animation: loader-orbit 3.8s linear infinite;
}
.loader-logo img { display: block; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.loader-destination {
  position: relative;
  margin: 34px 0 30px;
  padding: 24px 25px 26px;
  overflow: hidden;
  border: 1px solid rgba(var(--space-accent-rgb), .3);
  border-radius: 15px;
  background:
    radial-gradient(ellipse at 91% -20%, rgba(var(--space-tertiary-rgb), .19), transparent 58%),
    linear-gradient(128deg, rgba(var(--space-mid-rgb), .76), rgba(var(--space-deep-rgb), .82));
  box-shadow:
    0 18px 38px rgba(var(--space-deep-rgb), .32),
    0 0 30px rgba(var(--space-accent-rgb), .1),
    inset 0 1px rgba(255, 255, 255, .075);
}
.loader-destination::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -44%;
  width: 54%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--space-soft-rgb), .12);
  border-radius: 50%;
  box-shadow: 0 0 54px rgba(var(--space-accent-rgb), .12);
}
.loader-destination p {
  margin: 0 0 7px;
  color: rgb(var(--space-soft-rgb, 177, 197, 255));
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.loader-destination strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(2.25rem, 8vw, 3.55rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.loader-progress-copy {
  display: flex;
  min-height: 28px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.loader-status {
  margin: 0;
  color: rgba(220,228,250,.7);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.loader-progress-copy > strong {
  color: rgb(var(--space-soft-rgb, 188, 202, 255));
  font-variant-numeric: tabular-nums;
  font-size: 1.14rem;
  line-height: 1;
}
.loader-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8px;
  margin: 12px 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.085);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
.loader-track span {
  display: block;
  width: var(--loader-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--space-secondary-rgb, 91, 113, 255)), rgb(var(--space-accent-rgb, 151, 115, 255)), rgb(var(--space-tertiary-rgb, 91, 203, 255)));
  box-shadow: 0 0 18px rgba(var(--space-accent-rgb, 151, 115, 255), .55);
  transition: width .3s var(--easing);
}
.loader-stages {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.loader-stages li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(190,201,230,.43);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .22s var(--easing);
}
.loader-stages li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 1px;
  background: rgba(255,255,255,.08);
}
.loader-stages i {
  position: relative;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(190,201,230,.35);
  border-radius: 50%;
  background: #11182d;
  transition: border-color .22s var(--easing), background .22s var(--easing), box-shadow .22s var(--easing);
}
.loader-stages li.is-active { color: rgba(231,237,255,.9); }
.loader-stages li.is-active i {
  border-color: rgb(var(--space-soft-rgb, 188, 202, 255));
  box-shadow: 0 0 14px rgba(var(--space-accent-rgb, 151, 115, 255), .55);
}
.loader-stages li.is-complete { color: rgba(215,224,250,.72); }
.loader-stages li.is-complete i {
  border-color: rgb(var(--space-accent-rgb, 151, 115, 255));
  background: rgb(var(--space-accent-rgb, 151, 115, 255));
}

/* game overlay shell */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; padding-left: 264px; flex-direction: column; }
.site-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 264px;
  min-height: 100vh;
  padding: 26px 0 22px;
  flex-direction: column;
  background: rgba(12,16,32,.96);
  box-shadow: 12px 0 36px rgba(0,0,0,.28);
  backdrop-filter: blur(22px);
}
.site-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--pink-1) 28%, var(--purple-1) 72%, transparent);
  opacity: .65;
}
.brand { display: flex; padding: 0 24px; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; width: 54px; height: 54px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.32); transition: transform .5s var(--easing), box-shadow .5s var(--easing); }
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.07); box-shadow: 0 0 0 4px rgba(155,140,255,.32), 0 10px 28px rgba(0,0,0,.38); }
.brand-copy { display: grid; min-width: 0; line-height: 1.04; }
.brand-copy strong { overflow: hidden; font-size: 1.12rem; font-weight: 900; letter-spacing: -.025em; text-overflow: ellipsis; }
.brand-copy small { margin-top: 6px; color: var(--pink-0); font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.main-nav { display: grid; margin-top: 42px; gap: 5px; }
.main-nav a {
  position: relative;
  display: flex;
  min-height: 58px;
  padding: 0 28px 0 30px;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .25s, background .35s var(--easing), padding .45s var(--easing), transform .45s var(--easing);
}
.main-nav a::before, .main-nav .nav-icon { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; color: var(--text-soft); background: rgba(255,255,255,.055); font-size: 1rem; font-weight: 900; }
.main-nav .nav-browse::before { content: "⌕"; }
.main-nav .nav-notifications::before { display: none; }
.main-nav .nav-collection::before { content: "▦"; }
.main-nav .nav-create::before { content: "+"; }
.main-nav a::after { content: ""; position: absolute; top: 9px; right: 0; bottom: 9px; width: 5px; border-radius: 4px 0 0 4px; background: var(--pink-1); box-shadow: 0 0 14px rgba(155,140,255,.55); opacity: 0; transform: scaleY(.25); transition: opacity .22s, transform .4s var(--easing); }
.main-nav a:hover { padding-left: 37px; color: #fff; background: linear-gradient(90deg, rgba(255,255,255,.07), transparent); }
.main-nav a[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(155,140,255,.2), rgba(155,140,255,.025)); }
.main-nav a[aria-current="page"]::before, .main-nav a[aria-current="page"] .nav-icon { color: #fff; background: var(--pink-2); box-shadow: 0 0 18px rgba(155,140,255,.3); }
.main-nav a[aria-current="page"]::after { opacity: 1; transform: scaleY(1); }
.nav-count { display: grid; min-width: 24px; height: 24px; margin-left: auto; padding: 0 7px; place-items: center; border-radius: 999px; color: #fff; background: var(--purple-2); font-size: .66rem; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 0 14px rgba(88,111,231,.34); }
.header-actions { display: grid; margin-top: auto; padding: 0 20px; gap: 10px; }

.wallet { display: flex; min-height: 58px; padding: 11px 15px; align-items: center; justify-content: space-between; border-radius: 10px; text-decoration: none; background: var(--bg-3); transition: background .25s, transform .4s var(--easing); }
.wallet:hover { background: var(--bg-4); transform: translateY(-2px); }
.wallet small { color: var(--pink-0); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.wallet strong { font-size: 1.22rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.account-menu { position: relative; width: 100%; }
.account-menu summary { display: flex; width: 100%; min-height: 56px; padding: 7px; align-items: center; gap: 10px; list-style: none; border-radius: 10px; background: var(--bg-2); cursor: pointer; transition: background .25s; }
.account-menu summary:hover { background: var(--bg-4); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary img { display: block; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.account-summary-copy { display: grid; min-width: 0; }
.account-summary-copy strong { overflow: hidden; font-size: .88rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-copy small { color: var(--muted); font-size: .7rem; }
.account-popover { position: absolute; z-index: 10; bottom: 0; left: calc(100% + 14px); display: grid; width: 210px; overflow: hidden; padding: 8px; border-radius: 12px; background: #1b233b; box-shadow: var(--shadow); }
.account-popover > strong { padding: 9px 11px 12px; color: var(--pink-0); font-size: .78rem; border-bottom: 1px solid var(--border); }
.account-popover a, .account-popover button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; color: var(--text-soft); text-align: left; text-decoration: none; background: transparent; cursor: pointer; font-size: .8rem; font-weight: 700; }
.account-popover a:hover, .account-popover button:hover { color: #fff; background: var(--pink-3); }

/* screen content */
.page { width: min(calc(100% - 48px), 1480px); margin: 0 auto; flex: 1; padding: 34px 0 56px; }
.page-surface { position: relative; min-height: calc(100vh - 90px); border-radius: 16px; animation: screen-enter .55s var(--easing) both; }
.panel { background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.page-heading {
  position: relative;
  display: flex;
  min-height: 172px;
  margin-bottom: 24px;
  padding: 30px 38px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% -35%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(118deg, var(--pink-3), #50479c 56%, #22263a 100%);
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.page-heading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 52%, rgba(255,255,255,.07) 52.2%, transparent 64%); transform: translateX(-25%); animation: header-sweep 9s ease-in-out infinite; }
.page-heading > * { position: relative; z-index: 1; }
.compact-heading { min-height: 146px; }
.page-heading h1, .detail-copy h1, .auth-panel h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 900; line-height: .98; letter-spacing: -.05em; }
.page-heading p:last-child { max-width: 670px; margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: .95rem; font-weight: 600; }
.eyebrow { margin: 0 0 7px; color: var(--pink-0); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.page-heading .eyebrow { color: rgba(255,255,255,.78); }
.market-hero { min-height: 202px; align-items: center; justify-content: center; text-align: center; }
.market-hero-copy { display: grid; max-width: 760px; justify-items: center; }
.market-hero .eyebrow { margin-bottom: 9px; }
.market-hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.7rem); }
.market-hero p:last-of-type { margin: 13px auto 0; }
.market-hero .button { min-width: 158px; margin-top: 22px; }
.muted { color: var(--muted); }
.button { display: inline-flex; min-height: 43px; padding: 0 19px; align-items: center; justify-content: center; border: 0; border-radius: 8px; color: #fff; background: var(--bg-4); cursor: pointer; font-size: .83rem; font-weight: 900; text-decoration: none; box-shadow: inset 0 1px rgba(255,255,255,.06); transition: background .2s, box-shadow .2s, transform .5s var(--easing); }
.button:hover:not(:disabled) { background: #393f60; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); transform: translateY(-3px) scale(1.025); }
.button:active:not(:disabled) { transform: scale(.94); transition-duration: .08s; }
.button-primary { background: var(--pink-2); box-shadow: 0 7px 20px rgba(122,104,235,.22), inset 0 1px rgba(255,255,255,.15); }
.button-primary:hover:not(:disabled) { background: var(--pink-1); box-shadow: 0 9px 28px rgba(155,140,255,.32); }
.button-quiet { background: rgba(0,0,0,.22); }
.button-wide { width: 100%; }
.button-small { min-height: 36px; padding-inline: 15px; font-size: .75rem; }
.button:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .48; }
.notice { position: fixed; z-index: 60; top: 24px; left: calc(50% + 132px); display: flex; width: min(calc(100% - 48px), 620px); min-height: 54px; padding: 12px 17px; align-items: center; gap: 12px; border: 1px solid rgba(113,140,255,.28); border-radius: 10px; color: #fff; background: linear-gradient(135deg, rgba(34,46,82,.98), rgba(23,31,57,.98)); box-shadow: 0 18px 55px rgba(0,0,0,.4), 0 0 28px rgba(88,111,231,.12); transform: translateX(-50%); animation: notice-enter .5s var(--easing) both; }
.notice p { margin: 0; font-size: .85rem; font-weight: 700; }
.notice > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; font-weight: 900; }
.notice-error { border-left: 5px solid var(--danger); }
.notice-error > span { background: rgba(255,102,128,.17); color: var(--danger); }
.notice-success { border-left: 5px solid var(--success); }
.notice-success > span { background: rgba(102,255,179,.15); color: var(--success); }

/* browse and market panels */
.market-section { padding: clamp(18px, 3vw, 30px); border: 1px solid rgba(113,140,255,.1); border-radius: 14px; background: linear-gradient(155deg, rgba(25,32,56,.96), rgba(17,22,39,.98)); box-shadow: var(--shadow); }
.market-section + .market-section { margin-top: 22px; }
.market-section-heading, .collection-group-heading { display: flex; margin-bottom: 20px; align-items: end; justify-content: space-between; gap: 20px; }
.market-section-heading h2, .collection-group-heading h2 { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.025em; }
.market-section-heading p:last-child, .collection-group-heading p:last-child { margin: 0; color: var(--muted); font-size: .8rem; }
.browse-toolbar { display: grid; margin-bottom: 22px; padding: 10px; align-items: center; grid-template-columns: minmax(250px,1fr) auto auto; gap: 10px; border-radius: 11px; color: var(--muted); background: var(--bg-1); }
.browse-toolbar label { display: flex; align-items: center; gap: 10px; }
.browse-toolbar label > span { padding-left: 6px; font-size: .75rem; font-weight: 800; }
.browse-toolbar .badge-search { min-width: 0; height: 48px; padding: 0 15px; border-radius: 8px; background: var(--bg-3); transition: background .25s, box-shadow .25s; }
.browse-toolbar .badge-search:focus-within { background: var(--bg-4); box-shadow: inset 4px 0 var(--pink-1); }
.badge-search > svg { width: 21px; height: 21px; flex: none; color: var(--pink-0); fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.badge-search input { min-width: 0; height: 46px; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: .86rem; }
.badge-search input::placeholder { color: #858ead; }
.browse-toolbar .sold-out-toggle { min-height: 48px; padding: 0 14px; border-radius: 8px; color: var(--text-soft); background: var(--bg-3); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.browse-toolbar .sold-out-toggle:hover { color: #fff; background: var(--bg-4); }
.browse-toolbar .sold-out-toggle:focus-within { box-shadow: inset 4px 0 var(--pink-1); }
.browse-toolbar .sold-out-toggle input, .browse-toolbar .sold-out-toggle input:focus { width: 19px; height: 19px; padding: 0; flex: none; border: 0; border-radius: 5px; background: transparent; box-shadow: none; accent-color: var(--pink-1); cursor: pointer; }
.browse-toolbar .sold-out-toggle > span { padding-left: 0; white-space: nowrap; }
.browse-toolbar select { min-width: 190px; height: 48px; padding: 0 38px 0 14px; border: 0; border-radius: 8px; outline: 0; color: #fff; background: var(--bg-3); cursor: pointer; font-weight: 700; }
.browse-toolbar select:focus { box-shadow: inset 4px 0 var(--pink-1); }
.market-pagination { display: grid; width: min(100%,560px); margin: 28px auto 0; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.pagination-button { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--bg-3); font-size: .8rem; font-weight: 800; text-decoration: none; transition: background .2s, box-shadow .2s, transform .35s var(--easing); }
.pagination-button:last-child { justify-self: stretch; }
.pagination-button:hover:not(.is-disabled) { background: var(--pink-2); box-shadow: 0 8px 22px rgba(122,104,235,.2); transform: translateY(-2px); }
.pagination-button.is-disabled { color: var(--muted); cursor: default; opacity: .48; }
.market-page-status { display: grid; min-width: 108px; justify-items: center; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.market-page-status small { color: var(--pink-0); font-size: .59rem; font-weight: 900; letter-spacing: .14em; }
.market-page-status strong { font-size: .9rem; }
.market-page-status strong span { padding-inline: 4px; color: var(--muted); font-weight: 500; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 12px; }
.badge-card { position: relative; display: flex; overflow: hidden; min-width: 0; min-height: 164px; border-radius: 11px; background: var(--bg-2); box-shadow: 0 5px 16px rgba(0,0,0,.2); transition: background .25s, box-shadow .25s, transform .55s var(--easing); }
.badge-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--pink-1); opacity: 0; transform: scaleY(.25); transition: opacity .2s, transform .45s var(--easing); }
.badge-card-link { position: absolute; z-index: 2; inset: 0; border-radius: inherit; cursor: pointer; text-decoration: none; }
.badge-card-link:focus-visible { outline: 3px solid var(--pink-0); outline-offset: -4px; }
.badge-card:hover { z-index: 2; background: var(--panel-hover); box-shadow: 0 12px 28px rgba(0,0,0,.34); transform: translateX(9px) scale(1.012); }
.badge-card:hover::after { opacity: 1; transform: scaleY(1); }
.badge-art { position: relative; display: block; width: 164px; min-width: 164px; overflow: hidden; background: var(--bg-0); }
.badge-art img, .detail-art img, .preview-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.badge-art img { transition: filter .35s, transform .65s var(--easing); }
.badge-card:hover .badge-art img { filter: brightness(1.08) saturate(1.08); transform: scale(1.055); }
.official-pill, .status-pill { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(7,10,20,.82); backdrop-filter: blur(8px); font-size: .61rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.official-pill { color: var(--pink-0); }
.status-pill { right: 10px; left: auto; }
.status-pending { color: var(--warning); }
.status-rejected, .status-archived { color: var(--danger); }
.status-live { color: var(--success); }
.status-sold-out { color: var(--muted); }
.status-live::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; animation: sale-pulse 1.8s ease-in-out infinite; }
.status-pill.status-live { display: flex; align-items: center; gap: 6px; }
.badge-body { display: flex; min-width: 0; padding: 18px; flex: 1; flex-direction: column; }
.badge-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.badge-title-row h2 { min-width: 0; margin: 0; overflow: hidden; font-size: 1.07rem; font-weight: 900; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.badge-title-row a { text-decoration: none; }
.price { flex: none; color: var(--pink-0); font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.price small { font-size: .66rem; }
.creator-line { margin: 5px 0 auto; color: var(--muted); font-size: .78rem; }
.creator-line a, .detail-creator a, .collection-card a { color: var(--text-soft); text-decoration: none; }
.badge-card .creator-line a { position: relative; z-index: 3; }
.creator-line a:hover, .detail-creator a:hover, .collection-card a:hover { color: var(--pink-0); }
.supply-row { display: flex; margin-top: 15px; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.supply-track { overflow: hidden; width: 100%; height: 5px; margin-top: 8px; border: 0; border-radius: 999px; appearance: none; background: rgba(255,255,255,.08); }
.supply-track::-webkit-progress-bar { border-radius: 999px; background: rgba(255,255,255,.08); }
.supply-track::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--pink-2), var(--pink-0)); }
.supply-track::-moz-progress-bar { border-radius: 999px; background: var(--pink-1); }

/* detail screen */
.breadcrumbs { display: flex; width: 100%; min-height: 58px; margin: 0 0 14px; padding: 0 22px; align-items: center; gap: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); background: var(--bg-2); box-shadow: 0 7px 20px rgba(0,0,0,.13); font-size: .94rem; font-weight: 700; }
.breadcrumbs a { flex: none; color: var(--text-soft); font-weight: 900; text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink-0); }
.breadcrumb-separator { flex: none; color: var(--pink-0); font-size: 1.08rem; font-weight: 900; }
.breadcrumbs [aria-current="page"] { min-width: 0; overflow: hidden; color: var(--text); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.detail-layout { display: grid; min-height: 0; padding: clamp(16px,2vw,26px); align-items: stretch; grid-template-columns: minmax(220px,280px) minmax(0,1fr); gap: clamp(20px,2.4vw,34px); border: 1px solid rgba(113,140,255,.09); border-radius: 16px; background: linear-gradient(125deg, rgba(113,140,255,.1), transparent 38%), rgba(12,16,32,.82); }
.detail-art { position: relative; overflow: hidden; width: min(100%, 280px); aspect-ratio: 1; align-self: center; border-radius: 15px; background: var(--bg-2); box-shadow: 0 18px 42px rgba(0,0,0,.36); animation: artwork-enter .7s var(--easing) both; }
.detail-copy { display: grid; min-width: 0; max-width: none; align-items: stretch; grid-template-columns: minmax(0,1fr) minmax(330px,380px); gap: clamp(18px,2vw,28px); animation: detail-enter .65s .08s var(--easing) both; }
.detail-summary { min-width: 0; align-self: center; }
.detail-kicker { display: flex; margin-bottom: 12px; align-items: center; gap: 12px; }
.detail-kicker .eyebrow { margin: 0; }
.listing-pill { display: inline-flex; min-height: 25px; padding: 4px 9px; align-items: center; gap: 6px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .61rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.purchase-context { display: flex; min-height: 24px; margin-bottom: 14px; align-items: center; justify-content: flex-end; }
.purchase-availability { display: inline-flex; align-items: center; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .025em; }
.purchase-availability.is-available { color: #75ffc0; }
.purchase-availability.is-owned { color: #91c5ff; }
.purchase-availability.is-sold-out { color: var(--muted); }
.detail-copy h1 { font-size: clamp(2.1rem,3.6vw,3.45rem); }
.detail-creator { margin: 8px 0 12px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.description { min-height: 0; max-height: 6.8em; margin: 12px 0 0; overflow-y: auto; color: var(--text-soft); font-size: .84rem; line-height: 1.55; white-space: pre-wrap; scrollbar-width: thin; }
.sale-panel { position: relative; display: flex; overflow: hidden; margin: 0; padding: 20px; align-self: stretch; flex-direction: column; justify-content: center; border-radius: 13px; background: var(--bg-2); }
.sale-panel::before { content: ""; position: absolute; top: 0; right: 23px; left: 23px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--pink-2), var(--purple-1), var(--blue-1)); box-shadow: 0 0 16px rgba(155,140,255,.38); }
.sale-summary { display: flex; margin-bottom: 20px; align-items: end; justify-content: space-between; gap: 24px; }
.sale-price, .sale-stock { display: grid; }
.sale-panel small { color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sale-price > strong { margin-top: 3px; font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.sale-price > strong span { color: var(--pink-0); font-size: .9rem; letter-spacing: 0; }
.sale-stock { justify-items: end; }
.sale-stock > strong { margin-top: 6px; color: var(--text); font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sale-stock > strong span { color: var(--muted); font-size: .74rem; font-weight: 700; }
.availability { display: flex; margin-top: 15px; justify-content: flex-start; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.sale-panel .supply-track { margin-bottom: 20px; }
.review-state { padding: 11px; border-radius: 8px; background: var(--bg-3); text-align: center; text-transform: capitalize; }
.review-note { color: var(--muted); font-size: .8rem; }
.ownership-state { display: flex; min-height: 54px; margin: 0; padding-inline: 18px; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; color: var(--success); background: rgba(102,255,179,.09); font-size: .9rem; font-weight: 700; }
.detail-content-grid { display: grid; margin-top: 14px; align-items: start; grid-template-columns: minmax(0,1.42fr) minmax(360px,.78fr); gap: 14px; }
.detail-content-grid.is-single-column { grid-template-columns: minmax(0,1fr); }
.detail-aside-stack { display: grid; min-width: 0; gap: 14px; }
.detail-panel { min-width: 0; padding: clamp(20px,2.4vw,30px); border: 1px solid rgba(113,140,255,.12); border-radius: 14px; background: linear-gradient(155deg, rgba(27,35,61,.97), rgba(17,22,39,.99)); box-shadow: var(--shadow); }
.detail-panel-heading { display: flex; margin-bottom: 22px; align-items: end; justify-content: space-between; gap: 18px; }
.detail-panel-heading h2 { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.025em; }
.detail-panel-heading > p { margin: 0; color: var(--muted); font-size: .8rem; }
.detail-panel-heading > a { color: var(--pink-0); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.detail-panel-heading > a:hover { color: #fff; }
.badge-comments { min-width: 0; }
.comment-composer { display: grid; margin-bottom: 24px; padding: 15px; align-items: end; grid-template-columns: 56px minmax(0,1fr) auto; gap: 13px; border: 1px solid rgba(113,140,255,.09); border-radius: 11px; background: rgba(10,14,28,.7); }
.comment-composer > img { display: block; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.comment-composer label { min-width: 0; }
.comment-composer textarea { height: 88px; min-height: 88px; max-height: 88px; padding: 13px 14px; overflow-y: auto; resize: none; font-size: .86rem; line-height: 1.45; }
.comment-composer .button { min-height: 48px; }
.comment-sign-in { display: flex; min-height: 72px; margin-bottom: 24px; padding: 15px 18px; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid rgba(113,140,255,.09); border-radius: 11px; color: var(--muted); background: rgba(10,14,28,.7); text-decoration: none; transition: background .25s, transform .45s var(--easing); }
.comment-sign-in:hover { color: var(--text-soft); background: var(--bg-3); transform: translateY(-2px); }
.comment-sign-in span { font-size: .78rem; }
.comment-sign-in strong { color: var(--pink-0); font-size: .84rem; }
.comment-list { display: grid; gap: 10px; }
.comment-card { display: grid; padding: 15px; grid-template-columns: 54px minmax(0,1fr); gap: 13px; border: 1px solid rgba(113,140,255,.07); border-radius: 11px; background: rgba(10,14,28,.72); transition: background .2s, border-color .2s, transform .35s var(--easing); }
.comment-card:hover { border-color: rgba(155,140,255,.18); background: rgba(32,42,71,.82); transform: translateX(4px); }
.comment-avatar, .comment-avatar img { display: block; width: 54px; height: 54px; border-radius: 10px; }
.comment-avatar img { object-fit: cover; }
.comment-body { min-width: 0; }
.comment-body header { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.comment-body header a { overflow: hidden; color: #fff; font-size: .9rem; font-weight: 900; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.comment-body header a:hover { color: var(--pink-0); }
.comment-body time { flex: none; color: var(--muted); font-size: .66rem; font-weight: 700; }
.comment-body p { margin: 6px 0 0; color: var(--text-soft); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.comment-empty { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.comment-empty span { color: var(--pink-0); font-size: 1.8rem; }
.comment-empty p { margin: 0; font-size: .78rem; }
.creator-spotlight { display: grid; padding: 26px; align-items: center; justify-items: start; grid-template-columns: 132px minmax(0,1fr); column-gap: 22px; }
.creator-spotlight > .eyebrow { grid-column: 1 / -1; }
.creator-spotlight-avatar { display: block; margin-top: 8px; grid-row: 2 / 4; }
.creator-spotlight-avatar img { display: block; width: 132px; height: 132px; border: 4px solid rgba(255,255,255,.1); border-radius: 24px; object-fit: cover; box-shadow: 0 18px 34px rgba(0,0,0,.32), 0 0 0 5px rgba(155,140,255,.09); transition: transform .5s var(--easing); }
.creator-spotlight-avatar:hover img { transform: translateY(-5px) scale(1.025); }
.creator-spotlight-copy { min-width: 0; margin-top: 8px; text-align: left; }
.creator-spotlight-copy h2 { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: -.035em; }
.creator-spotlight-copy p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.creator-market-stats { display: grid; width: 100%; margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 9px; }
.creator-market-stats span { display: grid; min-height: 70px; padding: 12px; place-items: center; align-content: center; gap: 2px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.045); font-size: .68rem; text-align: center; }
.creator-market-stats strong { color: #fff; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.creator-spotlight-actions { display: grid; width: 100%; margin-top: 18px; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 9px; }
.recommendation-grid { grid-template-columns: 1fr; }
.detail-recommendations-wide { grid-column: 1 / -1; }
.detail-recommendations .badge-card { min-height: 144px; border: 1px solid rgba(113,140,255,.07); background: rgba(10,14,28,.72); }
.detail-recommendations .badge-card:hover { background: rgba(32,42,71,.82); }
.detail-recommendations .badge-art { width: 100%; min-width: 0; }

/* market activity */
.notification-heading { align-items: center; }
.notification-unread-summary { display: grid; min-width: 128px; padding: 17px 20px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: rgba(255,255,255,.78); background: rgba(10,14,28,.22); backdrop-filter: blur(12px); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-unread-summary strong { color: #fff; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.notification-center { min-height: 420px; }
.notification-toolbar { align-items: center; }
.notification-toolbar form { margin: 0; }
.notification-list { display: grid; gap: 10px; }
.notification-list > form { margin: 0; }
.notification-card { position: relative; display: grid; width: 100%; min-height: 104px; padding: 17px 19px; align-items: center; grid-template-columns: 58px minmax(0,1fr) auto auto; gap: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; color: var(--text); text-align: left; background: var(--bg-2); cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.14); transition: border-color .2s, background .25s, box-shadow .25s, transform .45s var(--easing); }
.notification-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--purple-1); opacity: 0; transform: scaleY(.3); transition: opacity .2s, transform .4s var(--easing); }
.notification-card:hover { border-color: rgba(155,140,255,.28); background: var(--panel-hover); box-shadow: 0 12px 28px rgba(0,0,0,.22); transform: translateX(7px); }
.notification-card:hover::before, .notification-card.is-unread::before { opacity: 1; transform: scaleY(1); }
.notification-card.is-unread { background: linear-gradient(105deg, rgba(88,111,231,.16), var(--bg-2) 42%); }
.notification-avatar { position: relative; display: block; width: 58px; height: 58px; }
.notification-avatar img { display: block; width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }
.notification-avatar i { position: absolute; right: -5px; bottom: -5px; display: grid; width: 25px; height: 25px; place-items: center; border: 3px solid var(--bg-2); border-radius: 50%; color: #fff; background: var(--purple-2); font-size: .67rem; font-style: normal; font-weight: 900; }
.notification-card[data-notification-type="badge_comment"] .notification-avatar i::before { content: "···"; transform: translateY(-2px); }
.notification-card[data-notification-type="badge_sale"] .notification-avatar i::before { content: "M"; }
.notification-card[data-notification-type="badge_review"] .notification-avatar i::before { content: "✓"; }
.notification-copy { display: grid; min-width: 0; gap: 3px; }
.notification-meta { display: flex; margin-bottom: 2px; align-items: center; gap: 10px; }
.notification-meta strong { color: var(--pink-0); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.notification-meta time { color: var(--muted); font-size: .67rem; font-weight: 700; }
.notification-copy > b { overflow: hidden; color: var(--text); font-size: .96rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy > span:not(.notification-meta) { overflow: hidden; color: var(--text-soft); font-size: .79rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy > small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-1); box-shadow: 0 0 14px rgba(102,204,255,.8); }
.notification-arrow { color: var(--pink-0); font-size: 2rem; font-weight: 500; line-height: 1; transition: transform .35s var(--easing); }
.notification-card:hover .notification-arrow { transform: translateX(4px); }
.notification-empty { min-height: 300px; background: transparent; box-shadow: none; }

/* forms, authentication and empty states */
.centered-view { display: grid; min-height: 72vh; place-items: center; }
.auth-panel { width: min(100%, 470px); padding: 35px; border-radius: 15px; background: var(--panel-solid); }
.auth-panel h1 { margin-bottom: 12px; }
.auth-panel > p { color: var(--muted); }
.form-stack { display: grid; gap: 18px; }
.auth-panel .form-stack { margin-top: 27px; }
.form-stack label { display: grid; gap: 8px; }
.form-stack label > span:first-child { color: var(--text-soft); font-size: .76rem; font-weight: 800; }
.form-stack label > small { color: var(--muted); font-size: .68rem; }
input, textarea { width: 100%; border: 0; border-radius: 8px; outline: 0; color: #fff; background: var(--bg-3); transition: background .2s, box-shadow .2s; }
input { height: 48px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { background: var(--bg-4); box-shadow: inset 4px 0 var(--pink-1); }
.badge-search input, .badge-search input:focus { background: transparent; box-shadow: none; }
.form-footnote { margin: 18px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.55; text-align: center; }
.empty-state { display: grid; min-height: 330px; padding: 46px; place-items: center; align-content: center; border-radius: 13px; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 13px 0 6px; font-weight: 900; }
.empty-state p { margin: 0 0 19px; color: var(--muted); }
.empty-mark { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: var(--pink-0); background: rgba(155,140,255,.13); font-size: 1.55rem; box-shadow: inset 0 0 0 3px rgba(155,140,255,.15); }
.section-empty { min-height: 270px; background: var(--bg-1); box-shadow: none; }
.search-empty { min-height: 270px; }
.creator-layout { display: grid; align-items: start; grid-template-columns: minmax(0,1.18fr) minmax(290px,.82fr); gap: 20px; }
.creator-form { padding: 27px; border-radius: 14px; background: var(--panel-solid); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 40px; }
.input-suffix b { position: absolute; top: 50%; right: 15px; color: var(--pink-0); transform: translateY(-50%); }
.upload-field { position: relative; display: flex !important; min-height: 82px; padding: 12px; align-items: center; gap: 14px !important; border: 2px dashed rgba(155,140,255,.28); border-radius: 10px; background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.upload-field:hover { border-color: var(--pink-1); background: var(--bg-3); }
.upload-field:focus-within { border-color: var(--pink-1); box-shadow: 0 0 0 4px rgba(155,140,255,.12); }
.upload-field input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.upload-button { display: inline-flex; min-width: 148px; min-height: 42px; padding: 0 18px; flex: none; align-items: center; justify-content: center; border-radius: 7px; color: #fff; background: var(--pink-2); font-size: .8rem; font-weight: 800; box-shadow: 0 6px 16px rgba(122,104,235,.2); }
.upload-copy { display: grid; min-width: 0; gap: 3px; }
.upload-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-field small { color: var(--muted); font-size: .66rem; }
.preview-column { display: grid; gap: 14px; }
.preview-art { position: relative; display: grid; overflow: hidden; aspect-ratio: 1; place-items: center; border-radius: 14px; color: var(--muted); background: var(--bg-2); }
.preview-art canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.preview-art canvas:active { cursor: grabbing; }
.preview-art canvas:focus-visible { outline: 3px solid var(--pink-0); outline-offset: -5px; }
.crop-guide { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(7,8,17,.55), inset 0 0 34px rgba(7,8,17,.16); background: linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.2) 33.3% 33.55%, transparent 33.65% 66.45%, rgba(255,255,255,.2) 66.55% 66.8%, transparent 66.9%), linear-gradient(180deg, transparent 33.2%, rgba(255,255,255,.2) 33.3% 33.55%, transparent 33.65% 66.45%, rgba(255,255,255,.2) 66.55% 66.8%, transparent 66.9%); }
.crop-controls { display: grid; padding: 16px; gap: 15px; border-radius: 12px; background: var(--panel-solid); }
.crop-controls-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crop-controls-heading > span { display: grid; gap: 2px; }
.crop-controls-heading strong { font-size: .88rem; }
.crop-controls-heading small, .crop-controls p { margin: 0; color: var(--muted); font-size: .68rem; }
.crop-zoom { display: grid !important; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px !important; color: var(--text-soft); font-size: .72rem; font-weight: 800; }
.crop-zoom input, .crop-zoom input:focus { height: 6px; padding: 0; border-radius: 999px; background: var(--bg-4); box-shadow: none; accent-color: var(--pink-1); cursor: pointer; }
.review-guidelines { padding: 21px; border-radius: 12px; background: var(--panel-solid); }
.review-guidelines h2 { margin: 0 0 10px; font-size: 1rem; }
.review-guidelines ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .72rem; line-height: 1.7; }

/* collection and creator screens */
.collection-group { padding: clamp(20px,3vw,30px); }
.legacy-tier-list { display: grid; gap: 28px; }
.rarity-section { --tier-rgb: 140,102,255; }
.rarity-heading { display: flex; margin-bottom: 12px; padding-bottom: 9px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.rarity-heading h3 { display: flex; margin: 0; align-items: center; gap: 9px; font-size: 1rem; font-weight: 900; }
.rarity-heading p { margin: 0; color: var(--muted); font-size: .7rem; }
.tier-marker { width: 10px; height: 10px; flex: none; border-radius: 50%; color: rgb(var(--tier-rgb)); background: currentColor; box-shadow: 0 0 14px currentColor; }
.tier-legendary { --tier-rgb: 255,217,102; }
.tier-rare { --tier-rgb: 140,102,255; }
.tier-common { --tier-rgb: 102,255,115; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(310px,1fr)); gap: 11px; }
.collection-card { position: relative; display: flex; overflow: hidden; min-width: 0; min-height: 136px; align-items: center; border-radius: 10px; background: var(--bg-2); transition: background .25s, transform .5s var(--easing); }
.collection-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 4px; background: var(--pink-1); opacity: 0; transition: opacity .25s; }
.collection-card:hover { background: var(--panel-hover); transform: translateX(7px); }
.collection-card:hover::after { opacity: 1; }
.collection-card-legacy { background: linear-gradient(120deg, rgba(var(--tier-rgb),.12), var(--bg-2) 56%); }
.collection-art { display: block; overflow: hidden; width: 112px; height: 112px; margin: 12px; flex: none; border-radius: 9px; background: var(--bg-1); }
.collection-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--easing); }
.collection-card:hover .collection-art > img { transform: scale(1.06); }
.collection-art > .profile-frame-stack {
  transition: transform .55s var(--easing);
}
.collection-card:hover .collection-art > .profile-frame-stack {
  transform: scale(1.035);
}
.collection-copy { min-width: 0; padding: 14px 16px 14px 3px; }
.collection-card small { color: var(--pink-0); font-size: .69rem; font-weight: 900; letter-spacing: .04em; }
.collection-card h2 { margin: 4px 0; overflow: hidden; font-size: 1rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.collection-card-legacy h2 { color: rgb(var(--tier-rgb)); }
.collection-card p { margin: 0; color: var(--muted); font-size: .76rem; }
.collection-card .listing-age { margin-top: 5px; color: var(--success); }
.collection-action { margin-top: 10px; }
.equipped-state { display: inline-flex; margin-top: 10px; align-items: center; gap: 6px; color: var(--success); font-size: .76rem; font-weight: 800; }
.equipped-state i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(102,255,179,.12); font-style: normal; }
.profile-heading { display: flex; margin-bottom: 22px; padding: 28px; align-items: center; gap: 23px; border-radius: 13px; background: linear-gradient(100deg, rgba(155,140,255,.17), var(--panel-solid) 50%); }
.profile-avatar { display: block; width: 96px; height: 96px; flex: none; border-radius: 16px; object-fit: cover; box-shadow: 0 13px 28px rgba(0,0,0,.3); }
.profile-heading h1 { margin: 1px 0 5px; font-size: 2.15rem; font-weight: 900; }
.profile-heading p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }
.profile-heading-actions { display: flex; margin-left: auto; gap: 9px; }


@keyframes background-drift { from { transform: translate3d(-3%, -1%, 0) scale(1); } to { transform: translate3d(4%, 2%, 0) scale(1.05); } }
@keyframes loader-orbit { to { transform: rotate(360deg); } }
@keyframes loader-logo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes loader-nebula-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
@keyframes loader-star-drift { from { transform: translate3d(0, -2%, 0); } to { transform: translate3d(5%, 7%, 0); } }
@keyframes screen-enter { from { opacity: 0; transform: translate3d(26px,0,0); } to { opacity: 1; transform: none; } }
@keyframes header-sweep { 0%,38% { transform: translateX(-45%); } 60%,100% { transform: translateX(55%); } }
@keyframes notice-enter { from { opacity: 0; transform: translate(-50%,-22px) scale(.94); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
@keyframes artwork-enter { from { opacity: 0; transform: scale(.9) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes detail-enter { from { opacity: 0; transform: translateX(38px); } to { opacity: 1; transform: none; } }
@keyframes sale-pulse { 0%,100% { opacity: .48; transform: scale(.78); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 1080px) {
  .shell { padding-left: 0; }
  .site-sidebar { position: sticky; top: 0; width: 100%; min-height: 76px; height: 76px; padding: 0 18px; align-items: center; flex-direction: row; }
  .site-sidebar::after { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 3px; background: linear-gradient(90deg, transparent, var(--pink-1), var(--purple-1), transparent); }
  .brand { padding: 0; }
  .brand-mark { width: 46px; height: 46px; }
  .main-nav { display: flex; margin: 0 0 0 30px; gap: 3px; }
  .main-nav a { min-height: 52px; padding: 0 17px; border-radius: 8px; }
  .main-nav a:hover { padding-left: 17px; transform: translateY(-2px); }
  .main-nav a::before, .main-nav .nav-icon { width: 24px; height: 24px; }
  .main-nav a::after { top: auto; right: 12px; bottom: -12px; left: 12px; width: auto; height: 4px; transform: scaleX(.25); }
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { display: flex; margin: 0 0 0 auto; padding: 0; align-items: center; }

  .wallet { min-width: 132px; min-height: 48px; }
  .account-menu { width: auto; }
  .account-menu summary { width: 52px; min-height: 52px; }
  .account-summary-copy { display: none; }
  .account-popover { top: calc(100% + 10px); right: 0; bottom: auto; left: auto; }
  .notice { top: 88px; left: 50%; }
  .page { width: min(calc(100% - 34px), 1100px); padding-top: 24px; }
  .detail-layout { min-height: 0; }
  .detail-content-grid { grid-template-columns: 1fr; }
  .recommendation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creator-spotlight { grid-template-columns: auto minmax(0,1fr); justify-items: start; column-gap: 24px; }
  .creator-spotlight > .eyebrow { grid-column: 1 / -1; }
  .creator-spotlight-avatar { grid-row: 2 / 5; }
  .creator-spotlight-copy { margin-top: 8px; text-align: left; }
  .creator-market-stats, .creator-spotlight-actions { margin-top: 10px; }
}

@media (max-width: 760px) {
  .site-sidebar { padding-inline: 12px; }
  .brand-copy { display: none; }
  .main-nav { margin-left: 15px; }
  .main-nav a { padding-inline: 12px; font-size: .78rem; }
  .main-nav a:hover { padding-left: 12px; }
  .main-nav a::before, .main-nav .nav-icon { display: none; }

  .wallet { min-width: 96px; padding: 8px 10px; }
  .wallet small { font-size: .58rem; }
  .wallet strong { font-size: .95rem; }
  .page { width: min(calc(100% - 24px), 700px); }
  .page-heading { min-height: 158px; padding: 25px; align-items: flex-start; flex-direction: column; justify-content: flex-end; gap: 16px; }
  .market-hero { min-height: 190px; align-items: center; justify-content: center; }
  .market-hero-copy { width: 100%; }
  .page-heading h1 { font-size: 2.7rem; }
  .browse-toolbar { grid-template-columns: 1fr; }
  .browse-toolbar label:last-of-type { justify-content: space-between; }
  .browse-toolbar select { min-width: min(66%,220px); }
  .market-pagination { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 7px; }
  .pagination-button { min-height: 42px; padding-inline: 10px; font-size: .72rem; }
  .market-page-status { min-width: 78px; }
  .badge-grid { grid-template-columns: 1fr; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .detail-layout { padding: 18px; grid-template-columns: 1fr; }
  .detail-art { width: min(100%,520px); margin: auto; }
  .detail-copy { max-width: none; grid-template-columns: 1fr; }
  .creator-layout { grid-template-columns: 1fr; }
  .comment-composer { align-items: stretch; grid-template-columns: 48px minmax(0,1fr); }
  .comment-composer > img { width: 48px; height: 48px; }
  .comment-composer .button { grid-column: 2; justify-self: end; }
  .preview-column { grid-template-columns: 1fr; }
  .preview-art { width: min(100%,520px); justify-self: center; }
  .review-guidelines { align-self: stretch; }
  .collection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-sidebar { height: 66px; min-height: 66px; }
  .brand-mark { width: 42px; height: 42px; }
  .main-nav { margin-left: 8px; }
  .main-nav a { position: relative; width: 42px; min-height: 44px; padding: 0; justify-content: center; font-size: .7rem; }
  .main-nav a:hover { padding-left: 0; }
  .main-nav a::before, .main-nav .nav-icon { display: grid; width: 28px; height: 28px; }
  .main-nav .nav-label { display: none; }
  .main-nav .nav-count { position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; margin: 0; padding: 0 4px; font-size: .55rem; }
  .wallet { min-width: 0; width: 58px; min-height: 44px; justify-content: center; }
  .wallet small { display: none; }
  .account-menu summary { width: 46px; min-height: 46px; }
  .account-menu summary img { width: 34px; height: 34px; }
  .header-actions { gap: 6px; }
  .page { width: 100%; padding: 12px 0 32px; }
  .page-surface { min-height: 0; }
  .page-heading { min-height: 150px; margin-inline: 10px; padding: 22px; border-radius: 12px; }
  .page-heading h1 { font-size: 2.35rem; }
  .page-heading p:last-child { font-size: .82rem; }
  .market-section { padding: 13px 10px 18px; border-radius: 0; }
  .market-section-heading, .detail-panel-heading, .collection-group-heading, .rarity-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .badge-card { min-height: 132px; border-radius: 0; }
  .badge-art { width: 132px; min-width: 132px; }
  .badge-body { padding: 14px 12px; }
  .badge-title-row { display: grid; gap: 3px; }
  .badge-title-row h2 { font-size: .98rem; }
  .price { font-size: .84rem; }
  .supply-row span:last-child { display: none; }
  .notice { top: 76px; width: calc(100% - 20px); }
  .notification-heading { align-items: flex-start; }
  .notification-unread-summary { min-width: 0; padding: 10px 14px; grid-auto-flow: column; gap: 7px; }
  .notification-unread-summary strong { font-size: 1.25rem; }
  .notification-card { min-height: 94px; padding: 14px 12px; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; border-right: 0; border-left: 0; border-radius: 0; }
  .notification-avatar, .notification-avatar img { width: 48px; height: 48px; }
  .notification-avatar i { right: -4px; bottom: -4px; width: 22px; height: 22px; }
  .notification-dot { position: absolute; top: 13px; right: 13px; width: 8px; height: 8px; }
  .notification-arrow { font-size: 1.6rem; }
  .notification-copy > span:not(.notification-meta) { white-space: normal; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .breadcrumbs { margin-inline: 15px; }
  .detail-layout { border-radius: 0; }
  .detail-panel { padding: 18px 12px; border-right: 0; border-left: 0; border-radius: 0; }
  .detail-copy h1 { font-size: 3rem; }
  .sale-panel { padding: 18px; }
  .availability, .field-grid { grid-template-columns: 1fr; }
  .availability { align-items: flex-start; flex-direction: column; gap: 3px; }
  .sale-summary { align-items: start; flex-direction: column; gap: 14px; }
  .sale-stock { justify-items: start; }
  .comment-composer { padding: 11px; grid-template-columns: 1fr; }
  .comment-composer > img { display: none; }
  .comment-composer .button { width: 100%; grid-column: 1; }
  .comment-sign-in { align-items: flex-start; flex-direction: column; gap: 5px; }
  .comment-card { grid-template-columns: 44px minmax(0,1fr); padding: 12px; }
  .comment-avatar, .comment-avatar img { width: 44px; height: 44px; }
  .comment-body header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .creator-spotlight { display: grid; padding: 22px; justify-items: center; grid-template-columns: 1fr; }
  .creator-spotlight > .eyebrow { justify-self: center; }
  .creator-spotlight-avatar { grid-row: auto; }
  .creator-spotlight-copy { text-align: center; }
  .creator-market-stats, .creator-spotlight-actions { grid-template-columns: 1fr 1fr; }
  .recommendation-grid .badge-art { width: 132px; min-width: 132px; }
  .creator-form, .auth-panel { padding: 22px 18px; border-radius: 0; }
  .preview-column { grid-template-columns: 1fr; padding: 0 10px; }
  .upload-field { align-items: flex-start; flex-direction: column; }
  .collection-card { border-radius: 0; }
  .collection-art { width: 96px; height: 96px; margin: 10px; }
  .profile-heading { margin-inline: 10px; flex-wrap: wrap; border-radius: 10px; }
  .profile-heading-actions { width: 100%; margin-left: 0; }
  .profile-heading-actions .button { flex: 1; }
  .empty-state { padding: 32px 18px; border-radius: 0; }
  .game-loader { padding: 12px; }
  .loader-screen { width: 100%; padding: 23px 20px 22px; border-radius: 17px; }
  .loader-logo { width: 52px; height: 52px; }
  .loader-logo img { width: 44px; height: 44px; }
  .loader-brand { gap: 12px; }
  .loader-destination { margin: 34px 0 32px; }
  .loader-destination strong { font-size: clamp(2rem, 12vw, 3rem); }
  .loader-progress-copy { align-items: center; }
  .loader-status { max-width: 75%; font-size: .72rem; }
  .loader-stages li { font-size: .61rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Enter-to-commit tag editor */
.form-stack .form-field,
.browse-toolbar .badge-tag-filter {
  display: grid;
  gap: 8px;
}

.form-stack .form-field > label,
.browse-toolbar .badge-tag-filter > label {
  padding: 0;
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 800;
}

.browse-toolbar .badge-tag-filter > label {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tag-editor {
  display: grid;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-3);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.browse-filter-panel .tag-editor { background: var(--bg-1); }
.tag-editor:focus-within {
  border-color: rgba(155,140,255,.58);
  background: var(--bg-4);
  box-shadow: 0 0 0 3px rgba(155,140,255,.1);
}
.tag-editor.has-error {
  border-color: rgba(255,102,128,.7);
  box-shadow: 0 0 0 3px rgba(255,102,128,.1);
}

.tag-chip-list {
  display: flex;
  min-width: 0;
  padding: 10px 0 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-chip-list:empty { display: none; }

.tag-chip {
  display: inline-flex;
  overflow: hidden;
  max-width: 100%;
  min-height: 28px;
  padding-left: 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(155,140,255,.28);
  border-radius: 7px;
  color: #edeaff;
  background: linear-gradient(135deg, rgba(122,104,235,.24), rgba(113,140,255,.16));
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.tag-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-chip button {
  display: grid;
  width: 27px;
  min-width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(155,140,255,.18);
  border-radius: 0;
  color: #d9d3ff;
  background: rgba(9,12,27,.18);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.tag-chip button:hover,
.tag-chip button:focus-visible { color: #fff; background: rgba(255,102,128,.24); }

.tag-entry-row {
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  gap: 9px;
}
.tag-editor.has-tags .tag-entry-row { border-top: 1px solid var(--border); }
.tag-entry-row svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--pink-0);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.tag-entry-row input,
.tag-entry-row input:focus {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: .82rem;
}
.tag-entry-row input::placeholder { color: var(--muted); opacity: 1; }
.tag-field-help {
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.4;
}
.tag-field-help.is-error { color: var(--danger); }


@media (max-width: 520px) {
  .tag-editor { border-radius: 8px; }
  .tag-chip { font-size: .65rem; }
}

/* Top-navigation catalogue layout */
.shell {
  display: block;
  min-height: 100vh;
  padding-left: 0;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  width: 100%;
  min-height: 118px;
  color: #fff;
  background:
    radial-gradient(circle at 18% -90%, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(108deg, #5145bd 0%, #6b53dc 48%, #536bc9 100%);
  box-shadow: 0 12px 36px rgba(4,7,20,.34);
  backdrop-filter: blur(24px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 3%, #bcb4ff 26%, #fff 50%, #91b9ff 74%, transparent 97%);
  opacity: .62;
}

.site-header-inner {
  display: grid;
  width: min(calc(100% - 44px), 1600px);
  min-height: 118px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr);
  gap: 24px;
}

.site-header .brand {
  width: max-content;
  padding: 0;
  color: #fff;
}

.site-header .brand-mark {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255,255,255,.24);
  box-shadow: 0 12px 28px rgba(28,18,86,.3);
}

.site-header .brand-copy strong { font-size: 1.14rem; }
.site-header .brand-copy small { color: rgba(255,255,255,.72); }

.site-header .main-nav {
  display: flex;
  margin: 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-header .main-nav a {
  position: relative;
  display: grid;
  width: 92px;
  min-height: 92px;
  padding: 10px 6px 8px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 12px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  transition: color .2s, background .25s, transform .4s var(--easing);
}

.site-header .main-nav a::before { display: none !important; content: none !important; }
.site-header .main-nav a::after {
  content: "";
  position: absolute;
  top: auto;
  right: 18px;
  bottom: 2px;
  left: 18px;
  width: auto;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.58);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s, transform .35s var(--easing);
}

.site-header .main-nav a:hover {
  padding: 10px 6px 8px;
  color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.site-header .main-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(24,20,76,.18);
}

.site-header .main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .nav-icon,
.site-header .main-nav a::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(15,17,58,.28);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 18px rgba(34,22,95,.18);
  transition: color .25s, background .25s, box-shadow .25s, transform .4s var(--easing);
}

.site-header .nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header .main-nav a:hover .nav-icon,
.site-header .main-nav a[aria-current="page"] .nav-icon {
  color: #5948c9;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32,20,91,.28), 0 0 0 4px rgba(255,255,255,.13);
  transform: scale(1.04);
}

.site-header .nav-count {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 21px;
  height: 21px;
  margin: 0;
  padding: 0 5px;
  border: 2px solid #6650d0;
  background: #ff6680;
  font-size: .57rem;
  box-shadow: 0 5px 14px rgba(55,24,89,.3);
}

.site-header .header-actions {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}


.site-header .account-menu { width: auto; }
.site-header .account-menu summary {
  width: auto;
  min-width: 190px;
  min-height: 64px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #fff;
  background: rgba(18,19,61,.28);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 9px 24px rgba(32,20,91,.14);
}

.site-header .account-menu summary:hover { background: rgba(255,255,255,.14); }
.site-header .account-menu summary img { width: 48px; height: 48px; border-radius: 10px; }
.site-header .account-summary-copy { display: flex; flex-direction: column; justify-content: center; gap: 1px; line-height: 1.05; }
.site-header .account-summary-copy strong { max-width: 120px; }
.site-header .account-balance { display: flex; align-items: baseline; gap: 6px; color: #fff; line-height: 1; white-space: nowrap; }
.site-header .account-balance small { color: #fff; font-size: .63rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 5px rgba(17,20,62,.34); }
.site-header .account-balance b { color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.site-header .account-popover { top: calc(100% + 10px); right: 0; bottom: auto; left: auto; }
.header-sign-in { border: 1px solid rgba(255,255,255,.22); background: rgba(18,19,61,.25); }

.page {
  width: min(calc(100% - 44px), 1600px);
  padding: 26px 0 64px;
}

.page-surface,
.page-surface.panel {
  min-height: calc(100vh - 170px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.notice { top: 136px; left: 50%; }

.page-heading {
  min-height: 156px;
  margin-bottom: 18px;
  padding: 28px 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.09);
  text-align: center;
  background:
    radial-gradient(circle at 50% -80%, rgba(255,255,255,.2), transparent 50%),
    linear-gradient(118deg, #4e45b9, #6654d0 54%, #455b9e 100%);
}

.page-heading > div { display: grid; justify-items: center; }
.page-heading h1 {
  font-size: clamp(2.5rem,4.2vw,4rem);
  letter-spacing: .018em;
}
.page-heading p:last-child { margin: 10px auto 0; }
.page-heading .button { margin-top: 3px; }
.market-hero { min-height: 148px; }
.market-hero h1 {
  font-size: clamp(2.55rem,4.2vw,4rem);
  letter-spacing: .022em;
}
.market-hero .button { margin-top: 15px; }

.browse-workspace {
  display: grid;
  align-items: start;
  grid-template-columns: 252px minmax(0,1fr);
  gap: 18px;
}

.browse-filter-panel,
.browse-catalog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(25,32,56,.97), rgba(14,18,34,.98));
  box-shadow: var(--shadow);
}

.browse-filter-panel {
  position: sticky;
  top: 138px;
  padding: 24px 20px;
}

.browse-filter-heading { padding: 0 4px 21px; border-bottom: 1px solid var(--border); }
.browse-filter-heading h2,
.browse-catalog-heading h2 { margin: 0; font-size: 1.42rem; line-height: 1.08; }
.browse-filter-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.browse-toolbar {
  display: grid;
  margin: 0;
  padding: 21px 0 0;
  grid-template-columns: 1fr;
  gap: 18px;
  border-radius: 0;
  background: transparent;
}

.browse-toolbar label { display: grid; gap: 8px; }
.browse-filter-panel .browse-toolbar .badge-search {
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}

.browse-filter-panel .browse-toolbar .badge-search:focus-within {
  background: transparent;
  box-shadow: none;
}

.browse-toolbar .filter-control > span:first-child {
  padding: 0;
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.browse-toolbar fieldset.filter-control {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.browse-toolbar fieldset.filter-control > legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--text-soft);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-range-shell {
  display: grid;
  height: 48px;
  padding: 0 11px;
  align-items: center;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg-1);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.price-range-shell:focus-within {
  border-color: rgba(155,140,255,.58);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(155,140,255,.1);
}

.browse-toolbar .price-range-shell label { display: block; min-width: 0; }
.price-range-shell input,
.price-range-shell input:focus {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 3px;
  border: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}
.price-range-shell > small { color: var(--pink-0); font-size: .68rem; font-weight: 900; }

.filter-input-shell {
  display: flex;
  height: 48px;
  padding: 0 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-1);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.filter-input-shell:focus-within {
  border-color: rgba(155,140,255,.58);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(155,140,255,.1);
}

.filter-input-shell svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--pink-0);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.filter-input-shell input,
.filter-input-shell input:focus {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: .82rem;
}

.browse-toolbar select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--border);
  color: var(--text);
  background-color: var(--bg-1);
  font-size: .82rem;
}

.browse-toolbar select:focus {
  border-color: rgba(155,140,255,.58);
  background-color: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(155,140,255,.1);
}

.browse-toolbar .sold-out-toggle {
  position: relative;
  display: grid;
  min-height: 64px;
  padding: 12px 13px;
  align-items: center;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-soft);
  background: var(--bg-1);
}

.sold-out-toggle .toggle-copy { display: grid; gap: 2px; }
.sold-out-toggle .toggle-copy strong { font-size: .78rem; }
.sold-out-toggle .toggle-copy small { color: var(--muted); font-size: .65rem; }
.browse-toolbar .sold-out-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.browse-toolbar .sold-out-toggle i {
  position: relative;
  display: block;
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: var(--bg-4);
  transition: background .2s;
}

.browse-toolbar .sold-out-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  transition: transform .25s var(--easing);
}

.browse-toolbar .sold-out-toggle input:checked + i { background: var(--pink-2); }
.browse-toolbar .sold-out-toggle input:checked + i::after { transform: translateX(17px); }
.browse-toolbar .sold-out-toggle:focus-within { box-shadow: 0 0 0 3px rgba(155,140,255,.1); }

.browse-catalog { min-width: 0; overflow: hidden; padding: 24px; }
.browse-catalog > .integrated-heading {
  min-height: 174px;
  margin: -24px -24px 24px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  box-shadow: none;
}
.browse-catalog-heading {
  display: flex;
  min-height: 66px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.clear-filter-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--pink-0);
  background: rgba(155,140,255,.09);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}

.badge-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 14px;
}
.badge-card {
  display: flex;
  min-height: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: var(--bg-2);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transform: none;
}

.badge-card::after { top: auto; right: 0; bottom: 0; width: auto; height: 4px; transform: scaleX(.25); }
.badge-card:hover { background: var(--panel-hover); box-shadow: 0 16px 34px rgba(0,0,0,.34); transform: translateY(-7px); }
.badge-card:hover::after { transform: scaleX(1); }
.badge-art { width: 100%; min-width: 0; aspect-ratio: 1; }
.badge-art img { width: 100%; height: 100%; }
.badge-art-price {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  padding: 9px 13px;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  color: #fff;
  background: rgba(9,12,27,.78);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  font-size: 1.22rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.badge-art-price small { color: #d5ceff; font-size: .7rem; letter-spacing: .08em; }
.badge-tag-preview {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: calc(100% - 116px);
  gap: 5px;
  pointer-events: none;
}
.badge-tag-preview small {
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  color: #ece9ff;
  background: rgba(9,12,27,.72);
  backdrop-filter: blur(9px);
  font-size: .56rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-body {
  display: flex;
  height: 120px;
  min-height: 0;
  padding: 16px 14px 7px;
  flex: 0 0 120px;
  flex-direction: column;
}
.badge-title-row { display: grid; align-items: start; justify-items: center; grid-template-columns: minmax(0,1fr); gap: 8px; }
.badge-title-row h2 { width: 100%; font-size: 1.22rem; line-height: 1.18; text-align: center; }
.creator-line { margin: 4px 0 0; font-size: .73rem; text-align: center; }
.supply-row {
  width: 84%;
  margin: 8px auto 0;
  padding-top: 0;
  font-size: .72rem;
}
.supply-track {
  width: 76%;
  margin: 4px auto 0;
  align-self: center;
}
.sold-out-banner {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: auto;
  left: auto;
  top: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: rgba(8,10,21,.82);
  backdrop-filter: blur(8px);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-tag-list {
  display: flex;
  margin: -7px 0 16px;
  flex-wrap: wrap;
  gap: 7px;
}
.badge-tag-list a {
  padding: 6px 10px;
  border: 1px solid rgba(155,140,255,.18);
  border-radius: 999px;
  color: var(--pink-0);
  background: rgba(155,140,255,.09);
  font-size: .68rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s, background .2s, transform .25s var(--easing);
}
.badge-tag-list a::before { content: "#"; opacity: .58; }
.badge-tag-list a:hover { color: #fff; background: var(--pink-2); transform: translateY(-2px); }

.badge-card.is-sold-out .badge-art img { filter: grayscale(.48) brightness(.62); }

.unified-page-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(25,32,56,.97), rgba(14,18,34,.98));
  box-shadow: var(--shadow);
}

.unified-page-panel > .integrated-heading {
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  box-shadow: none;
}

.unified-page-panel > .market-section {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.unified-page-panel > .market-section + .market-section {
  border-top: 1px solid var(--border);
}

.unified-page-panel > .creator-layout { padding: 28px; }
.unified-page-panel > .empty-state.panel { border: 0; border-radius: 0; box-shadow: none; }

/* Shared structure for collection, detail, notifications, creator and create views. */
.market-section,
.detail-panel,
.detail-layout,
.profile-heading,
.creator-form,
.preview-art,
.crop-controls,
.review-guidelines,
.auth-panel,
.empty-state.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
}

.market-section,
.detail-panel { background: linear-gradient(155deg, rgba(25,32,56,.97), rgba(14,18,34,.98)); }
.collection-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.profile-heading { margin-bottom: 18px; }
.profile-heading.page-heading {
  display: grid;
  min-height: 180px;
  align-items: center;
  grid-template-columns: auto minmax(0,1fr) auto;
  text-align: left;
}
.profile-heading.page-heading > div { justify-items: start; }
.profile-heading.page-heading .profile-heading-actions { display: flex; justify-content: flex-end; }


@media (max-width: 1320px) {
  .site-header-inner { grid-template-columns: minmax(170px,1fr) auto minmax(170px,1fr); }
  .site-header .brand-copy { display: none; }
  .site-header .account-menu summary { min-width: 62px; padding-right: 7px; }
  .site-header .account-summary-copy { display: none; }
  .badge-grid { grid-template-columns: repeat(auto-fit,minmax(210px,280px)); }
  .collection-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1020px) {
  .site-header-inner { width: min(calc(100% - 26px),960px); gap: 10px; }
  .site-header .main-nav a { width: 76px; }
  .browse-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .badge-grid { grid-template-columns: repeat(auto-fit,minmax(210px,280px)); }
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .site-header { min-height: 82px; }
  .site-header-inner { min-height: 82px; grid-template-columns: auto minmax(0,1fr) auto; }
  .site-header .brand-mark { width: 48px; height: 48px; }
  .site-header .main-nav { justify-content: center; gap: 2px; }
  .site-header .main-nav a { width: 58px; min-height: 66px; padding: 6px 3px; gap: 4px; }
  .site-header .main-nav a:hover { padding: 6px 3px; }
  .site-header .nav-icon { width: 35px; height: 35px; }
  .site-header .nav-icon svg { width: 18px; height: 18px; }
  .site-header .nav-label { font-size: .58rem; }
  .site-header .nav-count { top: 2px; right: 1px; }

  .site-header .account-menu summary { min-width: 52px; min-height: 52px; }
  .site-header .account-menu summary img { width: 38px; height: 38px; }
  .header-sign-in { min-height: 40px; padding-inline: 12px; font-size: .72rem; }
  .notice { top: 94px; }
  .page { width: min(calc(100% - 24px),740px); padding-top: 16px; }
  .browse-workspace { grid-template-columns: 1fr; }
  .browse-filter-panel { position: static; padding: 18px; }
  .browse-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .browse-toolbar .sold-out-toggle { min-height: 48px; }
  .browse-catalog { padding: 18px; }
  .browse-catalog > .integrated-heading { margin: -18px -18px 18px; }
  .page-heading { min-height: 138px; padding: 24px; }
  .page-heading h1 { font-size: 2.55rem; }
}

@media (max-width: 560px) {
  .site-header { min-height: 130px; }
  .site-header-inner {
    width: calc(100% - 20px);
    min-height: 130px;
    padding: 8px 0 7px;
    grid-template-areas: "brand actions" "nav nav";
    grid-template-columns: 1fr auto;
    grid-template-rows: 48px 64px;
  }
  .site-header .brand { grid-area: brand; }
  .site-header .brand-mark { width: 42px; height: 42px; }
  .site-header .main-nav { grid-area: nav; }
  .site-header .header-actions { grid-area: actions; }
  .site-header .main-nav a { width: 68px; min-height: 60px; }
  .site-header .main-nav .nav-label { display: inline; }
  .site-header .account-menu summary { min-width: 46px; min-height: 46px; padding: 4px; }
  .site-header .account-menu summary img { width: 36px; height: 36px; }
  .header-sign-in { min-height: 38px; }
  .notice { top: 140px; }
  .page { width: 100%; padding: 10px 0 30px; }
  .page-heading { min-height: 130px; margin-inline: 10px; padding: 20px 16px; border-radius: 11px; }
  .page-heading h1 { font-size: 2.2rem; }
  .page-heading p:last-child { font-size: .78rem; }
  .browse-workspace { gap: 10px; }
  .browse-filter-panel,
  .browse-catalog { border-right: 0; border-left: 0; border-radius: 0; }
  .browse-catalog > .integrated-heading { border-radius: 0; }
  .browse-toolbar { grid-template-columns: 1fr; }
  .browse-catalog-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .badge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .badge-body { height: 110px; min-height: 0; padding: 13px 9px 5px; flex-basis: 110px; }
  .badge-title-row { grid-template-columns: 1fr; gap: 3px; }
  .badge-title-row h2 { font-size: 1rem; }
  .badge-art-price { right: 8px; bottom: 8px; padding: 7px 9px; gap: 4px; font-size: .92rem; }
  .badge-art-price small { font-size: .58rem; }
  .badge-tag-preview { bottom: 8px; left: 8px; max-width: calc(100% - 85px); gap: 3px; }
  .badge-tag-preview small { padding: 4px 5px; font-size: .5rem; }
  .creator-line { font-size: .65rem; }
  .supply-row { width: 92%; margin-top: 6px; font-size: .64rem; }
  .supply-track { width: 82%; margin-top: 3px; }
  .supply-row span:last-child { display: none; }
  .sold-out-banner { right: 7px; bottom: 7px; left: 7px; padding: 7px; font-size: .65rem; }
  .market-pagination { width: 100%; }
  .collection-grid { grid-template-columns: 1fr; }
  .profile-heading.page-heading { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-heading.page-heading > div { justify-items: center; }
  .profile-heading.page-heading .profile-heading-actions { justify-content: center; }
  .unified-page-panel { border-right: 0; border-left: 0; border-radius: 0; }
  .unified-page-panel > .creator-layout { padding: 16px 10px; }
}

@media (max-width: 380px) {
  .site-header .main-nav a { width: 60px; }
  .badge-grid { grid-template-columns: 1fr; }
}

/* Compact mobile catalogue and shared market screens. */
.mobile-filter-toggle { display: none; }
.browse-filter-title > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}


@media (max-width: 560px) {
  .site-header { min-height: 60px; backdrop-filter: none; }
  .site-header-inner {
    width: calc(100% - 16px);
    min-height: 60px;
    padding: 0;
    grid-template-areas: "brand actions";
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 60px;
    gap: 8px;
  }
  .site-header .brand { grid-area: brand; gap: 8px; }
  .site-header .brand-mark { width: 38px; height: 38px; border-width: 2px; }
  .site-header .brand-copy { display: grid; }
  .site-header .brand-copy strong { font-size: .82rem; }
  .site-header .brand-copy small { margin-top: 3px; font-size: .48rem; }
  .site-header .main-nav {
    position: fixed;
    z-index: 55;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 5px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
    align-self: auto;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border-top: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(110deg, rgba(18,22,48,.97), rgba(35,29,77,.97));
    box-shadow: 0 -12px 30px rgba(4,7,20,.38);
    backdrop-filter: blur(24px);
  }
  .site-header .main-nav a,
  .site-header .main-nav a:hover {
    width: auto;
    min-width: 0;
    max-width: 112px;
    min-height: 58px;
    padding: 4px 3px 3px;
    flex: 1;
    border-radius: 10px;
    gap: 3px;
    transform: none;
  }
  .site-header .main-nav .nav-label {
    display: inline;
    overflow: hidden;
    max-width: 100%;
    font-size: .57rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-header .nav-icon { width: 32px; height: 32px; }
  .site-header .nav-icon svg { width: 19px; height: 19px; }
  .site-header .main-nav a::after { right: 20%; bottom: 0; left: 20%; height: 3px; }
  .site-header .nav-count {
    top: 2px;
    right: calc(50% - 27px);
    min-width: 17px;
    height: 17px;
    border-width: 1px;
    font-size: .48rem;
  }
  .site-header .header-actions { grid-area: actions; gap: 3px; }
  .site-header .account-menu summary {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 3px;
    border-radius: 10px;
  }
  .site-header .account-menu summary img { width: 36px; height: 36px; border-radius: 8px; }
  .site-header .account-popover { top: calc(100% + 8px); width: min(270px,calc(100vw - 14px)); }
  .header-sign-in { min-height: 36px; padding-inline: 9px; font-size: .66rem; }
  .notice { top: 68px; width: calc(100% - 16px); min-height: 46px; padding: 9px 11px; }
  .notice p { font-size: .74rem; }
  .notice > span { width: 25px; height: 25px; }

  .page { padding: 8px 0 calc(82px + env(safe-area-inset-bottom)); }
  .page-surface,
  .page-surface.panel { min-height: calc(100vh - 68px); }
  .browse-workspace { gap: 8px; }
  .browse-filter-panel {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: var(--panel-solid);
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
  }
  .browse-filter-heading {
    display: flex;
    min-height: 56px;
    padding: 8px 10px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 0;
  }
  .browse-filter-title { min-width: 0; }
  .browse-filter-title .eyebrow,
  .browse-filter-title > p:last-child { display: none; }
  .browse-filter-title h2 { font-size: 1rem; white-space: nowrap; }
  .mobile-filter-toggle {
    display: inline-flex;
    min-height: 38px;
    padding: 0 11px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(155,140,255,.28);
    border-radius: 8px;
    color: var(--text-soft);
    background: rgba(155,140,255,.1);
    cursor: pointer;
    font-size: .71rem;
    font-weight: 800;
  }
  .mobile-filter-toggle strong {
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--pink-2);
    font-size: .58rem;
  }
  .mobile-filter-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .25s var(--easing);
  }
  .browse-filter-panel.is-filter-open .mobile-filter-toggle svg { transform: rotate(180deg); }
  .market-js .browse-filter-panel:not(.is-filter-open) .browse-toolbar {
    display: grid;
    padding: 0 10px 10px;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }
  .market-js .browse-filter-panel:not(.is-filter-open) .browse-toolbar > :not(.badge-search) { display: none; }
  .market-js .browse-filter-panel:not(.is-filter-open) .badge-search > span:first-child { display: none; }
  .browse-filter-panel .browse-toolbar {
    padding: 10px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    border-top: 1px solid var(--border);
  }
  .browse-toolbar .badge-search,
  .browse-toolbar .badge-tag-filter,
  .browse-toolbar .price-filter,
  .browse-toolbar .sold-out-toggle { grid-column: 1 / -1; }
  .browse-toolbar .filter-control > span:first-child,
  .browse-toolbar fieldset.filter-control > legend { font-size: .62rem; }
  .filter-input-shell,
  .price-range-shell,
  .browse-toolbar select { height: 43px; }
  .browse-toolbar .sold-out-toggle { min-height: 54px; }
  .sold-out-toggle .toggle-copy strong { font-size: .72rem; }
  .sold-out-toggle .toggle-copy small { font-size: .59rem; }

  .browse-catalog { padding: 10px; }
  .browse-catalog > .integrated-heading {
    min-height: 92px;
    margin: -10px -10px 10px;
    padding: 13px 12px;
  }
  .market-hero .eyebrow { display: none; }
  .market-hero h1,
  .page-heading h1 { font-size: 1.75rem; letter-spacing: .01em; }
  .market-hero p:last-of-type,
  .page-heading p:last-child { margin-top: 5px; font-size: .68rem; line-height: 1.35; }
  .browse-catalog-heading {
    min-height: 43px;
    margin-bottom: 9px;
    padding: 0 1px 9px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
  .browse-catalog-heading .eyebrow { display: none; }
  .browse-catalog-heading h2 { font-size: 1rem; }
  .clear-filter-link { padding: 6px 8px; font-size: .62rem; }

  .badge-grid,
  .recommendation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .badge-card { border-radius: 9px; }
  .badge-body {
    height: 88px;
    min-height: 88px;
    padding: 9px 7px 6px;
    flex-basis: 88px;
  }
  .badge-title-row h2 { font-size: .82rem; }
  .badge-art-price { right: 6px; bottom: 6px; padding: 5px 7px; gap: 3px; font-size: .76rem; }
  .badge-art-price small { font-size: .5rem; }
  .badge-tag-preview { display: none; }
  .creator-line { margin-top: 3px; font-size: .57rem; }
  .supply-row { width: 100%; margin-top: 5px; font-size: .57rem; }
  .supply-track { width: 92%; height: 4px; margin-top: 2px; }
  .sold-out-banner { right: 5px; bottom: 5px; left: 5px; padding: 5px; font-size: .58rem; }
  .badge-card:hover { transform: none; }

  .page-heading {
    min-height: 96px;
    margin: 0;
    padding: 14px 12px;
    border-radius: 0;
    gap: 8px;
  }
  .page-heading .button { min-height: 36px; margin-top: 2px; padding-inline: 12px; font-size: .68rem; }
  .profile-heading.page-heading {
    min-height: 112px;
    grid-template-columns: minmax(0,1fr) auto;
    justify-items: start;
    text-align: left;
  }
  .profile-heading.page-heading > div { justify-items: start; }
  .profile-heading.page-heading .profile-heading-actions { width: auto; justify-content: flex-end; }
  .profile-heading.page-heading .profile-heading-actions .button { width: auto; }
  .unified-page-panel > .creator-layout,
  .market-section { padding: 12px 10px; }
  .market-section-heading,
  .collection-group-heading,
  .rarity-heading { margin-bottom: 10px; gap: 3px; }
  .market-section-heading h2,
  .collection-group-heading h2 { font-size: 1.08rem; }
  .market-section-heading p:last-child,
  .collection-group-heading p:last-child { font-size: .65rem; }
  .collection-grid { grid-template-columns: 1fr; gap: 7px; }
  .collection-card { min-height: 92px; border-radius: 8px; }
  .collection-art { width: 72px; height: 72px; margin: 10px; border-radius: 7px; }
  .collection-copy { padding: 8px 9px 8px 0; }
  .collection-card small { font-size: .58rem; }
  .collection-card h2 { margin: 2px 0; font-size: .84rem; }
  .collection-card p { font-size: .65rem; }
  .collection-card .listing-age { margin-top: 3px; }
  .collection-action,
  .equipped-state { margin-top: 6px; }
  .collection-action .button { min-height: 31px; padding-inline: 10px; font-size: .63rem; }
  .legacy-tier-list { gap: 17px; }

  .notification-heading { gap: 8px; }
  .notification-card {
    min-height: 78px;
    padding: 9px 10px;
    grid-template-columns: 39px minmax(0,1fr) auto;
    gap: 9px;
    border-radius: 0;
  }
  .notification-avatar,
  .notification-avatar img { width: 39px; height: 39px; }
  .notification-avatar i { width: 18px; height: 18px; font-size: .56rem; }
  .notification-copy strong { font-size: .77rem; }
  .notification-copy > span:not(.notification-meta),
  .notification-meta { font-size: .63rem; }

  .breadcrumbs {
    min-height: 42px;
    margin: 0 8px 8px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 8px;
    font-size: .72rem;
  }
  .detail-layout { padding: 12px 10px 14px; gap: 15px; border-radius: 0; }
  .detail-art { width: min(64vw,230px); border-radius: 11px; }
  .detail-kicker { margin-bottom: 4px; }
  .detail-copy h1 { font-size: 2rem; line-height: 1; }
  .detail-creator { margin-top: 6px; font-size: .72rem; }
  .badge-tag-list { margin: 8px 0; gap: 4px; }
  .badge-tag-list a { padding: 4px 7px; font-size: .58rem; }
  .detail-copy .description { font-size: .72rem; line-height: 1.5; }
  .sale-panel { padding: 13px; }
  .sale-summary { align-items: end; flex-direction: row; gap: 10px; }
  .sale-stock { justify-items: end; }
  .detail-content-grid { gap: 8px; }
  .detail-panel { padding: 13px 10px; }
  .detail-panel-heading { margin-bottom: 10px; }
  .creator-spotlight { padding: 15px 10px; }
  .creator-spotlight-avatar,
  .creator-spotlight-avatar img { width: 78px; height: 78px; }
  .creator-market-stats,
  .creator-spotlight-actions { width: 100%; }
  .recommendation-grid .badge-art { width: 100%; min-width: 0; }
  .market-pagination { margin-top: 15px; }
}

@media (max-width: 380px) {
  .site-header .main-nav a { width: auto; }
  .badge-grid,
  .recommendation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .badge-body { height: 84px; min-height: 84px; padding-inline: 6px; flex-basis: 84px; }
  .badge-title-row h2 { font-size: .76rem; }
  .creator-line,
  .supply-row { font-size: .53rem; }
}

@media (hover: none) and (pointer: coarse) {
  .badge-card:hover,
  .collection-card:hover,
  .notification-card:hover { transform: none; }
}

/* Shared catalogue presentation for collectible profile frames. */
.profile-frame-stack {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  isolation: isolate;
}

/* Keep every frame canvas square, independently of the surrounding card.
   The catalogue mock itself is intentionally a wider profile card, but the
   avatar/frame viewport inside it must use the same 1:1 geometry as uploads,
   collections, item details and checkout previews. */
.frame-card-avatar-window,
.preview-art.is-frame-preview,
.frame-detail-preview,
.collection-card.item-profile_frame .collection-art,
.purchase-item-thumbnail.is-frame,
.purchase-profile-avatar-slot.is-frame {
  aspect-ratio: 1 / 1;
}
.profile-frame-stack > img {
  grid-area: 1 / 1;
  margin: 0;
}
.profile-frame-stack > .profile-frame-avatar {
  z-index: 1;
  width: 75% !important;
  height: 75% !important;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  object-fit: cover !important;
  box-shadow: 0 10px 32px rgba(4,7,24,.35);
}
.profile-frame-stack > .profile-frame-overlay {
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 18px rgba(83,65,190,.28));
  pointer-events: none;
}
.frame-art-preview,
.frame-detail-preview {
  background:
    radial-gradient(circle at 50% 44%, rgba(144,124,255,.22), transparent 56%),
    var(--bg-1);
}
.badge-card:hover .frame-art-preview .profile-frame-avatar {
  filter: brightness(1.04) saturate(1.05);
  transform: scale(1.025);
}
.badge-card:hover .frame-art-preview .profile-frame-overlay {
  filter: drop-shadow(0 10px 24px rgba(132,108,255,.42));
  transform: scale(1.025);
}
.item-type-pill {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(196,186,255,.3);
  border-radius: 999px;
  color: #f5f2ff;
  background: rgba(16,19,42,.76);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.collection-card-profile_frame .collection-art {
  background: radial-gradient(circle, rgba(140,123,255,.2), transparent 68%);
}

.item-type-filter { min-width: 0; }
.item-type-options,
.creator-item-type-options {
  display: grid;
  gap: 7px;
}
.item-type-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
.item-type-options label,
.creator-item-type-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.item-type-options input,
.creator-item-type-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.item-type-options span,
.creator-item-type-options > label > span {
  display: grid;
  min-height: 44px;
  padding: 9px 10px;
  align-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg-1);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.item-type-options span {
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
}
.item-type-options input:checked + span,
.creator-item-type-options input:checked + span {
  border-color: rgba(154,132,255,.78);
  color: var(--text);
  background: rgba(132,108,255,.18);
  box-shadow: inset 0 0 0 1px rgba(159,141,255,.16);
}
.item-type-options input:focus-visible + span,
.creator-item-type-options input:focus-visible + span {
  outline: 3px solid rgba(150,132,255,.35);
  outline-offset: 2px;
}
.creator-item-type {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.creator-item-type > legend {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: .76rem;
  font-weight: 800;
}
.creator-item-type-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.creator-item-type-options > label > span {
  min-height: 74px;
  padding: 12px;
  gap: 4px;
}
.creator-item-type-options strong { color: var(--text); font-size: .84rem; }
.creator-item-type-options small { color: var(--muted); font-size: .67rem; line-height: 1.35; }


@media (max-width: 680px) {
  .item-type-pill { top: 6px; left: 6px; padding: 4px 6px; font-size: .48rem; }
  .creator-item-type-options { grid-template-columns: 1fr; }
  .creator-item-type-options > label > span { min-height: 62px; }
}

/* Restrained blue glass pass: preserve the lazer layout and contrast. */
:root {
  --pink-0: #d2e7ff;
  --pink-1: #8fc4ff;
  --pink-2: #4f8ee8;
  --pink-3: #2765bf;
  --purple-1: #6ba8ff;
  --purple-2: #397bd7;
  --bg-0: #060a17;
  --bg-1: #0a1124;
  --bg-2: #111b35;
  --bg-3: #1b2a4e;
  --bg-4: #293d69;
  --panel: rgba(17, 27, 53, .88);
  --panel-solid: #121d38;
  --panel-hover: #263b68;
  --border: rgba(155, 184, 255, .13);
}
body {
  background:
    radial-gradient(circle at 78% 5%, rgba(43,123,231,.24), transparent 30rem),
    radial-gradient(circle at 18% 84%, rgba(44,105,204,.16), transparent 36rem),
    linear-gradient(142deg, #040914 0%, #09172e 50%, #050e20 100%);
}

.page-heading {
  isolation: isolate;
  border: 1px solid rgba(190,218,255,.2);
  background:
    radial-gradient(circle at 14% 12%, rgba(186,220,255,.18), transparent 29%),
    linear-gradient(118deg, rgba(30,76,161,.92), rgba(50,101,191,.88) 54%, rgba(26,100,167,.92));
  box-shadow:
    0 18px 42px rgba(1,8,31,.34),
    inset 0 1px rgba(239,247,255,.15),
    inset 0 -1px rgba(5,22,62,.3);
  backdrop-filter: blur(18px) saturate(1.18);
}

.page-heading::before {
  inset: -58%;
  background:
    repeating-linear-gradient(118deg, transparent 0 34px, rgba(210,232,255,.055) 35px, transparent 37px 68px),
    linear-gradient(105deg, transparent 34%, rgba(220,238,255,.15) 47%, transparent 59%);
  opacity: .72;
  transform: translate3d(-8%, -2%, 0) rotate(-2deg);
  animation: title-glass-flow 14s ease-in-out infinite alternate;
}

.page-heading::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -35%;
  background:
    radial-gradient(circle at 25% 46%, rgba(152,208,255,.2) 0 3px, transparent 5px),
    radial-gradient(circle at 61% 24%, rgba(215,231,255,.17) 0 2px, transparent 4px),
    radial-gradient(circle at 76% 70%, rgba(116,175,255,.19) 0 4px, transparent 7px),
    linear-gradient(90deg, transparent 0 46%, rgba(224,238,255,.075) 50%, transparent 54%);
  background-size: 210px 150px, 270px 180px, 340px 230px, 100% 100%;
  filter: blur(.2px);
  opacity: .62;
  pointer-events: none;
  transform: translate3d(3%, 1%, 0);
  animation: title-particles-drift 19s linear infinite alternate;
}

.page-heading > * { position: relative; z-index: 2; }

@keyframes title-glass-flow {
  from { transform: translate3d(-9%, -3%, 0) rotate(-2deg); }
  to { transform: translate3d(10%, 4%, 0) rotate(2deg); }
}

@keyframes title-particles-drift {
  from { transform: translate3d(4%, 1%, 0) scale(1); }
  to { transform: translate3d(-5%, -3%, 0) scale(1.06); }
}
.site-header {
  background:
    radial-gradient(circle at 18% -90%, rgba(255,255,255,.21), transparent 44%),
    linear-gradient(108deg, rgba(34,76,166,.97), rgba(47,94,192,.95) 48%, rgba(28,112,181,.97));
  box-shadow: 0 14px 40px rgba(2,8,28,.36);
  backdrop-filter: blur(22px) saturate(1.14);
}
.page-heading {
  background:
    radial-gradient(circle at 50% -80%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(118deg, #244d9f, #3868bc 54%, #236ca9 100%);
}
.browse-filter-panel,
.browse-catalog,
.unified-page-panel,
.market-section,
.detail-panel,
.detail-layout,
.creator-form,
.crop-controls,
.review-guidelines,
.auth-panel,
.empty-state.panel {
  border-color: rgba(155,184,255,.13);
  background: linear-gradient(155deg, rgba(20,31,60,.88), rgba(9,16,36,.91));
  box-shadow: 0 20px 55px rgba(1,7,25,.3), inset 0 1px rgba(220,232,255,.035);
  backdrop-filter: blur(15px) saturate(1.1);
}
.badge-card,
.collection-card,
.notification-card,
.sale-panel,
.breadcrumbs,
.filter-input-shell,
.browse-toolbar select,
.browse-toolbar .sold-out-toggle,
.item-type-options span,
.creator-item-type-options > label > span {
  border-color: rgba(155,184,255,.12);
  background-color: rgba(17,27,54,.84);
  box-shadow: inset 0 1px rgba(224,234,255,.035);
  backdrop-filter: blur(10px) saturate(1.08);
}
.badge-card:hover,
.collection-card:hover,
.notification-card:hover {
  border-color: rgba(151,179,255,.24);
  background-color: rgba(34,52,94,.9);
}
.filter-input-shell:focus-within,
.browse-toolbar select:focus {
  border-color: rgba(111,177,255,.7);
  box-shadow: 0 0 0 3px rgba(55,132,225,.16), inset 0 1px rgba(255,255,255,.04);
}
.item-type-options input:checked + span,
.creator-item-type-options input:checked + span {
  border-color: rgba(103,171,255,.72);
  background: rgba(49,119,211,.2);
  box-shadow: inset 0 0 0 1px rgba(121,188,255,.13);
}
.item-type-options input:focus-visible + span,
.creator-item-type-options input:focus-visible + span {
  outline-color: rgba(91,158,244,.38);
}
.site-header .nav-icon {
  width: 58px;
  height: 58px;
}
.site-header .nav-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}


@media (max-width: 680px) {
  .browse-filter-panel,
  .browse-catalog,
  .unified-page-panel,
  .market-section,
  .detail-panel,
  .detail-layout { backdrop-filter: blur(8px) saturate(1.06); }
}

@media (max-width: 780px) {
  .site-header .nav-icon { width: 43px; height: 43px; }
  .site-header .nav-icon svg { width: 24px; height: 24px; }
}

/* Mamestagram points-shop shelf: artwork-first, but still native to this UI. */
.browse-catalog-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.catalog-groups {
  display: grid;
  gap: 28px;
}

.catalog-group {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(151,183,242,.12);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(17,29,57,.72), rgba(8,16,35,.62));
  box-shadow: inset 0 1px rgba(229,240,255,.035);
}

.catalog-group::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -190px;
  left: -120px;
  width: 480px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,128,236,.16), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.catalog-group-frames::before {
  right: -120px;
  left: auto;
  background: radial-gradient(circle, rgba(86,108,232,.18), transparent 68%);
}

.catalog-group-heading {
  display: flex;
  min-height: 72px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(158,189,244,.12);
}

.catalog-group-heading > div { min-width: 0; }
.catalog-group-heading .eyebrow { margin: 0 0 2px; }
.catalog-group-heading h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -.015em;
  line-height: 1.15;
}
.catalog-group-heading > div > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.catalog-group-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border: 1px solid rgba(161,204,255,.23);
  border-radius: 12px;
  color: #b9dcff;
  background: linear-gradient(145deg, rgba(61,129,224,.24), rgba(38,73,146,.12));
  box-shadow: 0 10px 26px rgba(0,8,30,.25), inset 0 1px rgba(255,255,255,.09);
}

.catalog-group-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.catalog-group .item-type-pill { display: none; }
.category-empty {
  min-height: 190px;
  margin: 0;
  border: 1px dashed rgba(151,183,242,.15);
  box-shadow: none;
}

.badge-grid,
.recommendation-grid {
  position: relative;
  z-index: 0;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: stretch;
  align-items: start;
  gap: 18px;
}

.badge-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(155,184,255,.16);
  border-radius: 15px;
  background:
    linear-gradient(148deg, rgba(31,48,88,.94), rgba(12,21,45,.96));
  box-shadow:
    0 15px 34px rgba(1,7,25,.28),
    inset 0 1px rgba(230,240,255,.06);
  transition:
    border-color .28s ease,
    box-shadow .35s ease,
    transform .4s var(--easing);
}

.badge-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 24% -28% -36%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70,144,255,.2), transparent 66%);
  filter: blur(20px);
  opacity: .42;
  pointer-events: none;
  transform: scale(.86);
  transition: opacity .35s ease, transform .55s var(--easing);
}

.badge-card::after {
  z-index: 3;
  right: 14%;
  bottom: 0;
  left: 14%;
  width: auto;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, #75b7ff 24%, #94a9ff 76%, transparent);
  box-shadow: 0 -5px 18px rgba(87,157,255,.52);
  opacity: .52;
  transform: scaleX(.46);
  transform-origin: center;
}

.badge-card:hover {
  border-color: rgba(143,196,255,.38);
  background:
    linear-gradient(148deg, rgba(39,61,108,.97), rgba(14,26,55,.97));
  box-shadow:
    0 22px 48px rgba(1,7,25,.42),
    0 0 34px rgba(48,125,230,.14),
    inset 0 1px rgba(236,244,255,.1);
  transform: translateY(-6px);
}

.badge-card:hover::before {
  opacity: .82;
  transform: scale(1.08);
}

.badge-card:hover::after {
  opacity: .9;
  transform: scaleX(1);
}

.badge-art,
.detail-recommendations .badge-art {
  z-index: 1;
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(109,168,255,.14), transparent 48%),
    linear-gradient(145deg, #0a1227, #101e3d 68%, #0b1732);
  isolation: isolate;
}

.badge-art::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(170,203,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,203,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 120%, rgba(75,143,247,.26), transparent 55%);
  background-size: 22px 22px, 22px 22px, auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.2), #000);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.2), #000);
  pointer-events: none;
}

.badge-art::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -40%;
  bottom: -40%;
  left: -56%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(220,238,255,.18), transparent);
  filter: blur(2px);
  pointer-events: none;
  transform: skewX(-18deg) translateX(0);
  transition: transform .8s var(--easing);
}

.badge-card:hover .badge-art::after {
  transform: skewX(-18deg) translateX(560%);
}

.badge-art > .badge-art-ambient {
  position: absolute;
  z-index: 0;
  inset: -24%;
  width: 148%;
  height: 148%;
  object-fit: cover;
  filter: blur(27px) brightness(.72) saturate(1.45);
  opacity: .34;
  transform: scale(1.04);
  transition: filter .55s ease, opacity .45s ease, transform .7s var(--easing);
}

.badge-card:hover .badge-art > .badge-art-ambient {
  filter: blur(24px) brightness(.9) saturate(1.65);
  opacity: .52;
  transform: scale(1.14) rotate(-1.5deg);
}

.badge-product-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(62%, 184px);
  aspect-ratio: 1;
  padding: 5px;
  place-items: center;
  border: 1px solid rgba(216,232,255,.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(223,235,255,.15), rgba(111,149,218,.045));
  box-shadow:
    0 16px 30px rgba(0,5,20,.43),
    0 0 0 1px rgba(5,12,31,.32),
    inset 0 1px rgba(255,255,255,.13);
  backdrop-filter: blur(8px) saturate(1.12);
  transform: translateY(-1px);
  transition: border-color .35s ease, box-shadow .4s ease, transform .55s var(--easing);
}

.badge-product-stage::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -11px;
  left: 12%;
  height: 15px;
  border-radius: 50%;
  background: rgba(19,105,238,.34);
  filter: blur(11px);
  opacity: .55;
  pointer-events: none;
}

.badge-card:hover .badge-product-stage {
  border-color: rgba(222,237,255,.4);
  box-shadow:
    0 21px 38px rgba(0,5,20,.5),
    0 0 28px rgba(72,145,255,.23),
    inset 0 1px rgba(255,255,255,.18);
  transform: translateY(-5px) scale(1.035);
}

.badge-product-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 10px;
  object-fit: cover !important;
  transform: none !important;
  transition: filter .4s ease !important;
}

.badge-card:hover .badge-product-image {
  filter: brightness(1.05) saturate(1.08) !important;
  transform: none !important;
}

.badge-product-stage > .profile-frame-stack {
  width: 100%;
  height: 100%;
}

.item-profile_frame .badge-product-stage {
  width: min(69%, 200px);
  padding: 0;
  border-color: rgba(182,207,255,.17);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83,149,244,.18), rgba(8,16,37,.4) 66%, transparent 67%);
}

.badge-card:hover .frame-art-preview .profile-frame-avatar {
  transform: none;
}

.item-type-pill {
  z-index: 5;
  top: 11px;
  left: 11px;
  border-color: rgba(177,210,255,.22);
  border-radius: 7px;
  color: #eaf4ff;
  background: rgba(7,15,34,.66);
  box-shadow: 0 7px 22px rgba(0,3,15,.24), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(12px) saturate(1.1);
  font-size: .58rem;
  letter-spacing: .075em;
}

.badge-art-price {
  z-index: 5;
  right: 11px;
  bottom: 10px;
  padding: 8px 11px;
  border-color: rgba(190,218,255,.24);
  border-radius: 8px;
  background: rgba(5,12,29,.74);
  box-shadow: 0 9px 24px rgba(0,4,19,.36), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(13px) saturate(1.12);
  font-size: 1.08rem;
}

.badge-art-price small { color: #a9d2ff; }

.badge-tag-preview {
  z-index: 5;
  bottom: 11px;
  left: 11px;
}

.badge-tag-preview small {
  border-color: rgba(181,210,255,.17);
  color: #d9ecff;
  background: rgba(6,14,32,.64);
}

.badge-body {
  position: relative;
  height: 108px;
  min-height: 108px;
  padding: 13px 14px 8px;
  flex-basis: 108px;
  border-top: 1px solid rgba(173,202,255,.09);
  background: linear-gradient(180deg, rgba(21,34,66,.9), rgba(12,21,44,.94));
}

.badge-title-row h2 {
  font-size: 1.07rem;
  letter-spacing: .005em;
  line-height: 1.16;
}

.creator-line {
  margin-top: 3px;
  color: #aebbd4;
  font-size: .69rem;
}

.supply-row {
  width: 88%;
  margin-top: 7px;
  color: #9caac5;
  font-size: .66rem;
}

.supply-track {
  width: 80%;
  height: 4px;
  margin-top: 4px;
}

.is-sold-out .badge-product-stage {
  filter: grayscale(.55) brightness(.74);
}

.badge-card > .badge-card-link { z-index: 4; }
.badge-card .creator-line a { z-index: 5; }
.badge-art > .official-pill {
  z-index: 5;
  top: 42px;
  left: 11px;
}
.badge-art > .status-pill,
.badge-art > .sold-out-banner { z-index: 5; }


@media (max-width: 1180px) {
  .badge-grid,
  .recommendation-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 560px) {
  .browse-catalog-heading > div > p:last-child { display: none; }
  .catalog-groups { gap: 12px; }
  .catalog-group { padding: 10px; border-radius: 12px; }
  .catalog-group-heading { min-height: 52px; margin-bottom: 10px; padding-bottom: 9px; gap: 9px; }
  .catalog-group-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 9px; }
  .catalog-group-icon svg { width: 20px; height: 20px; }
  .catalog-group-heading .eyebrow,
  .catalog-group-heading > div > p:last-child { display: none; }
  .catalog-group-heading h3 { font-size: 1.05rem; }
  .badge-grid,
  .recommendation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .badge-card { border-radius: 11px; }
  .badge-art,
  .detail-recommendations .badge-art { aspect-ratio: 1 / .86; }
  .badge-product-stage { width: 67%; padding: 3px; border-radius: 10px; }
  .badge-product-image { border-radius: 7px; }
  .item-profile_frame .badge-product-stage { width: 72%; }
  .item-type-pill { top: 6px; left: 6px; padding: 4px 6px; font-size: .45rem; }
  .badge-art > .official-pill { top: 29px; left: 6px; padding: 4px 6px; font-size: .45rem; }
  .badge-art-price { right: 6px; bottom: 6px; padding: 5px 7px; font-size: .76rem; }
  .badge-body {
    height: 91px;
    min-height: 91px;
    padding: 9px 7px 6px;
    flex-basis: 91px;
  }
  .badge-title-row h2 { font-size: .82rem; }
  .creator-line { font-size: .57rem; }
  .supply-row { width: 96%; font-size: .56rem; }
  .supply-track { width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .page-heading::before,
  .page-heading::after,
  .badge-card,
  .badge-card::before,
  .badge-card::after,
  .badge-art::after,
  .badge-art-ambient,
  .badge-product-stage { transition: none !important; }
}

@media (max-width: 560px) {
  .site-header .main-nav {
    min-height: calc(74px + env(safe-area-inset-bottom));
  }
  .site-header .main-nav a,
  .site-header .main-nav a:hover { min-height: 64px; }
  .site-header .nav-icon { width: 40px; height: 40px; }
  .site-header .nav-icon svg { width: 24px; height: 24px; }
}

/* Cosmic atmosphere shared by every Market screen. */
body {
  background:
    radial-gradient(ellipse at 84% 3%, rgba(69, 129, 255, .24), transparent 31rem),
    radial-gradient(ellipse at 12% 72%, rgba(78, 75, 214, .2), transparent 39rem),
    radial-gradient(ellipse at 56% 112%, rgba(32, 150, 224, .14), transparent 38rem),
    linear-gradient(145deg, #030713 0%, #07142a 48%, #030a19 100%);
}

body::before {
  inset: -24%;
  opacity: .82;
  background:
    radial-gradient(ellipse at 18% 26%, rgba(85, 92, 239, .22), transparent 22%),
    radial-gradient(ellipse at 70% 18%, rgba(48, 147, 245, .18), transparent 24%),
    radial-gradient(ellipse at 58% 77%, rgba(89, 72, 214, .17), transparent 27%),
    radial-gradient(ellipse at 92% 63%, rgba(31, 117, 215, .13), transparent 20%);
  filter: blur(22px) saturate(1.2);
  transform: translate3d(-2%, -1%, 0) scale(1.04);
  animation: market-nebula-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  inset: -80px;
  opacity: .68;
  background:
    radial-gradient(circle, rgba(235, 246, 255, .88) 0 1px, transparent 1.6px) 0 0 / 79px 79px,
    radial-gradient(circle, rgba(139, 197, 255, .65) 0 1px, transparent 1.8px) 23px 31px / 127px 127px,
    radial-gradient(circle, rgba(183, 174, 255, .52) 0 1.4px, transparent 2.2px) 11px 7px / 193px 193px,
    radial-gradient(circle at 50% 50%, rgba(85, 160, 255, .08), transparent 58%);
  transform: translate3d(0, 0, 0);
  animation: market-starfield-drift 70s linear infinite alternate;
  will-change: transform;
}

.page-surface {
  isolation: isolate;
}

.page-heading {
  background:
    radial-gradient(ellipse at 14% 14%, rgba(148, 184, 255, .26), transparent 31%),
    radial-gradient(ellipse at 82% 88%, rgba(97, 88, 230, .25), transparent 38%),
    linear-gradient(121deg, rgba(27, 63, 143, .94), rgba(48, 83, 174, .91) 52%, rgba(21, 91, 150, .94));
}

.page-heading::before {
  inset: -42%;
  opacity: .84;
  background:
    radial-gradient(circle, rgba(244, 250, 255, .95) 0 1.1px, transparent 1.8px) 0 0 / 67px 67px,
    radial-gradient(circle, rgba(158, 210, 255, .75) 0 1px, transparent 1.7px) 21px 33px / 113px 113px,
    radial-gradient(circle, rgba(203, 190, 255, .68) 0 1.5px, transparent 2.3px) 7px 15px / 181px 181px;
  filter: none;
  transform: translate3d(-3%, -2%, 0) rotate(-1deg);
  animation: title-starfield-orbit 29s linear infinite;
}

.page-heading::after {
  inset: -48%;
  opacity: .78;
  background:
    radial-gradient(ellipse at 24% 42%, rgba(94, 141, 255, .27), transparent 23%),
    radial-gradient(ellipse at 70% 31%, rgba(71, 186, 255, .2), transparent 20%),
    radial-gradient(ellipse at 68% 72%, rgba(120, 91, 232, .23), transparent 25%),
    conic-gradient(from 118deg at 52% 50%, transparent 0 38%, rgba(195, 222, 255, .08) 43%, transparent 48% 100%);
  filter: blur(10px) saturate(1.2);
  transform: translate3d(2%, 1%, 0) scale(1.04);
  animation: title-nebula-orbit 20s ease-in-out infinite alternate;
}

.catalog-group::before {
  animation: catalogue-nebula-float 13s ease-in-out infinite alternate;
  will-change: transform;
}

.catalog-group-icon {
  position: relative;
  overflow: hidden;
}

.catalog-group-icon::after {
  content: "";
  position: absolute;
  inset: -55%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .24) 49%, transparent 63%);
  transform: translateX(-45%) rotate(12deg);
  animation: category-icon-glint 5.8s ease-in-out infinite;
  pointer-events: none;
}

.catalog-group-badges .catalog-group-icon {
  color: #b8e2ff;
  background:
    radial-gradient(circle at 32% 18%, rgba(217, 242, 255, .18), transparent 38%),
    linear-gradient(145deg, rgba(31, 135, 224, .34), rgba(37, 75, 163, .13));
}

.catalog-group-frames .catalog-group-icon {
  color: #d0c8ff;
  background:
    radial-gradient(circle at 32% 18%, rgba(224, 217, 255, .19), transparent 38%),
    linear-gradient(145deg, rgba(105, 87, 225, .34), rgba(47, 74, 164, .13));
}

@keyframes market-nebula-drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.04) rotate(-1deg); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.09) rotate(1deg); }
  100% { transform: translate3d(-1%, 5%, 0) scale(1.06) rotate(-.5deg); }
}

@keyframes market-starfield-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-96px, 72px, 0); }
}

@keyframes title-starfield-orbit {
  from { transform: translate3d(-3%, -2%, 0) rotate(-1deg); }
  to { transform: translate3d(7%, 5%, 0) rotate(2deg); }
}

@keyframes title-nebula-orbit {
  from { transform: translate3d(-3%, -1%, 0) scale(1.03) rotate(-2deg); }
  to { transform: translate3d(5%, 3%, 0) scale(1.11) rotate(2deg); }
}

@keyframes catalogue-nebula-float {
  from { transform: translate3d(-4%, -3%, 0) scale(.96); opacity: .74; }
  to { transform: translate3d(8%, 7%, 0) scale(1.12); opacity: 1; }
}

@keyframes category-icon-glint {
  0%, 62% { transform: translateX(-58%) rotate(12deg); opacity: 0; }
  72% { opacity: .85; }
  88%, 100% { transform: translateX(58%) rotate(12deg); opacity: 0; }
}


/* Keep each navigation glyph distinct; legacy pseudo glyphs must never stack. */
.site-header .main-nav > a::before {
  display: none !important;
  content: none !important;
}

.site-header .nav-icon > svg {
  display: block;
  overflow: visible;
}

.site-header .nav-icon-browse { color: #d8edff; }
.site-header .nav-icon-notifications { color: #e6e3ff; }
.site-header .nav-icon-collection { color: #d5f1ff; }
.site-header .nav-icon-create { color: #e0dcff; }

/* Prevent the stock toggle copy and switch from colliding in the narrow rail. */
.browse-toolbar .sold-out-toggle {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 40px;
  column-gap: 12px;
  overflow: hidden;
}

.sold-out-toggle .toggle-copy {
  min-width: 0;
  padding: 0;
  gap: 3px;
  white-space: normal;
}

.sold-out-toggle .toggle-copy strong,
.sold-out-toggle .toggle-copy small {
  display: block;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.browse-toolbar .sold-out-toggle i {
  width: 40px;
  min-width: 40px;
  justify-self: end;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .page-heading::before,
  .page-heading::after,
  .catalog-group::before,
  .catalog-group-icon::after {
    animation: none !important;
  }
}

/* Lightweight cosmic chrome: depth belongs to the title card, not the viewport. */
body::before,
body::after,
.cosmic-backdrop {
  display: none !important;
}


.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 24% 22%, rgba(138, 191, 255, .08), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(53, 127, 226, .08), transparent 27%),
    linear-gradient(115deg, transparent 30%, rgba(153, 202, 255, .04) 52%, transparent 70%);
  animation: none;
  pointer-events: none;
}

.site-header::after {
  height: 2px;
  opacity: .56;
  background: linear-gradient(90deg, transparent 3%, #2e72c7 28%, #9ac8ff 50%, #2f7bd5 72%, transparent 97%);
}

.site-header-inner {
  position: relative;
  z-index: 1;
}


.page-heading::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .92;
  background-image: url("/static/nebula-flight.jpg");
  background-image: image-set(
    url("/static/nebula-flight.avif") type("image/avif"),
    url("/static/nebula-flight.jpg") type("image/jpeg")
  );
  background-position: 50% 52%;
  background-size: cover;
  animation: none;
  filter: none;
  transform: none;
  pointer-events: none;
}

.page-heading::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(2, 10, 30, .58), rgba(4, 18, 49, .13) 44%, rgba(2, 12, 34, .5)),
    linear-gradient(0deg, rgba(1, 8, 24, .45), transparent 64%);
  animation: none;
  filter: none;
  transform: none;
  pointer-events: none;
}

.page-heading > * {
  position: relative;
  z-index: 2;
}

.page-heading h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 4, 24, .55);
}

.page-heading .eyebrow,
.page-heading p:last-child {
  color: rgba(235, 246, 255, .86);
  text-shadow: 0 2px 12px rgba(0, 5, 24, .5);
}

/* The panels keep their glass colouring without repainting backdrop blur. */
.browse-filter-panel,
.browse-catalog,
.unified-page-panel,
.market-section,
.detail-panel,
.detail-layout,
.creator-form,
.crop-controls,
.review-guidelines,
.auth-panel,
.empty-state.panel,
.badge-card,
.collection-card,
.notification-card,
.sale-panel,
.breadcrumbs,
.filter-input-shell,
.browse-toolbar select,
.browse-toolbar .sold-out-toggle {
  backdrop-filter: none;
}

@media (max-width: 560px) {
  .page-heading::before { background-position: 50% 50%; }
}

/* Profile frames use the same 1:1, softly rounded avatar crop as profiles. */
.profile-frame-stack {
  overflow: visible;
  isolation: isolate;
}

.profile-frame-stack > .profile-frame-avatar {
  z-index: 1;
  width: 72% !important;
  height: 72% !important;
  border: 0;
  border-radius: 25%;
  object-fit: cover !important;
  box-shadow: 0 14px 40px rgba(2, 7, 24, .36);
}

/* The Create screen has two separate squares: a fixed outer workspace and the
   real 1:1 avatar canvas inside it. The surrounding workspace is deliberate:
   it keeps frame artwork and resize handles away from the page/header edges. */
.preview-art.is-frame-preview {
  width: min(100%, 520px);
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  justify-self: center;
  contain: layout paint;
}

.preview-art > .badge-direct-preview {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-art > .badge-direct-preview[hidden] { display: none !important; }

.frame-preview-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100% !important;
  height: 100% !important;
  place-items: center;
  isolation: isolate;
  pointer-events: none;
}

.preview-art.is-frame-preview .frame-preview-canvas {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 72% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.frame-preview-canvas[hidden],
.preview-art [data-frame-preview-overlay][hidden],
.preview-art [data-frame-preview-overlay]:not([src]),
.preview-art.is-frame-preview:not(.is-frame-ready) [data-frame-preview-overlay],
.preview-art.is-frame-preview:not(.is-frame-ready) .frame-direct-editor {
  display: none !important;
}

.preview-art.is-frame-preview .frame-preview-avatar {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 25%;
  object-fit: cover !important;
  box-shadow: 0 14px 40px rgba(2, 7, 24, .36);
}

.profile-frame-layer,
.frame-preview-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  width: 100% !important;
  height: 100% !important;
  place-items: center;
  pointer-events: none;
}

.profile-frame-overlay,
.preview-art.is-frame-preview [data-frame-preview-overlay] {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  /* Runtime placement owns these dimensions. Keeping them non-important is
     required so the artwork and its resize guide stay on the same geometry. */
  width: 86.4%;
  height: 86.4%;
  /* The server normalises every frame to a square. `fill` makes a non-square
     APNG preview mirror that normalisation and makes independent width/height
     handles stretch the artwork itself rather than only its invisible box. */
  object-fit: fill !important;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: filter .24s ease;
  pointer-events: none;
}

.preview-art.is-frame-preview [data-frame-preview-overlay] {
  width: 120%;
  height: 120%;
}

.item-profile_frame .badge-product-stage {
  border-radius: 22%;
  background: radial-gradient(circle, rgba(83,149,244,.18), rgba(8,16,37,.4) 66%, transparent 67%);
}

.preview-art.is-frame-preview {
  isolation: isolate;
  touch-action: none;
}

.preview-art.is-frame-preview.is-frame-ready { cursor: grab; }
.preview-art.is-frame-preview.is-frame-ready:active { cursor: grabbing; }
.preview-art.is-frame-preview.is-frame-loading .frame-preview-canvas {
  opacity: .72;
}
.preview-art.is-frame-preview[data-frame-preview-state="error"] .frame-preview-canvas {
  opacity: .58;
}
.preview-art.is-frame-preview [data-preview-placeholder] {
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(190, 218, 255, .2);
  border-radius: 8px;
  background: rgba(5, 12, 29, .66);
  backdrop-filter: blur(8px);
}

.frame-direct-editor {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}
.frame-direct-editor[hidden] { display: none; }
.frame-selection-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  display: block;
  border: 1px solid rgba(126, 190, 255, .92);
  box-shadow: 0 0 0 1px rgba(4, 12, 30, .5), 0 0 18px rgba(54, 145, 239, .25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.frame-transform-handle {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid #f5f9ff;
  border-radius: 4px;
  background: #4c9af0;
  box-shadow: 0 2px 8px rgba(1, 8, 25, .58), 0 0 12px rgba(76, 154, 240, .56);
  pointer-events: auto;
  touch-action: none;
}
.handle-nw { top: 0; left: 0; cursor: nwse-resize; transform: translate(-50%, -50%); }
.handle-n { top: 0; left: 50%; cursor: ns-resize; transform: translate(-50%, -50%); }
.handle-ne { top: 0; right: 0; cursor: nesw-resize; transform: translate(50%, -50%); }
.handle-e { top: 50%; right: 0; cursor: ew-resize; transform: translate(50%, -50%); }
.handle-se { right: 0; bottom: 0; cursor: nwse-resize; transform: translate(50%, 50%); }
.handle-s { bottom: 0; left: 50%; cursor: ns-resize; transform: translate(-50%, 50%); }
.handle-sw { bottom: 0; left: 0; cursor: nesw-resize; transform: translate(-50%, 50%); }
.handle-w { top: 50%; left: 0; cursor: ew-resize; transform: translate(-50%, -50%); }

.frame-transform-controls {
  display: grid;
  padding: 16px;
  gap: 14px;
  border-radius: 12px;
  background: var(--panel-solid);
}

.frame-transform-controls[hidden] { display: none; }
.frame-direct-hint {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(88, 159, 239, .2);
  border-radius: 9px;
  color: var(--text-soft);
  background: rgba(34, 66, 115, .23);
  font-size: .73rem;
  line-height: 1.5;
}
.frame-background-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(91, 190, 235, .24);
  border-radius: 9px;
  color: #b9eaff;
  background: rgba(40, 126, 178, .1);
  font-size: .75rem;
  line-height: 1.5;
}

.frame-fine-tune {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 17, 37, .28);
}
.frame-fine-tune summary {
  padding: 12px 14px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}
.frame-fine-tune-grid {
  display: grid;
  padding: 4px 14px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 18px;
}
.frame-transform-controls label { display: grid; gap: 7px; }
.frame-transform-controls label > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: .73rem;
  font-weight: 800;
}
.frame-transform-controls output {
  color: var(--pink-0);
  font-variant-numeric: tabular-nums;
}
.frame-transform-controls p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}


@media (max-width: 680px) {
  .frame-transform-controls { padding: 13px; }
}

/* Remove the remaining purple interaction states from the previous theme. */
.brand:hover .brand-mark {
  box-shadow: 0 0 0 4px rgba(107, 174, 255, .28), 0 10px 28px rgba(0, 5, 24, .4);
}

.site-header .main-nav a:hover {
  color: #fff;
  background: rgba(116, 177, 255, .14);
}

.site-header .main-nav a:hover .nav-icon,
.site-header .main-nav a[aria-current="page"] .nav-icon {
  color: #245b9f;
  background: #f5f9ff;
  box-shadow: 0 8px 22px rgba(4, 35, 83, .28), 0 0 0 4px rgba(190, 222, 255, .16);
}

.site-header .account-menu summary:hover,
.browse-toolbar .sold-out-toggle:hover {
  background: rgba(125, 187, 255, .16);
}

.account-popover a:hover,
.account-popover button:hover,
.pagination-button:hover:not(.is-disabled),
.badge-tag-list a:hover {
  color: #fff;
  background: #2f72c9;
  box-shadow: 0 8px 22px rgba(18, 87, 176, .24);
}

.button:hover:not(:disabled) {
  border-color: rgba(153, 204, 255, .28);
  background: #2b426d;
  box-shadow: inset 0 0 0 1px rgba(223, 240, 255, .09);
}

.button-primary:hover:not(:disabled) {
  color: #fff;
  background: #4b91e8;
  box-shadow: 0 10px 28px rgba(34, 112, 210, .3);
}

.comment-card:hover,
.detail-recommendations .badge-card:hover {
  border-color: rgba(137, 190, 255, .24);
  background: rgba(31, 51, 91, .9);
}

.upload-field:hover,
.upload-field:focus-within {
  border-color: #70b3ff;
  background: rgba(31, 51, 91, .72);
  box-shadow: 0 0 0 4px rgba(58, 137, 232, .13);
}

.badge-card:hover .frame-art-preview .profile-frame-avatar {
  filter: brightness(1.04) saturate(1.04);
  transform: none;
}

.badge-card:hover .frame-art-preview .profile-frame-overlay {
  filter: drop-shadow(0 10px 24px rgba(65, 144, 240, .4));
  transform: translate(-50%, -50%);
}

@media (max-width: 560px) {
  .frame-fine-tune-grid { grid-template-columns: 1fr; }
  .frame-transform-handle { width: 20px; height: 20px; }
}


/* Collection inventory is split into the two independently equipped slots. */
.collection-type-groups {
  display: grid;
  padding: clamp(16px, 2.4vw, 28px);
  gap: 20px;
}

.collection-type {
  --collection-category-rgb: 111, 144, 255;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--collection-category-rgb), .24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(var(--collection-category-rgb), .1), transparent 34%),
    rgba(10, 18, 39, .7);
  box-shadow: 0 18px 44px rgba(1, 7, 24, .22);
}

.collection-type::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--collection-category-rgb)), transparent 72%);
  content: "";
}

.collection-type-frames { --collection-category-rgb: 73, 190, 235; }

.collection-type-heading {
  display: grid;
  min-height: 116px;
  padding: 22px 24px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.collection-type-heading > div { min-width: 0; }
.collection-type-heading .eyebrow { color: rgb(var(--collection-category-rgb)); }
.collection-type-heading h2 {
  margin: 3px 0 4px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -.025em;
}
.collection-type-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.collection-type-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(var(--collection-category-rgb), .34);
  border-radius: 12px;
  color: rgb(var(--collection-category-rgb));
  background: rgba(var(--collection-category-rgb), .12);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 28px rgba(0,5,22,.2);
}
.collection-type-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collection-type-count {
  display: grid;
  min-width: 72px;
  justify-items: end;
  color: var(--muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.collection-type-count b {
  color: var(--text);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.collection-subsection,
.collection-type > .collection-grid,
.collection-category-empty {
  border-top: 1px solid rgba(var(--collection-category-rgb), .15);
}
.collection-subsection { padding: 20px 24px 24px; }
.collection-subsection + .collection-subsection {
  border-top-color: rgba(var(--collection-category-rgb), .1);
}
.collection-type > .collection-grid { padding: 22px 24px 24px; }
.collection-slot-grid { grid-template-columns: minmax(280px, 430px); }
.collection-frame-grid { align-items: stretch; }
.collection-none-card {
  border: 1px dashed rgba(var(--collection-category-rgb), .3);
  background: rgba(var(--collection-category-rgb), .045);
}
.collection-none-card.is-selected {
  border-style: solid;
  border-color: rgba(var(--collection-category-rgb), .48);
  background: rgba(var(--collection-category-rgb), .11);
  box-shadow: inset 0 0 0 1px rgba(var(--collection-category-rgb), .08);
}
.collection-none-art {
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--collection-category-rgb), .22);
  color: rgba(var(--collection-category-rgb), .82);
  background: rgba(var(--collection-category-rgb), .08);
}
.collection-none-art svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.collection-none-card:hover .collection-none-art svg { transform: none; }
.collection-subsection .collection-group-heading { margin-bottom: 16px; }
.collection-subsection .collection-group-heading h3 {
  margin: 1px 0 0;
  color: var(--text);
  font-size: 1.08rem;
}
.collection-subsection .rarity-heading h4 {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1rem;
}

.collection-category-empty {
  display: flex;
  min-height: 116px;
  padding: 24px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(var(--collection-category-rgb), .8);
  text-align: left;
}
.collection-category-empty > span { font-size: 2rem; }
.collection-category-empty h3 { margin: 0 0 3px; color: var(--text); font-size: .95rem; }
.collection-category-empty p { margin: 0; color: var(--muted); font-size: .7rem; }


@media (max-width: 680px) {
  .collection-type-groups { padding: 12px 10px 18px; gap: 12px; }
  .collection-type { border-radius: 11px; }
  .collection-type-heading {
    min-height: 96px;
    padding: 16px 14px;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 11px;
  }
  .collection-type-icon { width: 46px; height: 46px; border-radius: 10px; }
  .collection-type-icon svg { width: 25px; height: 25px; }
  .collection-type-heading h2 { font-size: 1.15rem; }
  .collection-type-heading > div > p:last-child { display: none; }
  .collection-type-count { min-width: 44px; }
  .collection-type-count b { font-size: 1.05rem; }
  .collection-subsection,
  .collection-type > .collection-grid { padding: 14px 10px 16px; }
  .collection-category-empty { min-height: 96px; padding: 18px 12px; }
}

/* In-market item and purchase dialog. */
html.market-modal-open { overflow: hidden; }
.market-item-modal[hidden] { display: none !important; }
.market-item-modal {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  padding: clamp(12px, 2.4vw, 34px);
  place-items: center;
  opacity: 0;
  transition: opacity .18s ease;
}
.market-item-modal.is-open { opacity: 1; }
.market-item-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 8, 24, .76);
  cursor: default;
  backdrop-filter: blur(16px) saturate(.85);
}
.market-item-modal-panel {
  position: relative;
  display: block;
  width: min(1380px, 100%);
  max-height: min(92dvh, 980px);
  overflow: hidden;
  border: 1px solid rgba(126, 176, 255, .3);
  border-radius: 18px;
  outline: 0;
  background: rgba(8, 15, 34, .97);
  box-shadow: 0 38px 110px rgba(0, 3, 18, .72), 0 0 0 1px rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(22px) scale(.975);
  transition: opacity .18s ease, transform .28s var(--easing);
}
.market-item-modal.is-open .market-item-modal-panel { opacity: 1; transform: none; }
.market-item-modal-content,
.market-item-modal-document { min-height: 0; }
.market-item-modal-document {
  display: grid;
  max-height: min(92dvh, 980px);
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0, rgba(83, 128, 224, .16), transparent 32%),
    linear-gradient(160deg, rgba(15, 27, 56, .98), rgba(7, 13, 30, .99));
}
.market-item-modal-header {
  position: relative;
  z-index: 12;
  display: flex;
  min-height: 64px;
  padding: 10px 14px 10px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(126, 176, 255, .17);
  background: rgba(10, 20, 44, .9);
  box-shadow: 0 12px 30px rgba(0, 4, 22, .22);
  backdrop-filter: blur(20px);
}
.market-item-modal-header > div { min-width: 0; }
.market-item-modal-header .eyebrow { margin: 0 0 2px; color: #85baff; font-size: .61rem; }
.market-item-modal-header strong {
  display: block;
  overflow: hidden;
  font-size: 1.12rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-item-modal-close {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(149, 194, 255, .18);
  border-radius: 11px;
  color: #dceaff;
  background: rgba(111, 160, 229, .09);
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s, transform .25s var(--easing);
}
.market-item-modal-close:hover {
  border-color: rgba(159, 204, 255, .42);
  color: #fff;
  background: rgba(101, 160, 239, .2);
  transform: rotate(4deg) scale(1.04);
}
.market-item-modal-close svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.market-item-modal-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(10px, 1.5vw, 18px);
  overscroll-behavior: contain;
  scrollbar-color: rgba(129, 177, 245, .7) rgba(255,255,255,.04);
}
.market-item-modal .detail-layout {
  min-height: 0;
  padding: 18px;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 22px;
  border-color: rgba(126, 176, 255, .14);
  background: linear-gradient(125deg, rgba(78, 133, 231, .12), transparent 42%), rgba(7, 14, 31, .72);
}
.market-item-modal .detail-art { width: min(100%, 250px); justify-self: center; }
.market-item-modal .detail-copy {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 390px);
  gap: 20px;
}
.market-item-modal .detail-copy h1 { font-size: clamp(2rem, 3vw, 3rem); }
.market-item-modal .detail-content-grid { margin-top: 12px; margin-bottom: 2px; gap: 12px; }
.market-item-modal .detail-aside-stack { gap: 12px; }
.market-item-modal .detail-panel { padding: 18px; }
.market-item-modal .detail-panel-heading { margin-bottom: 15px; }
.market-item-modal .comment-composer { margin-bottom: 16px; padding: 12px; }
.market-item-modal .comment-composer textarea { height: 72px; min-height: 72px; max-height: 72px; }
.market-item-modal .creator-spotlight {
  padding: 18px;
  grid-template-columns: 86px minmax(0, 1fr);
  column-gap: 14px;
}
.market-item-modal .creator-spotlight-avatar,
.market-item-modal .creator-spotlight-avatar img { width: 86px; height: 86px; border-radius: 16px; }
.market-item-modal .creator-spotlight-copy h2 { font-size: 1.3rem; }
.market-item-modal .creator-market-stats { margin-top: 8px; }
.market-item-modal .creator-market-stats span { min-height: 54px; padding: 8px; }
.market-item-modal .creator-spotlight-actions { margin-top: 12px; }
.market-item-modal .market-modal-notice {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  width: 100%;
  margin: 0 0 14px;
  transform: none;
  animation-name: market-modal-notice-enter;
}
@keyframes market-modal-notice-enter {
  from { opacity: 0; transform: translateY(-9px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.market-item-modal-loading {
  display: grid;
  min-height: min(76dvh, 720px);
  padding: 40px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  background: radial-gradient(circle, rgba(83, 135, 230, .12), transparent 38%);
}
.market-item-modal-loading > span {
  width: 58px;
  height: 58px;
  margin-bottom: 7px;
  border: 4px solid rgba(139, 186, 255, .16);
  border-top-color: #80b4ff;
  border-radius: 50%;
  animation: loader-orbit .85s linear infinite;
}
.market-item-modal-loading strong { color: var(--text); font-size: 1.2rem; }
.market-item-modal-loading small { font-size: .76rem; }
.market-item-modal-error-body {
  display: grid;
  min-height: 420px;
  padding: 44px 24px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}
.market-item-modal-error-body > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: var(--danger); background: rgba(255, 102, 128, .12); font-size: 1.5rem; font-weight: 900; }
.market-item-modal-error-body h2 { margin: 8px 0 0; font-size: 1.6rem; }
.market-item-modal-error-body p { max-width: 520px; margin: 0 0 14px; color: var(--muted); }


@media (max-width: 900px) {
  .market-item-modal .detail-layout { grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); gap: 18px; }
  .market-item-modal .detail-art { width: min(100%, 220px); }
  .market-item-modal .detail-copy { grid-template-columns: 1fr; gap: 14px; }
  .market-item-modal .sale-panel { padding: 16px; }
  .market-item-modal .detail-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .market-item-modal { padding: 8px; align-items: end; }
  .market-item-modal-panel,
  .market-item-modal-document { width: 100%; max-height: calc(100dvh - 8px); }
  .market-item-modal-panel { border-radius: 16px 16px 0 0; }
  .market-item-modal-header { min-height: 66px; padding: 10px 10px 10px 16px; }
  .market-item-modal-close { width: 44px; height: 44px; }
  .market-item-modal-scroll { padding: 10px 0 24px; }
  .market-item-modal .market-modal-notice { width: calc(100% - 20px); margin-inline: 10px; }
  .market-item-modal .detail-layout { padding: 14px 12px 18px; grid-template-columns: 1fr; gap: 16px; border-right: 0; border-left: 0; border-radius: 0; }
  .market-item-modal .detail-art { width: min(58vw, 220px); }
  .market-item-modal .detail-copy { width: 100%; grid-template-columns: 1fr; gap: 12px; }
  .market-item-modal .detail-copy h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .market-item-modal .detail-summary { text-align: center; }
  .market-item-modal .detail-kicker,
  .market-item-modal .badge-tag-list { justify-content: center; }
  .market-item-modal .description { max-height: none; text-align: left; }
  .market-item-modal .sale-panel { padding: 14px; }
  .market-item-modal .detail-content-grid { gap: 12px; }
  .market-item-modal .detail-panel { border-right: 0; border-left: 0; border-radius: 0; }
}

/* Single inventory label used after removing claimed progress from item cards. */
.badge-stock {
  width: 100%;
  margin: 9px 0 auto;
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 680px) {
  .badge-stock { margin: 6px 0 auto; font-size: .72rem; }
}

/* Animated equipped-badge preview used by item details and the item modal. */
.badge-detail-preview {
  isolation: isolate;
  /* Avoid retaining a blurred backdrop/compositor layer behind the avatar. */
  backdrop-filter: none;
  background:
    radial-gradient(circle at 68% 72%, rgba(107, 174, 255, .24), transparent 34%),
    linear-gradient(145deg, rgba(18, 34, 70, .98), rgba(7, 14, 33, .99));
}

.badge-avatar-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.badge-preview-avatar {
  position: relative;
  z-index: 2;
  width: 68% !important;
  height: 68% !important;
  border: 0;
  border-radius: 25%;
  object-fit: cover !important;
  box-shadow: none;
  filter: none;
  transform: none;
  animation: badge-preview-avatar-reveal .38s ease-out .24s backwards;
}

.badge-preview-pin {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 10%;
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(219, 237, 255, .48);
  border-radius: 24%;
  background: rgba(13, 25, 53, .94);
  box-shadow: 0 12px 24px rgba(0, 5, 25, .38), 0 0 0 4px rgba(98, 168, 255, .1);
  backdrop-filter: none;
  animation: badge-preview-equip .98s cubic-bezier(.18, .86, .24, 1) backwards;
}

.badge-preview-icon {
  width: 88% !important;
  height: 88% !important;
  border-radius: 18%;
  object-fit: cover !important;
}

@keyframes badge-preview-avatar-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes badge-preview-equip {
  0% { opacity: 0; transform: translate3d(-72%, -68%, 0) scale(1.38) rotate(0); }
  12%, 30% { opacity: 1; transform: translate3d(-72%, -68%, 0) scale(1.62) rotate(0); }
  66% { transform: translate3d(7%, 7%, 0) scale(.82) rotate(4deg); }
  82% { transform: translate3d(-3%, -3%, 0) scale(1.09) rotate(-2deg); }
  92% { transform: translate3d(1%, 1%, 0) scale(.97) rotate(.7deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-preview-avatar,
  .badge-preview-pin { animation: none !important; }
}

/* M Point guide and the Browse entry point. */
.market-browse-hero { min-height: 220px !important; }
.market-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: .94rem;
  font-weight: 600;
}
.m-point-help-link {
  display: inline-grid;
  min-width: min(100%, 390px);
  min-height: 58px;
  margin-top: 18px;
  padding: 8px 11px;
  align-items: center;
  grid-template-columns: 38px minmax(0,1fr) 20px;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px;
  color: #fff;
  background: rgba(9,20,52,.27);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 28px rgba(4,10,39,.18);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .25s var(--easing);
}
.m-point-help-link:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(13,29,72,.42);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 14px 32px rgba(4,10,39,.25);
  transform: translateY(-2px);
}
.m-point-help-link-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  font-size: 1.08rem;
  font-weight: 900;
}
.m-point-help-link > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.m-point-help-link strong { font-size: .82rem; letter-spacing: .01em; }
.m-point-help-link small { color: rgba(255,255,255,.7); font-size: .65rem; font-weight: 600; }
.m-point-help-link > svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.m-point-help-page {
  --m-point-blue: 113, 163, 255;
  width: 100%;
  min-width: 0;
}
.m-point-help-hero { min-height: 238px; }
.m-point-help-hero .market-hero-copy,
.m-point-help-content,
.m-point-help-section,
.m-point-formula-layout,
.m-point-formula-copy,
.m-point-repeat-card { min-width: 0; max-width: 100%; }
.m-point-help-hero h1,
.m-point-help-hero p { max-width: 100%; overflow-wrap: anywhere; }
.m-point-help-hero .button { margin-top: 19px; border: 1px solid rgba(255,255,255,.18); }
.m-point-help-content { display: grid; padding: 24px; gap: 18px; }
.m-point-earning-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.m-point-earning-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 156px;
  padding: 22px;
  overflow: hidden;
  align-content: end;
  border: 1px solid rgba(var(--m-point-blue),.15);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(var(--m-point-blue),.13), transparent 45%),
    rgba(11,20,44,.64);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.m-point-earning-card.is-primary {
  border-color: rgba(126,153,255,.29);
  background:
    radial-gradient(circle at 100% 0, rgba(100,161,255,.25), transparent 48%),
    linear-gradient(145deg, rgba(41,63,126,.8), rgba(15,25,57,.86));
}
.m-point-card-number {
  position: absolute;
  top: 14px;
  right: 17px;
  color: rgba(175,205,255,.22);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
}
.m-point-earning-card .eyebrow { color: #87b9ff; }
.m-point-earning-card h2 { margin: 3px 0 7px; color: var(--text); font-size: clamp(1.35rem,2.2vw,1.85rem); line-height: 1.05; }
.m-point-earning-card p:last-child { max-width: 360px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.52; }

.m-point-help-section {
  padding: clamp(20px,3vw,30px);
  border: 1px solid rgba(var(--m-point-blue),.13);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(17,28,57,.78), rgba(8,15,34,.76));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.m-point-help-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.m-point-help-heading h2 { margin: 2px 0 0; color: var(--text); font-size: clamp(1.45rem,2.5vw,2rem); line-height: 1.08; }
.m-point-help-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.m-point-code-badge {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(102,190,255,.24);
  border-radius: 8px;
  color: #87c9ff;
  background: rgba(64,147,255,.09);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.m-point-formula-layout { display: grid; align-items: stretch; grid-template-columns: minmax(0,1.65fr) minmax(230px,.7fr); gap: 16px; }
.m-point-formula-copy > p { margin: 0 0 16px; color: var(--text-soft); font-size: .84rem; line-height: 1.62; }
.m-point-formula-copy > p strong { color: #fff; }
.m-point-formula {
  display: grid;
  padding: 17px 18px;
  overflow-x: auto;
  grid-template-columns: auto minmax(max-content,1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(122,173,255,.17);
  border-radius: 10px;
  background: rgba(3,9,25,.58);
}
.m-point-formula > span { padding: 5px 8px; border-radius: 6px; color: #9bc7ff; background: rgba(83,146,255,.12); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.m-point-formula code { color: #e4edff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; white-space: nowrap; }
.m-point-rule-list { display: grid; margin: 17px 0 0; padding: 0; gap: 9px; list-style: none; }
.m-point-rule-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: .78rem; line-height: 1.48; }
.m-point-rule-list li::before { content: ""; position: absolute; top: .53em; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #74adff; box-shadow: 0 0 12px rgba(90,161,255,.5); }
.m-point-rule-list strong { color: var(--text); }
.m-point-rule-list code { color: #a8ccff; }
.m-point-repeat-card {
  padding: 20px;
  border: 1px solid rgba(117,167,255,.16);
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, rgba(105,155,255,.14), transparent 44%),
    rgba(27,41,77,.55);
}
.m-point-repeat-card h3 { margin: 3px 0 8px; color: var(--text); font-size: 1.08rem; line-height: 1.25; }
.m-point-repeat-intro { margin: 0 0 14px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.m-point-repeat-intro strong { color: #fff; }
.m-point-repeat-summary {
  display: grid;
  margin-bottom: 11px;
  padding: 11px 12px;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(127,178,255,.17);
  border-radius: 8px;
  background: rgba(5,13,33,.43);
}
.m-point-repeat-summary > span:not(.m-point-repeat-arrow) { display: grid; gap: 2px; }
.m-point-repeat-summary small,
.m-point-repeat-step small,
.m-point-repeat-result small { color: #8eb9f8; font-size: .52rem; font-weight: 900; letter-spacing: .07em; line-height: 1.2; }
.m-point-repeat-summary strong { color: #fff; font-size: .9rem; font-variant-numeric: tabular-nums; }
.m-point-repeat-summary > span:last-child { text-align: right; }
.m-point-repeat-arrow { color: #75abfa; font-size: 1rem; }
.m-point-repeat-card ol { display: grid; margin: 0; padding: 0; gap: 6px; list-style: none; }
.m-point-repeat-card li {
  display: grid;
  min-height: 45px;
  padding: 8px 10px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(4,11,29,.34);
}
.m-point-repeat-card li.is-zero { border: 1px solid rgba(255,126,153,.12); background: rgba(51,16,35,.27); }
.m-point-repeat-step,
.m-point-repeat-result { display: grid; min-width: 0; gap: 2px; }
.m-point-repeat-step strong { overflow-wrap: anywhere; color: var(--text-soft); font-size: .7rem; line-height: 1.25; }
.m-point-repeat-result { text-align: right; }
.m-point-repeat-result small { color: var(--muted); letter-spacing: 0; text-transform: none; }
.m-point-repeat-result strong { color: #fff; font-size: .88rem; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-point-repeat-card li.is-zero .m-point-repeat-result strong { color: #ff9db0; }
.m-point-repeat-note { margin: 12px 2px 0; color: var(--muted); font-size: .64rem; line-height: 1.48; }
.m-point-repeat-note strong { color: var(--text-soft); }

.m-point-example-table-wrap { overflow-x: auto; border: 1px solid rgba(119,164,247,.14); border-radius: 10px; }
.m-point-example-table { width: 100%; min-width: 620px; border-collapse: collapse; color: var(--text-soft); font-size: .78rem; }
.m-point-example-table th,
.m-point-example-table td { padding: 14px 16px; border-bottom: 1px solid rgba(139,169,230,.1); text-align: right; font-variant-numeric: tabular-nums; }
.m-point-example-table th { color: #93bdf8; background: rgba(27,43,78,.66); font-size: .66rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.m-point-example-table th:first-child,
.m-point-example-table td:first-child { text-align: left; }
.m-point-example-table tbody tr:last-child td { border-bottom: 0; }
.m-point-example-table tbody tr { background: rgba(5,12,30,.27); }
.m-point-example-table tbody tr:nth-child(even) { background: rgba(30,48,87,.26); }
.m-point-example-table td strong { color: #fff; }

.m-point-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.m-point-check-card { padding: 20px; border: 1px solid rgba(112,166,255,.14); border-radius: 10px; background: rgba(4,12,30,.33); }
.m-point-check-card h3 { display: flex; margin: 0 0 14px; align-items: center; gap: 9px; color: var(--text); font-size: 1rem; }
.m-point-check-card h3 span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; font-size: .76rem; }
.m-point-check-card.is-valid h3 span { color: #6ff0c0; background: rgba(48,213,158,.12); }
.m-point-check-card.is-zero h3 span { color: #ff8ca2; background: rgba(255,91,126,.12); }
.m-point-check-card ul { display: grid; margin: 0; padding: 0 0 0 17px; gap: 7px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.m-point-technical-note { margin: 15px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.m-point-technical-note strong { color: var(--text-soft); }

.m-point-faq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.m-point-faq-grid details { min-width: 0; border: 1px solid rgba(119,164,247,.13); border-radius: 9px; background: rgba(7,14,32,.38); }
.m-point-faq-grid summary { position: relative; padding: 16px 42px 16px 16px; color: var(--text); cursor: pointer; font-size: .79rem; font-weight: 800; list-style: none; }
.m-point-faq-grid summary::-webkit-details-marker { display: none; }
.m-point-faq-grid summary::after { content: "+"; position: absolute; top: 50%; right: 16px; color: #8dbbff; font-size: 1.2rem; transform: translateY(-50%); }
.m-point-faq-grid details[open] summary::after { content: "−"; }
.m-point-faq-grid details p { margin: 0; padding: 0 16px 17px; color: var(--muted); font-size: .74rem; line-height: 1.55; }


@media (max-width: 900px) {
  .m-point-earning-grid { grid-template-columns: 1fr; }
  .m-point-earning-card { min-height: 126px; }
  .m-point-formula-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .market-browse-hero { min-height: 176px !important; }
  .m-point-help-link { width: 100%; min-width: 0; min-height: 50px; margin-top: 11px; padding: 6px 8px; grid-template-columns: 34px minmax(0,1fr) 16px; }
  .m-point-help-link-icon { width: 34px; height: 34px; }
  .m-point-help-link strong { font-size: .72rem; }
  .m-point-help-link small { font-size: .57rem; }
  .m-point-help-page { overflow: hidden; }
  .m-point-help-hero { min-height: 0; margin-inline: 0; padding: 27px 16px; }
  .m-point-help-hero .market-hero-copy { width: 100%; }
  .m-point-help-hero h1 { font-size: clamp(1.82rem,9.3vw,2.35rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
  .m-point-help-hero p:last-of-type { max-width: 31rem; margin-inline: auto; font-size: .72rem; line-height: 1.45; }
  .m-point-help-hero .button { width: 100%; max-width: 280px; margin-top: 14px; }
  .m-point-help-content { padding: 10px; gap: 10px; }
  .m-point-earning-grid { gap: 8px; }
  .m-point-earning-card { min-height: 112px; padding: 16px; border-radius: 9px; }
  .m-point-card-number { top: 11px; right: 13px; font-size: 1.9rem; }
  .m-point-earning-card h2 { font-size: 1.25rem; }
  .m-point-help-section { padding: 16px 12px; border-radius: 9px; }
  .m-point-help-heading { margin-bottom: 15px; align-items: flex-start; flex-direction: column; gap: 7px; }
  .m-point-help-heading h2 { font-size: 1.3rem; }
  .m-point-code-badge { padding: 5px 7px; font-size: .55rem; }
  .m-point-formula { padding: 12px; overflow: hidden; grid-template-columns: 1fr; gap: 8px; }
  .m-point-formula code { font-size: .62rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .m-point-repeat-card { padding: 15px 12px; }
  .m-point-repeat-card h3 { font-size: 1rem; }
  .m-point-repeat-summary { padding: 10px; }
  .m-point-repeat-card li { padding: 8px 9px; gap: 8px; }
  .m-point-repeat-step strong { font-size: .68rem; }
  .m-point-repeat-result strong { font-size: .84rem; }
  .m-point-check-grid,
  .m-point-faq-grid { grid-template-columns: 1fr; }
  .m-point-example-table th,
  .m-point-example-table td { padding: 11px 12px; }
}

@media (max-width: 390px) {
  .m-point-help-hero { padding-inline: 12px; }
  .m-point-help-hero h1 { font-size: 1.72rem; }
  .m-point-help-content { padding-inline: 7px; }
  .m-point-help-section { padding-inline: 10px; }
  .m-point-repeat-card { padding-inline: 9px; }
  .m-point-repeat-summary { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .m-point-repeat-arrow { display: none; }
  .m-point-repeat-card li { grid-template-columns: minmax(0,1fr) minmax(74px,auto); }
}

/* Progressive cosmetic previews: neutral profile mock first, personal preview on focus. */
.badge-card .badge-product-stage.cosmetic-card-stage,
.badge-card.item-profile_frame .badge-product-stage.cosmetic-card-stage {
  width: min(84%, 238px);
  aspect-ratio: 1.58 / 1;
  padding: 0;
  overflow: hidden;
  border-color: rgba(170, 196, 235, .16);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(53, 64, 84, .92), rgba(25, 34, 51, .96));
}

.cosmetic-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cosmetic-card-placeholder {
  z-index: 1;
  grid-template-columns: 34% minmax(0, 1fr);
  padding: 13% 10%;
  gap: 9%;
  transition: background .3s ease, transform .45s var(--easing);
}

.cosmetic-card-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 40%, rgba(153, 169, 198, .13), transparent 38%),
    linear-gradient(125deg, rgba(255,255,255,.035), transparent 36%);
  pointer-events: none;
}

.cosmetic-skeleton-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
  border: 1px solid rgba(207, 218, 237, .16);
  border-radius: 25%;
  background: #687183;
  box-shadow:
    0 10px 22px rgba(7, 12, 24, .22),
    inset -7px -9px 18px rgba(18, 24, 36, .28);
  transition: border-color .3s ease, box-shadow .38s ease, transform .48s var(--easing);
}

.cosmetic-card-avatar-window { isolation: isolate; }
.cosmetic-card-avatar-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  filter: blur(5px) grayscale(.35) saturate(.72);
  transform: translateY(22%) scale(.88);
  transform-origin: 50% 100%;
  transition:
    opacity .28s ease,
    filter .42s ease,
    transform .5s cubic-bezier(.18, .86, .24, 1);
}

.cosmetic-skeleton-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  gap: 8px;
  transition: transform .4s var(--easing);
}

.cosmetic-skeleton-copy i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #697386, #515c70);
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}

.cosmetic-skeleton-copy i:nth-child(2) { width: 72%; }
.cosmetic-skeleton-copy i:nth-child(3) { width: 46%; opacity: .72; }

.cosmetic-placeholder-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.frame-card-avatar-window .cosmetic-card-frame-image {
  position: absolute;
  z-index: 3;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: fill;
  filter: drop-shadow(0 8px 18px rgba(62, 149, 255, .26));
  opacity: 1;
  transition: filter .4s ease, opacity .35s ease, transform .5s var(--easing);
  pointer-events: none;
}

.frame-card-avatar-window .cosmetic-card-avatar-image {
  transform: scale(.9);
  transform-origin: 50% 50%;
}

.cosmetic-placeholder-badge {
  right: -17%;
  bottom: -16%;
  width: 52%;
  aspect-ratio: 1;
  padding: 3px;
  border: 2px solid rgba(211, 220, 235, .4);
  border-radius: 28%;
  background: rgba(42, 50, 65, .9);
  box-shadow: 0 8px 18px rgba(3, 7, 18, .34);
  transform: translateY(0) scale(1);
  transition: border-color .3s ease, box-shadow .38s ease, transform .48s cubic-bezier(.18, .86, .24, 1);
}

.cosmetic-placeholder-badge img {
  width: 100%;
  height: 100%;
  border-radius: 22%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  transition: filter .38s ease, opacity .3s ease;
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-card-placeholder {
  background: radial-gradient(circle at 28% 50%, rgba(109, 166, 247, .09), transparent 31%);
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-card-avatar-image {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-skeleton-avatar {
  border-color: rgba(206, 228, 255, .42);
  box-shadow: 0 16px 30px rgba(3, 10, 27, .4), 0 0 24px rgba(84, 151, 245, .18);
  transform: translateY(-5px);
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-placeholder-badge {
  border-color: rgba(224, 238, 255, .7);
  box-shadow: 0 13px 25px rgba(2, 8, 24, .5), 0 0 20px rgba(91, 158, 255, .2);
  transform: translateY(-5px) scale(1.08);
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-placeholder-badge img {
  filter: none;
  opacity: 1;
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .frame-card-avatar-window .cosmetic-card-frame-image {
  filter: brightness(1.04) saturate(1.06) drop-shadow(0 10px 24px rgba(62, 149, 255, .4));
  opacity: 1;
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .frame-card-avatar-window .cosmetic-card-avatar-image {
  transform: scale(1);
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .cosmetic-skeleton-copy {
  transform: translateX(2px);
}

.badge-card:not(:hover):not(:has(.badge-card-link:focus-visible)) .badge-art > .badge-art-ambient {
  filter: blur(27px) grayscale(.78) brightness(.62) saturate(.55);
  opacity: .22;
}

.badge-card:is(:hover, :has(.badge-card-link:focus-visible)) .badge-product-stage.cosmetic-card-stage {
  border-color: rgba(196, 221, 255, .36);
  background: linear-gradient(145deg, rgba(40, 65, 112, .9), rgba(12, 24, 52, .96));
}

/* Focused Discord-style checkout: compact item controls beside a large profile preview. */
.market-item-modal-panel { width: min(1180px, 100%); }
.purchase-modal-document { max-height: min(92dvh, 900px); }
.purchase-modal-scroll { padding: 0; }
.purchase-checkout > .purchase-dialog-feedback {
  position: static;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  align-self: stretch;
  border-radius: 9px;
  transform: none;
}
.purchase-checkout > .purchase-dialog-feedback p {
  font-size: .76rem;
  line-height: 1.35;
}
.purchase-checkout > .purchase-dialog-feedback > span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.purchase-dialog-shell {
  display: grid;
  min-height: min(77dvh, 720px);
  grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  background: rgba(4, 9, 23, .9);
}

.purchase-dialog-info {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  flex-direction: column;
  border-right: 1px solid rgba(142, 184, 244, .15);
  background:
    linear-gradient(145deg, rgba(35, 47, 70, .98), rgba(21, 30, 47, .99));
  box-shadow: 18px 0 44px rgba(0, 3, 16, .24);
}

.purchase-item-thumbnail {
  position: relative;
  display: grid;
  width: min(100%, 210px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(183, 210, 248, .22);
  border-radius: 16px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%),
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%),
    #111a2b;
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  box-shadow: 0 18px 36px rgba(0,4,20,.28), inset 0 1px rgba(255,255,255,.08);
}

.purchase-item-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 36%);
  pointer-events: none;
}

.purchase-item-thumbnail > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-item-thumbnail.is-frame > img { object-fit: contain; }
.purchase-item-thumbnail-grid { position: absolute; inset: 0; }
.purchase-item-kind {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(210, 230, 255, .22);
  border-radius: 8px;
  color: #edf5ff;
  background: rgba(8, 16, 34, .76);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.purchase-item-copy { display: grid; margin-top: 19px; gap: 7px; }
.purchase-item-copy .eyebrow { margin: 0; color: #84baff; font-size: .61rem; }
.purchase-item-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.03;
  letter-spacing: -.025em;
}
.purchase-item-creator,
.purchase-item-description { margin: 0; }
.purchase-item-creator { color: #aebbd2; font-size: .75rem; }
.purchase-item-creator a { color: #dbe9ff; font-weight: 800; }
.purchase-item-description {
  display: -webkit-box;
  overflow: hidden;
  color: #c2ccdc;
  font-size: .78rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.purchase-item-tags { margin-top: 3px; }

.purchase-checkout {
  display: grid;
  margin-top: auto;
  padding-top: 19px;
  gap: 12px;
}

.purchase-dialog-availability {
  margin: 0;
  color: #dce9fb;
  font-size: .72rem;
  font-weight: 800;
}
.purchase-dialog-availability::before {
  display: inline-block;
  min-width: 1em;
  margin-right: 7px;
  font-weight: 900;
  text-align: center;
}
.purchase-dialog-availability.is-available::before,
.purchase-dialog-availability.is-owned::before { content: "\2713"; }
.purchase-dialog-availability.is-sold-out::before { content: "\00d7"; }
.purchase-dialog-availability.is-available { color: #65e8b2; }
.purchase-dialog-availability.is-sold-out { color: #ff869b; }
.purchase-dialog-availability.is-owned { color: #8fb9ff; }

.purchase-dialog-price-row {
  display: grid;
  padding: 12px 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border-top: 1px solid rgba(157, 190, 235, .13);
  border-bottom: 1px solid rgba(157, 190, 235, .13);
}
.purchase-dialog-price-row > div { display: grid; gap: 3px; }
.purchase-dialog-price-row > div:last-child { text-align: right; }
.purchase-dialog-price-row small {
  color: #8fa0ba;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.purchase-dialog-price-row strong {
  color: #fff;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.purchase-dialog-price-row strong span { color: #aebfe0; font-size: .68rem; }
.purchase-dialog-action { min-height: 49px; }
.purchase-dialog-owned { min-height: 49px; margin: 0; border-radius: 10px; }

.purchase-full-details {
  display: flex;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 9px;
  color: #9fb1cc;
  background: rgba(7, 14, 29, .35);
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
  transition: color .18s, background .18s;
}
.purchase-full-details:hover { color: #fff; background: rgba(67, 105, 166, .22); }
.purchase-full-details svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.purchase-dialog-preview {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 3vw, 38px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 35%, rgba(92, 158, 255, .16), transparent 31%),
    radial-gradient(circle at 22% 78%, rgba(104, 91, 228, .13), transparent 34%),
    linear-gradient(145deg, #080e1c, #050914 72%);
}
.purchase-dialog-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144, 184, 239, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 184, 239, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
  pointer-events: none;
}

.purchase-preview-heading {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}
.purchase-preview-heading .eyebrow { margin: 0 0 3px; color: #78b6ff; font-size: .6rem; }
.purchase-preview-heading h2 { margin: 0; color: #f1f6ff; font-size: 1.2rem; }

.purchase-preview-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  place-items: center;
  perspective: 1200px;
}
.purchase-preview-orbit {
  position: absolute;
  width: min(72%, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(99, 157, 235, .11);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(38, 105, 206, .08), inset 0 0 70px rgba(88, 137, 223, .055);
}
.purchase-preview-orbit::before,
.purchase-preview-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(123, 170, 239, .08);
  border-radius: inherit;
}
.purchase-preview-orbit::after { inset: 27%; }

.purchase-profile-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: min(82%, 620px);
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(169, 204, 250, .22);
  border-radius: 18px;
  color: #f2f6ff;
  background: linear-gradient(155deg, rgba(26, 41, 74, .97), rgba(11, 19, 39, .98));
  box-shadow: 0 32px 90px rgba(0, 3, 17, .62), inset 0 1px rgba(255,255,255,.07);
  transform: rotateY(-2deg) rotateX(1deg);
  animation: purchase-profile-arrive .5s var(--easing) both;
}
.purchase-profile-banner {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(135deg, #243e72, #111a35);
}
.purchase-profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,.035), rgba(5,10,24,.48) 56%, rgba(5,10,24,.84)); }
.purchase-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(.62) saturate(1.35);
  opacity: .64;
  transform: scale(1.14);
}
.purchase-profile-avatar-slot {
  position: absolute;
  z-index: 4;
  top: 49%;
  left: 50%;
  display: grid;
  width: min(54%, 310px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -54%);
}
.purchase-profile-avatar-slot.is-badge { width: min(45%, 255px); }
.purchase-profile-avatar-slot > .profile-frame-stack,
.purchase-profile-avatar-slot > .purchase-badge-avatar-preview { width: 100%; height: 100%; }
.purchase-profile-avatar-slot .profile-frame-avatar,
.purchase-profile-avatar-slot .badge-preview-avatar { box-shadow: 0 15px 42px rgba(0,4,22,.52); }
.purchase-profile-avatar-slot .badge-preview-avatar { width: 78% !important; height: 78% !important; border: 5px solid #17233f; border-radius: 28%; }
.purchase-profile-avatar-slot .badge-preview-pin { right: 0; bottom: 0; width: 37%; }

.purchase-profile-body {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  place-items: center;
  text-align: center;
}
.purchase-profile-body > strong {
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(0, 5, 22, .82);
}

@keyframes purchase-profile-arrive {
  from { opacity: 0; transform: translateY(22px) rotateY(-5deg) rotateX(2deg) scale(.97); }
  to { opacity: 1; transform: rotateY(-2deg) rotateX(1deg); }
}


@media (max-width: 940px) {
  .purchase-dialog-shell { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); }
  .purchase-profile-card { width: min(90%, 520px); }
  .purchase-profile-avatar-slot { width: min(55%, 255px); }
  .purchase-profile-avatar-slot.is-badge { width: min(46%, 210px); }
}

@media (max-width: 740px) {
  .market-item-modal { padding: 7px; align-items: end; }
  .market-item-modal-panel,
  .purchase-modal-document { width: 100%; max-height: calc(100dvh - 7px); border-radius: 16px 16px 0 0; }
  .purchase-dialog-shell { grid-template-columns: 1fr; }
  .purchase-dialog-preview { min-height: 420px; padding: 18px 14px; order: 1; }
  .purchase-dialog-info { padding: 18px 16px 24px; order: 2; border-top: 1px solid rgba(142,184,244,.15); border-right: 0; }
  .purchase-item-thumbnail { width: 150px; }
  .purchase-item-copy { text-align: center; }
  .purchase-item-tags { justify-content: center; }
  .purchase-profile-card { width: min(90%, 380px); }
  .purchase-profile-avatar-slot { width: min(54%, 190px); }
  .purchase-profile-avatar-slot.is-badge { width: min(45%, 160px); }
  .purchase-profile-body { right: 14px; bottom: 14px; left: 14px; }
  .purchase-profile-body > strong { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cosmetic-card-placeholder,
  .cosmetic-card-avatar-image,
  .cosmetic-skeleton-avatar,
  .cosmetic-placeholder-badge,
  .purchase-profile-card { animation: none !important; transition: none !important; }
}

/* Per-item palettes sampled from badge and frame artwork in market.js. */
.badge-card[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .3);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--item-accent-rgb), .2), transparent 49%),
    linear-gradient(148deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.badge-card[data-item-color-ready="true"]::before {
  background: radial-gradient(circle, rgba(var(--item-accent-rgb), .3), transparent 66%);
}

.badge-card[data-item-color-ready="true"]::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--item-accent-rgb), .92) 24%,
    rgba(var(--item-accent-rgb), .6) 76%,
    transparent
  );
  box-shadow: 0 -5px 18px rgba(var(--item-accent-rgb), .44);
}

.badge-card[data-item-color-ready="true"]:hover {
  border-color: rgba(var(--item-accent-rgb), .52);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--item-accent-rgb), .31), transparent 52%),
    linear-gradient(148deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 22px 48px rgba(1, 7, 25, .42),
    0 0 34px rgba(var(--item-accent-rgb), .19),
    inset 0 1px rgba(236, 244, 255, .1);
}

.badge-card[data-item-color-ready="true"] .badge-art {
  background:
    radial-gradient(circle at 50% 46%, rgba(var(--item-accent-rgb), .25), transparent 52%),
    linear-gradient(
      145deg,
      rgb(var(--item-surface-deep-rgb)),
      rgb(var(--item-surface-rgb)) 68%,
      rgb(var(--item-surface-deep-rgb))
    );
}

.badge-card[data-item-color-ready="true"] .badge-body {
  border-top-color: rgba(var(--item-accent-rgb), .16);
  background: linear-gradient(
    180deg,
    rgba(var(--item-surface-rgb), .97),
    rgba(var(--item-surface-deep-rgb), .99)
  );
}

.badge-card[data-item-color-ready="true"] .badge-product-stage.cosmetic-card-stage {
  border-color: rgba(var(--item-accent-rgb), .3);
  background:
    radial-gradient(circle at 45% 42%, rgba(var(--item-accent-rgb), .22), transparent 68%),
    linear-gradient(
      145deg,
      rgba(var(--item-surface-rgb), .94),
      rgba(var(--item-surface-deep-rgb), .97)
    );
}

.badge-card[data-item-color-ready="true"]:is(:hover, :has(.badge-card-link:focus-visible))
  .badge-product-stage.cosmetic-card-stage {
  border-color: rgba(var(--item-accent-rgb), .48);
  background:
    radial-gradient(circle at 35% 45%, rgba(var(--item-accent-rgb), .32), transparent 70%),
    linear-gradient(
      145deg,
      rgba(var(--item-surface-hover-rgb), .95),
      rgba(var(--item-surface-deep-rgb), .98)
    );
  box-shadow:
    0 21px 38px rgba(0, 5, 20, .5),
    0 0 28px rgba(var(--item-accent-rgb), .25),
    inset 0 1px rgba(255, 255, 255, .18);
}

.badge-card[data-item-color-ready="true"] .badge-art-price {
  border-color: rgba(var(--item-accent-rgb), .32);
  box-shadow:
    0 9px 24px rgba(0, 4, 19, .36),
    0 0 16px rgba(var(--item-accent-rgb), .14),
    inset 0 1px rgba(255, 255, 255, .08);
}

.collection-card[data-item-color-ready="true"] {
  border: 1px solid rgba(var(--item-accent-rgb), .24);
  background:
    radial-gradient(circle at 8% 50%, rgba(var(--item-accent-rgb), .2), transparent 43%),
    linear-gradient(120deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.collection-card[data-item-color-ready="true"]::after {
  background: rgb(var(--item-accent-rgb));
  box-shadow: -5px 0 18px rgba(var(--item-accent-rgb), .28);
}

.collection-card[data-item-color-ready="true"]:hover {
  border-color: rgba(var(--item-accent-rgb), .46);
  background:
    radial-gradient(circle at 8% 50%, rgba(var(--item-accent-rgb), .3), transparent 46%),
    linear-gradient(120deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-deep-rgb)));
  box-shadow: 0 15px 34px rgba(var(--item-accent-rgb), .13);
}

.detail-layout[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .28);
  background:
    radial-gradient(circle at 12% 24%, rgba(var(--item-accent-rgb), .22), transparent 42%),
    linear-gradient(135deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.detail-layout[data-item-color-ready="true"] .detail-art.panel,
.detail-layout[data-item-color-ready="true"] .sale-panel.panel {
  border-color: rgba(var(--item-accent-rgb), .2);
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--item-accent-rgb), .18), transparent 54%),
    rgba(var(--item-surface-deep-rgb), .84);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-shell {
  background:
    radial-gradient(circle at 72% 28%, rgba(var(--item-accent-rgb), .14), transparent 38%),
    rgba(var(--item-surface-deep-rgb), .96);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-info {
  border-color: rgba(var(--item-accent-rgb), .21);
  background:
    radial-gradient(circle at 20% 10%, rgba(var(--item-accent-rgb), .2), transparent 40%),
    linear-gradient(145deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-preview {
  background:
    radial-gradient(circle at 68% 32%, rgba(var(--item-accent-rgb), .22), transparent 36%),
    radial-gradient(circle at 22% 78%, rgba(var(--item-accent-rgb), .12), transparent 34%),
    linear-gradient(145deg, rgb(var(--item-surface-deep-rgb)), #050914 76%);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-item-thumbnail,
.purchase-modal-document[data-item-color-ready="true"] .purchase-profile-card {
  border-color: rgba(var(--item-accent-rgb), .34);
  box-shadow:
    0 25px 72px rgba(0, 3, 17, .5),
    0 0 34px rgba(var(--item-accent-rgb), .13),
    inset 0 1px rgba(255, 255, 255, .08);
}


/* Quiet cosmic ornamentation: fixed stars and nebulae without flashing. */
.badge-card[data-item-color-ready="true"] {
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.82) 0 1px, transparent 1.7px),
    radial-gradient(circle at 83% 17%, rgba(209,229,255,.68) 0 1.2px, transparent 2px),
    radial-gradient(circle at 70% 43%, rgba(255,255,255,.52) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 18% 67%, rgba(199,220,255,.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 76%, rgba(255,255,255,.64) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 78% 8%, rgba(var(--item-accent-rgb), .28), transparent 48%),
    radial-gradient(ellipse at 5% 94%, rgba(82,151,255,.14), transparent 43%),
    linear-gradient(148deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.badge-card[data-item-color-ready="true"]:hover {
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.95) 0 1.15px, transparent 1.9px),
    radial-gradient(circle at 83% 17%, rgba(222,238,255,.82) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 70% 43%, rgba(255,255,255,.66) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 18% 67%, rgba(214,231,255,.68) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 92% 76%, rgba(255,255,255,.78) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at 76% 10%, rgba(var(--item-accent-rgb), .39), transparent 52%),
    radial-gradient(ellipse at 6% 94%, rgba(82,151,255,.2), transparent 46%),
    linear-gradient(148deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.badge-card[data-item-color-ready="true"] .badge-art::before {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.82) 0 1px, transparent 1.7px),
    radial-gradient(circle at 31% 72%, rgba(207,229,255,.68) 0 1px, transparent 1.8px),
    radial-gradient(circle at 58% 22%, rgba(255,255,255,.7) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 88% 64%, rgba(220,235,255,.72) 0 1.1px, transparent 1.9px),
    linear-gradient(rgba(170,203,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170,203,255,.026) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 106%, rgba(var(--item-accent-rgb), .36), transparent 58%);
  background-size: auto, auto, auto, auto, 24px 24px, 24px 24px, auto;
}

.badge-card[data-item-color-ready="true"] .badge-body {
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.36) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 89% 72%, rgba(220,234,255,.32) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 84% 0%, rgba(var(--item-accent-rgb), .15), transparent 50%),
    linear-gradient(180deg, rgba(var(--item-surface-rgb), .97), rgba(var(--item-surface-deep-rgb), .99));
}

.badge-card.item-profile_frame[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .56);
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.86) 0 1px, transparent 1.8px),
    radial-gradient(circle at 83% 17%, rgba(221,235,255,.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 70% 67%, rgba(255,255,255,.52) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 18% 4%, rgba(var(--item-accent-rgb), .5), transparent 48%),
    radial-gradient(ellipse at 94% 88%, rgba(var(--item-secondary-rgb), .43), transparent 47%),
    radial-gradient(ellipse at 58% 52%, rgba(var(--item-tertiary-rgb), .16), transparent 38%),
    conic-gradient(
      from 132deg at 58% 48%,
      transparent 0 31%,
      rgba(var(--item-secondary-rgb), .12) 38%,
      transparent 47% 72%,
      rgba(var(--item-tertiary-rgb), .13) 80%,
      transparent 88%
    ),
    linear-gradient(145deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 54%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 15px 36px rgba(1, 5, 24, .46),
    0 0 30px rgba(var(--item-accent-rgb), .19),
    0 0 22px rgba(var(--item-secondary-rgb), .1),
    inset 0 1px rgba(244, 232, 255, .09);
}

.badge-card.item-profile_frame[data-item-color-ready="true"]:hover {
  border-color: rgba(var(--item-accent-rgb), .74);
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.96) 0 1.15px, transparent 1.9px),
    radial-gradient(circle at 83% 17%, rgba(229,241,255,.84) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 70% 67%, rgba(255,255,255,.67) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 18% 4%, rgba(var(--item-accent-rgb), .62), transparent 51%),
    radial-gradient(ellipse at 94% 88%, rgba(var(--item-secondary-rgb), .54), transparent 50%),
    radial-gradient(ellipse at 58% 52%, rgba(var(--item-tertiary-rgb), .23), transparent 40%),
    conic-gradient(
      from 132deg at 58% 48%,
      transparent 0 28%,
      rgba(var(--item-secondary-rgb), .18) 38%,
      transparent 49% 69%,
      rgba(var(--item-tertiary-rgb), .19) 80%,
      transparent 90%
    ),
    linear-gradient(145deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-alt-rgb)) 56%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 24px 52px rgba(1, 5, 24, .5),
    0 0 38px rgba(var(--item-accent-rgb), .26),
    0 0 28px rgba(var(--item-secondary-rgb), .14),
    inset 0 1px rgba(255, 255, 255, .12);
}

.badge-card.item-profile_frame[data-item-color-ready="true"]::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--item-accent-rgb)) 24%,
    rgb(var(--item-tertiary-rgb)) 51%,
    rgb(var(--item-secondary-rgb)) 76%,
    transparent
  );
  box-shadow: 0 -5px 20px rgba(var(--item-accent-rgb), .58);
}

.badge-card.item-profile_frame[data-item-color-ready="true"] .item-type-pill {
  border-color: rgba(var(--item-accent-rgb), .44);
  color: #f3f7ff;
  background: rgba(var(--item-surface-deep-rgb), .78);
}

.badge-card.item-profile_frame[data-item-color-ready="true"] .badge-art-price small {
  color: rgb(var(--item-secondary-rgb));
}

.badge-card.item-profile_frame[data-item-color-ready="true"] .badge-art,
.badge-card.item-profile_frame[data-item-color-ready="true"] .badge-body {
  background:
    radial-gradient(ellipse at 16% 8%, rgba(var(--item-accent-rgb), .34), transparent 50%),
    radial-gradient(ellipse at 91% 96%, rgba(var(--item-secondary-rgb), .28), transparent 48%),
    radial-gradient(ellipse at 52% 46%, rgba(var(--item-tertiary-rgb), .11), transparent 38%),
    linear-gradient(145deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 56%, rgb(var(--item-surface-deep-rgb)));
}

.collection-card[data-item-color-ready="true"] {
  background:
    radial-gradient(circle at 8% 17%, rgba(255,255,255,.58) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 22%, rgba(218,233,255,.45) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 93% 77%, rgba(255,255,255,.48) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at 12% 54%, rgba(var(--item-accent-rgb), .27), transparent 45%),
    linear-gradient(120deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.collection-card.item-profile_frame[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .48);
  background:
    radial-gradient(circle at 8% 17%, rgba(255,255,255,.58) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at 12% 38%, rgba(var(--item-accent-rgb), .38), transparent 44%),
    radial-gradient(ellipse at 93% 82%, rgba(var(--item-secondary-rgb), .32), transparent 46%),
    radial-gradient(ellipse at 56% 22%, rgba(var(--item-tertiary-rgb), .13), transparent 36%),
    linear-gradient(120deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 58%, rgb(var(--item-surface-deep-rgb)));
  box-shadow: 0 14px 30px rgba(var(--item-accent-rgb), .16);
}

.detail-layout[data-item-color-ready="true"],
.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-shell {
  background:
    radial-gradient(circle at 7% 12%, rgba(255,255,255,.62) 0 1px, transparent 1.7px),
    radial-gradient(circle at 82% 17%, rgba(214,232,255,.48) 0 1px, transparent 1.7px),
    radial-gradient(circle at 67% 84%, rgba(255,255,255,.44) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 14% 24%, rgba(var(--item-accent-rgb), .24), transparent 43%),
    radial-gradient(ellipse at 91% 92%, rgba(75,142,255,.13), transparent 42%),
    linear-gradient(135deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)));
}


/* The Profile frames shelf is the purple card; products keep their own palette. */
.catalog-group-frames {
  border-color: rgba(173, 132, 255, .34);
  background:
    radial-gradient(circle at 7% 10%, rgba(255,255,255,.78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 29% 74%, rgba(226,213,255,.58) 0 1px, transparent 1.8px),
    radial-gradient(circle at 67% 17%, rgba(207,230,255,.62) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 92% 67%, rgba(255,255,255,.64) 0 .9px, transparent 1.7px),
    radial-gradient(ellipse at 8% 0%, rgba(177, 74, 255, .34), transparent 43%),
    radial-gradient(ellipse at 91% 12%, rgba(77, 123, 255, .3), transparent 42%),
    radial-gradient(ellipse at 60% 112%, rgba(219, 76, 255, .22), transparent 47%),
    conic-gradient(
      from 124deg at 58% 48%,
      transparent 0 25%,
      rgba(129, 100, 255, .13) 34%,
      transparent 44% 67%,
      rgba(221, 115, 255, .11) 76%,
      transparent 86%
    ),
    linear-gradient(142deg, rgba(48, 24, 91, .96), rgba(24, 24, 73, .97) 52%, rgba(12, 18, 51, .98));
  box-shadow:
    0 20px 48px rgba(13, 5, 42, .38),
    0 0 42px rgba(126, 78, 238, .1),
    inset 0 1px rgba(244, 235, 255, .1);
}

.catalog-group-frames::before {
  z-index: 0;
  inset: -34% -12%;
  width: auto;
  height: auto;
  border-radius: 42%;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(178, 83, 255, .4), transparent 31%),
    radial-gradient(ellipse at 58% 23%, rgba(90, 102, 255, .3), transparent 29%),
    radial-gradient(ellipse at 82% 70%, rgba(230, 92, 255, .25), transparent 32%),
    radial-gradient(ellipse at 43% 78%, rgba(50, 151, 255, .2), transparent 33%);
  filter: blur(25px) saturate(1.35);
  opacity: .78;
  animation-duration: 18s;
  mix-blend-mode: screen;
}

.catalog-group-frames::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 14% 29%, rgba(255,255,255,.86) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38% 12%, rgba(225,216,255,.56) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 53% 62%, rgba(255,255,255,.48) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 75% 33%, rgba(205,225,255,.68) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 86%, rgba(247,229,255,.6) 0 1.1px, transparent 1.9px),
    radial-gradient(ellipse at 50% 132%, transparent 48%, rgba(183, 141, 255, .13) 49%, transparent 50.5%);
  opacity: .78;
  pointer-events: none;
}

.catalog-group-frames > .catalog-group-heading,
.catalog-group-frames > .badge-grid,
.catalog-group-frames > .category-empty {
  position: relative;
  z-index: 1;
}

.catalog-group-frames > .catalog-group-heading {
  margin: -6px -6px 18px;
  padding: 6px 6px 15px;
  border-bottom-color: rgba(206, 177, 255, .22);
  background: linear-gradient(90deg, rgba(111, 64, 190, .1), transparent 66%);
}

.catalog-group-frames .catalog-group-icon {
  border-color: rgba(210, 180, 255, .4);
  color: #e0d2ff;
  background:
    radial-gradient(circle at 28% 15%, rgba(244, 226, 255, .28), transparent 35%),
    linear-gradient(145deg, rgba(141, 78, 235, .52), rgba(67, 78, 190, .3));
  box-shadow:
    0 10px 28px rgba(29, 7, 73, .42),
    0 0 24px rgba(159, 92, 255, .18),
    inset 0 1px rgba(255, 255, 255, .13);
}

.catalog-group-frames .catalog-group-heading .eyebrow { color: #cdb6ff; }
.catalog-group-frames .catalog-group-heading h3 { color: #fff; }
.catalog-group-frames .catalog-group-heading > div > p:last-child { color: #c2b9dc; }


/* Unified market card hierarchy: category colour, item colour, then quiet UI. */
.browse-filter-panel,
.browse-catalog,
.unified-page-panel,
.detail-panel,
.creator-form,
.notification-center,
.review-guidelines,
.auth-panel,
.empty-state.panel {
  border-color: rgba(136, 175, 239, .15);
  background:
    radial-gradient(circle at 10% 9%, rgba(255,255,255,.42) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 88% 19%, rgba(190,222,255,.3) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 8% 0%, rgba(53, 118, 218, .1), transparent 42%),
    linear-gradient(150deg, rgba(17, 29, 57, .96), rgba(7, 14, 31, .98));
  box-shadow:
    0 20px 48px rgba(1, 6, 24, .3),
    inset 0 1px rgba(225, 239, 255, .055);
}

.comment-composer,
.comment-sign-in,
.comment-card,
.notification-card,
.creator-market-stats span,
.sale-panel,
.breadcrumbs,
.filter-input-shell,
.browse-toolbar select,
.browse-toolbar .sold-out-toggle {
  border-color: rgba(139, 178, 239, .14);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(73, 135, 225, .1), transparent 48%),
    linear-gradient(145deg, rgba(19, 31, 59, .94), rgba(8, 15, 32, .97));
  box-shadow: inset 0 1px rgba(229, 240, 255, .045);
}

.comment-card:hover,
.comment-sign-in:hover,
.notification-card:hover {
  border-color: rgba(119, 179, 255, .3);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(83, 154, 255, .18), transparent 51%),
    linear-gradient(145deg, rgba(28, 47, 85, .96), rgba(11, 21, 43, .98));
  box-shadow:
    0 15px 34px rgba(1, 7, 26, .28),
    inset 0 1px rgba(236, 246, 255, .07);
}

/* Badges and frames have distinct shelves, while sharing one visual system. */
.catalog-group-badges {
  border-color: rgba(100, 190, 255, .31);
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 35% 78%, rgba(205,239,255,.58) 0 .9px, transparent 1.7px),
    radial-gradient(circle at 70% 15%, rgba(222,231,255,.62) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 93% 70%, rgba(255,255,255,.62) 0 .9px, transparent 1.7px),
    radial-gradient(ellipse at 4% 0%, rgba(34, 178, 255, .3), transparent 43%),
    radial-gradient(ellipse at 94% 12%, rgba(70, 106, 255, .28), transparent 42%),
    radial-gradient(ellipse at 58% 112%, rgba(35, 218, 220, .18), transparent 47%),
    conic-gradient(
      from 126deg at 58% 48%,
      transparent 0 27%,
      rgba(51, 147, 255, .12) 36%,
      transparent 46% 69%,
      rgba(72, 215, 234, .1) 78%,
      transparent 88%
    ),
    linear-gradient(142deg, rgba(13, 54, 91, .97), rgba(18, 31, 76, .98) 52%, rgba(7, 22, 51, .99));
  box-shadow:
    0 20px 48px rgba(2, 12, 42, .38),
    0 0 42px rgba(57, 151, 255, .1),
    inset 0 1px rgba(230, 246, 255, .1);
}

.catalog-group-badges::before {
  z-index: 0;
  inset: -34% -12%;
  width: auto;
  height: auto;
  border-radius: 42%;
  background:
    radial-gradient(ellipse at 17% 42%, rgba(35, 194, 255, .37), transparent 31%),
    radial-gradient(ellipse at 58% 23%, rgba(67, 106, 255, .29), transparent 29%),
    radial-gradient(ellipse at 82% 70%, rgba(58, 207, 226, .23), transparent 32%),
    radial-gradient(ellipse at 43% 78%, rgba(65, 129, 255, .18), transparent 33%);
  filter: blur(25px) saturate(1.3);
  opacity: .72;
  animation-duration: 18s;
  mix-blend-mode: screen;
}

.catalog-group-badges::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 14% 29%, rgba(255,255,255,.84) 0 1px, transparent 1.8px),
    radial-gradient(circle at 38% 12%, rgba(207,239,255,.55) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 53% 62%, rgba(255,255,255,.47) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 75% 33%, rgba(205,224,255,.66) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 86%, rgba(218,249,255,.58) 0 1.1px, transparent 1.9px),
    radial-gradient(ellipse at 50% 132%, transparent 48%, rgba(93, 186, 255, .12) 49%, transparent 50.5%);
  opacity: .76;
  pointer-events: none;
}

.catalog-group-badges > .catalog-group-heading,
.catalog-group-badges > .badge-grid,
.catalog-group-badges > .category-empty {
  position: relative;
  z-index: 1;
}

.catalog-group-badges > .catalog-group-heading {
  margin: -6px -6px 18px;
  padding: 6px 6px 15px;
  border-bottom-color: rgba(147, 214, 255, .2);
  background: linear-gradient(90deg, rgba(37, 142, 219, .1), transparent 66%);
}

.catalog-group-badges .catalog-group-icon {
  border-color: rgba(143, 218, 255, .38);
  color: #c6efff;
  background:
    radial-gradient(circle at 28% 15%, rgba(224, 249, 255, .27), transparent 35%),
    linear-gradient(145deg, rgba(39, 161, 226, .5), rgba(56, 83, 190, .28));
  box-shadow:
    0 10px 28px rgba(2, 18, 55, .42),
    0 0 24px rgba(64, 184, 255, .17),
    inset 0 1px rgba(255, 255, 255, .13);
}

.catalog-group-badges .catalog-group-heading .eyebrow { color: #a7ddff; }
.catalog-group-badges .catalog-group-heading h3 { color: #fff; }
.catalog-group-badges .catalog-group-heading > div > p:last-child { color: #b8cbe0; }

/* Badge products use the artwork palette just like frame products do. */
.badge-card:not(.item-profile_frame)[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .5);
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.84) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 18%, rgba(222,237,255,.67) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 70% 68%, rgba(255,255,255,.5) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 16% 4%, rgba(var(--item-accent-rgb), .46), transparent 48%),
    radial-gradient(ellipse at 94% 90%, rgba(var(--item-secondary-rgb), .38), transparent 47%),
    radial-gradient(ellipse at 57% 51%, rgba(var(--item-tertiary-rgb), .15), transparent 38%),
    conic-gradient(
      from 130deg at 58% 48%,
      transparent 0 31%,
      rgba(var(--item-secondary-rgb), .11) 38%,
      transparent 47% 72%,
      rgba(var(--item-tertiary-rgb), .12) 80%,
      transparent 88%
    ),
    linear-gradient(145deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 54%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 15px 36px rgba(1, 5, 24, .45),
    0 0 29px rgba(var(--item-accent-rgb), .17),
    0 0 20px rgba(var(--item-secondary-rgb), .09),
    inset 0 1px rgba(235, 244, 255, .085);
}

.badge-card:not(.item-profile_frame)[data-item-color-ready="true"]:hover {
  border-color: rgba(var(--item-accent-rgb), .72);
  background:
    radial-gradient(circle at 9% 13%, rgba(255,255,255,.95) 0 1.15px, transparent 1.9px),
    radial-gradient(circle at 84% 18%, rgba(229,242,255,.82) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 70% 68%, rgba(255,255,255,.64) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 16% 4%, rgba(var(--item-accent-rgb), .58), transparent 51%),
    radial-gradient(ellipse at 94% 90%, rgba(var(--item-secondary-rgb), .49), transparent 50%),
    radial-gradient(ellipse at 57% 51%, rgba(var(--item-tertiary-rgb), .21), transparent 40%),
    conic-gradient(
      from 130deg at 58% 48%,
      transparent 0 28%,
      rgba(var(--item-secondary-rgb), .17) 38%,
      transparent 49% 69%,
      rgba(var(--item-tertiary-rgb), .18) 80%,
      transparent 90%
    ),
    linear-gradient(145deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-alt-rgb)) 56%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 24px 52px rgba(1, 5, 24, .49),
    0 0 37px rgba(var(--item-accent-rgb), .24),
    0 0 27px rgba(var(--item-secondary-rgb), .13),
    inset 0 1px rgba(255,255,255,.11);
}

.badge-card:not(.item-profile_frame)[data-item-color-ready="true"]::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--item-accent-rgb)) 24%,
    rgb(var(--item-tertiary-rgb)) 51%,
    rgb(var(--item-secondary-rgb)) 76%,
    transparent
  );
  box-shadow: 0 -5px 20px rgba(var(--item-accent-rgb), .54);
}

.badge-card:not(.item-profile_frame)[data-item-color-ready="true"] .badge-art,
.badge-card:not(.item-profile_frame)[data-item-color-ready="true"] .badge-body {
  background:
    radial-gradient(ellipse at 16% 8%, rgba(var(--item-accent-rgb), .31), transparent 50%),
    radial-gradient(ellipse at 91% 96%, rgba(var(--item-secondary-rgb), .25), transparent 48%),
    radial-gradient(ellipse at 52% 46%, rgba(var(--item-tertiary-rgb), .1), transparent 38%),
    linear-gradient(145deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 56%, rgb(var(--item-surface-deep-rgb)));
}

.badge-card:not(.item-profile_frame)[data-item-color-ready="true"] .badge-art-price {
  border-color: rgba(var(--item-accent-rgb), .4);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--item-secondary-rgb), .13), transparent 48%),
    rgba(var(--item-surface-deep-rgb), .9);
}

.badge-card:not(.item-profile_frame)[data-item-color-ready="true"] .badge-art-price small {
  color: rgb(var(--item-secondary-rgb));
}

/* Collection category cards match their market shelves. */
.collection-type {
  --collection-category-alt-rgb: 63, 211, 235;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 11%, rgba(255,255,255,.57) 0 .9px, transparent 1.6px),
    radial-gradient(circle at 84% 19%, rgba(219,236,255,.43) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 4% 0%, rgba(var(--collection-category-rgb), .23), transparent 43%),
    radial-gradient(ellipse at 96% 100%, rgba(var(--collection-category-alt-rgb), .17), transparent 45%),
    linear-gradient(145deg, rgba(16, 29, 58, .96), rgba(7, 14, 31, .98));
  box-shadow:
    0 18px 44px rgba(1, 7, 24, .28),
    0 0 30px rgba(var(--collection-category-rgb), .08),
    inset 0 1px rgba(231, 241, 255, .055);
}

.collection-type-badges {
  --collection-category-rgb: 82, 168, 255;
  --collection-category-alt-rgb: 58, 218, 225;
}

.collection-type-frames {
  --collection-category-rgb: 153, 105, 255;
  --collection-category-alt-rgb: 220, 96, 246;
}

.collection-type::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 23% 31%, rgba(255,255,255,.28) 0 .7px, transparent 1.4px),
    radial-gradient(circle at 61% 16%, rgba(var(--collection-category-alt-rgb), .35) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 89% 71%, rgba(255,255,255,.3) 0 .8px, transparent 1.5px);
  opacity: .68;
  pointer-events: none;
}

.collection-type > * {
  position: relative;
  z-index: 1;
}

.collection-type-heading {
  border-bottom: 0;
  background: linear-gradient(90deg, rgba(var(--collection-category-rgb), .08), transparent 72%);
}

.collection-type-icon {
  background:
    radial-gradient(circle at 27% 15%, rgba(255,255,255,.2), transparent 36%),
    linear-gradient(145deg, rgba(var(--collection-category-rgb), .28), rgba(var(--collection-category-alt-rgb), .12));
  box-shadow:
    0 10px 28px rgba(0,5,22,.25),
    0 0 22px rgba(var(--collection-category-rgb), .13),
    inset 0 1px rgba(255,255,255,.09);
}

.collection-card[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .39);
  background:
    radial-gradient(circle at 8% 17%, rgba(255,255,255,.54) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 22%, rgba(218,233,255,.4) 0 .9px, transparent 1.6px),
    radial-gradient(ellipse at 12% 38%, rgba(var(--item-accent-rgb), .34), transparent 44%),
    radial-gradient(ellipse at 93% 82%, rgba(var(--item-secondary-rgb), .28), transparent 46%),
    radial-gradient(ellipse at 56% 22%, rgba(var(--item-tertiary-rgb), .12), transparent 36%),
    linear-gradient(120deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 58%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 14px 30px rgba(var(--item-accent-rgb), .13),
    inset 0 1px rgba(255,255,255,.055);
}

.collection-card[data-item-color-ready="true"]:hover {
  border-color: rgba(var(--item-accent-rgb), .61);
  background:
    radial-gradient(circle at 8% 17%, rgba(255,255,255,.65) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at 12% 38%, rgba(var(--item-accent-rgb), .43), transparent 46%),
    radial-gradient(ellipse at 93% 82%, rgba(var(--item-secondary-rgb), .36), transparent 48%),
    radial-gradient(ellipse at 56% 22%, rgba(var(--item-tertiary-rgb), .17), transparent 38%),
    linear-gradient(120deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-alt-rgb)) 58%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 18px 38px rgba(var(--item-accent-rgb), .18),
    0 0 22px rgba(var(--item-secondary-rgb), .09);
}

.collection-card[data-item-color-ready="true"]::after {
  background: linear-gradient(
    180deg,
    rgb(var(--item-accent-rgb)),
    rgb(var(--item-tertiary-rgb)) 52%,
    rgb(var(--item-secondary-rgb))
  );
  box-shadow: -5px 0 18px rgba(var(--item-accent-rgb), .27);
}

/* The detail page and purchase overlay continue the selected item's palette. */
.detail-layout[data-item-color-ready="true"],
.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-shell {
  border-color: rgba(var(--item-accent-rgb), .37);
  background:
    radial-gradient(circle at 7% 12%, rgba(255,255,255,.58) 0 1px, transparent 1.7px),
    radial-gradient(circle at 82% 17%, rgba(214,232,255,.44) 0 1px, transparent 1.7px),
    radial-gradient(ellipse at 14% 24%, rgba(var(--item-accent-rgb), .3), transparent 43%),
    radial-gradient(ellipse at 91% 92%, rgba(var(--item-secondary-rgb), .24), transparent 42%),
    radial-gradient(ellipse at 58% 42%, rgba(var(--item-tertiary-rgb), .1), transparent 37%),
    linear-gradient(135deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-alt-rgb)) 58%, rgb(var(--item-surface-deep-rgb)));
  box-shadow:
    0 22px 58px rgba(1, 5, 23, .39),
    0 0 34px rgba(var(--item-accent-rgb), .1),
    inset 0 1px rgba(255,255,255,.07);
}

.detail-layout[data-item-color-ready="true"] .detail-art.panel,
.detail-layout[data-item-color-ready="true"] .sale-panel.panel,
.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-info,
.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-preview {
  border-color: rgba(var(--item-accent-rgb), .27);
  background:
    radial-gradient(ellipse at 18% 12%, rgba(var(--item-accent-rgb), .27), transparent 46%),
    radial-gradient(ellipse at 91% 88%, rgba(var(--item-secondary-rgb), .2), transparent 44%),
    radial-gradient(ellipse at 58% 42%, rgba(var(--item-tertiary-rgb), .09), transparent 35%),
    linear-gradient(145deg, rgba(var(--item-surface-rgb), .96), rgba(var(--item-surface-alt-rgb), .96) 55%, rgba(var(--item-surface-deep-rgb), .98));
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-item-thumbnail,
.purchase-modal-document[data-item-color-ready="true"] .purchase-profile-card {
  border-color: rgba(var(--item-accent-rgb), .43);
  box-shadow:
    0 25px 72px rgba(0, 3, 17, .5),
    0 0 30px rgba(var(--item-accent-rgb), .16),
    0 0 22px rgba(var(--item-secondary-rgb), .09),
    inset 0 1px rgba(255,255,255,.08);
}


/* Page constellations: one universe, four recognisable destinations. */
body.market-theme {
  --space-accent-rgb: 72, 174, 255;
  --space-secondary-rgb: 73, 111, 246;
  --space-tertiary-rgb: 63, 225, 231;
  --space-deep-rgb: 4, 19, 45;
  --space-mid-rgb: 8, 45, 91;
  --space-soft-rgb: 205, 235, 255;
  background:
    radial-gradient(ellipse at 86% -8%, rgba(var(--space-accent-rgb), .23), transparent 34rem),
    radial-gradient(ellipse at 9% 68%, rgba(var(--space-secondary-rgb), .18), transparent 40rem),
    radial-gradient(ellipse at 58% 112%, rgba(var(--space-tertiary-rgb), .12), transparent 38rem),
    linear-gradient(145deg, rgb(var(--space-deep-rgb)), #030713 52%, rgba(var(--space-mid-rgb), .96));
}

body.market-theme-notifications {
  --space-accent-rgb: 48, 219, 225;
  --space-secondary-rgb: 57, 132, 238;
  --space-tertiary-rgb: 84, 246, 174;
  --space-deep-rgb: 3, 28, 39;
  --space-mid-rgb: 5, 66, 80;
  --space-soft-rgb: 204, 255, 250;
}

body.market-theme-collection {
  --space-accent-rgb: 159, 105, 255;
  --space-secondary-rgb: 83, 112, 255;
  --space-tertiary-rgb: 226, 98, 239;
  --space-deep-rgb: 21, 10, 51;
  --space-mid-rgb: 54, 31, 103;
  --space-soft-rgb: 236, 222, 255;
}

body.market-theme-create {
  --space-accent-rgb: 255, 151, 82;
  --space-secondary-rgb: 255, 91, 164;
  --space-tertiary-rgb: 255, 210, 112;
  --space-deep-rgb: 48, 16, 37;
  --space-mid-rgb: 103, 39, 69;
  --space-soft-rgb: 255, 231, 211;
}

body.market-theme .site-header {
  background:
    radial-gradient(ellipse at 17% -115%, rgba(var(--space-accent-rgb), .24), transparent 52%),
    radial-gradient(ellipse at 82% 145%, rgba(var(--space-tertiary-rgb), .16), transparent 52%),
    linear-gradient(108deg, rgb(var(--space-deep-rgb)) 0%, rgba(var(--space-mid-rgb), .98) 49%, #06162f 100%);
  box-shadow:
    0 14px 34px rgba(0, 5, 20, .46),
    inset 0 -1px rgba(var(--space-accent-rgb), .18);
}

body.market-theme .site-header::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(var(--space-soft-rgb), .09), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(var(--space-accent-rgb), .1), transparent 27%),
    linear-gradient(115deg, transparent 30%, rgba(var(--space-tertiary-rgb), .055) 52%, transparent 70%);
}

body.market-theme .site-header::after {
  background: linear-gradient(
    90deg,
    transparent 3%,
    rgb(var(--space-secondary-rgb)) 27%,
    rgb(var(--space-accent-rgb)) 50%,
    rgb(var(--space-tertiary-rgb)) 73%,
    transparent 97%
  );
  box-shadow: 0 0 15px rgba(var(--space-accent-rgb), .34);
}

.site-header .nav-icon-browse { color: #bfe8ff; }
.site-header .nav-icon-notifications { color: #bffcf5; }
.site-header .nav-icon-collection { color: #e0ceff; }
.site-header .nav-icon-create { color: #ffe0c5; }

body.market-theme .site-header .main-nav a[aria-current="page"] {
  color: #fff;
  background-color: rgba(255, 255, 255, .075);
  background-image: none;
}

body.market-theme .site-header .main-nav a[aria-current="page"]::after {
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .58);
}

/* Selection remains neutral white; page colour belongs to the surrounding sky. */
body.market-theme .site-header .main-nav a[aria-current="page"] .nav-icon {
  border-color: rgba(255, 255, 255, .98);
  color: rgb(var(--space-mid-rgb));
  background-color: #fff;
  background-image: none;
  box-shadow:
    0 9px 24px rgba(var(--space-deep-rgb), .42),
    0 0 0 4px rgba(255, 255, 255, .14),
    0 0 22px rgba(255, 255, 255, .24);
}

body.market-theme .site-header .main-nav a:not([aria-current="page"]):hover .nav-icon {
  border-color: rgba(255, 255, 255, .62);
  color: #fff;
  background-color: rgba(255, 255, 255, .16);
  background-image: none;
  box-shadow:
    0 9px 24px rgba(var(--space-deep-rgb), .42),
    0 0 0 4px rgba(255, 255, 255, .09),
    inset 0 1px rgba(255, 255, 255, .2);
}


body.market-theme .page-heading::before {
  inset: -13%;
  opacity: .58;
  background-position: 44% 47%;
  background-size: cover;
  filter: grayscale(1) contrast(1.18) brightness(.62);
  mix-blend-mode: luminosity;
  transform: translate3d(-5.5%, -2.8%, 0) scale(1.08);
  animation: market-title-nebula-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

body.market-theme .page-heading::after {
  inset: -5%;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 28% 76%, rgba(var(--space-soft-rgb), .6) 0 .9px, transparent 1.7px),
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 69%, rgba(var(--space-tertiary-rgb), .5) 0 .9px, transparent 1.7px),
    radial-gradient(ellipse at 16% 4%, rgba(var(--space-accent-rgb), .24), transparent 42%),
    radial-gradient(ellipse at 91% 98%, rgba(var(--space-secondary-rgb), .2), transparent 44%),
    linear-gradient(90deg, rgba(var(--space-deep-rgb), .5), transparent 46%, rgba(var(--space-deep-rgb), .46));
  transform: translate3d(1.4%, .7%, 0) scale(1.025);
  animation: market-title-stars-drift 17s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes market-title-nebula-drift {
  0% { transform: translate3d(-5.5%, -2.8%, 0) scale(1.08); }
  48% { transform: translate3d(.8%, .2%, 0) scale(1.16); }
  100% { transform: translate3d(5.5%, 2.8%, 0) scale(1.1); }
}

@keyframes market-title-stars-drift {
  0% { transform: translate3d(1.4%, .7%, 0) scale(1.025); }
  100% { transform: translate3d(-1.3%, -.8%, 0) scale(1.045); }
}

body.market-theme .page-heading .eyebrow {
  color: rgb(var(--space-soft-rgb));
}

body.market-theme .unified-page-panel,
body.market-theme .browse-filter-panel,
body.market-theme .browse-catalog,
body.market-theme .market-section,
body.market-theme .creator-form,
body.market-theme .preview-column > .panel,
body.market-theme .preview-column .crop-controls,
body.market-theme .preview-column .frame-transform-controls,
body.market-theme .preview-column .review-guidelines {
  border-color: rgba(var(--space-accent-rgb), .18);
  background:
    radial-gradient(circle at 8% 11%, rgba(255,255,255,.38) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 88% 19%, rgba(var(--space-soft-rgb), .28) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 7% 0%, rgba(var(--space-accent-rgb), .13), transparent 43%),
    radial-gradient(ellipse at 96% 100%, rgba(var(--space-secondary-rgb), .1), transparent 45%),
    linear-gradient(150deg, rgba(16, 28, 55, .96), rgba(var(--space-deep-rgb), .94));
  box-shadow:
    0 20px 48px rgba(var(--space-deep-rgb), .31),
    inset 0 1px rgba(var(--space-soft-rgb), .055);
}

body.market-theme .button-primary {
  border-color: rgba(var(--space-soft-rgb), .23);
  background: linear-gradient(135deg, rgb(var(--space-secondary-rgb)), rgb(var(--space-accent-rgb)) 62%, rgb(var(--space-tertiary-rgb)));
  box-shadow: 0 11px 26px rgba(var(--space-accent-rgb), .2), inset 0 1px rgba(255,255,255,.13);
}

body.market-theme .button-primary:hover:not(:disabled) {
  border-color: rgba(var(--space-soft-rgb), .4);
  background: linear-gradient(135deg, rgb(var(--space-accent-rgb)), rgb(var(--space-secondary-rgb)) 58%, rgb(var(--space-tertiary-rgb)));
  box-shadow: 0 14px 31px rgba(var(--space-accent-rgb), .29), inset 0 1px rgba(255,255,255,.18);
}

body.market-theme :is(input, textarea, select):focus,
body.market-theme .filter-input-shell:focus-within,
body.market-theme .upload-field:focus-within {
  border-color: rgba(var(--space-accent-rgb), .74);
  box-shadow: 0 0 0 4px rgba(var(--space-accent-rgb), .13), inset 0 1px rgba(255,255,255,.04);
}

body.market-theme .game-loader {
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--space-accent-rgb), .2), transparent 24rem),
    radial-gradient(circle at 17% 78%, rgba(var(--space-secondary-rgb), .15), transparent 30rem),
    rgb(var(--space-deep-rgb));
}

body.market-theme .loader-track span {
  background: linear-gradient(90deg, rgb(var(--space-secondary-rgb)), rgb(var(--space-accent-rgb)), rgb(var(--space-tertiary-rgb)));
  box-shadow: 0 0 18px rgba(var(--space-accent-rgb), .55);
}

/* Notifications resemble a live communications field. */
body.market-theme-notifications .notification-unread-summary {
  border-color: rgba(var(--space-accent-rgb), .34);
  background: rgba(var(--space-deep-rgb), .54);
  box-shadow: 0 0 24px rgba(var(--space-accent-rgb), .11), inset 0 1px rgba(255,255,255,.06);
}

body.market-theme-notifications .notification-card.is-unread {
  border-color: rgba(var(--space-accent-rgb), .31);
  background:
    radial-gradient(ellipse at 3% 50%, rgba(var(--space-accent-rgb), .22), transparent 38%),
    linear-gradient(105deg, rgba(var(--space-secondary-rgb), .14), rgba(8, 25, 43, .96) 46%);
}

body.market-theme-notifications .notification-card::before,
body.market-theme-notifications .notification-dot {
  background: rgb(var(--space-accent-rgb));
  box-shadow: 0 0 15px rgba(var(--space-accent-rgb), .72);
}

body.market-theme-notifications .notification-meta strong,
body.market-theme-notifications .notification-arrow {
  color: rgb(var(--space-accent-rgb));
}

body.market-theme-notifications .notification-avatar i {
  background: linear-gradient(145deg, rgb(var(--space-secondary-rgb)), rgb(var(--space-accent-rgb)));
}

/* Collection uses violet space around item-derived inventory colours. */
body.market-theme-collection .collection-type-groups {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(var(--space-accent-rgb), .08), transparent 40%),
    radial-gradient(ellipse at 91% 100%, rgba(var(--space-tertiary-rgb), .07), transparent 42%);
}

body.market-theme-collection .collection-subsection,
body.market-theme-collection .collection-type > .collection-grid,
body.market-theme-collection .collection-category-empty {
  border-top-color: rgba(var(--space-accent-rgb), .13);
}

/* Create uses a warm stellar nursery without recolouring uploaded artwork. */
body.market-theme-create .creator-item-type-options input:checked + span {
  border-color: rgba(var(--space-accent-rgb), .7);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(var(--space-tertiary-rgb), .13), transparent 46%),
    linear-gradient(145deg, rgba(var(--space-secondary-rgb), .16), rgba(var(--space-accent-rgb), .13));
  box-shadow: 0 0 0 3px rgba(var(--space-accent-rgb), .09), inset 0 1px rgba(255,255,255,.05);
}

body.market-theme-create .upload-field:hover,
body.market-theme-create .upload-field:focus-within {
  border-color: rgba(var(--space-accent-rgb), .74);
  background: rgba(var(--space-mid-rgb), .3);
  box-shadow: 0 0 0 4px rgba(var(--space-accent-rgb), .12);
}

body.market-theme-create .frame-background-status,
body.market-theme-create .frame-direct-hint {
  border-color: rgba(var(--space-accent-rgb), .25);
  color: rgb(var(--space-soft-rgb));
  background: rgba(var(--space-accent-rgb), .08);
}


@media (max-width: 780px) {
  body.market-theme .page-heading::before { opacity: .28; }
  body.market-theme .page-heading::after {
    background:
      radial-gradient(circle at 12% 20%, rgba(255,255,255,.68) 0 .8px, transparent 1.5px),
      radial-gradient(circle at 84% 72%, rgba(var(--space-soft-rgb), .5) 0 .8px, transparent 1.5px),
      radial-gradient(ellipse at 16% 4%, rgba(var(--space-accent-rgb), .23), transparent 44%),
      radial-gradient(ellipse at 91% 98%, rgba(var(--space-secondary-rgb), .18), transparent 45%),
      linear-gradient(90deg, rgba(var(--space-deep-rgb), .46), transparent 48%, rgba(var(--space-deep-rgb), .42));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.market-theme .page-heading::before,
  body.market-theme .page-heading::after {
    animation: none;
    will-change: auto;
  }
}

/* A standalone item page promotes the artwork palette to the whole screen. */
body.market-item-detail-theme {
  --space-accent-rgb: 116, 157, 214;
  --space-secondary-rgb: 82, 106, 162;
  --space-tertiary-rgb: 166, 197, 230;
  --space-deep-rgb: 8, 16, 31;
  --space-mid-rgb: 25, 42, 67;
  --space-soft-rgb: 226, 237, 249;
  --item-accent-rgb: var(--space-accent-rgb);
  --item-secondary-rgb: var(--space-secondary-rgb);
  --item-tertiary-rgb: var(--space-tertiary-rgb);
  --item-surface-rgb: 25, 40, 66;
  --item-surface-deep-rgb: 8, 16, 31;
  --item-surface-hover-rgb: 39, 59, 90;
  --item-surface-alt-rgb: 14, 27, 49;
  --item-light-rgb: 242, 247, 253;
  --item-light-deep-rgb: 222, 232, 245;
}

body.market-item-detail-theme[data-item-theme-ready="true"] {
  background:
    radial-gradient(ellipse at 88% -8%, rgba(var(--item-accent-rgb), .28), transparent 36rem),
    radial-gradient(ellipse at 7% 66%, rgba(var(--item-secondary-rgb), .22), transparent 42rem),
    radial-gradient(ellipse at 57% 112%, rgba(var(--item-tertiary-rgb), .15), transparent 38rem),
    linear-gradient(145deg, rgb(var(--space-deep-rgb)), #030713 52%, rgba(var(--space-mid-rgb), .96));
}

body.market-item-detail-theme .detail-layout,
body.market-item-detail-theme .detail-panel {
  border-color: rgba(var(--item-accent-rgb), .28);
  background:
    radial-gradient(circle at 8% 11%, rgba(255,255,255,.45) 0 .8px, transparent 1.5px),
    radial-gradient(circle at 89% 18%, rgba(var(--space-soft-rgb), .34) 0 .8px, transparent 1.5px),
    radial-gradient(ellipse at 10% 2%, rgba(var(--item-accent-rgb), .22), transparent 44%),
    radial-gradient(ellipse at 94% 98%, rgba(var(--item-secondary-rgb), .17), transparent 46%),
    radial-gradient(ellipse at 58% 43%, rgba(var(--item-tertiary-rgb), .08), transparent 38%),
    linear-gradient(145deg, rgba(var(--item-surface-rgb), .96), rgba(var(--item-surface-alt-rgb), .96) 56%, rgba(var(--item-surface-deep-rgb), .98));
  box-shadow:
    0 22px 54px rgba(var(--space-deep-rgb), .4),
    0 0 32px rgba(var(--item-accent-rgb), .09),
    inset 0 1px rgba(255,255,255,.065);
}

body.market-item-detail-theme .detail-layout[data-item-color-ready="true"] {
  border-color: rgba(var(--item-accent-rgb), .45);
}

body.market-item-detail-theme :is(
  .comment-composer,
  .comment-sign-in,
  .comment-card,
  .creator-market-stats span,
  .sale-panel,
  .breadcrumbs
) {
  border-color: rgba(var(--item-accent-rgb), .2);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(var(--item-accent-rgb), .16), transparent 48%),
    radial-gradient(ellipse at 92% 100%, rgba(var(--item-secondary-rgb), .1), transparent 46%),
    linear-gradient(145deg, rgba(var(--item-surface-rgb), .9), rgba(var(--item-surface-deep-rgb), .96));
}

body.market-item-detail-theme :is(.comment-card, .comment-sign-in):hover {
  border-color: rgba(var(--item-accent-rgb), .42);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(var(--item-accent-rgb), .25), transparent 51%),
    linear-gradient(145deg, rgba(var(--item-surface-hover-rgb), .96), rgba(var(--item-surface-deep-rgb), .98));
  box-shadow: 0 15px 34px rgba(var(--space-deep-rgb), .3), inset 0 1px rgba(255,255,255,.07);
}

body.market-item-detail-theme .sale-panel::before {
  background: linear-gradient(90deg, rgb(var(--item-secondary-rgb)), rgb(var(--item-accent-rgb)), rgb(var(--item-tertiary-rgb)));
  box-shadow: 0 0 18px rgba(var(--item-accent-rgb), .48);
}

body.market-item-detail-theme :is(
  .detail-panel-heading .eyebrow,
  .detail-panel-heading > a,
  .detail-creator a,
  .sale-price > strong span
) {
  color: rgb(var(--space-soft-rgb));
}

body.market-item-detail-theme .creator-spotlight-avatar img {
  border-color: rgba(var(--item-accent-rgb), .34);
  box-shadow:
    0 18px 34px rgba(var(--space-deep-rgb), .38),
    0 0 0 5px rgba(var(--item-accent-rgb), .12),
    0 0 25px rgba(var(--item-accent-rgb), .12);
}


/* Carry an item's artwork palette through comments and every checkout surface. */
body.market-item-detail-theme .badge-comments {
  border-color: rgba(var(--item-accent-rgb), .38);
  background:
    radial-gradient(circle at 7% 8%, rgba(255,255,255,.46) 0 .8px, transparent 1.6px),
    radial-gradient(ellipse at 7% 0%, rgba(var(--item-accent-rgb), .28), transparent 43%),
    radial-gradient(ellipse at 94% 100%, rgba(var(--item-secondary-rgb), .2), transparent 45%),
    linear-gradient(145deg, rgba(var(--item-surface-rgb), .97), rgba(var(--item-surface-deep-rgb), .99));
}

body.market-item-detail-theme .badge-comments .detail-panel-heading {
  border-bottom-color: rgba(var(--item-accent-rgb), .2);
}

body.market-item-detail-theme :is(
  .badge-comments .detail-panel-heading .eyebrow,
  .comment-sign-in strong,
  .comment-body header a:hover,
  .comment-empty span
) {
  color: rgb(var(--space-soft-rgb));
}

body.market-item-detail-theme .comment-avatar img {
  border: 1px solid rgba(var(--item-accent-rgb), .4);
  box-shadow: 0 0 0 4px rgba(var(--item-accent-rgb), .09), 0 10px 24px rgba(var(--space-deep-rgb), .32);
}

body.market-item-detail-theme .comment-composer textarea {
  border-color: rgba(var(--item-accent-rgb), .25);
  background: rgba(var(--item-surface-deep-rgb), .76);
}

body.market-item-detail-theme .comment-composer textarea:focus {
  border-color: rgba(var(--item-accent-rgb), .72);
  box-shadow: 0 0 0 4px rgba(var(--item-accent-rgb), .12);
}

body.market-item-detail-theme :is(
  .comment-composer .button-primary,
  .sale-panel .button-primary,
  .creator-spotlight-actions .button-primary
) {
  border-color: rgba(var(--item-tertiary-rgb), .54);
  color: #fff;
  background: linear-gradient(115deg, rgb(var(--item-secondary-rgb)), rgb(var(--item-accent-rgb)) 58%, rgb(var(--item-tertiary-rgb)));
  box-shadow: 0 10px 26px rgba(var(--item-accent-rgb), .2), inset 0 1px rgba(255,255,255,.18);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight {
  border-color: rgba(var(--item-accent-rgb), .4);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.5) 0 .8px, transparent 1.6px),
    radial-gradient(ellipse at 9% 4%, rgba(var(--item-accent-rgb), .34), transparent 46%),
    radial-gradient(ellipse at 94% 96%, rgba(var(--item-secondary-rgb), .22), transparent 46%),
    linear-gradient(145deg, rgba(var(--item-surface-rgb), .98), rgba(var(--item-surface-alt-rgb), .97) 56%, rgba(var(--item-surface-deep-rgb), .99));
  box-shadow:
    0 20px 46px rgba(var(--space-deep-rgb), .38),
    0 0 28px rgba(var(--item-accent-rgb), .12),
    inset 0 1px rgba(255,255,255,.075);
  transition: border-color .28s var(--easing), background .28s var(--easing), box-shadow .35s var(--easing), transform .4s var(--easing);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight:hover {
  border-color: rgba(var(--item-accent-rgb), .68);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.62) 0 .9px, transparent 1.7px),
    radial-gradient(ellipse at 9% 4%, rgba(var(--item-accent-rgb), .47), transparent 49%),
    radial-gradient(ellipse at 94% 96%, rgba(var(--item-secondary-rgb), .31), transparent 49%),
    linear-gradient(145deg, rgba(var(--item-surface-hover-rgb), .99), rgba(var(--item-surface-alt-rgb), .98) 58%, rgba(var(--item-surface-deep-rgb), .99));
  box-shadow:
    0 25px 56px rgba(var(--space-deep-rgb), .43),
    0 0 36px rgba(var(--item-accent-rgb), .2),
    inset 0 1px rgba(255,255,255,.11);
  transform: translateY(-2px);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-market-stats span {
  border: 1px solid rgba(var(--item-accent-rgb), .22);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(var(--item-accent-rgb), .18), transparent 50%),
    rgba(var(--item-surface-deep-rgb), .58);
  transition: border-color .24s var(--easing), background .24s var(--easing), transform .3s var(--easing);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-market-stats span:hover {
  border-color: rgba(var(--item-accent-rgb), .45);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(var(--item-accent-rgb), .28), transparent 54%),
    rgba(var(--item-surface-hover-rgb), .68);
  transform: translateY(-1px);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight-actions .button {
  border: 1px solid rgba(var(--item-accent-rgb), .32);
  color: #fff;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(var(--item-accent-rgb), .2), transparent 52%),
    rgba(var(--item-surface-deep-rgb), .72);
  box-shadow: inset 0 1px rgba(255,255,255,.075);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight-actions .button:hover:not(:disabled) {
  border-color: rgba(var(--item-accent-rgb), .64);
  color: #fff;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(var(--item-accent-rgb), .38), transparent 56%),
    rgba(var(--item-surface-hover-rgb), .9);
  box-shadow: 0 12px 28px rgba(var(--item-accent-rgb), .2), inset 0 1px rgba(255,255,255,.12);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight-actions .button-primary {
  border-color: rgba(var(--item-tertiary-rgb), .52);
  background: linear-gradient(115deg, rgb(var(--item-secondary-rgb)), rgb(var(--item-accent-rgb)) 58%, rgb(var(--item-tertiary-rgb)));
  box-shadow: 0 10px 26px rgba(var(--item-accent-rgb), .22), inset 0 1px rgba(255,255,255,.18);
}

body.market-item-detail-theme[data-item-theme-ready="true"] .creator-spotlight-actions .button-primary:hover:not(:disabled) {
  border-color: rgba(var(--item-tertiary-rgb), .74);
  background: linear-gradient(115deg, rgb(var(--item-accent-rgb)), rgb(var(--item-tertiary-rgb)) 58%, rgb(var(--item-secondary-rgb)));
  box-shadow: 0 14px 32px rgba(var(--item-accent-rgb), .3), inset 0 1px rgba(255,255,255,.22);
}


body.market-modal-item-theme .market-item-modal-backdrop {
  background: rgba(var(--space-deep-rgb), .78);
}

body.market-modal-item-theme .market-item-modal-panel {
  border-color: rgba(var(--space-accent-rgb), .48);
  background: rgb(var(--space-deep-rgb));
  box-shadow:
    0 38px 110px rgba(0, 3, 18, .72),
    0 0 42px rgba(var(--space-accent-rgb), .18),
    inset 0 1px rgba(255,255,255,.055);
}

.purchase-modal-document[data-item-color-ready="true"] {
  background:
    radial-gradient(ellipse at 9% 3%, rgba(var(--item-accent-rgb), .3), transparent 38%),
    radial-gradient(ellipse at 92% 96%, rgba(var(--item-secondary-rgb), .2), transparent 44%),
    linear-gradient(155deg, rgb(var(--item-surface-rgb)), rgb(var(--item-surface-deep-rgb)) 72%);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-modal-header {
  border-bottom-color: rgba(var(--item-accent-rgb), .34);
  background:
    radial-gradient(ellipse at 10% -80%, rgba(var(--item-accent-rgb), .48), transparent 48%),
    linear-gradient(105deg, rgba(var(--item-surface-rgb), .96), rgba(var(--item-surface-deep-rgb), .96));
  box-shadow: 0 12px 30px rgba(var(--item-surface-deep-rgb), .38);
}

.purchase-modal-document[data-item-color-ready="true"] :is(
  .purchase-modal-header .eyebrow,
  .purchase-item-copy .eyebrow,
  .purchase-preview-heading .eyebrow,
  .purchase-item-creator a,
  .purchase-dialog-price-row strong span
) {
  color: rgb(var(--space-soft-rgb));
}

.purchase-modal-document[data-item-color-ready="true"] .market-item-modal-close {
  border-color: rgba(var(--item-accent-rgb), .4);
  color: rgb(var(--space-soft-rgb));
  background: rgba(var(--item-accent-rgb), .12);
}

.purchase-modal-document[data-item-color-ready="true"] .market-item-modal-close:hover {
  border-color: rgba(var(--item-accent-rgb), .72);
  color: #fff;
  background: rgba(var(--item-accent-rgb), .25);
  box-shadow: 0 0 20px rgba(var(--item-accent-rgb), .17);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-item-kind {
  border-color: rgba(var(--item-accent-rgb), .45);
  background: rgba(var(--item-surface-deep-rgb), .82);
  box-shadow: 0 0 18px rgba(var(--item-accent-rgb), .12);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-price-row {
  border-color: rgba(var(--item-accent-rgb), .2);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-availability.is-owned {
  color: rgb(var(--space-soft-rgb));
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-action.button-primary {
  border-color: rgba(var(--item-tertiary-rgb), .5);
  color: #fff;
  background: linear-gradient(115deg, rgb(var(--item-secondary-rgb)), rgb(var(--item-accent-rgb)) 58%, rgb(var(--item-tertiary-rgb)));
  box-shadow: 0 12px 28px rgba(var(--item-accent-rgb), .24), inset 0 1px rgba(255,255,255,.19);
}

.purchase-modal-document[data-item-color-ready="true"] :is(
  .purchase-dialog-owned,
  .purchase-full-details
) {
  border: 1px solid rgba(var(--item-accent-rgb), .2);
  color: rgb(var(--space-soft-rgb));
  background:
    radial-gradient(ellipse at 4% 50%, rgba(var(--item-accent-rgb), .17), transparent 48%),
    rgba(var(--item-surface-deep-rgb), .62);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-full-details:hover {
  border-color: rgba(var(--item-accent-rgb), .48);
  color: #fff;
  background:
    radial-gradient(ellipse at 4% 50%, rgba(var(--item-accent-rgb), .3), transparent 52%),
    rgba(var(--item-surface-hover-rgb), .72);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-dialog-preview::before {
  background-image:
    linear-gradient(rgba(var(--item-accent-rgb), .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--item-secondary-rgb), .07) 1px, transparent 1px);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-preview-orbit,
.purchase-modal-document[data-item-color-ready="true"] .purchase-preview-orbit::before,
.purchase-modal-document[data-item-color-ready="true"] .purchase-preview-orbit::after {
  border-color: rgba(var(--item-accent-rgb), .18);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-preview-orbit {
  box-shadow: 0 0 80px rgba(var(--item-accent-rgb), .15), inset 0 0 70px rgba(var(--item-secondary-rgb), .08);
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-profile-banner {
  background: linear-gradient(135deg, rgb(var(--item-surface-hover-rgb)), rgb(var(--item-surface-deep-rgb)));
}

.purchase-modal-document[data-item-color-ready="true"] .purchase-profile-avatar-slot .badge-preview-avatar {
  border-color: rgba(var(--item-accent-rgb), .42);
}


/* The description is a fixed field; long copy scrolls instead of resizing it. */
body.market-theme-create .creator-form textarea[name="description"] {
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
  resize: none;
}


/*
 * Catalogue shelves are one continuous surface. The category
 * heading used to paint a second translucent rectangle over the shelf, which
 * remained visible as a ghost border over the category surface.
 */
body.market-theme :is(
  .catalog-group-badges,
  .catalog-group-frames,
  .catalog-group-loading-screens
) > .catalog-group-heading {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
/* Loading-screen marketplace items --------------------------------------- */
.catalog-group-loading-screens {
  --catalog-accent: 73, 226, 239;
  position: relative;
  overflow: hidden;
  border-color: rgba(73, 226, 239, .25);
  background:
    radial-gradient(circle at 78% 20%, rgba(76, 112, 255, .22), transparent 36%),
    radial-gradient(circle at 14% 74%, rgba(34, 231, 242, .13), transparent 32%),
    rgba(8, 18, 38, .82);
}
.catalog-group-loading-screens .catalog-group-icon {
  color: #7cf5ff;
  background: rgba(37, 186, 218, .13);
  border-color: rgba(124, 245, 255, .42);
}
.loading-screen-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.badge-card.item-loading_screen .badge-art,
.detail-recommendations .badge-card.item-loading_screen .badge-art {
  aspect-ratio: 16 / 9;
}
.loading-screen-art-preview {
  background: #080a0f;
}
.loading-screen-card-stage,
.loading-screen-card-stage iframe,
.collection-card.item-loading_screen .collection-art iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.loading-screen-card-stage { position: absolute; inset: 0; overflow: hidden; }
.loading-screen-card-stage iframe { pointer-events: none; background: #080a0f; }
.loading-screen-card-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 28%);
  box-shadow: inset 0 0 0 1px rgba(107, 236, 255, .12);
}
.badge-card.item-loading_screen:hover .loading-screen-card-stage iframe {
  filter: brightness(1.08) saturate(1.08);
}

.creator-item-type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loading-screen-editor { overflow: hidden; padding: 0; }
.loading-screen-editor-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #080a0f;
}
.loading-screen-native-preview {
  --preview-bg: #080a0f;
  --preview-accent: #ffad12;
  --preview-secondary: #dfff18;
  --preview-alert: #ff4b22;
  --preview-x: 50%;
  --preview-y: 65%;
  --preview-width: 52%;
  --preview-height: 9%;
  --meter-x: 44%;
  --meter-y: 50%;
  --meter-size: 50%;
  --meter-width: 50%;
  --meter-height: 50%;
  --meter-side-x: 4.3%;
  --meter-side-y: 11%;
  --meter-side-width: 14.5%;
  --meter-side-height: 80%;
  --meter-progress: 0%;
  --meter-radiance: .16;
  --meter-glow: .9;
  --meter-tick-step: 5deg;
  --meter-segments: 36;
  --meter-value-scale: .112;
  --meter-ring-thickness: 4.6;
  --meter-animation-speed: 1;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--preview-bg);
}
.loading-screen-atlas-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.loading-screen-atlas-preview > i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--atlas-aspect, 16 / 9);
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-color: #000;
  will-change: opacity, background-position;
}
.loading-screen-native-preview.is-frame-atlas .loading-screen-native-semantic,
.loading-screen-native-preview.is-frame-atlas .loading-screen-native-meter { display: none; }
.loading-screen-native-semantic { position: absolute; inset: 0; }
.loading-screen-native-preview.is-meter-layout .loading-screen-native-semantic { display: none; }
.loading-screen-native-meter {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--preview-bg);
}
.loading-screen-native-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--meter-x) var(--meter-y), color-mix(in srgb, var(--preview-alert) 24%, transparent), color-mix(in srgb, var(--preview-alert) 9%, transparent) 23%, transparent 44%);
  opacity: var(--meter-radiance);
  transition: opacity 120ms linear;
}
.loading-screen-native-preview.is-meter-layout .loading-screen-native-meter { display: block; }
.loading-screen-native-preview.without-side-meter .loading-screen-meter-cluster { display: none; }
.loading-screen-native-preview.without-telemetry .loading-screen-meter-telemetry { display: none; }
.loading-screen-native-preview.without-readouts .loading-screen-radial-readouts { display: none; }
.loading-screen-meter-cluster {
  position: absolute;
  top: var(--meter-side-y);
  left: var(--meter-side-x);
  width: calc(var(--meter-side-width) * 1.72);
  height: var(--meter-side-height);
}
.loading-screen-meter-bank {
  position: relative;
  display: grid;
  width: 58%;
  height: 100%;
  grid-template-columns: repeat(var(--meter-columns, 4), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 2.5% 6%;
  border-left: max(1px, .16vw) solid var(--preview-secondary);
  border-bottom: max(1px, .16vw) solid var(--preview-secondary);
  filter: drop-shadow(0 0 calc(2px + 5px * var(--meter-radiance)) color-mix(in srgb, var(--preview-secondary) 40%, transparent));
}
.loading-screen-meter-bank > i {
  --channel-progress: var(--meter-progress);
  position: relative;
  display: block;
  min-width: 3px;
  overflow: hidden;
  background: repeating-linear-gradient(to top, color-mix(in srgb, var(--preview-alert) 48%, transparent) 0 calc(78% / var(--meter-segments)), transparent calc(78% / var(--meter-segments)) calc(100% / var(--meter-segments)));
  filter: drop-shadow(0 0 calc(1px + 5px * var(--meter-radiance)) color-mix(in srgb, var(--preview-alert) 54%, transparent));
}
.loading-screen-meter-bank > i::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--channel-progress);
  background: repeating-linear-gradient(to top, var(--preview-secondary) 0 calc(78% / var(--meter-segments)), transparent calc(78% / var(--meter-segments)) calc(100% / var(--meter-segments)));
  filter: drop-shadow(0 0 calc(2px + 5px * var(--meter-radiance)) var(--preview-secondary));
  transition: height 110ms cubic-bezier(.2,.8,.2,1);
}
.loading-screen-meter-bank > b {
  color: color-mix(in srgb, white 42%, transparent);
  font-size: clamp(6px, .9vw, 16px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}
.loading-screen-meter-telemetry {
  position: absolute;
  top: 7%;
  left: 66%;
  display: grid;
  gap: clamp(2px, 1.25vh, 16px);
  color: #10f56a;
  font-family: "Arial Narrow", "Roboto Condensed", ui-monospace, monospace;
  font-size: clamp(5px, .72vw, 14px);
  line-height: 1;
  text-shadow: 0 0 calc(2px + 5px * var(--meter-radiance)) color-mix(in srgb, #10f56a 70%, transparent);
  white-space: nowrap;
}
.loading-screen-meter-telemetry > b { font-weight: 500; }
.loading-screen-radial-meter {
  position: absolute;
  left: var(--meter-x);
  top: var(--meter-y);
  display: grid;
  width: var(--meter-width);
  height: var(--meter-height);
  place-items: center;
  container-type: size;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.loading-screen-radial-meter::before,
.loading-screen-radial-meter::after,
.loading-screen-radial-meter > i { position: absolute; border-radius: 50%; }
.loading-screen-native-preview.meter-shape-rounded .loading-screen-radial-meter,
.loading-screen-native-preview.meter-shape-rounded .loading-screen-radial-meter::before,
.loading-screen-native-preview.meter-shape-rounded .loading-screen-radial-meter::after,
.loading-screen-native-preview.meter-shape-rounded .loading-screen-radial-meter > i { border-radius: 18%; }
.loading-screen-native-preview.meter-shape-rectangle .loading-screen-radial-meter,
.loading-screen-native-preview.meter-shape-rectangle .loading-screen-radial-meter::before,
.loading-screen-native-preview.meter-shape-rectangle .loading-screen-radial-meter::after,
.loading-screen-native-preview.meter-shape-rectangle .loading-screen-radial-meter > i { border-radius: 3%; }
.loading-screen-radial-meter::before {
  content: "";
  inset: 25.5%;
  z-index: 0;
  background: radial-gradient(circle at 48% 45%, color-mix(in srgb, var(--preview-secondary) 9%, #050700), #020300 74%);
  box-shadow: inset 0 0 calc(3px + 12px * var(--meter-radiance)) color-mix(in srgb, var(--preview-secondary) 20%, transparent), 0 0 calc(4px + 11px * var(--meter-radiance)) color-mix(in srgb, var(--preview-secondary) 15%, transparent);
}
.loading-screen-radial-meter::after {
  content: "";
  inset: 7%;
  z-index: 1;
  border: max(1px, .18vw) solid color-mix(in srgb, var(--preview-accent) 86%, transparent);
  box-shadow: 0 0 calc(1px + 5px * var(--meter-radiance)) color-mix(in srgb, var(--preview-accent) 50%, transparent);
}
.loading-screen-radial-ambient {
  inset: -13%;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--preview-alert) 27%, transparent) 25%, color-mix(in srgb, var(--preview-alert) 15%, transparent) 46%, transparent 72%);
  filter: blur(calc(4px + 16px * var(--meter-glow)));
  opacity: var(--meter-radiance);
}
.loading-screen-radial-arcs {
  inset: -8%;
  z-index: 1;
  background: conic-gradient(from -75deg, transparent 0 5deg, var(--preview-accent) 5deg 34deg, transparent 34deg 50deg, color-mix(in srgb, var(--preview-alert) 78%, var(--preview-accent)) 50deg 63deg, transparent 63deg 109deg, var(--preview-accent) 109deg 139deg, transparent 139deg 163deg, color-mix(in srgb, var(--preview-accent) 75%, transparent) 163deg 205deg, transparent 205deg 228deg, var(--preview-accent) 228deg 245deg, transparent 245deg 296deg, var(--preview-accent) 296deg 331deg, transparent 331deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 87%, #000 87.5% 89%, transparent 89.5% 92%, #000 92.5% 94%, transparent 94.5%);
  mask: radial-gradient(circle, transparent 0 87%, #000 87.5% 89%, transparent 89.5% 92%, #000 92.5% 94%, transparent 94.5%);
  filter: drop-shadow(0 0 calc(1px + 5px * var(--meter-radiance)) var(--preview-accent));
  animation: loading-meter-arcs calc(18s / var(--meter-animation-speed)) linear infinite;
}
.loading-screen-radial-outer {
  inset: 8.5%;
  z-index: 1;
  border: calc(var(--meter-ring-thickness) * 1cqw) solid color-mix(in srgb, var(--preview-accent) 78%, #ff8e00);
  box-shadow: 0 0 calc(2px + 13px * var(--meter-radiance)) color-mix(in srgb, var(--preview-alert) 88%, transparent), 0 0 calc(3px + 24px * var(--meter-radiance)) color-mix(in srgb, var(--preview-alert) 52%, transparent), inset 0 0 calc(2px + 10px * var(--meter-radiance)) color-mix(in srgb, var(--preview-alert) 62%, transparent);
}
.loading-screen-radial-rings {
  z-index: 1;
  inset: 17%;
  background: repeating-radial-gradient(
    circle,
    transparent 0 calc(var(--meter-ring-step) - var(--meter-ring-line)),
    color-mix(in srgb, var(--preview-secondary) 42%, transparent)
      calc(var(--meter-ring-step) - var(--meter-ring-line)) var(--meter-ring-step)
  );
  filter: drop-shadow(
    0 0 calc(2px + 8px * var(--meter-radiance))
    color-mix(in srgb, var(--preview-secondary) 32%, transparent)
  );
  opacity: calc(.28 + var(--meter-radiance) * .5);
}
.loading-screen-radial-progress {
  inset: 7.8%;
  z-index: 2;
  background: conic-gradient(from -90deg, color-mix(in srgb, white 32%, var(--preview-alert)) 0 var(--meter-progress), transparent var(--meter-progress) 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 82%, #000 82.5% 88%, transparent 88.5%);
  mask: radial-gradient(circle, transparent 0 82%, #000 82.5% 88%, transparent 88.5%);
  filter: drop-shadow(0 0 calc(3px + 11px * var(--meter-radiance)) var(--preview-alert));
  transition: background 120ms linear;
}
.loading-screen-radial-ticks {
  inset: 13.5%;
  z-index: 2;
  background: repeating-conic-gradient(from -90deg, var(--preview-accent) 0deg .65deg, transparent .8deg var(--meter-tick-step)), repeating-conic-gradient(from -90deg, color-mix(in srgb, var(--preview-accent) 80%, white) 0deg 1.25deg, transparent 1.5deg calc(var(--meter-tick-step) * 6));
  -webkit-mask: radial-gradient(circle, transparent 0 68%, #000 68.5% 97%, transparent 97.5%);
  mask: radial-gradient(circle, transparent 0 68%, #000 68.5% 97%, transparent 97.5%);
  filter: drop-shadow(0 0 calc(1px + 4px * var(--meter-radiance)) var(--preview-accent));
  opacity: calc(.72 + var(--meter-radiance) * .28);
}
.loading-screen-radial-orbit {
  inset: 1.5%;
  z-index: 1;
  background: repeating-conic-gradient(from -90deg, color-mix(in srgb, var(--preview-accent) 62%, transparent) 0deg .45deg, transparent .55deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 90%, #000 90.5% 91.5%, transparent 92%);
  mask: radial-gradient(circle, transparent 0 90%, #000 90.5% 91.5%, transparent 92%);
  animation: loading-meter-orbit calc(13s / var(--meter-animation-speed)) linear infinite;
}
.loading-screen-radial-inner {
  inset: 26%;
  z-index: 2;
  border: calc(var(--meter-ring-thickness) * .82cqw) solid color-mix(in srgb, var(--preview-secondary) 84%, #fff51c);
  box-shadow: 0 0 calc(2px + 10px * var(--meter-radiance)) var(--preview-secondary), 0 0 calc(2px + 20px * var(--meter-radiance)) color-mix(in srgb, var(--preview-secondary) 48%, transparent), inset 0 0 calc(2px + 9px * var(--meter-radiance)) var(--preview-secondary);
}
.loading-screen-radial-readouts {
  position: absolute;
  inset: -7%;
  z-index: 4;
  color: var(--preview-accent);
  font-family: "Arial Narrow", "Roboto Condensed", ui-monospace, monospace;
  font-size: clamp(4px, 1.9cqw, 18px);
  font-weight: 600;
  letter-spacing: .08em;
  text-shadow: 0 0 calc(1px + 4px * var(--meter-radiance)) var(--preview-accent);
  pointer-events: none;
}
.loading-screen-radial-readouts > b { position: absolute; font-weight: inherit; white-space: nowrap; }
.loading-screen-radial-readouts > b:first-child { left: -1%; top: 29%; transform: rotate(-63deg); }
.loading-screen-radial-readouts > b:last-child { right: -7%; top: 18%; transform: rotate(27deg); }
.loading-screen-radial-meter > strong {
  position: relative;
  z-index: 5;
  color: var(--preview-accent);
  font-family: "Arial Narrow", "Roboto Condensed", ui-monospace, monospace;
  font-size: clamp(14px, 4vw, 68px);
  font-size: clamp(14px, calc(var(--meter-value-scale) * 100cqw), 72px);
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  text-shadow: 0 0 calc(2px + 9px * var(--meter-radiance)) color-mix(in srgb, var(--preview-accent) 62%, transparent);
}
.loading-screen-native-preview.is-vertical-meter .loading-screen-meter-cluster {
  top: 8%;
  right: 28%;
  bottom: 12%;
  left: 28%;
  width: auto;
  height: auto;
}
.loading-screen-native-preview.is-vertical-meter .loading-screen-meter-bank { width: 100%; height: 100%; gap: 3% 8%; }
.loading-screen-native-preview.is-vertical-meter .loading-screen-meter-telemetry,
.loading-screen-native-preview.is-vertical-meter .loading-screen-radial-meter { display: none; }
.loading-screen-native-preview.is-numeric-meter .loading-screen-meter-cluster,
.loading-screen-native-preview.is-adaptive-meter .loading-screen-meter-cluster { display: none; }
.loading-screen-native-preview.is-numeric-meter .loading-screen-radial-meter::before,
.loading-screen-native-preview.is-numeric-meter .loading-screen-radial-meter::after,
.loading-screen-native-preview.is-numeric-meter .loading-screen-radial-meter > i,
.loading-screen-native-preview.is-numeric-meter .loading-screen-radial-readouts { display: none; }
.loading-screen-native-preview.is-numeric-meter .loading-screen-radial-meter > strong { font-size: clamp(28px, 8vw, 138px); }
@keyframes loading-meter-orbit { to { transform: rotate(1turn); } }
@keyframes loading-meter-arcs { to { transform: rotate(-1turn); } }
.loading-screen-native-label {
  position: absolute;
  left: 50%;
  top: calc(var(--preview-y) - clamp(20px, 5.2vw, 72px));
  color: var(--preview-accent);
  font-size: clamp(10px, 1.7vw, 28px);
  font-weight: 700;
  letter-spacing: .56em;
  text-indent: .56em;
  text-shadow: 0 0 20px color-mix(in srgb, var(--preview-accent) 50%, transparent);
  transform: translate(-50%, -50%);
}
.loading-screen-native-track {
  position: absolute;
  left: var(--preview-x);
  top: var(--preview-y);
  display: block;
  width: var(--preview-width);
  height: max(3px, var(--preview-height));
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, white 19%, transparent);
  transform: translate(-50%, -50%);
}
.loading-screen-native-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--preview-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--preview-accent) 48%, transparent);
  transition: width 180ms cubic-bezier(.2,.8,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  .loading-screen-radial-orbit,
  .loading-screen-radial-arcs { animation: none; }
  .loading-screen-meter-bank > i::after,
  .loading-screen-native-track > i { transition: none; }
}
.loading-screen-analysis-state {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: #dcecff;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(30, 122, 167, .2), transparent 48%), #080a0f;
}
.loading-screen-analysis-state strong { color: #fff; font-size: 1.05rem; }
.loading-screen-analysis-state span { max-width: 420px; color: #8fa4bd; line-height: 1.55; }
.loading-screen-editor-controls { display: grid; gap: 12px; padding: 18px 20px 20px; }
.loading-screen-preview-progress { display: grid; gap: 10px; }
.loading-screen-preview-progress > span:first-child {
  display: flex;
  justify-content: space-between;
  color: var(--text);
  font-weight: 700;
}
.loading-screen-preview-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 153, 177, .28);
  box-shadow: inset 0 0 0 1px rgba(155, 222, 239, .1);
  pointer-events: none;
}
.loading-screen-preview-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #33dce9;
  box-shadow: 0 0 12px rgba(51, 220, 233, .38);
  transition: width 180ms cubic-bezier(.2,.8,.2,1);
}
.loading-screen-editor-controls p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* Declarative loading-screen studio ------------------------------------- */
.creator-layout:has(input[value="loading_screen"]:checked) {
  grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.28fr);
}
.loading-screen-editor {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(106, 163, 255, .3);
  border-radius: 14px;
  background: #09142a;
  box-shadow: 0 22px 60px rgba(0, 5, 20, .28), inset 0 1px rgba(255,255,255,.04);
}
.loading-screen-editor[hidden] { display: none !important; }
.composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(116, 159, 231, .2);
  background: linear-gradient(110deg, rgba(55, 79, 137, .28), rgba(21, 40, 80, .12));
}
.composer-heading > span { display: grid; gap: 3px; }
.composer-heading strong { color: #f7f9ff; font-size: 1.05rem; }
.composer-heading small { color: #8fa7cc; line-height: 1.45; }
.composer-presets {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(116, 159, 231, .16);
  scrollbar-width: thin;
}
.composer-presets button,
.composer-add-grid button {
  min-height: 34px;
  border: 1px solid rgba(119, 164, 246, .24);
  border-radius: 7px;
  color: #c9d8f5;
  background: rgba(14, 30, 61, .82);
  font: inherit;
  font-size: .74rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.composer-presets button { padding: 7px 11px; }
.composer-presets button:hover,
.composer-add-grid button:hover {
  border-color: rgba(92, 210, 255, .58);
  color: #fff;
  background: rgba(41, 73, 135, .75);
  transform: translateY(-1px);
}
.composer-workspace { display: grid; gap: 0; }
.composer-preview-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border-bottom: 1px solid rgba(116, 159, 231, .18);
  background: #050b18;
}
.composer-preview-shell {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(101, 188, 255, .3);
  border-radius: 9px;
  background: #030710;
  box-shadow: 0 16px 42px rgba(0,0,0,.35), 0 0 34px rgba(50, 110, 255, .08);
}
.composer-preview-shell iframe { display: block; width: 100%; height: 100%; border: 0; background: #050817; }
.composer-message-control { display: grid; gap: 7px; }
.composer-message-control > span { color: #b8c7e3; font-size: .72rem; font-weight: 760; }
.composer-message-control input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(111, 152, 219, .28);
  border-radius: 7px;
  color: #f2f6ff;
  background: #091329;
  font: inherit;
  font-size: .85rem;
}
.composer-message-control input:focus {
  border-color: rgba(92, 210, 255, .66);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 171, 255, .12);
}
.composer-preview-note { margin: 0; color: #748aaf; font-size: .7rem; line-height: 1.5; }
.composer-tools { display: grid; gap: 1px; background: rgba(111, 156, 224, .13); }
.composer-tool-section { display: grid; gap: 12px; padding: 16px; background: #0b162d; }
.composer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.composer-section-heading strong { color: #eaf0ff; font-size: .82rem; }
.composer-section-heading small { color: #6f87ad; font-size: .68rem; text-transform: capitalize; }
.composer-canvas-grid,
.composer-inspector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.composer-canvas-grid label,
.composer-inspector-grid label { display: grid; align-content: start; gap: 5px; min-width: 0; }
.composer-canvas-grid label > span,
.composer-inspector-grid label > span { color: #8196ba; font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.composer-canvas-grid input,
.composer-inspector-grid input,
.composer-inspector-grid select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid rgba(111, 152, 219, .22);
  border-radius: 6px;
  color: #e9efff;
  background: #071124;
  font: inherit;
  font-size: .73rem;
}
.composer-canvas-grid input[type="color"],
.composer-inspector-grid input[type="color"] { height: 34px; padding: 3px; cursor: pointer; }
.composer-canvas-grid input[type="range"],
.composer-inspector-grid input[type="range"] { min-height: 26px; border: 0; accent-color: #6f92ff; }
.composer-inspector-grid input[type="text"],
.composer-inspector-grid select { padding: 6px 8px; }
.composer-wide { grid-column: 1 / -1; }
.composer-add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.composer-add-grid button { min-width: 0; padding: 7px 4px; overflow: hidden; text-overflow: ellipsis; }
.composer-layer-list { display: grid; gap: 6px; max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.composer-layer-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(110, 148, 210, .16);
  border-radius: 7px;
  background: rgba(5, 13, 29, .62);
}
.composer-layer-list > li.is-selected { border-color: rgba(91, 204, 255, .58); background: rgba(31, 72, 127, .48); }
.composer-layer-select { display: grid; gap: 1px; min-width: 0; padding: 7px 9px; border: 0; color: #dce7fb; text-align: left; background: transparent; cursor: pointer; }
.composer-layer-select small { color: #6884af; font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.composer-layer-select strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.composer-layer-actions { display: flex; gap: 2px; padding-right: 5px; }
.composer-layer-actions button { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; border: 0; border-radius: 5px; color: #91a8cc; background: transparent; cursor: pointer; }
.composer-layer-actions button:hover:not(:disabled) { color: #fff; background: rgba(101, 154, 241, .2); }
.composer-layer-actions button:disabled { opacity: .25; cursor: default; }
.composer-inspector.is-empty { opacity: .48; }

@media (min-width: 1360px) {
  .creator-layout:has(input[value="loading_screen"]:checked) { grid-template-columns: minmax(340px, .66fr) minmax(760px, 1.34fr); }
  .composer-workspace { grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr); }
  .composer-preview-panel { align-content: start; border-right: 1px solid rgba(116, 159, 231, .18); border-bottom: 0; }
  .composer-tools { max-height: 760px; overflow-y: auto; }
}
@media (max-width: 980px) {
  .creator-layout:has(input[value="loading_screen"]:checked) { grid-template-columns: 1fr; }
  .composer-add-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .composer-heading { align-items: flex-start; padding: 14px; }
  .composer-heading small { display: none; }
  .composer-preview-panel,
  .composer-tool-section { padding: 11px; }
  .composer-add-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-canvas-grid,
  .composer-inspector-grid { grid-template-columns: 1fr; }
  .composer-wide { grid-column: auto; }
}

.purchase-item-thumbnail.is-loading-screen {
  width: min(100%, 360px);
  aspect-ratio: 16 / 9;
}
.purchase-item-thumbnail.is-loading-screen iframe,
.loading-screen-modal-preview iframe,
.loading-screen-detail-preview > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080a0f;
}
.purchase-preview-stage.is-loading-screen { display: grid; place-items: center; padding: clamp(20px, 4vw, 64px); }
.loading-screen-modal-preview {
  overflow: hidden;
  width: min(100%, 960px);
  border: 1px solid rgba(104, 228, 255, .26);
  border-radius: 14px;
  background: #080a0f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42), 0 0 50px rgba(31, 180, 220, .1);
}
.loading-screen-modal-preview iframe { aspect-ratio: 16 / 9; }
.detail-layout.is-loading-screen {
  grid-template-columns: minmax(360px, 540px) minmax(0, 1fr);
  align-items: center;
}
.loading-screen-detail-preview {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 9;
  align-self: center;
  justify-self: center;
}
.loading-screen-detail-preview > iframe { aspect-ratio: auto; }
.detail-layout.is-loading-screen .detail-copy {
  grid-template-columns: minmax(280px, 1fr) minmax(330px, 390px);
}
.detail-layout.is-loading-screen .detail-summary {
  align-self: center;
}
.detail-layout.is-loading-screen .detail-summary h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}
.collection-card.item-loading_screen {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  min-height: 96px;
  min-width: 0;
  padding: 12px;
}
.collection-card.item-loading_screen .collection-art {
  width: 112px;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  background: #080a0f;
}
.collection-card.item-loading_screen .collection-copy {
  min-width: 0;
  padding: 0;
  align-self: center;
  flex: 1;
}
.collection-card.item-loading_screen h2 {
  overflow: visible;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.collection-card.item-loading_screen .collection-art iframe { pointer-events: none; }
.collection-type-loading-screens {
  border-color: rgba(73, 226, 239, .2);
  background: radial-gradient(circle at 82% 16%, rgba(66, 105, 255, .15), transparent 36%), var(--panel);
}


@media (max-width: 1240px) {
  .detail-layout.is-loading-screen {
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  }
  .detail-layout.is-loading-screen .detail-copy { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .creator-item-type-options { grid-template-columns: 1fr; }
  .detail-layout.is-loading-screen { grid-template-columns: 1fr; }
  .loading-screen-detail-preview { width: min(100%, 540px); }
  .loading-screen-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
}

@media (max-width: 560px) {
  .loading-screen-grid { grid-template-columns: 1fr; }
  .collection-card.item-loading_screen {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .collection-card.item-loading_screen .collection-art { width: 92px; }
}

/* Mobile navigation lives at the bottom, where it remains reachable without
   forcing the four destinations into the narrow account header. The coarse
   pointer branch also covers modern phones in landscape orientation. */
@media (max-width: 780px), (hover: none) and (pointer: coarse) and (max-width: 960px) {
  .site-header {
    min-height: 60px;
    height: 60px;
    backdrop-filter: none;
  }

  .site-header-inner {
    width: calc(100% - max(16px, env(safe-area-inset-left) + env(safe-area-inset-right)));
    min-height: 60px;
    height: 60px;
    padding: 0;
    grid-template-areas: "brand actions";
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px;
    gap: 8px;
  }

  .site-header .brand {
    grid-area: brand;
    min-width: 0;
  }

  .site-header .header-actions {
    grid-area: actions;
    min-width: 0;
  }

  .site-header .main-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(72px + env(safe-area-inset-bottom));
    min-height: calc(72px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    grid-template-columns: repeat(auto-fit, minmax(64px, 112px));
    grid-auto-flow: column;
    align-items: start;
    justify-content: center;
    gap: clamp(2px, 1.5vw, 8px);
    border-top: 1px solid rgba(158, 195, 255, .24);
    background:
      linear-gradient(110deg, rgba(var(--space-deep-rgb), .985), rgba(var(--space-mid-rgb), .975));
    box-shadow: 0 -12px 32px rgba(1, 5, 20, .46);
    backdrop-filter: blur(22px) saturate(1.18);
  }

  .site-header .main-nav a,
  .site-header .main-nav a:hover {
    width: 100%;
    min-width: 0;
    max-width: 112px;
    min-height: 62px;
    height: 62px;
    padding: 4px 2px 3px;
    align-content: center;
    gap: 3px;
    border-radius: 10px;
    transform: none;
  }

  .site-header .main-nav .nav-label {
    display: block;
    overflow: visible;
    max-width: 100%;
    font-size: clamp(.5rem, 2.3vw, .62rem);
    line-height: 1.05;
    text-overflow: clip;
    white-space: nowrap;
  }

  .site-header .nav-icon {
    width: 38px;
    height: 38px;
  }

  .site-header .nav-icon svg {
    width: 22px;
    height: 22px;
  }

  .site-header .main-nav a::after {
    right: 22%;
    bottom: 0;
    left: 22%;
    height: 3px;
  }

  .site-header .nav-count {
    top: 1px;
    right: calc(50% - 29px);
    min-width: 18px;
    height: 18px;
    border-width: 1px;
    font-size: .5rem;
  }

  .page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .site-header .brand-copy {
    display: none;
  }

  .site-header .main-nav {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 1px;
  }
}

/* Keep mixed recommendation rows level. Loading-screen artwork is natively
   16:9, so crop its embedded preview inside the same stage ratio used by
   badge and frame cards instead of stretching the animation. */
.detail-recommendations .recommendation-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.detail-recommendations .recommendation-grid > .badge-card {
  height: 100%;
}

.detail-recommendations .recommendation-grid > .badge-card .badge-art,
.detail-recommendations .recommendation-grid > .badge-card.item-loading_screen .badge-art {
  aspect-ratio: 16 / 11;
}

.detail-recommendations
  .recommendation-grid
  > .badge-card.item-loading_screen
  .loading-screen-card-stage
  iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  min-width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}

@media (max-width: 560px) {
  .detail-recommendations .recommendation-grid > .badge-card .badge-art,
  .detail-recommendations .recommendation-grid > .badge-card.item-loading_screen .badge-art {
    aspect-ratio: 1 / .86;
  }
}

/* A price is one visual value: keep the unit as legible as its number across
   artwork-derived and page-derived palettes. */
body.market-theme .badge-card .badge-art-price small,
body.market-theme .badge-card[data-item-color-ready="true"] .badge-art-price small {
  color: #fff;
  opacity: 1;
}
