/* Final shell hierarchy: quiet surfaces, sage actions, and a pastel Play invitation. */
#app[data-arcade-page]
  .lobby-control:not(.btn-primary):not(.shop-clear):not(.gift-item):not(
    .profile-text-action
  ):not(.chip) {
  border-radius: 10px;
  font-weight: 600;
  box-shadow: none;
}
#app[data-arcade-page] .btn-primary,
body[data-arcade-shell] #modal .btn-primary,
body[data-arcade-shell] #directDock .btn-primary,
body[data-arcade-shell] #supportDock .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #cce4d5;
  border-radius: 11px;
  background: linear-gradient(135deg, #c0dfce, #a7cfb9);
  color: #153b2c;
  font: 700 13px/1.3 system-ui;
  text-decoration: none;
  box-shadow:
    0 4px 12px #0002,
    inset 0 1px #fff6;
  letter-spacing: 0;
}
#app[data-arcade-page] .btn-primary:hover,
body[data-arcade-shell] #modal .btn-primary:hover {
  background: linear-gradient(135deg, #cfe9dc, #b8ddc9);
  border-color: #e0f1e7;
  color: #153b2c;
}
#app[data-arcade-page] button:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}
#app[data-arcade-page] .dashboard-greeting .gold {
  color: inherit;
}
#app[data-arcade-page] .eyebrow,
#app[data-arcade-page] .lobby-marquee {
  color: #aebfb3;
  letter-spacing: 0.15em;
}
#app[data-arcade-page] .page-title .badge,
#app[data-arcade-page] .profile-role {
  background: #cfdfd00e;
  color: #c8d7ca;
  border-color: #a4baa039;
}
#app[data-arcade-page] .chip {
  background: #abcbb50c;
  border-color: #abcbb533;
  color: #d2dfd0;
}
#app[data-arcade-page] .stat-number,
#app[data-arcade-page] .leader-score,
#app[data-arcade-page] .audio-value {
  color: #e3eade;
}
#app[data-arcade-page] .shop-item-bottom .gold {
  color: #a9bcb0;
}
body[data-arcade-shell] > header nav button.active {
  color: #dce9de;
  background: #b8d8c916;
  box-shadow: inset 0 -2px #96bfaa;
}
#app[data-arcade-page] .badge:not([class*="rarity"]) {
  background: #b0cbb00a;
  border-color: #c6d8b729;
  color: #b9cab9;
}
#app[data-arcade-page] .actions > select,
#app[data-arcade-page] .section-title > select,
#app[data-arcade-page] .highlight-header > select {
  width: auto;
  flex: 0 1 230px;
  min-width: 150px;
  max-width: 100%;
  margin: 0;
  min-height: 40px;
  font-size: 12px;
}
#app[data-arcade-page] .pricing-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr)
    auto;
  align-items: center;
  gap: 10px;
}
#app[data-arcade-page] .pricing-filters > * {
  width: 100%;
  margin: 0;
  min-width: 0;
}
#app[data-arcade-page] .pricing-filters label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
}
#app[data-arcade-page] .boutique-toolbar {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 170px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 15px;
  box-shadow: none;
}
#app[data-arcade-page] .shop-search {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  border-radius: 10px;
  align-self: stretch;
  align-items: center;
  background: #0c241d;
}
#app[data-arcade-page] .shop-search input {
  min-height: 42px;
  height: 42px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-size: 12px;
  box-shadow: none;
}
#app[data-arcade-page] .shop-search button {
  height: 42px;
  min-width: 38px;
  padding: 5px 10px;
  color: #b9cbbf;
}
#app[data-arcade-page] .shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  color: #adbeaf;
  white-space: nowrap;
}
#app[data-arcade-page] .shop-sort select {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 42px;
  height: 42px;
  margin: 0;
  padding: 9px 27px 9px 10px;
  font-size: 12px;
}
#app[data-arcade-page] .collection-switch {
  padding: 3px;
  min-height: 42px;
  border-radius: 10px;
}
#app[data-arcade-page] .collection-switch button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}
#app[data-arcade-page] .collection-switch [aria-pressed="true"] {
  background: #bddac8;
  border-color: #bddac8;
  color: #1c4030;
  box-shadow: none;
}
#app[data-arcade-page] .boutique-layout {
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 20px;
  padding-top: 20px;
}
#app[data-arcade-page] .shop-filter-sidebar {
  padding: 16px;
  border-right: 0;
  border-radius: 14px;
}
#app[data-arcade-page] .shop-filter-content .eyebrow {
  margin-bottom: 18px;
}
#app[data-arcade-page] .shop-filter-content nav button {
  padding: 9px 10px;
  min-height: 36px;
  font-size: 11px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  box-shadow: none;
}
#app[data-arcade-page] .shop-filter-content nav button[aria-pressed="true"] {
  border-left-color: #a8ceb6;
  background: #b2ceb011;
  color: #d5e6d9;
}
#app[data-arcade-page] .shop-selected-filters {
  color: #a9beaf;
  font-size: 11px;
}
#app[data-arcade-page] .boutique-results .shop-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 13px;
}
#app[data-arcade-page] .shop-item {
  border-radius: 14px;
  contain-intrinsic-size: auto 315px;
  box-shadow: 0 5px 14px #0002;
  border-color: #8da88933;
}
#app[data-arcade-page] .shop-item .shop-preview {
  height: 132px;
  min-height: 132px;
  padding: 16px 10px;
  overflow: hidden;
  border-bottom: 1px solid #94b29415;
}
#app[data-arcade-page] .shop-item .shop-preview .cosmetic-sample {
  width: 100px;
  padding: 6px;
}
#app[data-arcade-page] .shop-item .shop-preview .card-head {
  font-size: 10px;
}
#app[data-arcade-page] .shop-item .shop-preview .cell {
  font-size: 7px;
}
#app[data-arcade-page] .shop-item .shop-preview .cells {
  gap: 2px;
}
#app[data-arcade-page] .shop-item .shop-preview .deck-preview {
  min-height: 110px;
  height: 110px;
  gap: 7px;
}
#app[data-arcade-page] .shop-item .shop-preview .playing-card {
  width: 65px !important;
  height: 96px !important;
}
#app[data-arcade-page] .shop-item .shop-preview .playing-card > strong {
  font-size: 30px;
}
#app[data-arcade-page] .shop-item .shop-preview .playing-card > small {
  font-size: 6px;
}
#app[data-arcade-page] .shop-item .shop-item-copy {
  padding: 12px;
  gap: 0;
  background: linear-gradient(135deg, #173328, #10271f);
}
#app[data-arcade-page] .shop-item .shop-item-meta {
  gap: 6px;
  align-items: flex-start;
  font-size: 8px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
}
#app[data-arcade-page] .shop-item-meta > span:first-child {
  max-width: 55%;
  color: #9fb6a6;
}
#app[data-arcade-page] .shop-item-meta > span:last-child {
  max-width: 48%;
  text-align: right;
  font-size: 8px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#app[data-arcade-page] .shop-item h3 {
  font: 600 16px/1.35 system-ui;
  margin: 7px 0 6px;
  color: #e2e9dc;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#app[data-arcade-page] .shop-item-copy > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 30px;
  max-height: 32px;
  font-size: 10px;
  line-height: 1.55;
  margin: 0 0 4px;
  color: #9eb2a4;
}
#app[data-arcade-page] .shop-item-bottom {
  margin-top: auto;
  padding-top: 10px;
  gap: 7px;
  flex-wrap: nowrap;
  align-items: center;
}
#app[data-arcade-page] .shop-item-bottom > strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
#app[data-arcade-page] .shop-item-bottom button {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 9px;
  width: auto;
  flex: 0 0 auto;
}
#app[data-arcade-page] .shop-item-bottom button:disabled {
  background: #c7dcc30c;
  color: #a6bcaa;
  border: 1px solid #c7dcc325;
  opacity: 1;
  font-size: 10px;
}
#app[data-arcade-page] .ownership-badge {
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  font-size: 8px;
  border-radius: 20px;
  letter-spacing: 0;
  color: #b9cec0;
  border-color: #b3cbb329;
  background: #0e291fe8;
}
#app[data-arcade-page] .gift-item {
  border: 0;
  background: transparent;
  color: #adbeaf;
  font-size: 10px;
  min-height: 30px;
  padding: 5px 0;
  margin-top: 6px;
  text-align: left;
  box-shadow: none;
}
#app[data-arcade-page] .living-label {
  font-size: 9px;
  color: #9eb5a7;
  padding-top: 3px;
}
#app[data-arcade-page] .event-info {
  font-size: 9px;
  line-height: 1.4;
  gap: 2px;
  margin: 2px 0;
}
#app[data-arcade-page] .collection-tile {
  padding: 10px;
  gap: 6px;
  border-radius: 13px;
  contain-intrinsic-size: auto 215px;
}
#app[data-arcade-page] .collection-tile .deck-preview {
  height: 105px;
  min-height: 105px;
}
#app[data-arcade-page] .collection-tile .playing-card {
  width: 60px !important;
  height: 89px !important;
}
#app[data-arcade-page] .collection-tile .collection-icon {
  padding: 10px;
  font-size: 34px;
}
#app[data-arcade-page] .collection-tile > strong {
  font-size: 12px;
  line-height: 1.4;
}
#app[data-arcade-page] .collection-tile > small,
#app[data-arcade-page] .collection-tile summary {
  font-size: 10px;
  color: #a9bbab;
}
#app[data-arcade-page] .showcase-grid {
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
  max-height: 440px;
}
#app[data-arcade-page] #collectionPrivacy {
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}
#app[data-arcade-page] #collectionPrivacy label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
}
#app[data-arcade-page] #collectionPrivacy select {
  width: auto;
  max-width: 190px;
  margin: 0;
  min-height: 38px;
  font-size: 12px;
}
/* Equipped items are grouped and collapsible, preserving every reset action. */
#app[data-arcade-page] .equipped-look {
  border: 1px solid #a9bf9c33;
  border-radius: 15px;
  background: #122d23;
  margin-top: 18px;
  overflow: hidden;
}
.equipped-look > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
}
.equipped-look > summary::-webkit-details-marker {
  display: none;
}
.equipped-look > summary > span:first-child {
  display: grid;
  gap: 4px;
}
.equipped-look .eyebrow {
  font: 600 9px system-ui;
  margin: 0;
}
.equipped-look strong {
  font-size: 13px;
  color: #dae6d9;
}
.equipped-summary {
  font-size: 11px;
  color: #a7bdac;
  display: flex;
  gap: 12px;
  align-items: center;
}
.equipped-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0 18px 18px;
  border-top: 1px solid #a2ba951e;
}
.equipped-groups h3 {
  font: 600 12px system-ui;
  color: #cbd9cb;
  margin: 16px 0 8px;
}
.equipped-groups dl {
  margin: 0;
}
.equipped-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  border-top: 1px solid #9fba9617;
  padding: 9px 0;
}
.equipped-row dt {
  font-size: 10px;
  color: #9bb1a2;
  line-height: 1.5;
}
.equipped-row dd {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  min-width: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #d2dfd0;
}
.equipped-row .is-original {
  color: #859d8e;
}
#app[data-arcade-page] .equipped-row button {
  min-width: 30px;
  min-height: 30px;
  padding: 3px;
  background: transparent;
  color: #b5c4b4;
  border: 1px solid #98b69529;
  border-radius: 8px;
  font-size: 15px;
  flex-shrink: 0;
}
/* Profile overview reflects current server-backed statistics, never fabricated fields. */
.profile-overview {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}
.profile-passport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: linear-gradient(125deg, #264d3c, #142f25);
  border: 1px solid #a6c09c55;
  border-radius: 20px;
  padding: 28px;
}
.profile-passport-identity {
  display: flex;
  align-items: center;
  gap: 44px;
  min-width: 0;
  padding-left: 12px;
}
.profile-passport .arcade-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.profile-passport h2 {
  font: 500 clamp(24px, 3vw, 34px)/1.2 Georgia;
  color: #e3ebdf;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.profile-passport p {
  margin: 5px 0;
  color: #a9beb0;
  font-size: 12px;
}
.profile-role {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid #aac8a13b;
  border-radius: 6px;
  color: #c3d6c4;
}
.profile-passport-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.profile-metric {
  padding: 18px;
  border: 1px solid #9ab69433;
  border-radius: 14px;
  background: #153025;
}
.profile-metric dt {
  font-size: 11px;
  color: #a5b9aa;
}
.profile-metric dd {
  font-size: 24px;
  font-weight: 600;
  color: #e0ebde;
  letter-spacing: -0.025em;
  margin: 9px 0 5px;
}
.profile-metric small {
  font-size: 10px;
  color: #90a695;
  display: block;
  line-height: 1.5;
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-detail {
  border: 1px solid #9bb6922f;
  border-radius: 16px;
  background: #132d23;
  padding: 20px;
  min-width: 0;
}
.profile-detail .section-title {
  margin: 0 0 16px;
  gap: 12px;
}
.profile-detail h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #d5e2d2;
}
.profile-detail p {
  color: #aebfac;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 0;
}
.profile-subtle-tag {
  font-size: 9px;
  color: #94ac9c;
}
.profile-game-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 10px 0;
  border-top: 1px solid #a2b8961d;
  gap: 8px;
  font-size: 12px;
  color: #ccdac8;
  font-variant-numeric: tabular-nums;
}
.profile-game-row small {
  font-size: 10px;
  color: #8fa995;
}
.profile-game-row > span:not(:first-child) {
  text-align: right;
}
.profile-facts {
  margin: 14px 0 0;
}
.profile-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid #a2b8961d;
  font-size: 11px;
}
.profile-facts dt {
  color: #99b09f;
}
.profile-facts dd {
  margin: 0;
  color: #d0dec9;
}
.profile-equipped-name {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
  background: #abc9a60b;
  border: 1px solid #a6bf9c2b;
  border-radius: 7px;
  font-size: 10px;
}
.profile-activity {
  grid-column: 1/-1;
}
.profile-last-activity {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #d3dfce;
  flex-wrap: wrap;
}
.profile-last-activity strong {
  font-weight: 500;
  flex: 1;
  min-width: 180px;
}
.profile-last-activity time {
  font-size: 11px;
  color: #90ab97;
}
#app[data-arcade-page] .profile-text-action {
  background: transparent;
  border: 0;
  min-height: 32px;
  padding: 4px 0;
  font-size: 11px;
  color: #a8ccba;
  box-shadow: none;
}
#app[data-arcade-page="profile"] > .grid.two {
  align-items: start;
}
/* Support stays a compact utility, not a page-sized interruption. */
body[data-arcade-shell] #supportDock {
  width: min(350px, calc(100vw - 24px));
  height: auto;
  min-height: 260px;
  max-height: min(500px, calc(100dvh - 110px));
  left: 12px;
  bottom: 12px;
  border-color: #a1bb9655;
  border-radius: 17px;
  background: #142f24;
  box-shadow: 0 15px 45px #0007;
}
body[data-arcade-shell] #supportDock .dm-head {
  padding: 12px 14px;
  font-size: 13px;
}
body[data-arcade-shell] #supportDock .support-note {
  padding: 6px 14px;
  font-size: 11px;
  line-height: 1.5;
}
body[data-arcade-shell] #supportDock .support-start {
  padding: 12px 14px;
}
body[data-arcade-shell] #supportDock label {
  font-size: 11px;
  margin: 9px 0 5px;
}
body[data-arcade-shell] #supportDock input {
  padding: 9px 11px;
  font-size: 12px;
  min-height: 36px;
  margin: 0;
}
body[data-arcade-shell] #supportDock textarea {
  min-height: 75px;
  max-height: 110px;
  padding: 9px 11px;
  font-size: 12px;
  margin: 0;
}
body[data-arcade-shell] #supportDock .support-start > .btn-primary {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
}
body[data-arcade-shell] #supportDock .support-message {
  padding: 9px 10px;
  font-size: 12px;
}
body[data-arcade-shell] #modal.arcade-support-dialog {
  width: min(560px, calc(100vw - 28px));
  max-width: 560px;
  max-height: min(620px, calc(100dvh - 48px));
  padding: 24px;
}
body[data-arcade-shell] #modal.arcade-support-dialog .support-ticket-list {
  max-height: 340px;
}
body[data-arcade-shell] #modal.arcade-support-dialog h2 {
  font-size: 24px;
}
/* Play inherits the actual destination's cream, coral and mint identity. */
#app[data-arcade-page] .play-feature-card {
  background:
    radial-gradient(ellipse at 85% 30%, #daeee6, transparent 55%),
    linear-gradient(125deg, #faf9f1, #f0f6ef);
  border-color: #c9ddd0;
  box-shadow: 0 12px 30px #0002;
  color: #263c40;
  padding: 28px 32px;
}
#app[data-arcade-page] .play-feature-copy h2 {
  color: #2a3d43;
  text-shadow: none;
  font-family: Georgia, serif;
}
#app[data-arcade-page] .play-feature-copy .creator-credit,
#app[data-arcade-page] .play-feature-copy p {
  color: #667d7b;
}
#app[data-arcade-page] .play-feature-card .play-feature-badge {
  color: #42756a;
  background: #dcefe6;
  border-color: #bbdacc;
  font-size: 9px;
  letter-spacing: 0.1em;
}
#app[data-arcade-page] .play-feature-copy .btn-primary {
  background: #f08374;
  border-color: #ed786a;
  color: #362c2f;
  box-shadow: 0 5px 12px #ed8d7220;
}
#app[data-arcade-page] .play-feature-copy .btn-primary:hover {
  background: #f79a8d;
  border-color: #ed8779;
  color: #362c2f;
}
#app[data-arcade-page] .play-feature-art {
  background: linear-gradient(145deg, #ffe3bc, #f4c9b2);
  color: #598775;
  border-color: #fff;
  box-shadow:
    0 10px 20px #5787721a,
    inset 0 1px #fff;
  font-size: 54px;
}
#app[data-arcade-page] .play-feature-scene {
  background: #deeee4;
  border-color: #bfd7cb;
  box-shadow: inset 0 1px #fff8;
}
#app[data-arcade-page] .play-scene-label {
  background: #fff4d7;
  color: #628071;
  border-color: #e5d9b9;
}
#app[data-arcade-page] .play-feature-note {
  color: #718b7b;
}
#app[data-arcade-page] .play-feature-note span {
  color: #8fa594;
}
@media (max-width: 1000px) {
  #app[data-arcade-page] .boutique-toolbar {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  #app[data-arcade-page] .shop-sort {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 170px;
  }
  #app[data-arcade-page] .shop-search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  #app[data-arcade-page] .boutique-results .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  }
  .profile-passport {
    flex-wrap: wrap;
  }
  .profile-passport-links {
    margin-left: 120px;
  }
}
@media (max-width: 760px) {
  #app[data-arcade-page] .boutique-layout {
    display: block;
  }
  #app[data-arcade-page] .shop-filter-sidebar {
    padding: 0;
  }
  .equipped-groups {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .equipped-groups h3 {
    margin-top: 14px;
  }
  .equipped-row {
    grid-template-columns: 1fr 1.4fr;
  }
  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }
  .profile-activity {
    grid-column: auto;
  }
  #app[data-arcade-page] .pricing-filters {
    grid-template-columns: 1fr 1fr;
  }
  #app[data-arcade-page] .pricing-filters > input {
    grid-column: 1/-1;
  }
}
@media (max-width: 550px) {
  #app[data-arcade-page] .boutique-toolbar {
    padding: 10px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 144px;
  }
  #app[data-arcade-page] .collection-switch {
    width: auto;
    margin: 0;
  }
  #app[data-arcade-page] .collection-switch button {
    font-size: 10px;
    padding: 7px 9px;
    min-width: 0;
  }
  #app[data-arcade-page] .shop-sort {
    width: 144px;
    gap: 5px;
    font-size: 10px;
  }
  #app[data-arcade-page] .shop-sort select {
    padding-right: 20px;
    font-size: 10px;
  }
  #app[data-arcade-page] .boutique-results .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #app[data-arcade-page] .shop-item .shop-preview {
    height: 112px;
    min-height: 112px;
    padding: 10px;
  }
  #app[data-arcade-page] .shop-item .shop-item-copy {
    padding: 10px;
  }
  #app[data-arcade-page] .shop-item h3 {
    font-size: 13px;
  }
  #app[data-arcade-page] .shop-item-meta > span:first-child {
    display: none;
  }
  #app[data-arcade-page] .shop-item-meta > span:last-child {
    max-width: 100%;
    text-align: left;
  }
  #app[data-arcade-page] .shop-item-bottom {
    flex-wrap: wrap;
    gap: 6px;
  }
  #app[data-arcade-page] .shop-item-bottom button {
    flex-basis: 100%;
    width: 100%;
    min-height: 36px;
  }
  #app[data-arcade-page] .shop-item-bottom > strong {
    font-size: 9px;
  }
  #app[data-arcade-page] .shop-item .shop-preview .cosmetic-sample {
    width: 85px;
  }
  .equipped-look > summary {
    padding: 12px;
    gap: 8px;
  }
  .equipped-summary {
    font-size: 10px;
  }
  .profile-passport {
    padding: 22px 18px;
    gap: 20px;
  }
  .profile-passport-identity {
    gap: 28px;
    padding: 0;
  }
  .profile-passport .arcade-avatar {
    width: 48px;
    height: 48px;
  }
  .profile-passport-links {
    margin-left: 0;
    gap: 8px;
  }
  .profile-passport-links button {
    font-size: 11px !important;
  }
  .profile-metric {
    padding: 14px;
  }
  .profile-metric dd {
    font-size: 20px;
  }
  .profile-detail {
    padding: 16px;
  }
  .profile-last-activity {
    gap: 8px;
  }
  .profile-role {
    margin-left: 0;
  }
  .profile-passport h2 {
    font-size: 26px;
  }
  #app[data-arcade-page] .play-feature-card {
    padding: 22px 20px;
  }
  body[data-arcade-shell] #supportDock {
    max-height: min(480px, calc(100dvh - 96px));
    width: calc(100vw - 24px);
  }
  body[data-arcade-shell] #modal.arcade-support-dialog {
    padding: 20px;
    max-height: calc(100dvh - 40px);
  }
}
#app[data-arcade-page] .shop-preview .arcade-avatar {
  width: 64px;
  height: 64px;
}
#app[data-arcade-page] .shop-preview .arcade-avatar.has-wings {
  width: 48px;
  height: 48px;
}
#app[data-arcade-page] .collection-tile .arcade-avatar {
  width: 54px;
  height: 54px;
  margin: 24px auto;
}
#app[data-arcade-page] .collection-tile .arcade-avatar.has-wings {
  width: 42px;
  height: 42px;
}
@media (max-width: 380px) {
  #app[data-arcade-page] .boutique-toolbar {
    grid-template-columns: 1fr;
  }
  #app[data-arcade-page] .collection-switch {
    grid-column: 1;
    width: 100%;
  }
  #app[data-arcade-page] .shop-sort {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
  #app[data-arcade-page] .shop-search {
    grid-column: 1;
    grid-row: 3;
  }
}
body[data-arcade-shell] > header nav {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #759b8460 transparent;
}
#app[data-arcade-page] .collection-tile .collection-avatar-preview,
#app[data-arcade-page]
  .collection-tile
  .collection-avatar-preview:has(.arcade-avatar.has-wings) {
  height: 108px;
  min-height: 108px;
  overflow: visible;
}
#app[data-arcade-page]
  .collection-tile
  .collection-avatar-preview
  .arcade-avatar {
  margin: 0;
}
#app[data-arcade-page] .collection-tile .collection-bingo-preview {
  height: 108px;
  border-color: #a3b49144;
}
#app[data-arcade-page] .collection-tile .collection-mini-numbers {
  padding: 6px;
  gap: 2px;
}
#app[data-arcade-page] .collection-tile .collection-mini-numbers span {
  font-size: 8px;
  color: #cad9c6;
}
#app[data-arcade-page] .collection-tile > .badge {
  font-size: 8px;
  padding: 3px 6px;
  line-height: 1.4;
  width: fit-content;
}
#app[data-arcade-page] .collection-tile > strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#app[data-arcade-page] .collection-tile .pumpkin-machine {
  max-height: 108px;
  max-width: 110px;
  margin: auto;
}
#app[data-arcade-page] .collection-tile .playing-card > strong {
  font-size: 30px;
}
#app[data-arcade-page]::before {
  left: 0;
  right: 0;
}
#app[data-arcade-page="profile"] .collection-tile {
  content-visibility: visible;
  contain-intrinsic-size: none;
  align-self: start;
}
#app[data-arcade-page="profile"] .showcase-grid {
  grid-auto-rows: max-content;
  align-items: start;
}
#app[data-arcade-page] .collection-tile {
  position: relative;
}
#app[data-arcade-page] .collection-tile > .badge {
  max-width: calc(100% - 40px);
}
#app[data-arcade-page] .collection-tile .collection-icon {
  height: 108px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}
