

.shop-wallet {
  margin-bottom: var(--space-5);
}
.shop-wallet h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  color: #f0e2c4;
}
.shop-wallet__bal {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-2);
  font-size: 1.35rem;
  color: var(--ink-strong);
}
.shop-wallet__bal .icon,
.shop-wallet__bal svg {
  width: 1.35rem;
  height: 1.35rem;
}
.shop-wallet .meta { margin: 0; }

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.style-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.style-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.style-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.page-viewport {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
/*
 * Shop banner · scene image in header (synced with arcade/admin page-banner).
 * Filters sit on the banner · Sell mirrors arcade Clucky Chips top-right.
 */
.shop-catalog__banner.page-banner {
  /* Sit inside the 14px wood rim · same as arcade/admin (no side bleed past the border). */
  margin-inline: 0;
  width: 100%;
  z-index: 8;
  flex: 0 0 auto;
  box-sizing: border-box;
  --page-banner-min-h: 4.55rem;
  --page-banner-max-h: 7.25rem;
  --page-banner-ratio: 16 / 3.15;
  /* 10px higher so the rope meets the top wood. */
  --banner-plaque-top: calc(-0.15rem - 10px);
}
.shop-catalog__headrow {
  /* Filters left, hanging Shop sign in the leftover middle, Sell right. */
  position: absolute;
  left: 0;
  right: 0;
  top: 0.4rem;
  bottom: auto;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.2rem 0.7rem 0.35rem;
  background: transparent;
  box-sizing: border-box;
  pointer-events: none;
}
.shop-catalog__slot {
  pointer-events: auto;
  min-width: 0;
}
.shop-catalog__slot--mid {
  position: relative;
  min-height: 3.7rem;
  justify-self: stretch;
}
.shop-catalog__headrow .shop-catalog__plaque-wrap,
.arcade-panel__headrow .arcade-panel__plaque-wrap {
  position: absolute;
  top: var(--banner-plaque-top);
  left: 50%;
  transform: translateX(-50%);
  padding-top: var(--banner-plaque-pad-top);
}
.arcade-panel__headrow .arcade-panel__bal {
  position: relative;
  top: auto;
  right: auto;
}
.shop-catalog__headrow .shop-filter,
.shop-catalog__headrow .shop-filter--desk {
  margin: 0;
  justify-content: flex-start;
}
.shop-catalog__slot--right {
  justify-self: end;
}
.shop-catalog__headrow .shop-sell-open {
  position: relative;
  top: auto;
  right: auto;
  z-index: 8;
  margin: 0;
}
/* Keep body filters hidden on desk · shop-filter flex rule must not win. */
.shop-catalog__body > .shop-filter--phone {
  display: none !important;
}
.arcade-panel__bal.shop-sell-open {
  position: absolute;
  top: 0.45rem;
  right: 0.7rem;
  z-index: 8;
  margin: 0;
}
.shop-nest {
  margin-bottom: 0;
}
.shop-catalog {
  margin-top: 0;
  min-height: 22rem;
}
/*
 * Shop page · no body scroll. Fill between fixed header + fixed footer;
 * only .shop-catalog__body scrolls. Background stays cover on a stable height.
 */
html:has(.page-viewport),
body:has(.page-viewport) {
  height: 100%;
  overflow: hidden;
}
body:has(.page-viewport) {
  height: 100dvh;
  max-height: 100dvh;
}
body:has(.page-viewport) .site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
}
body:has(.page-viewport) .site-layout {
  box-sizing: border-box;
  height: 100dvh;
  max-height: 100dvh;
  padding-top: var(--header-offset);
  padding-bottom: var(--footer-offset, var(--header-offset));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body:has(.page-viewport) .site-layout > .page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  overflow: hidden;
}
body:has(.page-viewport) .page-viewport {
  flex: 1 1 auto;
  min-height: 0;
}
body:has(.page-viewport) .shop-catalog {
  flex: 1 1 auto;
  min-height: 22rem;
}
/* Achievements-style shell: wood header bar + brown body (no close X).
 * Y pad halved so body can sit flush to the bottom rim; X kept generous for vines. */
.vine-page.pixel-frame {
  display: grid;
  gap: 0;
  border: 0;
  border-radius: 0;
  /* Set: flush (frame-set registry, pixel-frame.css.ts). */
  background: #120c08;
  box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
  color: #d4c9ba;
  overflow: hidden;
}
.vine-page.pixel-frame .meta {
  color: color-mix(in srgb, #d4c9ba 85%, #8a7a62);
}
/* Hanging farm-sign wrap · chains match incubator roster ropes. */
.carved-plaque-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 4;
  /* Rope hang · enough air between beam and plaque (was reading glued). */
  padding-top: 2.45rem;
}
.carved-plaque__chain {
  position: absolute;
  /* Below the plaque face · rim paints over the top hook so rope is not through wood. */
  z-index: 1;
  top: 0;
  width: 3px;
  height: 2.55rem;
  background: repeating-linear-gradient(180deg, #c5ccd6 0 4px, #6a7078 4px 6px);
  box-shadow: 1px 0 0 #3a3f48;
  pointer-events: none;
}
/* Shared banner plaques · shorter ropes so hang length matches across pages. */
.shop-catalog__plaque-wrap .carved-plaque__chain,
.arcade-panel__plaque-wrap .carved-plaque__chain,
.admin-shell__plaque-wrap .carved-plaque__chain {
  height: 1.75rem;
}
.carved-plaque__chain--l { left: 1.35rem; }
.carved-plaque__chain--r { right: 1.35rem; }
/*
 * Title sign · shared hanging wood plaque (Shop / Arcade / Roster).
 * Class: .carved-plaque (alias .title-sign). Gold rim around dark wood border.
 */
.carved-plaque,
.title-sign {
  --carved-ink: #2a170c;
  --carved-cream: #f6e6b8;
  --title-sign-gold: #e0b050;
  --title-sign-gold-mid: #6c4728;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 2.85rem 0.62rem;
  /* Fit title text · avoid locked wide boxes that crowd sprouts. */
  width: fit-content;
  max-width: min(100%, 24rem);
  min-width: 0;
  box-sizing: border-box;
  align-self: start;
  border: 3px solid var(--carved-ink);
  background:
    linear-gradient(180deg, rgb(12 8 4 / 22%), rgb(8 5 2 / 38%)),
    var(--wood-plank);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.14),
    inset 0 -2px 0 var(--carved-ink),
    0 0 0 2px var(--title-sign-gold),
    0 0 0 4px var(--title-sign-gold-mid),
    0 0 0 5px #150b05,
    0 3px 0 rgb(18 9 4 / 72%);
  z-index: 4;
}
.carved-plaque::before,
.title-sign::before {
  content: none;
  display: none;
}
.carved-plaque h2,
.title-sign h2,
p.carved-plaque,
p.title-sign {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: #f6e6b8;
  text-shadow: 0 2px 0 #2a1208, 1px 0 0 #2a1208, -1px 0 0 #2a1208;
  white-space: nowrap;
}
.carved-plaque__sprout {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 3px;
  height: 3px;
  margin-top: -1px;
  background: #3c6b1f;
  box-shadow:
    0 3px #3c6b1f,
    0 6px #3c6b1f,
    0 9px #3c6b1f,
    -3px 0 #6fa83a,
    -6px -3px #6fa83a,
    3px -3px #6fa83a,
    6px -6px #6fa83a,
    -3px -3px #6fa83a,
    3px -6px #6fa83a;
  pointer-events: none;
}
/* Keep sprouts near the rim · extra plaque pad gives air beside the title. */
.carved-plaque__sprout--l { left: 11px; }
.carved-plaque__sprout--r { right: 11px; }
.shop-catalog.vine-page.pixel-frame {
  position: relative;
  /* Visible so hanging plaque + chains clear the top rim. */
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  /* Set: flush (frame-set registry, pixel-frame.css.ts). */
  /* Dark wood bed · scene lives on the banner, slate on the body. */
  background: #120c08;
}
/*
 * Shared page banner strip · Shop / Arcade / Admin (height + plaque origin).
 */
