html[data-color-mode="dark"] body[data-theme="account"] {
  position: relative;
  isolation: isolate;
  background-color: #0c1b35;
  background-image: none;
}
body[data-theme="account"]::before {
  position: absolute;
  z-index: -1;
  height: 240px;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(rgb(130 191 255 / 28%) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(transparent, #000);
  pointer-events: none;
}
body[data-theme="account"] .site-brand,
body[data-theme="account"] .hub-link,
body[data-theme="account"] .app-heading {
  text-shadow: 0 2px 14px rgb(3 9 20 / 45%);
}
body[data-theme="account"] .site-mark {
  filter: drop-shadow(0 0 10px rgb(130 191 255 / 36%));
}
.shop-shell { width: min(1040px, 100%); margin: 0 auto; }
.shop-shell .app-heading { position: relative; margin-bottom: 20px; }
.shop-shell .app-heading .app-eyebrow { margin: 0 0 6px; }
.shop-shell .app-heading h1 { padding-right: 100px; font-size: 36px; }
.shop-cog { position: absolute; top: -12px; right: 0; width: 96px; height: auto; pointer-events: none; }
button.shop-cog { display: block; border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 24px; touch-action: manipulation; }
button.shop-cog svg { display: block; width: 100%; height: auto; overflow: visible; }
button.shop-cog:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shop-status { color: var(--muted); font-size: 13px; }
.shop-status:empty, #avatar-shop-status:empty { display: none; }
.shop-shell [hidden] { display: none !important; }
.shop-shell .account-page-card {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shop-shell .app-heading p,
.shop-back { color: #e2eef5; text-shadow: 0 1px 5px #0c1b35; }
.shop-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shop-heading h2 { margin: 0; font: 800 18px/1.2 var(--font-display); }
.shop-balance { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--accent); }
.shop-balance img { width: 23px; height: 23px; }
.shop-balance strong { font: 900 22px/1 var(--font-numbers); }
.shop-balance span { color: var(--muted); font-size: 12px; }
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 10px; }
.shop-tabs { display: flex; gap: 6px; }
.shop-tabs [aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.shop-customize { color: var(--accent); font-size: 12px; font-weight: 800; text-decoration: none; }
.shop-customize:hover { text-decoration: underline; }
.shop-customize:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shop-refund { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.shop-display { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-preview { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--canvas); text-align: center; }
.shop-preview h3 { margin: 0; font: 800 16px/1.2 var(--font-display); }
.shop-preview-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
#shop-preview-name { display: block; font-size: 15px; }
#shop-preview-price { margin: 6px 0; color: var(--accent); font-size: 13px; font-weight: 800; }
.shop-preview-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
#avatar-shop { min-width: 0; }
.avatar-shop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cog-shop-category { max-height: clamp(160px, calc(100dvh - 330px), 380px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.cog-shop-category:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.avatar-shop-item { display: flex; min-width: 0; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: var(--canvas); }
.avatar-shop-item.is-owned { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.avatar-shop-art { position: relative; width: 48px; height: 48px; flex: none; }
button.avatar-shop-art { border: 0; border-radius: 6px; padding: 0; background: none; cursor: pointer; }
button.avatar-shop-art:hover { background: var(--accent-soft); }
button.avatar-shop-art[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
button.avatar-shop-art:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.avatar-shop-art > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.avatar-shop-art > .cog-swatch { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 4px; }
.avatar-shop-copy { min-width: 0; flex: 1; }
.avatar-shop-copy strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.avatar-shop-buy { flex: none; gap: 4px; min-width: 58px; min-height: 36px; padding: 5px 7px; font-size: 11px; }
.avatar-shop-buy img { width: 18px; height: 18px; }
.avatar-shop-buy:disabled { cursor: default; opacity: .7; }
#avatar-shop-status:not(:empty) { margin-top: 12px; }
.shop-details { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.shop-details summary { width: fit-content; padding-block: 4px; cursor: pointer; }
.shop-details p { margin: 6px 0 0; }
.shop-back { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.shop-back a { color: inherit; }
@media (max-width: 900px) {
  .shop-shell .app-heading h1 { padding-right: 100px; }
  .shop-cog { top: -12px; width: 96px; }
}
@media (max-width: 520px) {
  .shop-cog { top: -28px; }
  body[data-theme="account"] .site-nav { border-bottom-color: rgb(130 191 255 / 22%); }
  .shop-shell .account-page-card { padding: 12px; }
  .shop-heading { gap: 8px; }
  .shop-heading h2 { font-size: 16px; }
  .shop-balance strong { font-size: 19px; }
  .shop-balance span { display: none; }
  .avatar-shop-list { grid-template-columns: minmax(0, 1fr); }
  .avatar-shop-art { width: 44px; height: 44px; }
  .avatar-shop-buy, .shop-tabs .account-control { min-height: 44px; }
}
@media (max-width: 760px) {
  .shop-display { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-preview { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; column-gap: 12px; text-align: left; }
  .shop-preview-image { grid-column: 1; grid-row: 1 / 4; }
  .shop-preview h3, .shop-preview > div, .shop-preview-help { grid-column: 2; }
  .shop-preview-help { margin-top: 4px; }
}
@media (max-width: 360px) {
  .shop-preview { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 360px) {
  .shop-shell .app-heading h1 { padding-right: 80px; }
  .shop-cog { width: 80px; }
}
.shop-coin-lane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shop-falling-drop {
  position: absolute;
  top: -104px;
  width: 72px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  padding: 2px;
  background: none;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.shop-falling-drop img { display: block; width: 44px; height: 60px; margin: auto; pointer-events: none; opacity: .7; }
.shop-falling-drop:focus { outline: none; }
.shop-falling-drop:focus-visible { outline: 3px solid #d8fbff; outline-offset: 2px; }
.shop-falling-drop:hover img { opacity: .9; }
body[data-theme="account"] .page-shell,
body[data-theme="account"] .shop-shell { pointer-events: none; }
body[data-theme="account"] .site-header,
body[data-theme="account"] .shop-shell > * { pointer-events: auto; }
.shop-secret-message:empty { display: none; }
.shop-secret-message { color: var(--ink); font-size: 13px; }
.shop-secret-message a { color: var(--accent); }
.shop-secret-progress {
  display: block;
  width: min(160px, 100%);
  height: 6px;
  margin: 18px auto 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: #20334b;
  accent-color: #82bfff;
}
.shop-secret-progress::-webkit-progress-bar { border-radius: 999px; background: #20334b; }
.shop-secret-progress::-webkit-progress-value { border-radius: 999px; background: #82bfff; transition: width 240ms ease; }
.shop-secret-progress::-moz-progress-bar { border-radius: 999px; background: #82bfff; }
@media (prefers-reduced-motion: reduce) {
  .shop-secret-progress::-webkit-progress-value { transition: none; }
}
@media (max-width: 600px) {
  .shop-coin-lane, .shop-secret-progress, .shop-secret-message, #shop-secret-retry { display: none !important; }
}