#app[data-arcade-page] .collection-tile details {
  margin: 0;
}
#app[data-arcade-page] .collection-tile details > summary {
  padding: 4px 0;
  min-height: 22px;
}
#app[data-arcade-page] .collection-tile > button[data-collection="pin"] {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 32px;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 9px;
  background: #17372a;
  color: #b7ccbb;
  border: 1px solid #93af8e30;
  border-radius: 8px;
  box-shadow: none;
}
#app[data-arcade-page] .avatar-gallery button.selected {
  border-color: #a9ceb7;
  box-shadow: 0 0 0 2px #a9ceb725;
}
#app[data-arcade-page] progress {
  accent-color: #99bea6;
}
body[data-arcade-shell] .chat-link {
  color: #b3d6c3;
}
body[data-arcade-shell] .dm-unread-count {
  background: #bddac8;
  color: #1a402f;
}
body[data-arcade-shell] .dm-bubble.mine {
  background: linear-gradient(120deg, #2d5140, #244334);
  border-color: #a5bf923d;
}
body[data-arcade-shell] .support-ticket-list small {
  color: #a7bdad;
}
@media (pointer: coarse) {
  #app[data-arcade-page] .collection-tile > button[data-collection="pin"] {
    min-width: 44px;
    min-height: 36px;
  }
  #app[data-arcade-page] .collection-tile > .badge {
    max-width: calc(100% - 48px);
  }
  #app[data-arcade-page] .equipped-row button {
    min-width: 40px;
    min-height: 40px;
  }
}
.equipped-empty {
  font-size: 12px;
  color: #adbfaf;
  margin: 12px 0 6px;
}
.equipped-default-note {
  display: block;
  font-size: 10px;
  color: #819d8b;
  margin-top: 8px;
  line-height: 1.5;
}
#app[data-arcade-page]
  :is(button, a, input, select, textarea, summary):focus-visible,