.page-banner {
  position: relative;
  width: 100%;
  aspect-ratio: var(--page-banner-ratio, 16 / 4.35);
  min-height: var(--page-banner-min-h, 5.75rem);
  max-height: var(--page-banner-max-h, 10rem);
  margin: 0;
  background:
    radial-gradient(90% 40% at 50% 0, #17204a 0, transparent 70%),
    linear-gradient(180deg, #0b1030, #070b1c 100%)
    center / cover no-repeat;
  overflow: visible;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(12 8 4 / 72%));
  pointer-events: none;
  z-index: 1;
}
.shop-catalog__head.carved-plaque {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 0.5rem);
  margin: 0;
}
/*
 * Shared rivet plaque · match Clucky Arcade title sign (border, pad, rivets).
 * Used by Shop, Set-1 / Sip signs, Inventory, and other hanging titles.
 */
.hanging-plaque.carved-plaque,
.arcade-panel__plaque--rivet.carved-plaque,
.set1-plaque.hanging-plaque.carved-plaque {
  --title-sign-gold: #f3d98a;
  --title-sign-gold-mid: #b98a3a;
  /* Wider X pad · air between sprouts and title (was overlapping). */
  padding: 0.72rem 2.35rem;
  width: fit-content;
  min-width: 0;
  border-width: 3px;
  box-shadow:
    0 -3px 0 #150b05,
    0 3px 0 #150b05,
    -3px 0 0 #150b05,
    3px 0 0 #150b05,
    0 0 0 2px var(--title-sign-gold),
    0 0 0 4px var(--title-sign-gold-mid),
    0 0 0 5px #150b05,
    inset 3px 3px 0 color-mix(in srgb, #cdb47c 55%, transparent),
    inset -3px -3px 0 #3e2616;
}
.hanging-plaque.carved-plaque .carved-plaque__sprout--l,
.arcade-panel__plaque--rivet.carved-plaque .carved-plaque__sprout--l,
.set1-plaque.hanging-plaque.carved-plaque .carved-plaque__sprout--l {
  left: 12px;
}
.hanging-plaque.carved-plaque .carved-plaque__sprout--r,
.arcade-panel__plaque--rivet.carved-plaque .carved-plaque__sprout--r,
.set1-plaque.hanging-plaque.carved-plaque .carved-plaque__sprout--r {
  right: 12px;
}
.hanging-plaque.carved-plaque::after,
.arcade-panel__plaque--rivet.carved-plaque::after,
.set1-plaque.hanging-plaque.carved-plaque::after {
  content: "";
  position: absolute;
  /* Deeper into the corners so rivets clear mid-side sprouts. */
  inset: 3px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 0 0 / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 100% 0 / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 0 100% / 7px 7px no-repeat,
    linear-gradient(180deg, #f3d98a 0 1px, #b98a3a 1px 5px, #7a5522 5px 6px, #150b05 6px 7px) 100% 100% / 7px 7px no-repeat;
}
.hanging-plaque.carved-plaque h2,
.hanging-plaque.carved-plaque p,
.arcade-panel__plaque--rivet.carved-plaque h2,
.set1-plaque.hanging-plaque.carved-plaque h2,
.set1-plaque.hanging-plaque.carved-plaque p {
  position: relative;
  z-index: 3;
  font-size: clamp(1rem, 2.2vw, 1.28rem);
}
.shop-quota-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.shop-quota-chips--inline {
  justify-content: flex-start;
  flex: 1 1 auto;
}
.shop-quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 55%, #2a1c12);
  color: #e8dcc4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
}
.shop-quota-chip__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.shop-quota-chip--eggs {
  border-color: color-mix(in srgb, #f0c45a 55%, #1a1008);
  background: color-mix(in srgb, #3a2810 70%, #1a1008);
  color: #ffe28a;
}
.shop-quota-chip--drops {
  border-color: color-mix(in srgb, #6fbf6a 55%, #1a1008);
  background: color-mix(in srgb, #1a3018 70%, #1a1008);
  color: #b8f0a8;
}
.shop-quota-chip--premium {
  border-color: color-mix(in srgb, #c080e0 55%, #1a1008);
  background: color-mix(in srgb, #2a1838 70%, #1a1008);
  color: #e8b8ff;
}
.shop-quota-chip--reset {
  border-color: color-mix(in srgb, #6ab8e0 55%, #1a1008);
  background: color-mix(in srgb, #142830 70%, #1a1008);
  color: #a8e8ff;
}
.shop-catalog__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  /* SYNC · shop / arcade / admin body X · token --page-panel-body-x in theme.ts */
  padding: 0.7rem var(--page-panel-body-x) 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  /* Blue slate bed · scene image lives on the banner (synced with arcade/admin). */
  background: var(--page-panel-slate);
}
@media (max-width: 720px) {
  .carved-plaque {
    padding: 0.48rem 1.45rem 0.52rem;
  }
  .carved-plaque__sprout--l { left: 12px; }
  .carved-plaque__sprout--r { right: 12px; }
  .carved-plaque__chain--l { left: 1rem; }
  .carved-plaque__chain--r { right: 1rem; }
  .hanging-plaque.carved-plaque,
  .arcade-panel__plaque--rivet.carved-plaque {
    padding: 0.62rem 1.35rem;
  }
  .shop-catalog__headrow {
    padding: 0.35rem 0.65rem 0.45rem;
  }
  .shop-catalog__plaque-wrap,
  .arcade-panel__plaque-wrap,
  .admin-shell__plaque-wrap {
    --banner-plaque-left: 0.35rem;
    --banner-plaque-x: 28px;
    left: var(--banner-plaque-left);
    transform: translateX(var(--banner-plaque-x));
  }
  .shop-catalog__body {
    padding-top: 0.55rem;
  }
  .shop-filter {
    justify-content: center;
    row-gap: 0.45rem;
    margin-bottom: 0;
  }
  .shop-filter--phone {
    flex-wrap: nowrap;
  }
  .shop-filter--phone .shop-filter__link.btn {
    --btn-pad-x: 0.28rem;
    flex: 0 0 auto;
    min-width: max-content;
    justify-content: center;
    gap: 0.16rem;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    padding: 0.16rem 0.28rem;
  }
  .shop-filter--phone .shop-filter__link--drops .shop-filter__icon,
  .shop-filter--phone .shop-filter__link--premium .shop-filter__icon {
    width: 1.35rem;
    height: 1.35rem;
  }
  .shop-group__title {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.28rem 0.4rem;
    padding: 0.22rem 0.45rem;
    font-size: 0.72rem;
  }
  .shop-quota-chips--inline {
    justify-content: flex-end;
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
  }
  .shop-quota-chip {
    font-size: 0.62rem;
    padding: 0.14rem 0.4rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}
.shop-wallet__bal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  color: #f0e2c4;
}
.shop-nest__lead {
  margin: 0 0 var(--space-3);
}
.shop-nest__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}
.shop-nest__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 4.6rem;
  min-width: 0;
  padding: 0.28rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 55%, transparent);
  text-align: center;
}
.shop-nest__tile--equipped {
  border-color: color-mix(in srgb, var(--gold, #e0a232) 70%, #7a5230);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold, #e0a232) 35%, transparent);
}
.shop-nest__scene.incubator-type__portrait {
  position: relative;
  width: 4rem;
  height: 4rem;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
}
.shop-nest__scene.incubator-type__portrait .visual-asset {
  width: 100%;
  height: 100%;
  margin: 0;
}
.shop-nest__scene.incubator-type__portrait canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.shop-nest__name {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f0e2c4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.shop-nest__empty { margin: 0; }
.shop-sell-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  margin: 0;
  --btn-pad-x: 0.72rem;
  padding: 0.22rem var(--btn-pad-x);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.arcade-panel__bal.shop-sell-open.btn--gold,
.shop-catalog__bal.shop-sell-open.btn--gold {
  --btn-ink: #fff8f0;
  color: var(--btn-ink);
}
.shop-sell-open .icon--chimcoin,
.shop-sell-open .icon--eggpower,
.shop-sell-open .icon--xp,
.shop-sell-open .icon--clucky-chip,
.shop-sell-open .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
}
.shop-sell__lead {
  margin: 0 0 0.75rem;
}
.shop-sell__empty {
  margin: 0.4rem 0 0;
}
.shop-sell__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.7rem, 1fr));
  gap: 0.65rem;
}
.shop-sell__card {
  min-width: 0;
}
.shop-sell__form {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
}
.shop-sell__btn {
  min-height: 2rem;
  white-space: nowrap;
  width: 100%;
}
.shop-sell__art {
  /* Match egg card max side (2.65rem). */
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 auto;
}
.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  align-items: flex-start;
  justify-content: center;
}
.shop-filter__link.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  /* Match Sell size · smaller label, larger icon, no gold twin of Sell. */
  box-sizing: border-box;
  min-height: 2.15rem;
  --btn-pad-x: 1.2rem;
  --btn-ink: #f0e8dc;
  padding: 0.28rem var(--btn-pad-x);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  --btn-face: #3a4658;
  --btn-lip: #1c2430;
  --btn-shell: #0e1218;
  color: var(--btn-ink);
}
/* Filter icon/label · chip well comes from universal .btn__face.btn__chip. */
.shop-filter__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: transparent;
}
.shop-filter__label {
  line-height: 1.15;
  font-size: inherit;
}
.shop-filter__link--eggs.btn,
.shop-filter__link--eggs.btn:hover {
  --btn-face: #6a7a92;
  --btn-lip: #2a3448;
  --btn-shell: #121820;
  --btn-ink: #f0e8dc;
  color: var(--btn-ink);
}
.shop-filter__link--drops.btn,
.shop-filter__link--drops.btn:hover {
  --btn-face: #3a8a6a;
  --btn-lip: #184a38;
  --btn-shell: #0c2018;
  --btn-ink: #f0e8dc;
  color: var(--btn-ink);
}
.shop-filter__link--premium.btn,
.shop-filter__link--premium.btn:hover {
  --btn-face: #7a4a9a;
  --btn-lip: #3a2060;
  --btn-shell: #140c22;
  --btn-ink: #f0e8dc;
  color: var(--btn-ink);
}
.shop-filter__link--all.btn,
.shop-filter__link--all.btn:hover {
  --btn-face: #3a6a88;
  --btn-lip: #1a3a50;
  --btn-shell: #0c1822;
  --btn-ink: #f0e8dc;
  color: var(--btn-ink);
}
.shop-filter__link.btn.is-active,
.shop-filter__link.btn[aria-current="page"],
.shop-filter__link.btn.is-active:hover,
.shop-filter__link.btn[aria-current="page"]:hover {
  --btn-face: #4a90b8;
  --btn-lip: #1a4860;
  --btn-shell: color-mix(in srgb, #1a4860 72%, #0a1014);
  --btn-ink: #fff8f0;
  color: var(--btn-ink);
}
.shop-group { margin: 0 0 1.1rem; }
.shop-group__title {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.55rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  color: #e8dcc4;
  background: transparent;
  box-shadow: none;
}
/* Section titles · match filter tones (no Sell gold). */
.shop-group__title--eggs {
  color: #8a9ab0;
  text-shadow: 0 1px 0 rgb(0 0 0 / 65%);
}
.shop-group__title--drops {
  color: #4a9a78;
  text-shadow: 0 1px 0 rgb(0 0 0 / 65%);
}
.shop-group__title--premium {
  color: #9a6ab8;
  text-shadow: 0 1px 0 rgb(0 0 0 / 65%);
}
@media (max-width: 720px) {
  .shop-group__title {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .shop-quota-chips--inline {
    flex: 0 1 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}
.shop-group__title--all {
  color: #5a8aa8;
  text-shadow: 0 1px 0 rgb(0 0 0 / 65%);
}
.shop-group__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.shop-group__name {
  flex: 0 0 auto;
}
.shop-empty { margin: 0.4rem 0 0; }
.shop-grid, .egg-row {
  display: grid;
  /* ~7 columns on full content width (was ~8 at 8.4rem). */
  grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr));
  gap: 0.5rem;
}
.egg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
  height: 100%;
  /*
   * Rim host keeps inset gold rings at the outer edge.
   * Content clearance is padding (not margin) so the gold never sits under
   * rivets/labels · outer grid gap handles card-to-card spacing.
   */
  padding: 0.62rem 0.55rem 0.58rem;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(36, 24, 16, 0.72), rgba(18, 11, 7, 0.82)),
    var(--wood-plank);
  /* Thinner gold rim (was 4px gold + thick stack). */
  box-shadow:
    inset 0 0 0 1px #150b05,
    inset 0 0 0 2px #e0b868,
    inset 0 0 0 3px #6c4728,
    inset 0 0 0 4px #241409,
    0 3px 0 rgba(0, 0, 0, 0.55);
  text-align: center;
  min-width: 0;
}
.egg-card > * {
  position: relative;
  z-index: 3;
}
/* Open affinity tip lifts the whole card above neighbor EGG/hatch badges. */
.shop-catalog .egg-card:has(.affinity-tip.tip--open),
.shop-catalog .shop-card:has(.affinity-tip.tip--open),
.egg-grid .egg-card:has(.affinity-tip.tip--open) {
  z-index: 40;
}
.egg-card h3,
.shop-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0e2c4;
}
.egg-card .muted {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}


