

.shop-card-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.shop-card-price {
  font-variant-numeric: tabular-nums;
}

.shop-card-price-secondary {
  color: var(--fg-3);
}

.shop-card-action {
  width: 100%;
}

.shop-card-action:disabled {
  cursor: default;
  opacity: 0.6;
}

.shop-card-note {
  margin: 0 7px 7px;
}

.shop-card-action.notify-btn {
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.shop-card-action.notify-btn:active { transform: translate(2px, 2px); }
.shop-card-action.notify-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.shop-card-action.notify-btn.is-busy::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wp-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .shop-card-action.notify-btn.is-busy::after { animation: none; }
}

.shop-bundle {
  list-style: none;
  margin: 0;
  padding: 0 7px 5px;
  display: grid;
  gap: 4px;
}

.shop-bundle-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.shop-bundle-thumb {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-3);
}

.shop-bundle-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-bundle-img.is-broken { visibility: hidden; }

.shop-bundle-name {
  min-width: 0;
  font-size: 11px;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.shop-bundle-more { margin: 0 7px 5px; }

.buy-wiz {
  position: fixed;
  box-sizing: border-box;
  width: min(400px, calc(100vw - 32px));
  margin: auto;
  padding: 28px 24px 24px;
  background: #f2ead6;
  color: #141416;
  border: 4px solid #000;
  border-radius: 26px;
  box-shadow: 7px 7px 0 #000;
  font-family: var(--font);
  overflow: visible;
}
.buy-wiz[open] { animation: team-door-in 220ms cubic-bezier(0.25, 1, 0.5, 1); }
.buy-wiz::backdrop { background: rgba(0, 0, 0, .62); }
.buy-wiz-title { margin: 0 0 16px; font-size: 28px; font-weight: 900; line-height: 1.05; text-align: center; }

.buy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.buy-steps[hidden] { display: none; }
.buy-step { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.buy-step + .buy-step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: calc(50% + 18px);
  width: calc(100% - 28px);
  height: 3px;
  border-radius: 2px;
  background: #b9ae92;
}
.buy-step.is-on::before, .buy-step.is-done::before { background: #000; }
.buy-step-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 3px solid #b9ae92;
  border-radius: 50%;
  background: #f2ead6;
  color: #5c5547;
  font-size: 14px;
  font-weight: 800;
}

.buy-step-label { min-height: 2.4em; font-size: 13px; font-weight: 600; line-height: 1.2; color: #5c5547; text-wrap: balance; }
.buy-step.is-on .buy-step-dot { border-color: #000; background: #000; color: #f2ead6; }
.buy-step.is-on .buy-step-label { font-weight: 800; color: #141416; }
.buy-step.is-done .buy-step-dot { border-color: #000; font-size: 0; color: #000; }
.buy-step.is-done .buy-step-dot::after { content: "✓"; font-size: 15px; }
.buy-step.is-done .buy-step-label { color: #141416; }

.buy-step.is-busy .buy-step-dot {
  border-color: #000 #000 #000 transparent;
  background: #f2ead6;
  color: transparent;
  animation: wp-spin 0.8s linear infinite;
}

.buy-wiz-body { margin: 0 0 20px; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center; text-wrap: pretty; }

.buy-wiz-actions { display: grid; gap: 10px; }

.buy-wiz-primary,
.buy-wiz-secondary {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 3px solid #000;
  border-radius: 14px;
  font: 800 18px/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 90ms, box-shadow 90ms;
}
.buy-wiz-primary { background: #141416; color: #fff; box-shadow: 4px 4px 0 #000; }
.buy-wiz-primary[data-brand="discord"] { background: #5865f2; }
.buy-wiz-primary[data-brand="phantom"] { background: #ab9ff2; color: #141416; }
.buy-wiz-secondary { background: transparent; color: #141416; font-size: 16px; }
.buy-wiz-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.buy-wiz-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.buy-wiz-secondary:hover { background: #e4dabf; }
.buy-wiz-secondary:active { transform: translate(1px, 1px); }
.buy-wiz-primary:focus-visible,
.buy-wiz-secondary:focus-visible { outline: 3px solid #141416; outline-offset: 3px; }
.buy-wiz-primary[hidden], .buy-wiz-secondary[hidden] { display: none; }

.buy-wiz-note { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #4a4438; text-align: center; }
.buy-wiz-note[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .buy-wiz[open] { animation: none; }
  .buy-wiz-primary, .buy-wiz-secondary { transition: none; }

  .buy-step.is-busy .buy-step-dot { animation: wp-spin 1.6s linear infinite !important; }
}

#disconnect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  background: #f2ead6;
  color: #141416;
  border: 3px solid #000;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #000;
  font: 800 14px/1 var(--font);
  cursor: pointer;
  transition: transform 90ms, box-shadow 90ms, background-color 90ms;
}
#disconnect[hidden] { display: none; }
#disconnect .dc-addr {
  padding: 4px 8px;
  border-radius: 999px;
  background: #141416;
  color: #f2ead6;
  font: 700 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
#disconnect .dc-addr[hidden] { display: none; }
#disconnect:hover { background: #ffcf3f; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
#disconnect:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
#disconnect:focus-visible { outline: 3px solid #ffcf3f; outline-offset: 3px; }
#disconnect:disabled { opacity: .6; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { #disconnect { transition: none; } }

.team-door {
  position: fixed;
  width: min(380px, calc(100vw - 32px));
  margin: auto;
  padding: 28px 28px 24px;
  background: #f2ead6;
  color: #000;
  border: 4px solid #000;
  border-radius: 26px;
  box-shadow: 7px 7px 0 #000;
  font-family: var(--font);
  text-align: center;
  overflow: visible;
}
.team-door[open] { animation: team-door-in 320ms cubic-bezier(0.25, 1, 0.5, 1); }
@keyframes team-door-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.team-door::backdrop { background: rgba(0, 0, 0, .55); }
.team-door-title { margin: 0 0 10px; font-size: 30px; font-weight: 900; line-height: 1.05; }
.team-door-body { margin: 0 0 20px; font-size: 17px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.team-door-login {
  display: inline-block;
  padding: 12px 22px;
  background: #5865f2;
  color: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #000;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 90ms, box-shadow 90ms;
}
.team-door-login:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.team-door-login:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.team-door-login:focus-visible { outline: 3px solid #5865f2; outline-offset: 4px; }
.team-door-login[aria-disabled="true"] { background: #9a9aa8; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 #000; }
.team-door-note { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #4a4438; }
.team-door-x {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #f2ead6;
  color: #000;
  border: 3px solid #000;
  border-radius: 50%;
  box-shadow: 3px 3px 0 #000;
  font-size: 0;
  cursor: pointer;
  transition: transform 90ms, box-shadow 90ms, background-color 90ms;
}

.team-door-x::before,
.team-door-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 3.5px;
  border-radius: 2px;
  background: #000;
  transform: translate(-50%, -50%) rotate(45deg);
}
.team-door-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

.team-door-x .tap-zone { position: absolute; inset: -5px; border-radius: 50%; }
.team-door-x:hover { background: #ffcf3f; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.team-door-x:active { background: #e6b42a; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }

html.buy-modal-open { overflow: hidden; }

.act-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.act-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .7rem;
  align-items: center;
  padding: .55rem .7rem;
  background: var(--bg-2);
}

.act-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
}
.act-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.act-body { min-width: 0; }
.act-text { margin: 0; font-size: .85rem; line-height: 1.4; }
.act-meta { margin: .1rem 0 0; font-size: .72rem; }

@media (max-width: 520px) {

  .act-row { grid-template-columns: 1fr; }
  .act-thumb { display: none; }
}

.my-ticket-list { list-style: none; margin: 0; padding: 0; }
.my-ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
}
.my-ticket + .my-ticket { border-top: 1px solid var(--line, rgba(255, 255, 255, .08)); }

.act-drawer {
  margin-top: 1rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .02);
}
.act-drawer > summary { cursor: pointer; font-weight: 600; }
.act-drawer > summary > .muted { font-weight: 400; margin-left: .4rem; }
.act-drawer .act-list { margin-top: .75rem; }

.shop-mosaic {
  display: grid;
  gap: 2px;
  width: 100%;

  height: auto;
  background: var(--bg-3);
}

.card-thumb:has(.shop-mosaic) {
  aspect-ratio: auto;
  height: auto;
}

.shop-mosaic[data-count="2"],
.shop-mosaic[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.shop-mosaic[data-count="3"],
.shop-mosaic[data-count="5"],
.shop-mosaic[data-count="6"],
.shop-mosaic[data-count="9"] { grid-template-columns: repeat(3, 1fr); }
.shop-mosaic[data-count="7"],
.shop-mosaic[data-count="8"],
.shop-mosaic[data-count="10"] { grid-template-columns: repeat(4, 1fr); }

.shop-mosaic-img {
  display: block;
  width: 100%;

  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  min-height: 0;
  min-width: 0;
}

.shop-mosaic-img.is-broken { visibility: hidden; }

.shop-mosaic video.shop-mosaic-img {
  object-fit: cover;
  background: var(--bg-3);
}

.shop-card-gate {
  margin: 0 7px 6px;
  padding: .3rem .45rem;
  border-radius: 4px;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.shop-card-trait {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  margin: 0 7px 6px;
  padding: .3rem .45rem;
  border-radius: 4px;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  font-size: 11px;
  line-height: 1.3;
}
.shop-card-trait-art { width: 32px; height: 32px; flex: none; border-radius: 4px; background: #efe8d6; object-fit: contain; }
.shop-card-trait-name { font-weight: 600; overflow-wrap: anywhere; }
.shop-card-trait-count { color: var(--fg-2); }

@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/bebas-neue.woff2") format("woff2");
  font-display: swap;
}
.panel.seller-says {
  position: relative;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 24px 20px;
  background: #f2ead6;
  color: #000;
  border: 4px solid #000;
  border-radius: 30px;
  box-shadow: 7px 7px 0 #000;
  font-family: var(--font);
  text-align: center;
  pointer-events: auto;
}
.seller-says::before {
  content: "The seller";
  position: absolute;
  top: -19px;
  left: 22px;
  padding: 1px 12px 0;
  background: #141416;
  color: #f5c542;
  border: 3px solid #000;
  border-radius: 8px;
  font: 400 22px / 1.1 "Bebas Neue", var(--font);
  letter-spacing: .5px;
}
.seller-says::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-left: -16px;
  border: solid transparent;
  border-width: 0 16px 22px;
  border-bottom-color: #000;
}
.seller-says .panel-h {
  margin: 0 0 12px;
  color: #000;
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 900;
  line-height: 1.1;
  text-wrap: balance;
}
.seller-says .panel-body {
  margin: 0 0 10px;
  color: #141416;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-wrap: pretty;
}
.seller-says .panel-body:empty { display: none; }
.seller-says .seller-says-note { font-size: 14px; color: #4a463c; }
.seller-says .btn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: #141416;
  color: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #000;
  font: 800 18px / 1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.seller-says .btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.seller-says .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.seller-says .btn:focus-visible { outline: 3px solid #141416; outline-offset: 3px; }
.seller-says.panel-error .panel-h { color: #000; }
.seller-says .seller-says-step { margin-top: 18px; }
.seller-says .btn-light { background: #fffaf0; color: #141416; font-size: 16px; }

.seller-says .btn ~ .panel-body:not(.seller-says-step) { margin: 16px 0 0; font-size: 14px; color: #4a463c; }

html.scene-talk #scene-slots,
html.scene-talk #scene-more,
html.scene-talk .scene-guide,
html.scene-talk .scene-look,
html.scene-talk #scene-bubble { display: none; }
html.scene-talk #scene-seller { cursor: default; }
html.scene-talk #state-locked,
html.scene-talk #state-refused {
  --ph: min(100dvh, calc(100vw / 1.7768));
  --fig: calc(0.96 * var(--ph));
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100dvh + 0.01 * var(--ph) - var(--fig) + 0.23 * var(--fig) + 24px);
  bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 22px;
  margin-top: -22px;
  pointer-events: none;
}
@media (max-aspect-ratio: 1/1) {
  html.scene-talk #state-locked,
  html.scene-talk #state-refused {
    --fig: min(96dvh, calc((100vw - 16px) / 0.62));
    top: calc(101dvh - 0.77 * var(--fig) + 24px);
  }
}

@media (max-width: 700px) {
  html.scene-talk #state-refused .seller-says { padding-bottom: 14px; }
  html.scene-talk #state-refused .seller-says .btn { margin-top: 8px; }
  html.scene-talk #state-refused .seller-says .seller-says-step { margin-top: 10px; }
}
html.scene-on #shop-error.seller-says { bottom: 4vh; }

.alley-backdrop { display: none; }
:root:has(#activity-main) .alley-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0b0b0d;
}
.alley-backdrop-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}
.alley-backdrop-seller {
  position: absolute;
  left: 50%;
  bottom: -1vh;
  height: min(96dvh, calc((100vw - 16px) / 0.62));
  transform: translateX(-50%);
}
:root:has(#act-feed:not([hidden])) .alley-backdrop-seller { display: none; }
:root:has(#activity-main) body { background: transparent; }
:root:has(#activity-main) .topbar {
  border: 0;
  background: linear-gradient(rgb(11 11 13 / 86%), rgb(11 11 13 / 0%));
}
#act-locked:not([hidden]),
#act-error:not([hidden]) {
  display: flex;
  justify-content: center;
  padding-top: calc(100dvh - 0.77 * min(96dvh, calc((100vw - 16px) / 0.62)) - 40px);
}
#act-feed:not([hidden]) {
  --bg-2: #f2ead6;
  --bg-3: #e1d6b8;
  --line: #000;
  --fg: #141416;
  --fg-2: #3d3a33;
  --fg-3: #5c574c;
  box-sizing: border-box;
  max-width: 820px;
  margin: 8px auto 40px;
  padding: 22px 22px 18px;
  background: #f2ead6;
  color: #141416;
  border: 4px solid #000;
  border-radius: 26px;
  box-shadow: 7px 7px 0 #000;
}
#act-feed .panel-h { color: #000; font-size: 22px; font-weight: 900; }
#act-feed .panel-body { color: var(--fg-2); white-space: normal; }

#sold-block:not([hidden]) { margin-bottom: 28px; }

#act-feed .act-thumb:has(.act-img[hidden]) {
  box-sizing: border-box;
  background: transparent;
  border: 2px dashed var(--fg-3);
}

:root:has(#activity-main) a.btn { text-decoration: none; }
:root:has(#activity-main) .controls .btn {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: rgb(20 20 24 / 78%);
  position: relative;
}
:root:has(#activity-main) .controls .btn::after { content: ""; position: absolute; inset: -9px 0; }

.wallet-pop { padding-top: 24px; }
.wallet-pop .buy-wiz-title { margin-bottom: 14px; }
.wallet-pop-back {
  position: absolute; top: 18px; left: 16px; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.wallet-pop-back::before {
  content: ""; position: absolute; left: 15px; top: 12px; width: 10px; height: 10px;
  border-left: 3.5px solid #000; border-bottom: 3.5px solid #000; transform: rotate(45deg);
}
.wallet-pop-back:hover { background: #e4dabf; }
.wallet-pop-back[hidden] { display: none; }
.wp-wallets { display: grid; gap: 8px; }
.wp-wallet {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 9px 12px;
  border: 3px solid #000; border-radius: 14px; background: #fbf6ea; color: #141416;
  font: 800 16px/1.2 var(--font); text-align: left; text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 #000; transition: transform 90ms, box-shadow 90ms;
}
.wp-wallet:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.wp-wallet:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.wp-wallet:focus-visible { outline: 3px solid #141416; outline-offset: 3px; }
.wp-wallet img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.wp-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: #d7ecd9; color: #1d6b34; font-size: 12px; font-weight: 800; }
.wp-get { margin-left: auto; color: #5c5547; font-size: 13px; font-weight: 700; }
.wp-more-row { box-shadow: none; border-width: 2px; border-color: #b9ae92; background: transparent; }
.wallet-pop .wp-sub { margin: 14px 2px 6px; font-size: 13px; font-weight: 800; color: #5c5547; text-transform: none; letter-spacing: normal; }
.wp-sub[hidden], .wp-wallets:empty { display: none; }
.wp-wait { text-align: center; }
.wp-wait[hidden] { display: none; }
.wp-ring { position: relative; width: 112px; height: 112px; margin: 2px auto 14px; }
.wp-ring svg { position: absolute; inset: 0; }
.wp-logo { position: absolute; inset: 22px; width: 68px; height: 68px; border-radius: 16px; }
.wp-track { fill: none; stroke: #d8ccb0; stroke-width: 5; }
.wp-spin { fill: none; stroke: #141416; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 70 250; transform-origin: 50% 50%; animation: wp-spin 1.1s linear infinite; }
.wp-ring.is-done .wp-spin { stroke: #2f9e52; stroke-dasharray: none; animation: none; }
.wp-ring.is-bad .wp-spin { stroke: #d23b33; stroke-dasharray: none; animation: none; }
.wp-ring.is-bad .wp-logo { filter: grayscale(1) opacity(.5); }
.wp-badge { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #f2ead6; color: #fff; font: 900 16px/24px var(--font); text-align: center; }
.wp-badge[hidden] { display: none; }
.wp-ring.is-done .wp-badge { background: #2f9e52; }
.wp-ring.is-bad .wp-badge { background: #d23b33; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
.wp-head { margin: 0 0 6px; font-size: 24px; font-weight: 900; line-height: 1.1; }
.wallet-pop .buy-wiz-body { margin-bottom: 12px; font-size: 16px; }
.wp-bar { display: flex; justify-content: center; gap: 6px; margin: 0 0 4px; }
.wp-bar i { width: 26px; height: 5px; border-radius: 3px; background: #d8ccb0; }
.wp-bar i.is-on { background: #141416; }
.wp-bar i.is-done { background: #2f9e52; }
.wp-bar[hidden] { display: none; }
.wp-wait .buy-wiz-actions { margin-top: 14px; }
.wp-where {
  inset: 14px 18px auto auto; margin: 0; padding: 10px 16px; border: 3px solid #000; border-radius: 14px;
  background: #f2ead6; color: #141416; box-shadow: 4px 4px 0 #000; font: 900 17px/1.2 var(--font);
}
.wp-where span { font-size: 26px; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) {
  .wp-spin { animation-duration: 3s; }
  .wp-wallet { transition: none; }
}

.music {
  --music-paper: #f2ead6;
  --music-ink: #000;
  --music-dim: #4a4438;
  --music-hot: #ffcf3f;
  --music-pad: 12px;
  --music-forgive: 16px;
  position: fixed;
  right: calc(16px - var(--music-pad));
  bottom: calc(16px - var(--music-pad));
  z-index: 25;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--music-pad);
  pointer-events: none;
  font-family: var(--font);
}

.music::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 3px solid #000;
  border-radius: 18px;
  background: var(--music-paper);
  box-shadow: 5px 5px 0 #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.music::after {
  content: "";
  position: absolute;
  inset: calc(var(--music-forgive) * -1);
  z-index: -2;
  pointer-events: none;
}
.music.is-open::before { opacity: 1; }
.music.is-open::after,
.music.is-open::before { pointer-events: auto; }
.music__disc {
  position: relative;
  pointer-events: auto;
  width: 58px;
  height: 58px;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #0a0a0a;
  box-shadow: 0 0 0 3px #000, 3px 3px 0 3px #000, inset 0 0 8px rgb(0 0 0 / 90%);
  transition: box-shadow 0.15s;
}

.music__vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0 30deg, rgb(255 255 255 / 16%) 48deg, transparent 66deg 210deg, rgb(255 255 255 / 11%) 228deg, transparent 246deg),
    repeating-radial-gradient(circle at 50% 50%, #060606 0 1.6px, #1d1d1d 1.6px 3.1px), #0a0a0a;
  box-shadow: inset 0 0 8px rgb(0 0 0 / 90%);
  pointer-events: none;
  animation: music-spin 5s linear infinite;
  animation-play-state: paused;
}
.music.is-playing .music__vinyl { animation-play-state: running; }
.music.is-open .music__disc,
.music__disc:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--music-hot), 0 0 0 6px #000, inset 0 0 8px rgb(0 0 0 / 90%);
}
.music__label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 2px solid #000;
  box-shadow: 0 0 0 2px var(--music-paper);
  pointer-events: none;
}
@keyframes music-spin { to { transform: rotate(360deg); } }
.music__panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 236px;
  padding: 0 0 0 2px;
  color: var(--music-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.music.is-open .music__panel { opacity: 1; pointer-events: auto; }
@media (hover: hover) {
  .music:hover .music__disc { box-shadow: 0 0 0 3px var(--music-hot), 0 0 0 6px #000, inset 0 0 8px rgb(0 0 0 / 90%); }
  .music:hover .music__panel { opacity: 1; pointer-events: auto; }
  .music:hover::before { opacity: 1; }
  .music:hover::before,
  .music:hover::after { pointer-events: auto; }
}
.music__row { display: flex; align-items: center; gap: 8px; }

.music__btn {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--music-paper);
  color: var(--music-ink);
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 90ms, box-shadow 90ms, background-color 90ms;
}

.music__btn::before { content: ""; position: absolute; inset: -9px -7px -9px -11px; }
#musicMute::before { inset: -9px -11px -9px -7px; }
.music__btn svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.music__btn .music__ico { display: none; }
.music__btn[data-state="play"] .music__ico--play,
.music__btn[data-state="pause"] .music__ico--pause,
.music__btn[data-state="on"] .music__ico--on,
.music__btn[data-state="off"] .music__ico--off { display: block; }
.music__btn:hover { background: var(--music-hot); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #000; }
.music__btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 #000; }
.music__btn:focus-visible { outline: 3px solid var(--music-hot); outline-offset: 2px; }

.music__vol {
  --v: 29%;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: -16px 2px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.music__vol::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 12px;
  border: 2px solid #000;
  border-radius: 999px;
  background: linear-gradient(to right, var(--music-hot) 0 var(--v), #fff var(--v) 100%);
}
.music__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--music-paper);
  box-shadow: 1px 1px 0 #000;
}
.music__vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--music-paper);
}
.music__vol::-moz-range-track {
  box-sizing: border-box;
  height: 12px;
  border: 2px solid #000;
  border-radius: 999px;
  background: linear-gradient(to right, var(--music-hot) 0 var(--v), #fff var(--v) 100%);
}
.music__vol:focus-visible { outline: none; }
.music__vol:focus-visible::-webkit-slider-runnable-track { outline: 3px solid var(--music-hot); outline-offset: 3px; }
.music__vol:focus-visible::-moz-range-track { outline: 3px solid var(--music-hot); outline-offset: 3px; }
.music__pct { min-width: 38px; font: 800 14px/1 var(--font); color: var(--music-ink); text-align: right; font-variant-numeric: tabular-nums; }
.music__title { margin: 0; font: 900 16px/1.2 var(--font); min-height: 19px; color: var(--music-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music audio { display: none; }
.music__via { margin: 0; font: 600 11px/1.3 var(--font); color: var(--music-dim); }
.music__via a { color: var(--music-ink); text-decoration: underline; text-underline-offset: 2px; }
.music__via a:hover { background: var(--music-hot); }
@media (prefers-reduced-motion: reduce) {
  .music__panel,
  .music::before,
  .music__btn { transition: none; }

  .music.is-playing .music__vinyl { animation: music-spin 5s linear infinite !important; }
}
@media (max-width: 700px) {
  .music { right: calc(12px - var(--music-pad)); bottom: calc(12px - var(--music-pad) + env(safe-area-inset-bottom, 0px)); }
  .music__disc { width: 44px; height: 44px; }
  .music__label { width: 19px; height: 19px; }
}

@font-face {
  font-family: "Caveat";
  src: url("/fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabin Sketch";
  src: url("/fonts/cabin-sketch-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.chalk-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.chalk-fx { filter: url(#chalkfx); }

#deal-log {
  position: absolute;
  left: 75.4%;
  top: 53.7%;
  width: 12%;
  aspect-ratio: 100 / 160;
  z-index: 2;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  container-type: inline-size;
  filter: brightness(.9) saturate(.95);
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
#deal-log:focus-visible { outline: 2px solid #f4cf52; outline-offset: 4px; }

.deal-log-tilt {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  transform-origin: -327.55% -10.03%;
  transform: perspective(651.04cqw) translate3d(231.654cqw, -0.909cqw, -29.927cqw) matrix3d(0, 0, 0.748324, 0, -0.112847, 0.572917, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1);
}
.deal-log-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.deal-log-art polygon, .deal-log-art rect { stroke: #000; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dl-leg { fill: url(#dl-woodback); stroke-width: 2.5; }
.dl-frame { fill: url(#dl-wood); stroke-width: 3; }
.dl-foot { stroke-width: 3; }
.dl-foot.is-left { fill: #5a3c28; }
.dl-foot.is-right { fill: #3f2a1d; }
.dl-shine { stroke: #9a7350; stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .8; fill: none; }
.dl-slate { fill: url(#dl-slate); stroke-width: 2; }
.dl-dust { fill: url(#dl-dust); }
.dl-clip { fill: #2b2b2e; stroke-width: 2; }
.deal-log-lamp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .42;
  clip-path: polygon(10% 3.75%, 90% 3.75%, 97% 82.5%, 3% 82.5%);
  background: radial-gradient(circle at 15% 0%, rgb(255 236 190 / 95%), rgb(255 236 190 / 0%) 70%);
}
.deal-log-chalk {
  position: absolute;
  left: 14%;
  top: 11%;
  width: 72%;
  height: 64%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Caveat, cursive;
  color: #e9e4d9;
}
.deal-log-title { font: 700 11.5cqw / 0.9 Caveat, cursive; text-align: center; margin: 0 0 2%; max-width: 100%; }
.deal-log-title > span, .deal-zoom-title > span { display: inline-block; }
.deal-log-title > span:nth-child(1), .deal-zoom-title > span:nth-child(1) { transform: translateY(1%) rotate(-1.5deg); }
.deal-log-title > span:nth-child(2), .deal-zoom-title > span:nth-child(2) { transform: translateY(-1.2%) rotate(1deg); }
.deal-log-title > span:nth-child(3), .deal-zoom-title > span:nth-child(3) { transform: translateY(2%) rotate(-.5deg); }
.deal-log-wipe { display: block; width: 80%; height: 1.5px; background: rgb(239 234 223 / 50%); margin: 1% 0 2%; transform: rotate(-1deg); }
#deal-log-rows { display: flex; flex-direction: column; width: 100%; }
.dl-row { display: flex; align-items: center; gap: 4%; width: 100%; box-sizing: border-box; padding-left: 5%; margin: 0 0 1%; }
.dl-pic { width: 16cqw; height: 16cqw; flex: none; display: block; }
.dl-nopic { box-sizing: border-box; border: 1.5px dashed rgb(239 234 223 / 45%); }
.dl-words { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.dl-line { display: block; font: 600 8cqw / 1 Caveat, cursive; white-space: nowrap; overflow: hidden; padding-right: 2cqw; }
.dl-row em, .dz-row em { font-style: normal; color: #f4cf52; }
.dl-empty { font: 600 11cqw / 1 Caveat, cursive; margin-top: 4%; }

.scene-look .deal-log-mark { position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; pointer-events: none; }
.deal-log-mark path { fill: none; stroke: #f4cf52; stroke-width: 2.6; stroke-linecap: round; }

#deal-zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
#deal-zoom[hidden] { display: none; }
.deal-zoom-scrim { position: absolute; inset: 0; background: rgb(6 6 8 / 72%); }
.deal-zoom-frame {
  position: relative;
  box-sizing: border-box;
  width: min(92vw, 470px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  background: linear-gradient(100deg, #7d5638, #6a472f 45%, #4c3221);
  border: 4px solid #000;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 3px 3px 0 rgb(154 115 80 / 55%), 0 10px 40px rgb(0 0 0 / 60%);
}
.deal-zoom-x {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 80%);
  border: 2px solid #000;
  cursor: pointer;
}
.deal-zoom-x:hover { box-shadow: 0 0 0 2px #ff3b3b; }
.deal-zoom-x:active { transform: scale(.88); box-shadow: 0 0 0 2px #ff3b3b; }
.deal-zoom-x::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent calc(50% - 1.25px), #fff 0 calc(50% + 1.25px), transparent 0),
    linear-gradient(-45deg, transparent calc(50% - 1.25px), #fff 0 calc(50% + 1.25px), transparent 0);
}
.deal-zoom-x .tap-zone { position: absolute; inset: -9px; border-radius: 50%; }
.deal-zoom-board {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 3px solid #000;
  padding: 12px 16px 6px;
  background:
    radial-gradient(ellipse at 70% 80%, rgb(255 255 255 / 9%), transparent 45%),
    radial-gradient(ellipse at 25% 20%, rgb(255 255 255 / 6%), transparent 35%),
    radial-gradient(ellipse at 30% 30%, #2a332f, #1c2320 70%, #141a18);
}
.deal-zoom-title { display: block; text-align: center; font: 700 40px / 1 Caveat, cursive; color: #efeadf; margin: 0 0 2px; }
.deal-zoom-wipe { display: block; height: 2px; background: rgb(239 234 223 / 45%); margin: 0 6% 6px; transform: rotate(-.6deg); flex: none; }
#deal-zoom-list { list-style: none; margin: 0; padding: 0; min-height: 0; }
#deal-zoom-list.is-full { overflow-y: auto; overscroll-behavior: contain; }
.dz-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 3px 0 5px;
  background-image: linear-gradient(90deg, rgb(239 234 223 / 22%), rgb(239 234 223 / 8%) 60%, rgb(239 234 223 / 22%));
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.dz-row:first-child { background: none; }
.dz-pic { width: 64px; height: 64px; display: block; }
.dz-pic.dl-nopic { border-width: 2px; }
.dz-body { display: flex; flex-direction: column; min-width: 0; }
.dz-name { font: 700 24px / 1 Caveat, cursive; color: #efeadf; }
.dl-line, .dz-name, .dz-text { unicode-bidi: isolate; }
.dz-text { font: 600 19px / 1.12 Caveat, cursive; color: #ddd7cb; overflow-wrap: anywhere; }
.dz-row.is-sold .dz-text { color: #f4cf52; }
.dz-when { font: 600 17px / 1 Caveat, cursive; color: #b9b3a6; white-space: nowrap; }
#deal-zoom-empty { font: 600 22px / 1.2 Caveat, cursive; color: #ddd7cb; text-align: center; margin: 12px 0; }
#deal-zoom-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 44px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  align-self: flex-end;
  font: 700 26px / 1 Caveat, cursive;
  color: #efeadf;
  flex: none;
}
#deal-zoom-all > span { display: inline-block; transform: rotate(-1.5deg); }
#deal-zoom-all svg { width: 46px; height: 22px; flex: none; fill: none; stroke: #efeadf; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#deal-zoom-all[hidden] { display: none; }