#app[data-arcade-page] .lobby-control:focus-visible {
  outline: 2px solid #a9d4bb;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #a9d4bb0c;
}
body[data-arcade-shell]
  :is(#modal, #directDock, #supportDock)
  :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid #a9d4bb;
  outline-offset: 3px;
}
#app[data-arcade-page] .play-feature-card .btn-primary:focus-visible {
  outline-color: #315c50;
}
/* Preserve rendering culling in the bounded collection list after its size refinement. */
#app[data-arcade-page="profile"] .collection-tile {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.arcade-preview-banner {
  background: #18392b;
  border-color: #93b39b3d;
  color: #b4cbbb;
}
.arcade-preview-banner a {
  color: #c2ddcb;
  text-decoration-color: #8bb59c;
}
.arcade-preview-banner button {
  border-color: #93b39b44;
  color: #c3d8c7;
}

/* Text accents must never inherit the legacy gold button surface. */
body[data-arcade-shell] .gold {
  background: none;
  box-shadow: none;
  border-color: transparent;
  color: #d8e5da;
}
#app[data-arcade-page] .shop-item-bottom .gold {
  color: #c9d9ce;
  font-size: 11px;
  font-weight: 500;
}
#app[data-arcade-page] .collectors-limited-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid #bfa5cd55;
  border-radius: 6px;
  background: #30263b;
  color: #e4d9ee;
  box-shadow: none;
  font: 600 10px/1.25 system-ui;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
  -webkit-line-clamp: unset;
}
#app[data-arcade-page] .collectors-limited-badge::before,
#app[data-arcade-page] .collectors-limited-badge::after {
  display: none;
}
#app[data-arcade-page] .collector-crest {
  width: 13px;
  height: 15px;
  filter: none;
}
#app[data-arcade-page] .collector-label-full {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#app[data-arcade-page] .collector-label-short {
  display: inline;
}
#app[data-arcade-page] .shop-item-meta:has(> .collectors-limited-badge) {
  flex-direction: column;
  align-items: flex-start;
}
#app[data-arcade-page] .shop-item-meta:has(> .collectors-limited-badge) > span:first-child {
  max-width: 100%;
}
#app[data-arcade-page] .shop-item .shop-preview .deck-preview {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}
#app[data-arcade-page] .shop-item .shop-preview .playing-card {
  flex: 0 1 65px;
  max-width: 45%;
  max-height: 100%;
  aspect-ratio: 65 / 96;
  box-sizing: border-box;
}
#app[data-arcade-page] .abyssal-offer-art {
  display: none;
}
#app[data-arcade-page] .abyssal-offer {
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
}
#app[data-arcade-page] .abyssal-banner-feature {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}
#app[data-arcade-page] .abyssal-banner-art {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 180px;
  isolation: isolate;
  background: radial-gradient(ellipse, #a147482e, transparent 65%);
}
#app[data-arcade-page] .abyssal-banner-art img {
  position: absolute;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#app[data-arcade-page] .abyssal-banner-wings {
  width: 100%;
  height: 100%;
  z-index: 0;
}
#app[data-arcade-page] .abyssal-banner-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  z-index: 1;
}
#app[data-arcade-page] .abyssal-banner-frame {
  width: 140px;
  height: 140px;
  z-index: 2;
}
#app[data-arcade-page] .abyssal-banner-feature button {
  padding: 8px 12px;
  font-size: 11px;
  color: #ebdcee;
  background: #49324c;
  border-color: #c7a0bc55;
}
@media (max-width: 620px) {
  #app[data-arcade-page] .abyssal-offer { grid-template-columns: 1fr; }
  #app[data-arcade-page] .collectors-limited-badge { font-size: 9px; padding: 4px 5px; gap: 3px; }
}
/* Beat the generic two-line rarity label rule on compact item cards. */
#app[data-arcade-page] .shop-item .shop-item-meta > .collectors-limited-badge {
  display: inline-flex;
  max-width: 100%;
  overflow: visible;
  text-align: left;
  -webkit-line-clamp: unset;
}
#app[data-arcade-page] .shop-item .shop-item-meta > .collectors-limited-badge {
  font-size: 10px;
}
#app[data-arcade-page] .shop-item .shop-preview .playing-card {
  width: 60px !important;
  height: 88px !important;
  flex-basis: 60px;
  max-width: 100%;
}
@media (max-width: 620px) {
  #app[data-arcade-page] .shop-item .shop-item-meta > .collectors-limited-badge { font-size: 9px; }
  #app[data-arcade-page] .shop-item .shop-preview .playing-card {
    width: 50px !important;
    height: 74px !important;
    flex-basis: 50px;
  }
}
#app[data-arcade-page] .abyssal-banner-art {
  display: grid;
  place-items: center;
}
#app[data-arcade-page] .abyssal-banner-art > .arcade-avatar {
  width: 64px;
  height: 64px;
}
/* Let the shared border renderer own every layer, including the portrait. */
#app[data-arcade-page] .abyssal-banner-art .arcade-avatar img {
  left: auto;
  top: auto;
  transform: none;
}
#app[data-arcade-page] .abyssal-banner-art .arcade-avatar > img:not(.avatar-wing-frame) {
  position: relative;
  width: 100%;
  height: 100%;
}
#app[data-arcade-page] .abyssal-banner-art .arcade-avatar > .avatar-wing-frame {
  left: -25%;
  top: -25%;
  width: 150%;
  height: auto;
}
/* Fit the complete composition, rather than clipping full-size artwork. */
#app[data-arcade-page="shop"] .shop-item .shop-preview {
  position: relative;
  display: block;
}
#app[data-arcade-page] :is(.shop-preview,.collection-thumbnail) > .thumbnail-native {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  min-height: 120px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(var(--thumbnail-scale, .3));
  transform-origin: center;
  pointer-events: none;
}
#app[data-arcade-page] .thumbnail-native > * {
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#app[data-arcade-page] .thumbnail-native .identity-preview-stage {
  width: 220px;
  min-height: 140px;
  height: 140px;
  padding: 0;
  display: grid;
  place-items: center;
}
#app[data-arcade-page] .thumbnail-native .identity-preview-stage > :is(strong, small),
#app[data-arcade-page] .thumbnail-native .haunted-pack-title,
#app[data-arcade-page] .thumbnail-native .haunted-marker-sample {
  display: none;
}
#app[data-arcade-page] .thumbnail-native .identity-preview-portrait {
  margin: 0;
  display: grid;
  place-items: center;
}
#app[data-arcade-page] .thumbnail-native .haunted-pack-preview {
  width: 260px;
  padding: 12px;
}
#app[data-arcade-page] .thumbnail-native .haunted-marker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#app[data-arcade-page] .thumbnail-native .deck-preview {
  height: 120px;
}
#app[data-arcade-page] .thumbnail-native:has(> .deck-preview) { width: 90px; }
#app[data-arcade-page] .thumbnail-native:has(> .cosmetic-sample) { width: 120px; }
#app[data-arcade-page] .thumbnail-native:has(> .identity-preview-stage) { width: 220px; }
#app[data-arcade-page] .thumbnail-native > .phantom-victory {
  width: 300px;
  min-height: 180px;
  height: 180px;
  padding: 14px;
}
#app[data-arcade-page] .thumbnail-native .phantom-name { font-size: 18px; }
#app[data-arcade-page] .thumbnail-native .phantom-bingo { font-size: 52px; }
#app[data-arcade-page] .thumbnail-native .phantom-banner-copy small { font-size: 9px; }