/* Drops · reserve up to 2 name lines. */
.shop-card--drop .shop-card__name {
  font-size: 0.96rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
}
.shop-card--drop .muted,
.shop-card__blurb--drop {
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}
/* Premium · blurb under the name; optional info tip for extra rules only. */
.shop-card__info.tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex: none;
  z-index: 2;
  cursor: help;
}
.shop-card__info-mark {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 72%, #2a1c12);
  color: #f0e4c8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}
.shop-card__info .tip__bubble.shop-card__info-pop,
.shop-card__info-pop {
  left: auto;
  right: 0;
  bottom: calc(100% + 0.35rem);
  transform: none;
  min-width: 9.5rem;
  max-width: min(14rem, calc(100vw - 2rem));
  white-space: normal;
  text-align: left;
  font-style: normal;
}
/* Eggs · keep single-line name + rarity (already correct). */
.shop-card--egg .shop-card__rarity {
  min-height: 1.15em;
}
.shop-card__buy-form {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
}
.shop-card__qty {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}
.shop-card__qty--sell {
  grid-template-columns: 1.7rem minmax(2.1rem, 2.6rem) auto 1.7rem;
  justify-content: center;
  width: auto;
  margin-inline: auto;
}
.shop-card__qty-den {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #cbbba6;
  white-space: nowrap;
}
.shop-card__qty--sell .shop-card__qty-input {
  max-width: 2.6rem;
  min-width: 2.1rem;
  padding: 0.15rem 0.2rem;
  font-size: 0.85rem;
}
.shop-card__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  border-radius: 0;
  background: color-mix(in srgb, #1a1008 55%, #2a1c12);
  color: #f6e6c0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.shop-card__qty-btn:hover:not(:disabled) { filter: brightness(1.08); }
.shop-card__qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.shop-card__qty-input {
  min-width: 0;
  min-height: 2rem;
  margin: 0;
  padding: 0.2rem 0.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  border-radius: 0;
  background: #120e0a;
  color: #f6e6c0;
  font: inherit;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.shop-card__qty-input::-webkit-outer-spin-button,
.shop-card__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.egg-card .btn,
.egg-card button.btn,
.egg-card__buy {
  display: flex;
  width: 110px;
  max-width: 110px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-inline: auto;
  margin-top: auto;
  font-size: 0.82rem;
  --btn-face: #34a046;
  --btn-lip: #144a20;
  color: #fff;
}
/* Buy tip wrap · pins purchase row to card bottom with siblings. */
.shop-buy-tip {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
}
.shop-buy-tip .egg-card__buy,
.shop-buy-tip .btn,
.egg-card > .egg-card__buy {
  margin-top: 0;
  margin-bottom: 0;
}
.egg-card > .egg-card__buy,
.egg-card > .shop-buy-tip { margin-top: auto; }
.shop-buy-tip__pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: var(--z-tip, 5000);
  width: max-content;
  max-width: min(14rem, 70vw);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-alt, #4a3220);
  border-radius: 0.2rem;
  background: var(--panel-strong, #0b1423);
  color: #f0e2c4;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 16px rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.15rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.shop-buy-tip__pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 0.35rem solid transparent;
  border-top-color: var(--line-alt, #4a3220);
}
.shop-buy-tip:hover .shop-buy-tip__pop,
.shop-buy-tip:focus-within .shop-buy-tip__pop,
.shop-buy-tip.tip--open .shop-buy-tip__pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.egg-card .btn:hover,
.egg-card button.btn:hover,
.egg-card__buy:hover {
  --btn-face: color-mix(in srgb, #34a046 88%, #fff);
  --btn-lip: #144a20;
  color: #fff;
}
.egg-card .btn:disabled,
.egg-card button.btn:disabled,
.egg-card__buy:disabled {
  --btn-face: color-mix(in srgb, #237c34 55%, #1a1a1a);
  --btn-lip: #0e2a14;
  color: color-mix(in srgb, #fff 55%, transparent);
}
.shop-card.egg-card {
  background: var(--slate-well);
}
.shop-card__corner {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.18rem;
  max-width: 68%;
  margin-left: auto;
}
.shop-card__corner .shop-card__hatch--loc {
  color: #d5e4f4;
  letter-spacing: 0.02em;
  text-transform: none;
  flex: 0 0 7.4rem;
  width: 7.4rem;
  max-width: 7.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card > .shop-card__name + .egg-card__buy,
.shop-card > .shop-card__name + .shop-buy-tip,
.shop-card > .shop-card__blurb + .egg-card__buy,
.shop-card > .shop-card__blurb + .shop-buy-tip,
.shop-card > .shop-card__lock + .egg-card__buy,
.shop-card > .shop-card__lock + .shop-buy-tip {
  margin-top: auto;
  margin-bottom: 0;
}
.shop-card__top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 1.05rem;
  gap: 0.25rem;
}
.shop-card__hatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 55%;
  min-width: 1.8rem;
  min-height: 1.05rem;
  padding: 0.08rem 0.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 70%, #2a1c12);
  color: #ffe28a;
  /* Match .item-kind weight / tracking (top-left type mark). */
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card__hatch--meta {
  color: #c8e8ff;
}
.shop-card__rarity {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-card__rarity.shop-rarity--common { color: var(--rarity-common); }
.shop-card__hatch.shop-rarity--common {
  color: var(--rarity-common-ink);
  background: color-mix(in srgb, var(--rarity-common) 72%, #1a1008);
  border-color: var(--rarity-common-border);
}
.shop-card__rarity.shop-rarity--uncommon { color: var(--rarity-uncommon); }
.shop-card__hatch.shop-rarity--uncommon {
  color: var(--rarity-uncommon-ink);
  background: color-mix(in srgb, var(--rarity-uncommon) 72%, #1a1008);
  border-color: var(--rarity-uncommon-border);
}
.shop-card__rarity.shop-rarity--rare { color: var(--rarity-rare); }
.shop-card__hatch.shop-rarity--rare {
  color: var(--rarity-rare-ink);
  background: color-mix(in srgb, var(--rarity-rare) 72%, #1a1008);
  border-color: var(--rarity-rare-border);
}
.shop-card__rarity.shop-rarity--epic { color: var(--rarity-epic); }
.shop-card__hatch.shop-rarity--epic {
  color: var(--rarity-epic-ink);
  background: color-mix(in srgb, var(--rarity-epic) 72%, #1a1008);
  border-color: var(--rarity-epic-border);
}
.shop-card__rarity.shop-rarity--legendary { color: var(--rarity-legendary); }
.shop-card__hatch.shop-rarity--legendary {
  color: var(--rarity-legendary-ink);
  background: color-mix(in srgb, var(--rarity-legendary) 72%, #1a1008);
  border-color: var(--rarity-legendary-border);
}
.shop-card__rarity.shop-rarity--event { color: var(--rarity-event); }
.shop-card__hatch.shop-rarity--event {
  color: var(--rarity-event-ink);
  background: color-mix(in srgb, var(--rarity-event) 72%, #1a1008);
  border-color: var(--rarity-event-border);
}
.shop-buy-confirm__lead {
  margin: 0 0 0.75rem;
}
.shop-buy-confirm__form {
  display: grid;
  gap: 0.65rem;
}
.shop-buy-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}
.shop-buy-confirm__actions .btn {
  margin-bottom: 0;
}
.egg-card .btn.egg-card__buy,
.egg-card button.btn.egg-card__buy {
  width: 110px;
  max-width: 110px;
  margin-inline: auto;
}
.shop-card__art-wrap .fp-meter {
  width: 100%;
  max-width: 110px;
  margin-inline: auto;
}
.shop-card__item {
  /* Match egg card max side (height 2.65rem). */
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 auto;
}
.shop-card__item .egg-token__art {
  object-fit: contain;
}
.egg-card__buy .icon,
.egg-card__buy .icon--chimcoin {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.shop-card .egg-token {
  width: 3.15rem;
  height: 3.15rem;
  aspect-ratio: 1;
  align-self: center;
}
.shop-card .egg-token__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.egg-token {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 4rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.egg-token__tear {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--tear, var(--rarity-common));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -1px -1px 0 #150b05;
  pointer-events: none;
}
/* Lineup tear is a sibling of the egg, pinned to the pick's outer corner. */
.egg-lineup__pick > .egg-token__tear {
  right: calc(-1 * var(--pick-pad-x, 0.32rem));
  bottom: calc(-1 * var(--pick-pad-b, 0.22rem));
  z-index: 6;
  width: 0.85rem;
  height: 0.85rem;
}
.egg-token__tear--common { --tear: var(--rarity-common); }
.egg-token__tear--uncommon { --tear: var(--rarity-uncommon); }
.egg-token__tear--rare { --tear: var(--rarity-rare); }
.egg-token__tear--epic { --tear: var(--rarity-epic); }
.egg-token__tear--legendary { --tear: var(--rarity-legendary); }
.egg-token__tear--event { --tear: var(--rarity-event); }
.shop-card--unaffordable .egg-card__buy,
.egg-card__buy:disabled {
  opacity: 0.42;
  filter: grayscale(0.55);
  cursor: not-allowed;
}
.egg-token__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.egg-token__count {
  position: absolute;
  right: -0.35rem;
  /* Was −0.35rem · nudged down ~4px. */
  top: calc(-0.35rem + 4px);
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, #f3d98a 0 1px, #e0b050 1px calc(100% - 2px), #7a5522 calc(100% - 2px) 100%);
  /* Number only · plate size unchanged. */
  color: #fff;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 1px 0 #150b05,
    1px 0 0 #150b05,
    -1px 0 0 #150b05,
    0 -1px 0 #150b05;
  box-shadow:
    inset 0 0 0 1px #150b05,
    0 1px 0 rgba(0, 0, 0, 0.45);
  clip-path: polygon(
    0 18%, 18% 0, 82% 0, 100% 18%,
    100% 82%, 82% 100%, 18% 100%, 0 82%
  );
}
.egg-pick { display: inline-flex; align-items: center; gap: var(--space-2); }
.style-grid .card { text-align: center; }
.style-grid .visual-asset { margin-inline: auto; }
.card--preview {
  border-style: dashed;
}



/* Drops · reserve up to 2 name lines. */
.shop-card--drop .shop-card__name {
  font-size: 0.96rem;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
}
.shop-card--drop .muted,
.shop-card__blurb--drop {
  font-size: 0.84rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.2em * 2);
}
/* Premium · blurb under the name; optional info tip for extra rules only. */
.shop-card__info.tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex: none;
  z-index: 2;
  cursor: help;
}
.shop-card__info-mark {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 72%, #2a1c12);
  color: #f0e4c8;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}
.shop-card__info .tip__bubble.shop-card__info-pop,
.shop-card__info-pop {
  left: auto;
  right: 0;
  bottom: calc(100% + 0.35rem);
  transform: none;
  min-width: 9.5rem;
  max-width: min(14rem, calc(100vw - 2rem));
  white-space: normal;
  text-align: left;
  font-style: normal;
}
/* Eggs · keep single-line name + rarity (already correct). */
.shop-card--egg .shop-card__rarity {
  min-height: 1.15em;
}
.shop-card__buy-form {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
}
.shop-card__qty {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: stretch;
  gap: 0.25rem;
  width: 100%;
}
.shop-card__qty--sell {
  grid-template-columns: 1.7rem minmax(2.1rem, 2.6rem) auto 1.7rem;
  justify-content: center;
  width: auto;
  margin-inline: auto;
}
.shop-card__qty-den {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #cbbba6;
  white-space: nowrap;
}
.shop-card__qty--sell .shop-card__qty-input {
  max-width: 2.6rem;
  min-width: 2.1rem;
  padding: 0.15rem 0.2rem;
  font-size: 0.85rem;
}
.shop-card__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  border-radius: 0;
  background: color-mix(in srgb, #1a1008 55%, #2a1c12);
  color: #f6e6c0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.shop-card__qty-btn:hover:not(:disabled) { filter: brightness(1.08); }
.shop-card__qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.shop-card__qty-input {
  min-width: 0;
  min-height: 2rem;
  margin: 0;
  padding: 0.2rem 0.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  border-radius: 0;
  background: #120e0a;
  color: #f6e6c0;
  font: inherit;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.shop-card__qty-input::-webkit-outer-spin-button,
.shop-card__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.egg-card .btn,
.egg-card button.btn,
.egg-card__buy {
  display: flex;
  width: 110px;
  max-width: 110px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-inline: auto;
  margin-top: auto;
  font-size: 0.82rem;
  --btn-face: #34a046;
  --btn-lip: #144a20;
  color: #fff;
}
/* Buy tip wrap · pins purchase row to card bottom with siblings. */
.shop-buy-tip {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: auto;
  width: 100%;
}
.shop-buy-tip .egg-card__buy,
.shop-buy-tip .btn,
.egg-card > .egg-card__buy {
  margin-top: 0;
  margin-bottom: 0;
}
.egg-card > .egg-card__buy,
.egg-card > .shop-buy-tip { margin-top: auto; }
.shop-buy-tip__pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  z-index: var(--z-tip, 5000);
  width: max-content;
  max-width: min(14rem, 70vw);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-alt, #4a3220);
  border-radius: 0.2rem;
  background: var(--panel-strong, #0b1423);
  color: #f0e2c4;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 16px rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.15rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.shop-buy-tip__pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 0.35rem solid transparent;
  border-top-color: var(--line-alt, #4a3220);
}
.shop-buy-tip:hover .shop-buy-tip__pop,
.shop-buy-tip:focus-within .shop-buy-tip__pop,
.shop-buy-tip.tip--open .shop-buy-tip__pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.egg-card .btn:hover,
.egg-card button.btn:hover,
.egg-card__buy:hover {
  --btn-face: color-mix(in srgb, #34a046 88%, #fff);
  --btn-lip: #144a20;
  color: #fff;
}
.egg-card .btn:disabled,
.egg-card button.btn:disabled,
.egg-card__buy:disabled {
  --btn-face: color-mix(in srgb, #237c34 55%, #1a1a1a);
  --btn-lip: #0e2a14;
  color: color-mix(in srgb, #fff 55%, transparent);
}
.shop-card.egg-card {
  background: var(--slate-well);
}
.shop-card__corner {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.18rem;
  max-width: 68%;
  margin-left: auto;
}
.shop-card__corner .shop-card__hatch--loc {
  color: #d5e4f4;
  letter-spacing: 0.02em;
  text-transform: none;
  flex: 0 0 7.4rem;
  width: 7.4rem;
  max-width: 7.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card > .shop-card__name + .egg-card__buy,
.shop-card > .shop-card__name + .shop-buy-tip,
.shop-card > .shop-card__blurb + .egg-card__buy,
.shop-card > .shop-card__blurb + .shop-buy-tip,
.shop-card > .shop-card__lock + .egg-card__buy,
.shop-card > .shop-card__lock + .shop-buy-tip {
  margin-top: auto;
  margin-bottom: 0;
}
.shop-card__top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 1.05rem;
  gap: 0.25rem;
}
.shop-card__hatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 55%;
  min-width: 1.8rem;
  min-height: 1.05rem;
  padding: 0.08rem 0.35rem;
  border: 1px solid color-mix(in srgb, #7a5230 55%, #1a1008);
  background: color-mix(in srgb, #1a1008 70%, #2a1c12);
  color: #ffe28a;
  /* Match .item-kind weight / tracking (top-left type mark). */
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card__hatch--meta {
  color: #c8e8ff;
}
.shop-card__rarity {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-card__rarity.shop-rarity--common { color: var(--rarity-common); }
.shop-card__hatch.shop-rarity--common {
  color: var(--rarity-common-ink);
  background: color-mix(in srgb, var(--rarity-common) 72%, #1a1008);
  border-color: var(--rarity-common-border);
}
.shop-card__rarity.shop-rarity--uncommon { color: var(--rarity-uncommon); }
.shop-card__hatch.shop-rarity--uncommon {
  color: var(--rarity-uncommon-ink);
  background: color-mix(in srgb, var(--rarity-uncommon) 72%, #1a1008);
  border-color: var(--rarity-uncommon-border);
}
.shop-card__rarity.shop-rarity--rare { color: var(--rarity-rare); }
.shop-card__hatch.shop-rarity--rare {
  color: var(--rarity-rare-ink);
  background: color-mix(in srgb, var(--rarity-rare) 72%, #1a1008);
  border-color: var(--rarity-rare-border);
}
.shop-card__rarity.shop-rarity--epic { color: var(--rarity-epic); }
.shop-card__hatch.shop-rarity--epic {
  color: var(--rarity-epic-ink);
  background: color-mix(in srgb, var(--rarity-epic) 72%, #1a1008);
  border-color: var(--rarity-epic-border);
}
.shop-card__rarity.shop-rarity--legendary { color: var(--rarity-legendary); }
.shop-card__hatch.shop-rarity--legendary {
  color: var(--rarity-legendary-ink);
  background: color-mix(in srgb, var(--rarity-legendary) 72%, #1a1008);
  border-color: var(--rarity-legendary-border);
}
.shop-card__rarity.shop-rarity--event { color: var(--rarity-event); }
.shop-card__hatch.shop-rarity--event {
  color: var(--rarity-event-ink);
  background: color-mix(in srgb, var(--rarity-event) 72%, #1a1008);
  border-color: var(--rarity-event-border);
}
.shop-buy-confirm__lead {
  margin: 0 0 0.75rem;
}
.shop-buy-confirm__form {
  display: grid;
  gap: 0.65rem;
}
.shop-buy-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}
.shop-buy-confirm__actions .btn {
  margin-bottom: 0;
}
.egg-card .btn.egg-card__buy,
.egg-card button.btn.egg-card__buy {
  width: 110px;
  max-width: 110px;
  margin-inline: auto;
}
.shop-card__art-wrap .fp-meter {
  width: 100%;
  max-width: 110px;
  margin-inline: auto;
}
.shop-card__item {
  /* Match egg card max side (height 2.65rem). */
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 auto;
}
.shop-card__item .egg-token__art {
  object-fit: contain;
}
.egg-card__buy .icon,
.egg-card__buy .icon--chimcoin {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.shop-card .egg-token {
  width: 3.15rem;
  height: 3.15rem;
  aspect-ratio: 1;
  align-self: center;
}
.shop-card .egg-token__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.egg-token {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 4rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.egg-token__tear {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 0.62rem;
  height: 0.62rem;
  background: var(--tear, var(--rarity-common));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -1px -1px 0 #150b05;
  pointer-events: none;
}
/* Lineup tear is a sibling of the egg, pinned to the pick's outer corner. */
.egg-lineup__pick > .egg-token__tear {
  right: calc(-1 * var(--pick-pad-x, 0.32rem));
  bottom: calc(-1 * var(--pick-pad-b, 0.22rem));
  z-index: 6;
  width: 0.85rem;
  height: 0.85rem;
}
.egg-token__tear--common { --tear: var(--rarity-common); }
.egg-token__tear--uncommon { --tear: var(--rarity-uncommon); }
.egg-token__tear--rare { --tear: var(--rarity-rare); }
.egg-token__tear--epic { --tear: var(--rarity-epic); }
.egg-token__tear--legendary { --tear: var(--rarity-legendary); }
.egg-token__tear--event { --tear: var(--rarity-event); }
.shop-card--unaffordable .egg-card__buy,
.egg-card__buy:disabled {
  opacity: 0.42;
  filter: grayscale(0.55);
  cursor: not-allowed;
}
.egg-token__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.egg-token__count {
  position: absolute;
  right: -0.35rem;
  /* Was −0.35rem · nudged down ~4px. */
  top: calc(-0.35rem + 4px);
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, #f3d98a 0 1px, #e0b050 1px calc(100% - 2px), #7a5522 calc(100% - 2px) 100%);
  /* Number only · plate size unchanged. */
  color: #fff;
  font-family: var(--font-display, Literata, Georgia, serif);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 1px 0 #150b05,
    1px 0 0 #150b05,
    -1px 0 0 #150b05,
    0 -1px 0 #150b05;
  box-shadow:
    inset 0 0 0 1px #150b05,
    0 1px 0 rgba(0, 0, 0, 0.45);
  clip-path: polygon(
    0 18%, 18% 0, 82% 0, 100% 18%,
    100% 82%, 82% 100%, 18% 100%, 0 82%
  );
}
.egg-pick { display: inline-flex; align-items: center; gap: var(--space-2); }
.style-grid .card { text-align: center; }
.style-grid .visual-asset { margin-inline: auto; }
.card--preview {
  border-style: dashed;
}

/* Shop and Clucky Arcade banners use the plain header title, not a hanging sign. */
.shop-catalog__slot--mid {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-catalog__headrow .shop-catalog__plaque-wrap,
.arcade-panel__headrow .arcade-panel__plaque-wrap,
.shop-catalog__plaque-wrap,
.arcade-panel__plaque-wrap {
  position: static;
  top: auto;
  left: auto;
  z-index: 4;
  margin: 0;
  padding-top: 0;
  transform: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque,
.arcade-panel__plaque.hanging-plaque.carved-plaque {
  position: static;
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: none;
  box-shadow: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque::after,
.arcade-panel__plaque.hanging-plaque.carved-plaque::after,
.shop-catalog__plaque-wrap .carved-plaque__chain,
.arcade-panel__plaque-wrap .carved-plaque__chain,
.shop-catalog__head .carved-plaque__sprout,
.arcade-panel__plaque .carved-plaque__sprout {
  display: none;
  content: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque h2,
.arcade-panel__plaque.hanging-plaque.carved-plaque h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6e6c0;
  text-shadow: 0 2px 0 rgb(0 0 0 / 75%);
}




/* Full-page Clucky Arcade shell (banner + wood head + body). */
.arcade-panel.vine-page.pixel-frame {
  margin: 0;
  overflow: visible;
  /* Set: flush (frame-set registry, pixel-frame.css.ts). */
}
.arcade-panel__banner.page-banner {
  background-color: #1a1020;
}
.arcade-panel__bal-split {
  width: 1px;
  align-self: stretch;
  margin: 0.12rem 0.05rem;
  background: rgb(70 40 8 / 70%);
}
/* Shared title-sign hang · Shop / Arcade / Admin banners (identical origin). */
.shop-catalog__plaque-wrap,
.arcade-panel__plaque-wrap,
.admin-shell__plaque-wrap {
  position: absolute;
  top: var(--banner-plaque-top);
  left: var(--banner-plaque-left);
  z-index: 4;
  margin: 0;
  padding-top: var(--banner-plaque-pad-top);
  transform: translateX(var(--banner-plaque-x));
  pointer-events: none;
}
.shop-catalog__plaque-wrap > *,
.arcade-panel__plaque-wrap > *,
.admin-shell__plaque-wrap > * {
  pointer-events: auto;
}
.arcade-panel__plaque.carved-plaque {
  margin: 0;
}
.arcade-panel__body {
  /* SYNC · shop / arcade / admin body X · token --page-panel-body-x in theme.ts */
  padding: 0.7rem var(--page-panel-body-x) 0.55rem;
  /* Blue slate bed · matches shop/admin body under the scene banner. */
  background: var(--page-panel-slate);
}
.arcade-grid {
  display: grid;
  /* Slimmer cards · four across at full page width. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.arcade-grid[data-arcade-size="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.arcade-grid[data-arcade-size="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arcade-grid[data-arcade-size="1"] {
  grid-template-columns: 1fr;
}
.arcade-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0.15rem;
}
.arcade-pager__btn {
  min-width: 2.4rem;
}
.arcade-pager__btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}
.arcade-pager__status {
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #e8dcc4;
}
/* Free Chips always first · live games next · paused admin previews last (guards HTML order drift). */
.arcade-grid .arcade-card[data-arcade-card="claim"] { order: -10; }
.arcade-grid .arcade-card[data-arcade-freeze="1"] { order: 100; }
.arcade-card--pinned {
  opacity: 0.92;
}
.arcade-card--pinned .arcade-win {
  cursor: default;
  filter: saturate(0.75) brightness(0.92);
}
.arcade-luck-note {
  margin: 0 0 0.75rem;
  text-align: center;
}
/* Luck-locked / paused arcade cards · gray + frozen first frame. */
.arcade-card--paused {
  opacity: 0.72;
  filter: grayscale(0.9) brightness(0.78);
  pointer-events: none;
}
.arcade-card--paused .arcade-win {
  cursor: default;
  filter: grayscale(1) brightness(0.85);
}
.arcade-card--paused .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.arcade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  /* No hover translate · demo lift intentionally omitted. */
  transform: none;
}
.arcade-card:hover,
.arcade-card:focus-within {
  transform: none;
}
/* Lodge wood bed + shared .pixel-frame rim v2 · Arcade_v1.5 plank feel. */
.arcade-card.pixel-frame {
  border: 0;
  border-radius: 0;
  /* Set: card. */
  --frame-pad-y: 1.15rem;
  --frame-pad-x: 0.9rem;
  --frame-pad-b: 1rem;
  background: var(--slate-window);
  box-shadow:
    inset 0 3px 0 rgba(255, 230, 180, 0.22),
    inset 0 -4px 0 rgba(0, 0, 0, 0.28),
    0 10px 24px rgb(0 0 0 / 35%);
  backdrop-filter: none;
}
.arcade-card.pixel-frame h2 {
  color: #ffe3a8;
  text-shadow: 0 2px 0 #2a1608;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.arcade-card.pixel-frame p {
  margin: 0 0 1rem;
  padding: 0.55rem 0.5rem;
  min-height: 3.4rem;
  border-radius: 0.35rem;
  background: var(--inset-bg);
  border: var(--inset-border);
  box-shadow: var(--inset-shadow);
  color: #f3dfb8;
  font-size: var(--text-sm);
  line-height: 1.35;
}
.arcade-card h2 {
  margin: 0.85rem 0 0.55rem;
}
.arcade-card form {
  margin-top: auto;
  width: 100%;
  max-width: 12.5rem;
  display: flex;
  justify-content: center;
}
.arcade-card > .btn {
  margin-top: auto;
  width: 100%;
  max-width: 12.5rem;
}
.arcade-card form .btn {
  width: 100%;
}
.arcade-win {
  width: 100%;
  max-width: 11rem;
  aspect-ratio: 1;
  margin: 0.15rem 0 0;
  border: var(--inset-border);
  border-radius: 0.35rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--slate-window);
  box-shadow: var(--inset-shadow);
  cursor: pointer;
}
.arcade-win canvas[data-arcade-canvas] {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.arcade-btn--purple,
button.arcade-btn--purple {
  --btn-face: #8a4fd4;
  --btn-lip: #4a2280;
  --btn-shell: color-mix(in srgb, #4a2280 72%, #140a04);
  color: #fff;
}
.arcade-btn--purple:hover,
button.arcade-btn--purple:hover {
  --btn-face: #9b5fe6;
  color: #fff;
}
button.arcade-btn--purple:disabled:hover,
.arcade-bj__acts button.arcade-btn--purple:disabled:hover {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  --btn-depth: var(--btn-depth-rest);
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  transform: none;
  box-shadow: 0 0.22rem 0.45rem rgba(2, 8, 18, 0.2);
  pointer-events: none;
}
.arcade-btn--blue,
button.arcade-btn--blue {
  --btn-face: #3d8bff;
  --btn-lip: #1a4a9a;
  --btn-shell: color-mix(in srgb, #1a4a9a 72%, #140a04);
  color: #fff;
}
.arcade-btn--blue:hover,
button.arcade-btn--blue:hover {
  --btn-face: #559aff;
  color: #fff;
}
button.arcade-btn--blue:disabled:hover,
.arcade-bj__acts button.arcade-btn--blue:disabled:hover {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  --btn-depth: var(--btn-depth-rest);
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  transform: none;
  box-shadow: 0 0.22rem 0.45rem rgba(2, 8, 18, 0.2);
  pointer-events: none;
}
.arcade-btn--gold,
button.arcade-btn--gold {
  --btn-face: #ffab3d;
  --btn-lip: #9a5a10;
  --btn-shell: color-mix(in srgb, #9a5a10 72%, #140a04);
  color: #1a1204;
}
.arcade-btn--gold:hover,
button.arcade-btn--gold:hover {
  --btn-face: #ffbc55;
  color: #1a1204;
}
button.arcade-btn--gold:disabled:hover,
.arcade-bj__acts button.arcade-btn--gold:disabled:hover {
  --btn-face: color-mix(in srgb, var(--bg-elevated) 78%, #000);
  --btn-lip: color-mix(in srgb, var(--line-alt, var(--line)) 35%, #000);
  --btn-depth: var(--btn-depth-rest);
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  transform: none;
  box-shadow: 0 0.22rem 0.45rem rgba(2, 8, 18, 0.2);
  pointer-events: none;
}
.arcade-btn--slots,
button.arcade-btn--slots {
  --btn-face: #d45a7a;
  --btn-lip: #7a2040;
  --btn-shell: color-mix(in srgb, #7a2040 72%, #140a04);
  color: #fff;
}
.arcade-btn--slots:hover,
button.arcade-btn--slots:hover {
  --btn-face: #e46a8a;
  color: #fff;
}

.arcade-chips {
  position: relative;
  width: 7.5rem;
  height: 6.8rem;
  transform: scale(0.85);
}
.arcade-chips b {
  position: absolute;
  width: 3.6rem;
  height: 1.75rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #5a7dff, #2238c8);
  border: 3px solid #dfe8ff;
  box-shadow: 0 8px 0 -1px #1a2a9a, 0 0 14px #4a6bff;
}
.arcade-chips b:nth-child(1) { left: 0.2rem; top: 3.8rem; }
.arcade-chips b:nth-child(2) { left: 3.2rem; top: 4.15rem; }
.arcade-chips b:nth-child(3) { left: 1.7rem; top: 2.45rem; }
.arcade-chips b:nth-child(4) { left: 1.7rem; top: 1.2rem; }
.arcade-chips b:nth-child(5) { left: 1.7rem; top: 0.1rem; }

.arcade-ticket {
  position: relative;
  width: 8.5rem;
  height: 5.1rem;
  transform: rotate(-10deg);
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f6d27a, #c9902e);
  border: 3px solid #ffe9a8;
  box-shadow: 0 0 22px rgb(255 200 90 / 55%);
}
.arcade-ticket__face {
  font-size: 2.8rem;
  line-height: 1;
}
.arcade-ticket__foil {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      rgb(180 190 210 / 88%) 0 10px,
      rgb(210 218 230 / 72%) 10px 20px
    );
  transform-origin: left center;
}

.arcade-coins {
  display: flex;
  align-items: center;
  perspective: 420px;
}
.arcade-coin {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  line-height: 1;
  border: 5px solid #ffd45f;
  background: radial-gradient(circle, #dfe9ff 30%, #4466d8);
  box-shadow: 0 0 16px rgb(80 120 255 / 55%);
  backface-visibility: hidden;
}
.arcade-coin + .arcade-coin {
  margin-left: -0.85rem;
  background: radial-gradient(circle, #fff0c4 30%, #f0a53a);
  border-color: #ffe08a;
}
.arcade-coin--tails {
  background: radial-gradient(circle, #ffe7c2 28%, #b86a2e);
  border-color: #e0b56a;
}
.arcade-drumstick {
  display: block;
}

.arcade-wwrap { position: relative; }
.arcade-pin {
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6a3d;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 1;
}
.arcade-wheel {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 6px solid #ffc94d;
  background: conic-gradient(
    #e0408f 0 12.5%,
    #ffb83d 0 25%,
    #35b8e8 0 37.5%,
    #8c4cff 0 50%,
    #e0408f 0 62.5%,
    #ffb83d 0 75%,
    #35b8e8 0 87.5%,
    #8c4cff 0
  );
  box-shadow: 0 0 22px rgb(255 190 80 / 55%);
  transition: transform 2.4s cubic-bezier(0.12, 0.7, 0.15, 1);
}
.arcade-wheel span {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  background: #fff3cf;
  border: 3px solid #ffc94d;
}

/* Activate drafts */
.arcade-card.is-playing { pointer-events: none; }
.arcade-chips.is-animating b {
  animation: arcade-chip-bounce 0.7s ease both;
}
.arcade-chips.is-animating b:nth-child(1) { animation-delay: 0.05s; }
.arcade-chips.is-animating b:nth-child(2) { animation-delay: 0.12s; }
.arcade-chips.is-animating b:nth-child(3) { animation-delay: 0.18s; }
.arcade-chips.is-animating b:nth-child(4) { animation-delay: 0.24s; }
.arcade-chips.is-animating b:nth-child(5) { animation-delay: 0.3s; }
@keyframes arcade-chip-bounce {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-0.85rem) scale(1.06); }
  70% { transform: translateY(0.15rem) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}
.arcade-ticket.is-animating {
  animation: arcade-ticket-shake 0.45s ease-in-out 2;
}
.arcade-ticket.is-animating .arcade-ticket__foil {
  animation: arcade-scratch-wipe 1s ease forwards;
}
@keyframes arcade-ticket-shake {
  0%, 100% { transform: rotate(-10deg) translateX(0); }
  25% { transform: rotate(-14deg) translateX(-0.2rem); }
  75% { transform: rotate(-6deg) translateX(0.2rem); }
}
@keyframes arcade-scratch-wipe {
  0% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0.15; }
}
.arcade-coins.is-animating .arcade-coin {
  animation: arcade-coin-flip 0.8s ease-in-out;
}
.arcade-coins.is-animating .arcade-coin:nth-child(2) {
  animation-delay: 0.08s;
}
@keyframes arcade-coin-flip {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(720deg); }
}
.arcade-card.is-playing .btn {
  filter: brightness(1.08);
}

/* Blackjack table (Arcade-1.7 chips · fills the expanded modal) */
dialog.modal.modal--bj {
  width: min(52rem, calc(100vw - 2rem));
  max-height: min(90vh, 44rem);
  height: min(90vh, 44rem);
}
dialog.modal.modal--bj .modal__panel {
  height: 100%;
  max-height: min(90vh, 44rem);
  overflow: hidden;
}
dialog.modal.modal--bj .modal-wood-head {
  overflow: visible;
  z-index: 6;
  flex: 0 0 auto;
}
dialog.modal.modal--bj .modal-wood-head__title-row {
  align-items: center;
}
dialog.modal.modal--bj .modal__body.arcade-bj {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  box-sizing: border-box;
}
.arcade-bj__help {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.arcade-bj__help .activity-info {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.arcade-bj {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--panel-strong);
  color: var(--ink);
  padding: 0.55rem 0.7rem 0.75rem;
  overflow: hidden;
}
.arcade-bj__felt {
  margin: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.7rem;
  border: 4px solid #1d1008;
  background:
    repeating-conic-gradient(#209150 0 25%, #1b8449 0 50%) 0 0 / 8px 8px;
  box-shadow:
    inset 0 0 0 4px #0b4a2a,
    inset 0 0 0 8px #9a6a36,
    inset 0 0 0 12px #1d1008,
    inset 0 0 48px rgba(0, 0, 0, 0.35);
}
.arcade-bj__lab {
  margin: 0.2rem 0.25rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bff0d2;
  text-shadow: 0 2px 0 #062a19;
}
.arcade-bj__lab span {
  color: #ffe3a8;
  margin-left: 0.45rem;
}
.arcade-bj__hand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex: 1 1 auto;
  min-height: 4.6rem;
  padding-top: 0.2rem;
}
.arcade-bj__card {
  position: relative;
  width: 3.6rem;
  height: 5.3rem;
  margin-left: -1rem;
}
.arcade-bj__card:first-child {
  margin-left: 0;
}
.arcade-bj__card canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.arcade-bj__msg {
  margin: 0.35rem 0;
  min-height: 1.7rem;
  padding: 0.35rem 0.5rem;
  border: 3px solid #1d1008;
  background: #072a19;
  color: #ffe3a8;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 0 0 0 2px #1d6a3d;
}
.arcade-bj__bets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 3px solid #1d1008;
  background: rgba(30, 16, 6, 0.5);
}
.arcade-bj__bal {
  padding: 0.45rem 0.55rem;
  border: 3px solid #1d1008;
  background: #06170d;
  color: #6dff9c;
  font-size: 0.78rem;
  font-weight: 800;
}
button.arcade-bj__chip {
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  flex: 0 0 auto;
  transition: transform 0.1s ease, filter 0.1s ease;
}
button.arcade-bj__chip canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
button.arcade-bj__chip--on {
  filter: drop-shadow(0 0 10px #ffd27a);
}
button.arcade-bj__chip:hover:not(:disabled) {
  transform: translateY(-4px);
}
button.arcade-bj__chip:active:not(:disabled) {
  transform: translateY(2px);
}
button.arcade-bj__chip:disabled,
button.arcade-bj__chip:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}
.arcade-bj__acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.arcade-bj__acts .btn:disabled,
.arcade-bj__acts .btn:disabled:hover {
  pointer-events: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .arcade-chips.is-animating b,
  .arcade-ticket.is-animating,
  .arcade-ticket.is-animating .arcade-ticket__foil,
  .arcade-coins.is-animating .arcade-coin {
    animation: none !important;
  }
  .arcade-wheel { transition: none !important; }
}

@media (max-width: 72rem) {
  .arcade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  /* Wider cards · fill side gutter on tablet/phone landscape. */
  .arcade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .arcade-panel__body {
    /* SYNC phone · still --page-panel-body-x family · tighter floor on small widths. */
    padding-inline: max(0.65rem, calc(var(--vine-gutter, 80px) * 0.35));
  }
  .arcade-card.pixel-frame {
    --frame-pad-y: 1rem;
    --frame-pad-x: 0.75rem;
    --frame-pad-b: 0.9rem;
  }
  .arcade-card form,
  .arcade-card > .btn {
    max-width: none;
  }
}
@media (max-width: 720px) {
  /* Title sits on the wood split. The chip button stays in the top right. */
  .arcade-panel__banner .arcade-panel__headrow {
    top: 0;
    bottom: var(--frame-rim, 12px);
    height: auto;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.4rem 0.5rem 0.3rem;
  }
  .arcade-panel__headrow .shop-catalog__slot--left { display: none; }
  .arcade-panel__headrow .shop-catalog__slot--mid {
    align-self: end;
    justify-self: start;
    justify-content: flex-start;
  }
  .arcade-panel__headrow .shop-catalog__slot--right {
    align-self: start;
    justify-self: end;
  }
  .arcade-panel__bal.shop-sell-open {
    position: static;
    --btn-pad-x: 0.55rem;
    gap: 0.35rem;
  }
  .arcade-panel__bal-split {
    width: 1px;
    align-self: stretch;
    margin: 0.12rem 0.05rem;
    background: rgb(70 40 8 / 70%);
  }
  /* Single column under ~720 · 2-col stays above this. */
  .arcade-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .arcade-panel__body {
    padding-inline: max(0.55rem, calc(var(--vine-gutter, 80px) * 0.3));
  }
  .arcade-card.pixel-frame {
    --frame-pad-y: 0.95rem;
    --frame-pad-x: 0.85rem;
    --frame-pad-b: 0.85rem;
  }
}
@media (max-width: 72rem) {
  .style-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .style-grid--three,
  .style-grid--four,
  .style-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  body:has(.page-viewport):has(.nav-rail) .site-footer {
    bottom: var(--tab-h);
    margin-bottom: 0;
  }
  body:has(.page-viewport):has(.nav-rail) .site-layout {
    padding-bottom: calc(var(--header-offset) + var(--tab-h));
  }
  /* Phone shop · filters move to body; Sell stays top-right on the banner. */
  .shop-catalog__headrow {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .shop-catalog__slot--left {
    display: none;
  }
  .shop-catalog__headrow .shop-sell-open {
    justify-self: end;
  }
  .shop-catalog__body > .shop-filter--phone {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.28rem;
    margin: 0 0 0.75rem;
    padding: 0.15rem 0 0.35rem;
  }
  .shop-filter--phone .shop-filter__link.btn {
    --btn-pad-x: 0.28rem;
    flex: 0 0 auto;
    min-width: max-content;
    justify-content: center;
    gap: 0.16rem;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    padding: 0.16rem 0.28rem;
  }
  .shop-filter--phone .shop-filter__link--drops .shop-filter__icon,
  .shop-filter--phone .shop-filter__link--premium .shop-filter__icon {
    width: 1.35rem;
    height: 1.35rem;
  }
  .shop-catalog__body {
    padding-top: 0.7rem;
    padding-inline: 0.35rem;
  }
  .shop-filter {
    justify-content: center;
  }
}
@media (max-width: 45rem) {
  .style-grid { grid-template-columns: 1fr; }
  .chiken-house__grid.style-grid,
  .chiken-house__grid.style-grid--five,
  .chiken-house__grid.style-grid--roster-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html:has(.page-viewport),
  body:has(.page-viewport) {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  body:has(.page-viewport) .site-layout {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  body:has(.page-viewport) .site-footer {
    position: relative;
    bottom: auto;
  }
  body:has(.page-viewport) .site-layout > .page,
  body:has(.page-viewport) .site-layout > .page {
    overflow: visible;
    height: auto;
    flex: none;
  }
}
/* Shop and Clucky Arcade banners use the plain header title, not a hanging sign. */
.shop-catalog__slot--mid {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-catalog__headrow .shop-catalog__plaque-wrap,
.arcade-panel__headrow .arcade-panel__plaque-wrap,
.shop-catalog__plaque-wrap,
.arcade-panel__plaque-wrap,
.admin-shell__plaque-wrap {
  position: static;
  top: auto;
  left: auto;
  z-index: 4;
  margin: 0;
  padding-top: 0;
  transform: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque,
.arcade-panel__plaque.hanging-plaque.carved-plaque,
.admin-shell__plaque.hanging-plaque.carved-plaque {
  position: static;
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: none;
  box-shadow: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque::after,
.arcade-panel__plaque.hanging-plaque.carved-plaque::after,
.admin-shell__plaque.hanging-plaque.carved-plaque::after,
.shop-catalog__plaque-wrap .carved-plaque__chain,
.arcade-panel__plaque-wrap .carved-plaque__chain,
.admin-shell__plaque-wrap .carved-plaque__chain,
.shop-catalog__head .carved-plaque__sprout,
.arcade-panel__plaque .carved-plaque__sprout,
.admin-shell__plaque .carved-plaque__sprout {
  display: none;
  content: none;
}
.shop-catalog__head.hanging-plaque.carved-plaque h2,
.arcade-panel__plaque.hanging-plaque.carved-plaque h2,
.admin-shell__plaque.carved-plaque h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6e6c0;
  text-shadow: 0 2px 0 rgb(0 0 0 / 75%);
}