#app[data-arcade-page="profile"] .collection-thumbnail {
  position: relative;
  width: 100%;
  height: 108px;
  overflow: hidden;
}
#app[data-arcade-page="profile"] .thumbnail-native:has(> .collection-avatar-preview) { width: 240px; }
#app[data-arcade-page="profile"] .thumbnail-native > .collection-avatar-preview {
  width: 240px;
  height: 220px;
  display: grid;
  place-items: center;
}
#app[data-arcade-page="profile"] .thumbnail-native:has(> .collection-bingo-preview) { width: 150px; }
#app[data-arcade-page="profile"] .thumbnail-native:has(> .collection-icon) { width: 120px; }
/* The portrait's full-size 200–230px stage must not offset compact borders. */
#app[data-arcade-page] .thumbnail-native .identity-preview-portrait,
#app[data-arcade-page] .thumbnail-native .identity-preview-portrait:has(.arcade-avatar.has-wings) {
  width: 220px;
  height: 140px;
  min-height: 0;
  align-self: center;
  justify-self: center;
}
#app[data-arcade-page] .thumbnail-native .identity-preview-portrait > .arcade-avatar {
  margin: 0;
}
/* Bingo thumbnails need a full board before the complete composition is scaled. */
#app[data-arcade-page] .thumbnail-native:has(> .cosmetic-sample) { width: 280px; }
#app[data-arcade-page] .shop-item .shop-preview .thumbnail-native > .cosmetic-sample {
  width: 260px;
  min-width: 260px;
  padding: 12px !important;
  content-visibility: visible;
  contain-intrinsic-size: none;
  box-sizing: border-box;
}
#app[data-arcade-page] .shop-item .shop-preview .thumbnail-native > .cosmetic-sample.skin-haunted-mansion {
  padding-top: 78px !important;
}
#app[data-arcade-page] .thumbnail-native .cosmetic-sample .card-head {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  font-size: 18px;
  letter-spacing: 0;
}
#app[data-arcade-page] .thumbnail-native .cosmetic-sample .cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
#app[data-arcade-page] .thumbnail-native .cosmetic-sample .cell {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  font-size: 15px;
  padding: 0;
}
