.ui-lab {
  --ui-ink: #273e32;
  --ui-green: #294638;
  --ui-felt: #3d5d48;
  --ui-paper: #f4f0df;
  --ui-cream: #fffdf1;
  --ui-line: #d2d5c0;
  --ui-muted: #73816b;
  --ui-gold: #cda647;
  --ui-wood: #b58a5b;
  background: #f0f1e6;
  color: var(--ui-ink);
  font-family: 'Avenir Next', 'Trebuchet MS', Arial, sans-serif;
}
.ui-lab button,
.ui-lab input,
.ui-lab select {
  font: inherit;
}
.ui-lab button {
  cursor: pointer;
}
.ui-lab button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.ui-lab a {
  color: inherit;
}
.workshop-bar {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 3%;
  border-bottom: 1px solid #d3d8c5;
  background: #f9faef;
}
.workshop-wordmark {
  font-size: 25px;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -1.5px;
}
.workshop-wordmark span {
  font-weight: 500;
}
.workshop-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #7a846f;
  border-left: 1px solid #d4dac7;
  padding-left: 22px;
}
.workshop-title i {
  width: 4px;
  height: 4px;
  background: #b3bd9b;
}
.workshop-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
  font-size: 11px;
}
.workshop-tools a {
  text-decoration: none;
}
.workshop-tools button {
  background: none;
  border: 1px solid #bcc9ae;
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 11px;
}
.workshop-main {
  max-width: 1580px;
  margin: auto;
  padding: 0 3% 35px;
}
.workshop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0 12px;
}
.workshop-heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.workshop-heading p {
  font-size: 12px;
  color: var(--ui-muted);
  margin-top: 6px;
}
.workshop-mode {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #e3e8d7;
  border: 1px solid #cbd3bb;
  border-radius: 5px;
  flex-shrink: 0;
}
.workshop-mode button {
  padding: 9px 14px;
  border: 0;
  background: none;
  color: #77836a;
  font-size: 11px;
  border-radius: 3px;
}
.workshop-mode button[aria-pressed='true'] {
  background: #fbfcf2;
  color: #314d3b;
  box-shadow: 0 1px 3px #253d2c15;
}
.workshop-note {
  color: #7f8975;
  font-size: 10px;
  margin: 0 0 22px;
}
.workshop-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #d4d9c7;
  padding: 22px 3%;
  font-size: 10px;
  color: #7a856e;
}
.workshop-footer > span:last-child {
  display: flex;
  gap: 20px;
}
.ui-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #b7c4a9;
  background: #fafbf1;
  color: var(--ui-green);
  font-weight: 600;
  font-size: 12px;
  border-radius: 4px;
  min-height: 40px;
  text-decoration: none;
  white-space: nowrap;
}
.ui-btn.primary {
  background: var(--ui-green);
  border-color: #223d2c;
  color: #fbf3d8;
  box-shadow: 0 2px 0 #172f2280;
}
.ui-btn.gold {
  background: #e4c67c;
  border-color: #bf9d56;
  color: #443b25;
  box-shadow: 0 2px 0 #a98c4e;
}
.ui-btn.small {
  font-size: 10px;
  padding: 7px 11px;
  min-height: 31px;
}
.ui-btn.danger {
  background: #f6e4d6;
  color: #884b3e;
  border-color: #cbb09a;
}
.ui-icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.ui-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid #c6cfb6;
  border-radius: 4px;
  color: inherit;
  font-size: 22px;
}
.ui-inline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ui-muted {
  color: var(--ui-muted);
  font-size: 12px;
}
.ui-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.ui-section-title h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.ui-section-title p {
  color: var(--ui-muted);
  font-size: 11px;
  margin-top: 4px;
}
.ui-link-button {
  background: none;
  border: 0;
  color: #637c50;
  font-size: 11px;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #e0e8d0;
  color: #5a714c;
  font-size: 10px;
  border-radius: 3px;
}
.ui-pill.gold {
  background: #f0e4bd;
  color: #7b6433;
}
.ui-pill.diamond {
  background: #e0e8ee;
  color: #517793;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border: 1px solid #c7d0b7;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #e4e9d7;
  font-size: 10px;
  color: #6c7d5c;
}
.preview-toolbar > span:first-child {
  margin-right: auto;
}
.preview-toolbar strong {
  color: #3e5a3c;
  font-weight: 700;
}
.preview-toolbar .ui-btn {
  min-height: 27px;
  padding: 5px 10px;
  font-size: 10px;
}
.app-preview {
  border: 1px solid #bcc6ae;
  background: var(--ui-cream);
  box-shadow: 0 4px 15px #324b3010;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px;
  background: #fcfbf0;
  border-bottom: 1px solid var(--ui-line);
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.app-brand > img {
  width: 30px;
  height: 43px;
  transform: rotate(-8deg);
}
.app-brand strong {
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -1.7px;
  line-height: 1;
}
.app-brand strong span {
  font-weight: 500;
}
.app-brand small {
  display: block;
  font-size: 9px;
  color: #7c866d;
  margin-top: 6px;
}
.app-header-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.app-header-tools .ui-btn {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 12px;
}
.header-v1 {
  background: #34533f;
  color: #f6edcf;
  border-bottom: 5px solid #ba9664;
}
.header-v1 .app-brand small {
  color: #c0cdab;
}
.header-v1 .ui-icon-btn {
  border-color: #8c9c73;
}
.header-v1 .balances small {
  color: #bdc9ac;
}
.header-v1 .balances > div {
  border-color: #66805b;
}
.header-v1 .ui-btn {
  background: #e9d9a7;
  border-color: #e9d9a7;
}
.header-v2 {
  align-items: flex-end;
  padding: 21px 30px 16px;
  background: repeating-linear-gradient(0deg, transparent 0 23px, #dce1cd 23px 24px), #f9f7e9;
}
.header-v2 .app-brand {
  border-bottom: 3px solid #789266;
  padding-bottom: 8px;
}
.header-v2 .app-brand img {
  display: none;
}
.balances {
  display: flex;
  gap: 21px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.balances > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.balances > div:last-child {
  border-left: 1px solid #d1d8c0;
  padding-left: 20px;
}
.balances strong {
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1;
}
.balances small {
  display: block;
  color: #7b866d;
  font-size: 9px;
  margin-top: 5px;
}
.balances .gold-symbol {
  color: #bd9543;
}
.balances .diamond-symbol {
  color: #7094af;
}
.wallet-v1 {
  gap: 0;
  border-block: 1px solid #ced6bd;
  padding: 10px 0;
}
.wallet-v1 > div {
  padding: 0 15px;
}
.wallet-v1 > div + div {
  border-left: 1px solid #ced6bd;
}
.wallet-v1 strong {
  font-size: 18px;
}
.wallet-v2 {
  gap: 7px;
}
.wallet-v2 > div {
  background: #e9eddb;
  padding: 9px 12px;
  border: 1px solid #d2dbc0;
  border-radius: 5px;
}
.wallet-v2 > div:last-child {
  padding-left: 12px;
}
.wallet-v2 strong {
  font-size: 17px;
}
.app-nav {
  display: flex;
  gap: 9px;
  align-items: stretch;
  background: #edf0e2;
  border-bottom: 1px solid #cfd7bf;
  padding: 0 30px;
}
.app-nav > button {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #7b876d;
  font-size: 12px;
  white-space: nowrap;
}
.app-nav > button[aria-current='page'] {
  color: #355336;
  border-color: #607f4a;
  font-weight: 750;
}
.app-nav .nav-count {
  font-size: 9px;
  padding: 2px 5px;
  background: #d9e1c8;
  border-radius: 2px;
}
.app-nav .nav-help {
  margin-left: auto;
  align-self: center;
  color: #8b947b;
  font-size: 10px;
}
.nav-v1 {
  background: #f8f6e9;
  padding-top: 8px;
  gap: 5px;
}
.nav-v1 > button {
  min-height: 42px;
  border: 1px solid #cbd2bc;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #e9ecd9;
  padding: 0 21px;
}
.nav-v1 > button[aria-current='page'] {
  background: #34533f;
  color: #fff1cc;
  border-color: #34533f;
}
.nav-v2 {
  background: #fffdf1;
  gap: 27px;
}
.nav-v2 > button {
  padding: 0 0 2px;
  min-height: 48px;
}
.nav-v2 .ui-icon {
  display: none;
}
.app-body {
  padding: 27px 30px 32px;
}
.shop-subnav {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 22px;
}
.shop-subnav > button {
  padding: 7px 12px;
  background: none;
  border: 1px solid transparent;
  font-size: 11px;
  color: #7d886d;
  border-radius: 4px;
}
.shop-subnav > button[aria-pressed='true'] {
  background: #e5ebd6;
  color: #4a673d;
  border-color: #c6d2b5;
}
.shop-subnav > span {
  margin-left: auto;
  font-size: 10px;
  color: #89937c;
}
.shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 277px;
  background: #eeeddb;
  border: 1px solid #d4d5bc;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 35px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-copy .hero-greeting {
  font-size: 11px;
  color: #7b876b;
  margin-bottom: 11px;
}
.hero-copy h2 {
  font-size: clamp(27px, 3.1vw, 43px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.4px;
  max-width: 12ch;
}
.hero-copy > p:not(.hero-greeting) {
  max-width: 35ch;
  color: #7d876d;
  font-size: 11px;
  line-height: 1.7;
  margin: 13px 0 18px;
}
.hero-copy .ui-btn {
  font-size: 11px;
  padding: 10px 17px;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 26px, #b9c9a31c 26px 27px), #35543f;
  min-height: 270px;
  border-left: 7px solid #b8925f;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 20px 22px;
  border: 1px solid #90a27564;
}
.hero-art::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 7px;
  background: #ac8254;
  box-shadow: 0 6px 0 #263b2b;
}
.hero-art .collectible {
  position: relative;
  z-index: 1;
  zoom: 1.1;
  box-shadow: 5px 8px 0 #1b312735;
  transform: rotate(-9deg) translateX(12px);
}
.hero-art .collectible:nth-child(2) {
  z-index: 3;
  transform: translateY(-10px);
}
.hero-art .collectible:nth-child(3) {
  transform: rotate(9deg) translateX(-12px);
}
.hero-art > small {
  position: absolute;
  bottom: 6px;
  color: #d7d8b5;
  font-size: 8px;
  z-index: 4;
}
.hero-v1 {
  background: #f4edda;
  grid-template-columns: 1.3fr 0.7fr;
}
.hero-v1 .hero-art {
  background: #b49062;
  border-color: #8c6c48;
}
.hero-v1 .hero-copy {
  padding-left: 90px;
}
.hero-guide {
  position: absolute;
  left: 24px;
  bottom: 40px;
  width: 47px;
  height: 70px;
  object-fit: contain;
}
.hero-v1 .hero-art::after {
  background: #805c3c;
}
.hero-v2 {
  background: #e5ead8;
  border-style: dashed;
}
.hero-v2 .hero-art {
  background: repeating-linear-gradient(90deg, #a58156 0 45px, #ad8c61 45px 90px);
  border-color: #c7ac7f;
}
.hero-v2 .hero-art::before {
  border: 2px solid #6c805157;
  background: #50634870;
  transform: rotate(-3deg);
}
.hero-v2 .hero-art::after {
  display: none;
}
.hero-v2 .hero-copy h2 {
  font-size: 37px;
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 24px;
  margin-top: 25px;
}
.shop-cabinet {
  position: relative;
  padding: 17px 22px 12px;
  border: 6px solid #ab8558;
  background: #34513f;
  box-shadow: inset 0 0 0 1px #d1b580;
}
.cabinet-heading {
  display: flex;
  justify-content: space-between;
  color: #dbd8b7;
  font-size: 10px;
  gap: 15px;
  margin-bottom: 16px;
}
.cabinet-heading span:last-child {
  color: #aebf97;
}
.display-card-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: end;
  overflow-x: auto;
  padding: 2px 6px 13px;
}
.lab-case {
  flex-shrink: 0;
  padding: 9px 9px 6px;
  position: relative;
  background: #203e35;
  border: 2px solid #91a6a4;
  box-shadow:
    inset 0 0 0 1px #d1dddd,
    2px 3px 0 #1b3128;
  border-radius: 3px;
}
.lab-case::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #718da0;
  pointer-events: none;
}
.lab-case .collectible {
  display: block;
}
.lab-case > small {
  display: block;
  text-align: center;
  font-size: 8px;
  color: #c6d2b1;
  margin-top: 7px;
}
.display-v1 {
  background: #d2b07c;
  border-color: #987248;
}
.display-v1 .lab-case {
  background: #52724d;
  border-color: #6b814f;
  box-shadow: 1px 4px 0 #765936;
}
.display-v1 .cabinet-heading {
  color: #604e35;
}
.display-v1 .cabinet-heading span:last-child {
  color: #796b4c;
}
.display-v2 {
  border-width: 0 0 7px;
  background: #42614b;
  box-shadow: none;
  padding-inline: 14px;
}
.display-v2 .display-card-row {
  border-bottom: 7px solid #af8958;
}
.display-v2 .lab-case {
  border: 0;
  background: none;
  box-shadow: none;
  padding-inline: 3px;
}
.display-v2 .lab-case::before {
  display: none;
}
.shop-income {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0 0;
  font-size: 11px;
  color: #7d886d;
}
.shop-income strong {
  color: #4e6b3d;
}
.ui-order {
  padding: 17px;
  background: #f1eddc;
  border: 1px solid #d8d5bc;
}
.ui-order h3 {
  font-size: 15px;
}
.ui-order p {
  font-size: 10px;
  color: #7a836c;
  line-height: 1.6;
  margin: 9px 0 12px;
}
.ui-order .ui-btn {
  width: 100%;
}
.ui-order .customer-avatar {
  width: 35px;
  height: 35px;
  object-fit: contain;
  background: #e4e8d5;
}
.customer-v1 {
  background: #e7eddc;
  border-left: 4px solid #8eaa73;
}
.customer-v2 {
  background: none;
  border-width: 0 0 1px;
  padding-inline: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.customer-v2 .ui-btn {
  width: auto;
}
.customer-v2 p {
  margin: 5px 0;
}
.next-match {
  margin-top: 15px;
  border-top: 1px dashed #ccd2bc;
  padding-top: 15px;
}
.next-match strong {
  font-size: 12px;
}
.next-match p {
  color: #7b876d;
  font-size: 10px;
  margin: 6px 0 10px;
}
.home-pack-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
  padding: 20px 25px;
  background: #e8edda;
  border: 1px solid #ced6bd;
}
.home-pack-strip .pack-art {
  width: 57px;
  filter: drop-shadow(3px 4px 0 #b6c09d);
}
.home-pack-strip h3 {
  font-size: 17px;
}
.home-pack-strip p {
  font-size: 11px;
  color: #78866a;
  margin-top: 4px;
}
.home-pack-strip > .ui-btn {
  margin-left: auto;
}
.pack-art {
  display: block;
  width: 100px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(4px 7px 0 #3b4d3020);
}
.pack-art.is-stack {
  filter: drop-shadow(6px 5px 0 #4d634045) drop-shadow(3px 3px 0 #e8d6a0);
}
.page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-intro h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.page-intro p {
  font-size: 12px;
  color: #78856c;
  margin-top: 8px;
  max-width: 55ch;
}
.purchase-quantity {
  display: inline-flex;
  background: #e7ecda;
  padding: 3px;
  border: 1px solid #cbd5bb;
  border-radius: 5px;
  align-items: center;
  gap: 3px;
}
.purchase-quantity > button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: none;
  border: 0;
  font-size: 11px;
  color: #7f8a72;
  border-radius: 3px;
}
.purchase-quantity > button[aria-pressed='true'] {
  background: #fffdf2;
  color: #3c5c3b;
  box-shadow: 0 1px 2px #263e2420;
}
.purchase-quantity small {
  font-size: 9px;
  color: #66814e;
  background: #dce7c9;
  padding: 2px 5px;
  border-radius: 2px;
}
.pack-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
}
.pack-product-new {
  --pack-color: #718b66;
  --pack-light: #c4d1a7;
  --pack-dark: #314735;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #cbd2bc;
  background: #f5f5e8;
}
.pack-product-new .pack-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 215px;
  padding: 28px 10px 23px;
  background:
    radial-gradient(ellipse at 50% 90%, #566f4024, transparent 62%),
    linear-gradient(#f7f6e9, #e8ecd9);
  border-bottom: 1px solid #d4dbc6;
  overflow: hidden;
}
.pack-product-new .pack-stage::after {
  content: '';
  position: absolute;
  bottom: 20px;
  width: 77%;
  height: 1px;
  background: var(--pack-color);
  opacity: 0.25;
}
.pack-product-new .pack-stage .pack-art {
  width: 88px;
  transform: rotate(-4deg);
}
.pack-product-new .pack-stage > span {
  position: absolute;
  top: 10px;
  left: 11px;
  color: #8a927b;
  font-size: 8px;
}
.pack-product-new .pack-content {
  padding: 15px 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pack-content h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.pack-content > p {
  min-height: 35px;
  font-size: 10px;
  line-height: 1.5;
  color: #7e886f;
  margin: 7px 0 11px;
}
.pack-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #89927d;
  margin-bottom: 14px;
}
.pack-meta > span + span {
  border-left: 1px solid #ced6bf;
  padding-left: 10px;
}
.pack-price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 9px;
}
.pack-price .ui-icon {
  width: 17px;
  height: 17px;
  color: #bd9646;
}
.pack-price.diamonds .ui-icon {
  color: #7896b1;
}
.pack-price > small {
  color: #849074;
  font-size: 9px;
  font-weight: 400;
}
.pack-price del {
  font-size: 10px;
  font-weight: 400;
  color: #91997e;
}
.pack-content > .ui-btn {
  width: 100%;
  padding: 9px 7px;
  font-size: 10px;
  min-height: 36px;
  margin-top: auto;
}
.pack-content .pack-detail {
  background: none;
  border: 0;
  font-size: 9px;
  color: #7e8e6c;
  padding: 10px 0 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pack-shop-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-size: 10px;
  color: #7f8c71;
}
.pack-shop-note > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.purchase-v1 .pack-content > .ui-btn {
  min-height: 30px;
  margin-top: 5px;
}
.purchase-v1 .pack-price {
  margin-bottom: 2px;
}
.purchase-v1 .secondary-buy {
  background: #eceddc;
  color: #637354;
  border-color: #cbd1b8;
  box-shadow: none;
}
.purchase-v2 {
  border-style: dashed;
  background: #f6efdc;
}
.purchase-v2 .pack-stage {
  background: #ece4cf;
}
.purchase-v2 .pack-content {
  border-top: 2px dotted #d0c4a3;
}
.purchase-v2 .pack-price {
  justify-content: space-between;
}
.collection-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 13px 15px;
  background: #ebefdf;
  border: 1px solid #ced6bf;
  margin-bottom: 19px;
}
.collection-filter label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #7e8d6c;
}
.collection-filter select {
  background: #fbfcf2;
  border: 1px solid #c9d4b9;
  padding: 7px 10px;
  color: #4e6843;
  border-radius: 3px;
  font-size: 10px;
  max-width: 160px;
}
.collection-filter .ui-btn {
  margin-left: auto;
}
.filter-v1 {
  border: 0;
  background: none;
  padding: 0;
}
.filter-chip {
  padding: 7px 13px;
  border: 1px solid #cad5bc;
  border-radius: 20px;
  font-size: 10px;
  background: #f5f7eb;
  color: #788969;
}
.filter-chip[aria-pressed='true'] {
  background: #3f603f;
  border-color: #3f603f;
  color: #faf2d2;
}
.filter-v2 {
  background: none;
  border-block: 1px solid #d3d9c4;
  border-inline: 0;
  padding-inline: 0;
}
.collection-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 14px;
}
.collection-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 18px 12px 12px;
  background: #edf0e0;
  border: 1px solid #d1d9c1;
}
.collection-tile .collectible {
  display: block;
}
.collection-tile .tile-caption {
  margin-top: 13px;
  text-align: center;
  width: 100%;
}
.tile-caption strong {
  display: block;
  font-size: 11px;
}
.tile-caption small {
  display: block;
  color: #7f8c71;
  font-size: 9px;
  margin-top: 5px;
}
.tile-caption .ui-pill {
  margin-top: 8px;
  font-size: 8px;
}
.tile-check {
  position: absolute;
  top: 8px;
  left: 8px;
  accent-color: #4e6a3f;
  width: 13px;
  height: 13px;
}
.collection-v1 {
  flex-direction: row;
  gap: 16px;
  align-items: center;
  padding: 12px;
  width: 100%;
}
.collection-v1 .collectible {
  zoom: 0.7;
}
.collection-v1 .tile-caption {
  text-align: left;
  margin: 0;
}
.collection-grid-new:has(.collection-v1) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.collection-v2 {
  background: #f5eedb;
  border: 1px solid #d8ceb0;
  border-bottom: 4px solid #c2ac74;
}
.collection-v2 .tile-caption {
  border-top: 1px dashed #c7c3a5;
  padding-top: 10px;
}
.lineup-board {
  padding: 25px 15px 20px;
  border: 5px solid #b28a57;
  position: relative;
  background: #365940;
  color: #eee6c6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.lineup-board::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid #c5c79955;
  border-radius: 0 0 100px 100px;
  pointer-events: none;
}
.lineup-row-new {
  display: flex;
  gap: 25px;
  position: relative;
  justify-content: center;
  width: 100%;
}
.lineup-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.lineup-player > small {
  font-size: 8px;
  color: #b6c6a3;
}
.lineup-player > .ui-btn {
  font-size: 8px;
  padding: 4px 8px;
  min-height: 24px;
  background: #e3e9d4;
  color: #4b643b;
  border: 0;
}
.lineup-v1 {
  background: #a9885b;
  border-color: #805c36;
}
.lineup-v1::before {
  border-radius: 0;
  background: repeating-linear-gradient(0deg, transparent 0 150px, #6e593b 150px 157px);
  border: 0;
}
.lineup-v1 .lineup-player > small {
  color: #efe0b8;
}
.lineup-v2 {
  background: #ebefde;
  color: #355235;
  border: 1px solid #c2cfac;
}
.lineup-v2::before {
  border-radius: 0;
  border-style: dashed;
}
.lineup-v2 .lineup-player > small {
  color: #7c9069;
}
.campaign-road {
  padding: 20px 23px;
  background: #e9eedc;
  border: 1px solid #d1dac0;
}
.campaign-road h3 {
  font-size: 15px;
  margin-bottom: 15px;
}
.campaign-nodes {
  display: flex;
  align-items: center;
  gap: 8px;
}
.campaign-node {
  flex: 1;
  position: relative;
  border: 1px solid #c5d1b3;
  background: #f6f8ec;
  color: #8b987b;
  padding: 12px 4px;
  font-size: 10px;
  text-align: center;
  min-width: 0;
}
.campaign-node.done {
  background: #d5e3bd;
  color: #607d47;
}
.campaign-node.next {
  background: #3e603d;
  color: #fff5d0;
  border-color: #3e603d;
}
.campaign-node > small {
  display: block;
  font-size: 8px;
  margin-top: 5px;
}
.campaign-v1 {
  background: #f7f0df;
  border-style: dashed;
}
.campaign-v1 .campaign-node {
  border-bottom: 3px solid #bccda3;
}
.campaign-v2 {
  background: #2d4936;
  color: #eee5c3;
}
.campaign-v2 .campaign-node {
  background: #486843;
  color: #c2d1aa;
  border-color: #7a9063;
}
.campaign-v2 .campaign-node.next {
  background: #e8cd87;
  color: #4c4a2a;
}
.match-preview-card {
  margin-top: 15px;
  padding: 20px;
  border: 1px solid #d4d7c0;
  background: #f6f1dd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.match-preview-card h3 {
  font-size: 15px;
}
.match-preview-card p {
  margin-top: 7px;
  font-size: 10px;
  color: #7b876b;
}
.match-preview-card .match-strength {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: #8c957b;
}
.match-strength strong {
  font-size: 27px;
  color: #3d5b37;
}
.upgrade-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.upgrade-preview {
  padding: 25px;
  background: #e9eddb;
  border: 1px solid #cbd5bc;
}
.upgrade-preview > img {
  float: right;
  width: 62px;
  height: 75px;
  object-fit: contain;
}
.upgrade-preview h3 {
  font-size: 19px;
}
.upgrade-preview p {
  font-size: 11px;
  color: #7c896d;
  line-height: 1.7;
  margin: 12px 0 17px;
}
.upgrade-pips {
  display: flex;
  gap: 6px;
  margin: 18px 0;
}
.upgrade-pips i {
  width: 35px;
  height: 7px;
  background: #d4dfbf;
}
.upgrade-pips i:first-child {
  background: #7b9960;
}
.notice {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  background: #f5e8bc;
  border: 1px solid #ddc88f;
}
.notice strong {
  font-size: 12px;
}
.notice p {
  font-size: 10px;
  color: #8a7a51;
  margin-top: 5px;
}
.notice .ui-icon {
  color: #b89545;
}
.notice-v1 {
  background: #f8f3e4;
  border-style: dashed;
  border-left: 5px solid #b99e57;
}
.notice-v2 {
  background: #e9f0dd;
  border-color: #cbd8b7;
  padding: 12px 15px;
}
.notice-v2 .ui-icon {
  color: #7c975e;
}
.empty-preview {
  text-align: center;
  padding: 25px;
  border: 1px dashed #c4cfb2;
  background: #f1f4e7;
}
.empty-preview .ui-icon {
  color: #91a277;
}
.empty-preview h3 {
  margin: 12px 0 7px;
  font-size: 16px;
}
.empty-preview p {
  color: #8b967b;
  font-size: 11px;
  margin-bottom: 15px;
}
.library-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.library-index {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 18px 0;
  border-top: 2px solid #698452;
}
.library-index > strong {
  font-size: 12px;
  margin-bottom: 13px;
}
.library-index > a {
  padding: 7px 0;
  text-decoration: none;
  font-size: 10px;
  color: #7c8c6c;
}
.library-index > a:hover {
  color: #2f5331;
}
.library-index small {
  color: #a0aa90;
  display: block;
  font-size: 9px;
  padding-top: 15px;
  line-height: 1.7;
}
.library-section {
  scroll-margin-top: 22px;
  margin-bottom: 38px;
}
.family-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.family-heading h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.family-heading p {
  font-size: 11px;
  line-height: 1.6;
  color: #829071;
  margin-top: 6px;
  max-width: 70ch;
}
.family-heading > .ui-pill {
  flex-shrink: 0;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.variant {
  min-width: 0;
  border: 1px solid #d0d8bf;
  background: #fafbf2;
}
.variant.is-chosen {
  border-color: #72905c;
  outline: 1px solid #72905c;
  outline-offset: 2px;
}
.sample-canvas {
  container-type: inline-size;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ecefdf;
  padding: 14px;
}
.sample-canvas > * {
  min-width: 0;
}
.variant-footer {
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #d5dcc6;
}
.variant-footer strong {
  display: block;
  font-size: 11px;
}
.variant-footer small {
  display: block;
  font-size: 9px;
  color: #8c997c;
  margin-top: 4px;
}
.variant-footer button {
  white-space: nowrap;
}
.variant-footer .ui-btn {
  padding: 6px 9px;
  font-size: 9px;
  min-height: 29px;
}
.sample-canvas .app-header {
  flex-wrap: wrap;
  padding: 15px;
  gap: 15px;
}
.sample-canvas .app-brand strong {
  font-size: 24px;
}
.sample-canvas .app-brand small {
  font-size: 8px;
}
.sample-canvas .app-header-tools {
  margin-left: auto;
}
.sample-canvas .app-header > .balances {
  order: 3;
  width: 100%;
  justify-content: space-between;
}
.sample-canvas .app-header .ui-btn {
  display: none;
}
.sample-canvas .balances {
  gap: 12px;
  justify-content: center;
}
.sample-canvas .balances > div:last-child {
  padding-left: 10px;
}
.sample-canvas .balances strong {
  font-size: 16px;
}
.sample-canvas .balances small {
  font-size: 8px;
}
.sample-canvas .wallet-v2 > div {
  padding: 8px;
}
.sample-canvas .wallet-v2 > div:last-child {
  padding-left: 8px;
}
.sample-canvas .balances .ui-icon {
  width: 17px;
  height: 17px;
}
.sample-canvas .app-nav {
  flex-wrap: wrap;
  padding: 0 8px;
  gap: 4px;
}
.sample-canvas .app-nav > button {
  padding: 0 8px;
  min-height: 39px;
  font-size: 9px;
  gap: 5px;
}
.sample-canvas .app-nav .ui-icon {
  width: 14px;
  height: 14px;
}
.sample-canvas .app-nav .nav-help {
  display: none;
}
.sample-canvas .nav-v2 {
  gap: 12px;
}
.sample-canvas .shop-hero {
  grid-template-columns: 1fr;
}
.sample-canvas .hero-copy {
  padding: 20px;
}
.sample-canvas .hero-copy h2 {
  font-size: 26px;
  max-width: 15ch;
}
.sample-canvas .hero-art {
  min-height: 170px;
  border-left: 0;
  border-top: 5px solid #ac8856;
}
.sample-canvas .hero-art .collectible {
  zoom: 0.8;
}
.sample-canvas .hero-v1 .hero-copy {
  padding-left: 75px;
}
.sample-canvas .hero-guide {
  width: 35px;
  height: 52px;
  left: 20px;
  bottom: 35px;
}
.sample-canvas .hero-copy > p:not(.hero-greeting) {
  font-size: 10px;
}
.sample-canvas .hero-copy .ui-btn {
  padding: 7px 10px;
  min-height: 30px;
  font-size: 9px;
}
.pack-family {
  margin-bottom: 24px;
}
.pack-family-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 11px;
  gap: 15px;
}
.pack-family-heading h3 {
  font-size: 17px;
}
.pack-family-heading span {
  color: #8a957b;
  font-size: 11px;
}
.pack-sample {
  padding: 28px 15px 20px;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  background: radial-gradient(ellipse at 50% 80%, #c4d0ab66, transparent 65%), #edf0df;
}
.pack-sample .pack-art {
  width: 110px;
}
.pack-sample .pack-sample-copy {
  max-width: 90px;
}
.pack-sample-copy strong {
  font-size: 12px;
  display: block;
}
.pack-sample-copy small {
  font-size: 9px;
  color: #8a967b;
  display: block;
  margin-top: 6px;
  line-height: 1.6;
}
.sample-canvas .pack-product-new {
  max-width: 240px;
  margin: auto;
  width: 100%;
}
.sample-canvas .pack-product-new .pack-stage {
  min-height: 155px;
}
.sample-canvas .pack-product-new .pack-stage .pack-art {
  width: 70px;
}
.sample-canvas .pack-content > p {
  min-height: 0;
}
.sample-canvas .pack-content .pack-meta {
  margin-bottom: 10px;
}
.sample-canvas .shop-cabinet {
  padding: 12px 9px 7px;
}
.sample-canvas .display-card-row {
  gap: 7px;
}
.sample-canvas .lab-case {
  padding: 6px 5px;
}
.sample-canvas .lab-case .collectible {
  zoom: 0.72;
}
.sample-canvas .cabinet-heading {
  font-size: 8px;
  gap: 5px;
}
.sample-canvas .collection-tile {
  max-width: 170px;
  margin: auto;
  width: 100%;
}
.sample-canvas .collection-v1 {
  max-width: 100%;
}
.sample-canvas .collection-filter {
  margin: 0;
  gap: 6px;
  padding: 8px;
}
.sample-canvas .collection-filter label {
  flex: 1 0 40%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.sample-canvas .collection-filter select {
  width: 100%;
  max-width: none;
  font-size: 9px;
}
.sample-canvas .filter-v1 label {
  display: none;
}
.sample-canvas .filter-chip {
  padding: 5px 9px;
  font-size: 9px;
}
.sample-canvas .lineup-board {
  padding: 18px 7px;
  gap: 15px;
  border-width: 3px;
}
.sample-canvas .lineup-row-new {
  gap: 9px;
}
.sample-canvas .lineup-player .collectible {
  zoom: 0.63;
}
.sample-canvas .lineup-player > small {
  font-size: 7px;
}
.sample-canvas .lineup-player > .ui-btn {
  font-size: 7px;
  min-height: 20px;
  padding: 3px 6px;
}
.sample-canvas .campaign-road {
  padding: 14px 10px;
}
.sample-canvas .campaign-road h3 {
  font-size: 12px;
}
.sample-canvas .campaign-nodes {
  gap: 4px;
}
.sample-canvas .campaign-node {
  font-size: 8px;
  padding: 9px 2px;
}
.sample-canvas .campaign-node small {
  font-size: 7px;
}
.sample-canvas .ui-order {
  padding: 13px;
}
.sample-canvas .ui-order h3 {
  font-size: 13px;
}
.sample-canvas .customer-v2 {
  flex-wrap: wrap;
}
.sample-canvas .notice {
  padding: 12px;
  gap: 8px;
  flex-wrap: wrap;
}
.sample-canvas .notice strong {
  font-size: 11px;
}
.sample-canvas .notice .ui-icon {
  width: 18px;
  height: 18px;
}
.sample-canvas .notice p {
  font-size: 9px;
}
.sample-canvas .notice .ui-btn {
  font-size: 9px;
  min-height: 28px;
  padding: 6px 9px;
}
.detail-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  padding: 18px 10px;
  background: #e2e9d2;
}
.detail-sample .collectible {
  flex-shrink: 0;
}
.detail-sample dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 12px;
  font-size: 9px;
  margin: 0;
}
.detail-sample dt {
  color: #81906d;
}
.detail-sample dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.detail-v1 {
  background: #f4ead2;
  border: 1px dashed #d0c09d;
}
.detail-v2 {
  background: #f7f5e9;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #809767;
}
.detail-v2 dl {
  width: 100%;
}
.opening-sample {
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  background: #e6ead8;
}
.opening-sample .pack-art {
  width: 75px;
}
.opening-sample .ui-btn {
  min-height: 29px;
  font-size: 9px;
}
.opening-sample.opening-v1 {
  background: repeating-linear-gradient(90deg, #b79361 0 40px, #bb9d6e 40px 80px);
}
.opening-sample.opening-v2 {
  background: radial-gradient(ellipse at center, #667148, #263d31 73%);
}
.opening-sample.opening-v2 .ui-btn {
  background: #e9d39d;
}
.feedback-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.feedback-state {
  padding: 18px;
  border: 1px solid #d1d9c0;
  background: #fafbf2;
}
.feedback-state h3 {
  font-size: 12px;
}
.feedback-state p {
  font-size: 10px;
  line-height: 1.7;
  color: #8b967d;
  margin: 7px 0 12px;
}
.feedback-state .ui-btn {
  font-size: 9px;
  min-height: 29px;
  padding: 6px 10px;
}
.feedback-state.error {
  border-left: 3px solid #bc8e70;
}
.feedback-state.saved {
  border-left: 3px solid #92a66c;
}
.ui-lab dialog {
  max-width: 940px;
  width: calc(100% - 30px);
  max-height: 92dvh;
  overflow: auto;
  background: #faf8eb;
  border: 1px solid #97aa82;
  border-radius: 7px;
  padding: 23px;
  box-shadow: 0 22px 90px #0d261d55;
  color: var(--ui-ink);
}
.ui-lab dialog::backdrop {
  background: #182e256e;
  backdrop-filter: blur(3px);
}
.ui-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 23px;
}
.ui-dialog-head h2 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.ui-dialog-head .ui-icon-btn {
  flex-shrink: 0;
}
.choice-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
}
.choice-editor label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #7d8c6b;
}
.choice-editor select {
  border: 1px solid #c8d4b9;
  border-radius: 3px;
  background: #f4f7e9;
  color: #405d36;
  padding: 10px;
  font-size: 11px;
}
.choice-editor .pack-choices-title {
  grid-column: 1/-1;
  font-size: 14px;
  color: #4e6a3c;
  margin-top: 15px;
}
.confirm-order {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.confirm-order-art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
  background: #e6ecd7;
  min-height: 240px;
}
.confirm-order-art .pack-art {
  width: 112px;
}
.confirm-order h3 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.confirm-order p {
  color: #7b896a;
  font-size: 12px;
  line-height: 1.7;
  margin: 9px 0 18px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #d4dcc5;
  font-size: 12px;
}
.order-line small {
  font-size: 10px;
  color: #8b977b;
}
.order-line.total {
  margin-bottom: 20px;
  font-size: 19px;
}
.order-line.discount {
  color: #64824a;
}
.order-line + .ui-btn {
  margin-top: 18px;
}
.lab-dialog-note {
  font-size: 10px;
  color: #909a80;
  line-height: 1.7;
  margin: 18px 0 0;
}
.opening-theater {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background: #e3e9d3;
  border: 1px solid #c4d1ad;
  padding: 30px;
  overflow: hidden;
}
.opening-theater > .pack-art {
  position: relative;
  z-index: 2;
  width: 130px;
}
.opening-theater .seal-strip {
  position: absolute;
  width: 114px;
  height: 10px;
  background: #c5d4aa;
  z-index: 3;
  left: calc(50% - 57px);
  top: 39px;
}
.opening-theater .opening-copy {
  font-size: 12px;
  color: #70865c;
  margin-top: 35px;
}
.opening-theater .pack-shadow {
  position: absolute;
  width: 180px;
  height: 28px;
  background: #4d65332a;
  filter: blur(10px);
  border-radius: 50%;
  bottom: 80px;
}
.opening-theater.opening-v1 {
  background: repeating-linear-gradient(90deg, #be9a68 0 60px, #c7a676 60px 120px);
  border-color: #a28050;
}
.opening-theater.opening-v1 .opening-copy {
  color: #6e5a38;
}
.opening-theater.opening-v2 {
  background: radial-gradient(ellipse at 50% 45%, #7d8051, #304b37 65%);
  border-color: #49653d;
}
.opening-theater.opening-v2 .opening-copy {
  color: #d6d8b3;
}
.opening-theater.is-opening > .pack-art {
  animation: tear-pack 1.3s ease-in-out both;
}
.opening-theater.is-opening .seal-strip {
  animation: tear-seal 1.3s ease-in-out both;
}
.opening-theater.is-opening.opening-v1 > .pack-art {
  animation: flip-pack 1.3s ease-in-out both;
}
.opening-theater.is-opening.opening-v2 > .pack-art {
  animation: spotlight-pack 1.6s ease-in-out both;
}
.opening-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 16px 0;
  font-size: 11px;
  color: #81906d;
}
.batch-progress {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.batch-progress > button {
  width: 27px;
  height: 27px;
  border: 1px solid #c9d4b7;
  border-radius: 3px;
  background: #edf1de;
  font-size: 10px;
  color: #83916f;
}
.batch-progress > button[aria-current='true'] {
  background: #3d5d3c;
  color: #fff1cd;
  border-color: #3d5d3c;
}
.batch-progress > button.is-done {
  border-color: #7f9b62;
}
.reveal-card-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 10px;
  background: #e8edda;
  border: 1px solid #cbd7b8;
}
.ui-card-back {
  width: 108px;
  height: 150px;
  background: repeating-linear-gradient(45deg, #304f3a 0 10px, #3c6044 10px 20px);
  border: 4px double #c4b578;
  color: #e8dbab;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  box-shadow: 3px 5px 0 #405b3325;
}
.ui-card-back strong {
  font-size: 20px;
  letter-spacing: -1px;
}
.ui-card-back small {
  font-size: 9px;
  color: #b7c69b;
}
.revealed-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: card-arrival 0.35s ease-out;
}
.revealed-unit > small {
  color: #7d8e68;
  font-size: 9px;
}
.reveal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 21px;
}
.reveal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 15px;
  max-height: 480px;
  overflow: auto;
  background: #e9eedc;
  padding: 22px;
}
.reveal-summary .revealed-unit .collectible {
  zoom: 0.8;
}
.summary-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.summary-heading strong {
  font-size: 17px;
}
.summary-heading span {
  color: #84956f;
  font-size: 11px;
}
.detail-dialog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
}
.detail-dialog-art {
  background: #e4ebd4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 30px;
}
.detail-dialog-art .collectible {
  zoom: 1.55;
}
.detail-dialog-layout h3 {
  font-size: 22px;
}
.detail-dialog-layout p {
  font-size: 11px;
  color: #7f8e6c;
  margin: 8px 0 18px;
}
.detail-dialog-layout dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
}
.detail-dialog-layout dt {
  color: #859171;
}
.detail-dialog-layout dd {
  margin: 0;
  font-weight: 700;
}
.detail-dialog-layout .ui-inline {
  margin-top: 23px;
}
.detail-dialog-layout.detail-v1 {
  padding: 20px;
}
.detail-dialog-layout.detail-v2 {
  display: flex;
  flex-direction: row-reverse;
  border-left: 5px solid #7b9561;
}
.ui-settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ui-settings label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #e9efdc;
  border: 1px solid #ced9bc;
  font-size: 12px;
}
.ui-settings small {
  display: block;
  font-size: 10px;
  color: #82916f;
  margin-top: 5px;
}
.ui-settings input {
  width: 18px;
  height: 18px;
  accent-color: #607b48;
}
#ui-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #2f4c37;
  color: #faf1d0;
  border: 1px solid #879c6b;
  border-radius: 5px;
  box-shadow: 0 5px 20px #223e2a25;
  padding: 13px 21px;
  font-size: 12px;
  max-width: calc(100% - 30px);
}
.ui-lab .collectible .prizm-frame::after,
.ui-lab .collectible .card-paper::after,
.ui-lab .collectible .card-sparkles::before,
.ui-lab .collectible .card-sparkles::after {
  animation: none;
}
.ui-lab .collectible:not(.is-playing) .card-sparkles {
  opacity: 0.18;
}
.ui-lab .card-rating {
  width: calc(32% * var(--rating-columns, 7) / 7);
}
.ui-lab .collectible.is-playing .card-paper::after {
  animation: gloss-pass 1s ease-in-out;
}
.ui-lab .collectible.is-playing .prizm-frame::after {
  animation: ribbon-pass 1s ease-in-out;
}
@keyframes tear-pack {
  0%,
  18% {
    transform: rotate(-3deg);
  }
  35% {
    transform: rotate(4deg) translateY(-10px);
  }
  65% {
    transform: translateY(7px) scale(1.06);
  }
  100% {
    transform: translateY(70px) scale(0.85);
    opacity: 0;
  }
}
@keyframes tear-seal {
  0%,
  25% {
    transform: none;
    opacity: 0;
  }
  26% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translate(160px, -65px) rotate(55deg);
    opacity: 0;
  }
}
@keyframes flip-pack {
  0% {
    transform: rotate(-6deg) translateY(0);
  }
  40% {
    transform: rotate(6deg) translateY(-35px);
  }
  100% {
    transform: rotateY(110deg) translateY(20px);
    opacity: 0;
  }
}
@keyframes spotlight-pack {
  0% {
    filter: brightness(0.8);
    transform: scale(0.85);
  }
  55% {
    filter: brightness(1.7) drop-shadow(0 0 22px #f2d78b);
    transform: scale(1.08);
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
@keyframes card-arrival {
  from {
    transform: translateY(12px) rotateY(70deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (max-width: 1250px) {
  .app-header {
    gap: 15px;
    padding: 20px 23px;
  }
  .balances {
    gap: 14px;
  }
  .balances > div:last-child {
    padding-left: 14px;
  }
  .app-header-tools > .ui-btn {
    display: none;
  }
  .home-columns {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }
  .hero-copy {
    padding: 28px;
  }
  .hero-art .collectible {
    zoom: 0.9;
  }
  .variant-grid {
    gap: 10px;
  }
  .library-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 22px;
  }
  .pack-sample {
    gap: 15px;
    padding: 24px 10px;
  }
  .pack-sample .pack-art {
    width: 95px;
  }
  .pack-sample-copy {
    display: none;
  }
  .pack-shop-grid {
    gap: 9px;
  }
  .pack-product-new .pack-stage .pack-art {
    width: 77px;
  }
  .pack-product-new .pack-stage {
    min-height: 190px;
  }
  .pack-content h3 {
    font-size: 16px;
  }
  .pack-content > p {
    font-size: 9px;
  }
  .sample-canvas {
    padding: 10px;
  }
  .sample-canvas .balances {
    gap: 7px;
  }
  .sample-canvas .balances strong {
    font-size: 14px;
  }
  .sample-canvas .balances .ui-icon {
    width: 14px;
  }
  .sample-canvas .balances > div:last-child {
    padding-left: 7px;
  }
  .sample-canvas .wallet-v2 > div {
    padding: 7px;
  }
}
@media (max-width: 1000px) {
  .workshop-title {
    font-size: 10px;
    gap: 6px;
    padding-left: 15px;
  }
  .workshop-heading h1 {
    font-size: 27px;
  }
  .app-header {
    flex-wrap: wrap;
  }
  .app-header > .balances {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid #d3dac4;
    padding-top: 15px;
  }
  .app-header-tools {
    margin-left: auto;
  }
  .app-header-tools > .ui-btn {
    display: flex;
  }
  .app-brand strong {
    font-size: 26px;
  }
  .app-body {
    padding: 23px;
  }
  .app-nav {
    padding-inline: 20px;
  }
  .home-columns {
    grid-template-columns: 1fr;
  }
  .home-columns > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .next-match {
    margin-top: 0;
    padding: 17px;
    border: 1px solid #d3dbc3;
    background: #edf1e2;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .hero-art .collectible {
    zoom: 0.75;
  }
  .pack-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .pack-product-new .pack-stage .pack-art {
    width: 92px;
  }
  .pack-content > p {
    font-size: 11px;
  }
  .pack-content h3 {
    font-size: 19px;
  }
  .pack-product-new .pack-stage {
    min-height: 205px;
  }
  .library-layout {
    grid-template-columns: 1fr;
  }
  .library-index {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 15px;
    padding: 15px 0;
  }
  .library-index > strong {
    width: 100%;
    margin-bottom: 5px;
  }
  .library-index > a {
    font-size: 10px;
    padding: 3px 0;
  }
  .library-index small {
    display: none;
  }
  .sample-canvas .app-header > .balances {
    border-top: 0;
    padding-top: 0;
  }
  .sample-canvas .hero-copy h2 {
    font-size: 25px;
  }
  .sample-canvas .hero-art .collectible {
    zoom: 0.7;
  }
  .sample-canvas .lineup-player .collectible {
    zoom: 0.53;
  }
  .sample-canvas .lineup-row-new {
    gap: 7px;
  }
  .sample-canvas .balances {
    gap: 8px;
  }
}
@media (max-width: 700px) {
  .workshop-bar {
    padding: 12px 5%;
    gap: 13px;
    flex-wrap: wrap;
  }
  .workshop-wordmark {
    font-size: 23px;
  }
  .workshop-title {
    font-size: 9px;
  }
  .workshop-tools {
    gap: 13px;
  }
  .workshop-tools > a {
    display: none;
  }
  .workshop-tools button {
    font-size: 9px;
    padding: 6px 9px;
  }
  .workshop-main {
    padding: 0 4% 24px;
  }
  .workshop-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding-top: 22px;
  }
  .workshop-heading h1 {
    font-size: 28px;
  }
  .workshop-heading p {
    font-size: 11px;
    line-height: 1.6;
  }
  .workshop-mode {
    width: 100%;
  }
  .workshop-mode button {
    flex: 1;
  }
  .workshop-note {
    font-size: 9px;
    line-height: 1.6;
  }
  .preview-toolbar {
    padding: 9px 12px;
    gap: 8px;
  }
  .preview-toolbar > span:first-child {
    font-size: 9px;
  }
  .preview-toolbar > span:nth-child(2) {
    display: none;
  }
  .app-header {
    padding: 18px;
    gap: 12px;
  }
  .app-brand > img {
    width: 24px;
    height: 35px;
  }
  .app-brand strong {
    font-size: 26px;
  }
  .app-brand small {
    font-size: 8px;
  }
  .app-header-tools > .ui-btn {
    display: none;
  }
  .app-header > .balances {
    justify-content: space-between;
    gap: 8px;
  }
  .balances strong {
    font-size: 18px;
  }
  .balances small {
    font-size: 8px;
  }
  .balances .ui-icon {
    width: 19px;
    height: 19px;
  }
  .balances > div:last-child {
    padding-left: 12px;
  }
  .app-header > .wallet-v2 {
    padding-top: 13px;
  }
  .wallet-v2 > div {
    padding: 8px;
  }
  .wallet-v2 > div:last-child {
    padding-left: 8px;
  }
  .app-nav {
    padding: 0 10px;
    gap: 0;
    overflow-x: auto;
  }
  .app-nav > button {
    padding: 0 11px;
    min-height: 47px;
    font-size: 10px;
    gap: 6px;
  }
  .app-nav .ui-icon {
    width: 16px;
    height: 16px;
  }
  .app-nav .nav-help {
    display: none;
  }
  .nav-v1 {
    padding-top: 7px;
  }
  .nav-v2 {
    gap: 20px;
    padding-inline: 18px;
  }
  .nav-v2 > button {
    padding: 0;
  }
  .app-body {
    padding: 18px 14px;
  }
  .shop-subnav {
    margin-bottom: 16px;
  }
  .shop-subnav > span {
    font-size: 8px;
  }
  .shop-subnav > button {
    padding: 6px 10px;
    font-size: 10px;
  }
  .shop-hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 25px 22px;
  }
  .hero-copy h2 {
    font-size: 36px;
    max-width: 13ch;
  }
  .hero-copy > p:not(.hero-greeting) {
    font-size: 11px;
    max-width: 35ch;
  }
  .hero-art {
    border-left: 0;
    border-top: 6px solid #b8925f;
    min-height: 225px;
  }
  .hero-art .collectible {
    zoom: 0.95;
  }
  .hero-v1 .hero-copy {
    padding-left: 77px;
  }
  .hero-guide {
    left: 19px;
    bottom: 45px;
    width: 40px;
  }
  .hero-v2 .hero-copy h2 {
    font-size: 34px;
  }
  .home-columns {
    margin-top: 23px;
    gap: 18px;
  }
  .home-columns > aside {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .ui-section-title h2 {
    font-size: 18px;
  }
  .ui-section-title p {
    font-size: 10px;
  }
  .shop-cabinet {
    padding: 13px 10px 8px;
    border-width: 4px;
  }
  .display-card-row {
    justify-content: flex-start;
    gap: 10px;
    padding-left: 5px;
  }
  .lab-case {
    padding: 7px;
  }
  .lab-case .collectible {
    zoom: 0.85;
  }
  .cabinet-heading {
    font-size: 9px;
  }
  .shop-income {
    font-size: 10px;
  }
  .home-pack-strip {
    padding: 17px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .home-pack-strip h3 {
    font-size: 15px;
  }
  .home-pack-strip p {
    font-size: 10px;
  }
  .home-pack-strip > .ui-btn {
    width: 100%;
  }
  .page-intro {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 21px;
  }
  .page-intro h2 {
    font-size: 28px;
  }
  .page-intro p {
    font-size: 11px;
  }
  .pack-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pack-product-new .pack-stage {
    min-height: 174px;
  }
  .pack-product-new .pack-stage .pack-art {
    width: 77px;
  }
  .pack-product-new .pack-content {
    padding: 13px 10px;
  }
  .pack-content h3 {
    font-size: 17px;
  }
  .pack-content > p {
    min-height: 45px;
    font-size: 10px;
  }
  .pack-content .pack-meta {
    gap: 7px;
    font-size: 8px;
  }
  .pack-meta > span + span {
    padding-left: 7px;
  }
  .pack-content > .ui-btn {
    font-size: 9px;
    padding-inline: 5px;
    gap: 5px;
  }
  .pack-content > .ui-btn .ui-icon {
    width: 13px;
    height: 13px;
  }
  .pack-price {
    font-size: 16px;
    flex-wrap: wrap;
  }
  .pack-price .ui-icon {
    width: 15px;
    height: 15px;
  }
  .pack-shop-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 9px;
  }
  .variant-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .sample-canvas {
    padding: 18px;
  }
  .sample-canvas .balances {
    gap: 15px;
  }
  .sample-canvas .balances strong {
    font-size: 18px;
  }
  .sample-canvas .balances .ui-icon {
    width: 21px;
    height: 21px;
  }
  .sample-canvas .lineup-player .collectible {
    zoom: 0.73;
  }
  .sample-canvas .lineup-row-new {
    gap: 15px;
  }
  .sample-canvas .hero-art .collectible {
    zoom: 0.85;
  }
  .pack-sample {
    min-height: 230px;
    gap: 30px;
  }
  .pack-sample-copy {
    display: block;
  }
  .pack-sample .pack-art {
    width: 110px;
  }
  .family-heading {
    align-items: flex-start;
  }
  .family-heading h2 {
    font-size: 21px;
  }
  .family-heading p {
    font-size: 11px;
  }
  .feedback-states {
    grid-template-columns: 1fr;
  }
  .collection-grid-new {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .collection-grid-new:has(.collection-v1) {
    grid-template-columns: 1fr;
  }
  .collection-filter {
    padding: 10px;
    gap: 7px;
  }
  .collection-filter label {
    flex: 1 0 40%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .collection-filter select {
    width: 100%;
    max-width: none;
  }
  .collection-filter .ui-btn {
    margin-left: 0;
  }
  .lineup-board {
    padding: 20px 8px;
  }
  .lineup-row-new {
    gap: 10px;
  }
  .lineup-player {
    flex: 0 0 80px;
  }
  .lineup-player .collectible {
    zoom: 0.9;
  }
  .lineup-player > small {
    font-size: 8px;
  }
  .match-preview-card {
    flex-wrap: wrap;
    padding: 15px;
  }
  .match-preview-card > .ui-btn {
    width: 100%;
  }
  .campaign-road {
    padding: 15px 10px;
  }
  .campaign-nodes {
    gap: 5px;
  }
  .campaign-node {
    font-size: 9px;
    padding: 10px 2px;
  }
  .upgrade-preview-grid {
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 13px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .notice strong {
    font-size: 11px;
  }
  .notice p {
    font-size: 9px;
  }
  .notice .ui-btn {
    font-size: 10px;
    min-height: 32px;
  }
  .ui-lab dialog {
    padding: 17px;
    width: calc(100% - 20px);
  }
  .ui-dialog-head h2 {
    font-size: 21px;
  }
  .confirm-order {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .confirm-order-art {
    min-height: 170px;
    padding: 17px;
  }
  .confirm-order-art .pack-art {
    width: 85px;
  }
  .confirm-order h3 {
    font-size: 23px;
  }
  .choice-editor {
    grid-template-columns: 1fr;
  }
  .opening-theater {
    min-height: 300px;
  }
  .reveal-card-row {
    gap: 11px;
    padding: 22px 12px;
  }
  .reveal-card-row .collectible {
    zoom: 0.8;
  }
  .ui-card-back {
    width: 86px;
    height: 120px;
  }
  .opening-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .revealed-unit > small {
    font-size: 8px;
  }
  .detail-dialog-layout,
  .detail-dialog-layout.detail-v2 {
    display: flex;
    flex-direction: column;
    gap: 23px;
  }
  .detail-dialog-art {
    padding: 25px;
  }
  .detail-dialog-art .collectible {
    zoom: 1.3;
  }
  .workshop-footer {
    flex-direction: column;
    padding-inline: 5%;
    font-size: 9px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui-lab *,
  .ui-lab *::before,
  .ui-lab *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.ui-lab.motion-off *,
.ui-lab.motion-off *::before,
.ui-lab.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
.app-header:has(> .wallet-v1) {
  flex-wrap: wrap;
}
.app-header > .wallet-v1 {
  order: 3;
  width: 100%;
  justify-content: flex-end;
  border-bottom: 0;
}
.app-header:has(> .wallet-v1) .app-header-tools {
  margin-left: auto;
}
.app-header.header-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.header-v2 > .app-brand {
  grid-row: 1;
  grid-column: 1;
}
.header-v2 > .app-header-tools {
  grid-row: 1;
  grid-column: 2;
}
.header-v2 > .balances {
  grid-row: 2;
  grid-column: 1/-1;
  justify-content: flex-start;
  margin-top: 10px;
  padding-top: 12px;
}
.sample-canvas .app-header > .wallet-v1 {
  justify-content: center;
}
.header-v1 .wallet-v2 {
  color: var(--ui-ink);
}
.header-v1 .wallet-v2 small {
  color: var(--ui-muted);
}
.ui-lab .skip-link {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  transform: none;
}
.ui-lab .skip-link:focus {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}
.ui-lab .app-nav > button:not([aria-current]) {
  color: #65715b;
}
.ui-lab .library-index > a,
.ui-lab .pack-content .pack-detail {
  color: #60744f;
}
.ui-lab .pack-content > p,
.ui-lab .pack-meta,
.ui-lab .collection-filter label,
.ui-lab .tile-caption small {
  color: #68785c;
}
@media (max-width: 700px) {
  .pack-price {
    min-height: 38px;
  }
  .pack-price > small {
    flex-basis: 100%;
    margin-left: 20px;
  }
}

#family-header .variant:nth-child(n + 4) {
  grid-column: 1/-1;
}
#family-header .variant:nth-child(n + 4) > .sample-canvas {
  padding: 22px;
}
.app-header.header-study {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.header-study .identity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-study .identity-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.identity-brand > div {
  min-width: 0;
}
.identity-brand strong {
  font-size: 37px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -1.9px;
  white-space: nowrap;
}
.identity-brand strong span {
  font-weight: 500;
}
.identity-brand small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 7px;
}
.identity-pack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 78px;
}
.identity-pack > img {
  display: block;
  image-rendering: pixelated;
  width: 41px;
  height: 60px;
  object-fit: contain;
  transform: rotate(-8deg);
  filter: drop-shadow(3px 4px 0 #263f3530);
}
.header-study .identity-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-study .identity-daily {
  font-size: 10px;
  padding: 8px 12px;
  min-height: 35px;
}
.sample-canvas .header-study .identity-daily {
  display: inline-flex;
}
.header-study .identity-wallet {
  min-width: 0;
}
.header-study .balances {
  width: auto;
  order: initial;
  border: 0;
  margin: 0;
  padding: 0;
  gap: 28px;
  flex-wrap: wrap;
}
.header-study .balances strong {
  font-size: 22px;
}
.header-study .balances small {
  font-size: 9px;
}
.header-study .balances > div {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.header-study .balances > div:last-child {
  border-left: 1px solid #c6cdbb;
  padding-left: 28px;
}
.app-header.header-v3 {
  background: #fcf9eb;
  border-block: 1px solid #bcc7b4;
  border-bottom: 4px double #899978;
}
.header-v3 .identity-top {
  padding: 22px 28px 15px;
}
.header-v3 .identity-brand {
  margin-inline: auto;
  gap: 12px;
}
.header-v3 .identity-brand > div {
  text-align: left;
}
.header-v3 .identity-pack {
  background: #e6e9d7;
  clip-path: polygon(
    18% 0,
    82% 0,
    82% 8%,
    100% 8%,
    100% 82%,
    82% 82%,
    82% 92%,
    50% 100%,
    18% 92%,
    18% 82%,
    0 82%,
    0 8%,
    18% 8%
  );
}
.header-v3 .identity-pack > img {
  transform: rotate(-5deg);
}
.header-v3 .identity-brand small {
  color: #6a795e;
  font-size: 9px;
}
.header-v3 .identity-daily {
  color: #526748;
  background: none;
  border-color: #c3ceb5;
}
.header-v3 .identity-top > .ui-icon-btn {
  margin-left: 65px;
  border-color: #c3ceb5;
}
.header-v3 .identity-wallet {
  padding: 15px 24px 18px;
  border-top: 1px solid #d9decc;
  background: #f0f2e4;
}
.header-v3 .balances {
  justify-content: center;
}
.app-header.header-v4 {
  background: #8a4e3d;
  color: #fff1d7;
  box-shadow: inset 0 3px 0 #bb8061;
}
.header-v4 .identity-top {
  padding: 21px 25px 20px;
  position: relative;
}
.header-v4 .identity-pack {
  height: 85px;
  width: 65px;
  border: 1px solid #d5b68a;
  background: #faf0cf;
  box-shadow: 3px 4px 0 #59392c;
  transform: rotate(-5deg);
}
.header-v4 .identity-pack::before {
  content: '';
  position: absolute;
  top: -23px;
  width: 16px;
  height: 25px;
  background: #d2ab76;
  border-inline: 4px solid #76432f;
}
.header-v4 .identity-pack > img {
  width: 43px;
  height: 64px;
  transform: none;
}
.header-v4 .identity-brand strong {
  font-size: 40px;
}
.header-v4 .identity-brand small {
  color: #efc9a6;
}
.header-v4 .identity-daily {
  color: #503e2c;
  background: #f4ddb2;
  border-color: #f4ddb2;
}
.header-v4 .ui-icon-btn {
  border-color: #cda17d;
  color: #f7e5c1;
}
.header-v4 .identity-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f1e3c5;
  color: #513f2c;
  padding: 17px 25px 23px;
  border-top: 1px solid #b57e57;
  position: relative;
}
.header-v4 .identity-wallet::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #ae7553 0 24px, #f6e5bd 24px 48px);
}
.header-v4 .balances small {
  color: #7b684d;
}
.header-v4 .balances > div:last-child {
  border-color: #c7b596;
}
.shop-open {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 9px;
  color: #75623f;
}
.shop-open > i {
  display: block;
  width: 5px;
  height: 5px;
  background: #628056;
  box-shadow: 0 0 0 3px #d4dec0;
}
.app-header.header-v5 {
  flex-direction: row;
  align-items: center;
  gap: 25px;
  padding: 24px 28px;
  background: #20384c;
  border-bottom: 5px solid #aa8d5a;
  color: #edf3ec;
}
.header-v5 .identity-brand {
  gap: 13px;
}
.header-v5 .identity-pack {
  width: 56px;
  height: 70px;
  background: #324d60;
  border: 1px solid #6a8691;
  box-shadow: 3px 3px 0 #142b3c;
}
.header-v5 .identity-pack::before,
.header-v5 .identity-pack::after {
  content: '';
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: #b7a16e;
}
.header-v5 .identity-pack::before {
  left: -4px;
}
.header-v5 .identity-pack::after {
  right: -4px;
}
.header-v5 .identity-pack > img {
  width: 36px;
  height: 53px;
  transform: rotate(-7deg);
}
.header-v5 .identity-brand strong {
  font-size: 34px;
  letter-spacing: -1.5px;
}
.header-v5 .identity-brand small {
  color: #adc3ca;
  font-size: 9px;
}
.header-v5 .identity-wallet {
  margin-left: auto;
}
.header-v5 .balances {
  gap: 0;
  flex-wrap: nowrap;
}
.header-v5 .balances > div {
  min-height: 61px;
  padding: 9px 18px;
  background: #142d40;
  border: 1px solid #466173;
  border-right: 0;
}
.header-v5 .balances > div:last-child {
  padding-left: 18px;
  border: 1px solid #466173;
}
.header-v5 .balances strong {
  color: #ffe0a2;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.header-v5 .balances small {
  color: #b5cbd3;
  font-size: 8px;
}
.header-v5 .balances .gold-symbol {
  color: #ebc575;
}
.header-v5 .balances .diamond-symbol {
  color: #9cc8de;
}
.header-v5 .identity-tools {
  flex-direction: column;
  gap: 6px;
}
.header-v5 .identity-daily {
  color: #e6debf;
  background: none;
  border: 0;
  padding: 2px;
  min-height: 24px;
}
.header-v5 .identity-tools > .ui-icon-btn {
  width: 27px;
  height: 25px;
  border-color: #557183;
}
@container (max-width:850px) {
  .header-study .identity-top {
    gap: 12px;
  }
  .header-v3 .identity-top {
    padding: 20px;
  }
  .header-v3 .identity-top > .ui-icon-btn {
    margin-left: 0;
  }
  .header-v4 .identity-top {
    padding: 21px 20px 18px;
  }
  .header-v4 .identity-brand strong {
    font-size: 35px;
  }
  .header-v4 .identity-tools {
    flex-direction: column-reverse;
    gap: 7px;
  }
  .header-v4 .identity-wallet {
    padding-inline: 20px;
  }
  .header-v4 .shop-open {
    display: none;
  }
  .app-header.header-v5 {
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px;
  }
  .header-v5 .identity-tools {
    margin-left: auto;
    flex-direction: row;
    gap: 10px;
  }
  .header-v5 .identity-wallet {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .header-v5 .balances {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .header-v5 .balances > div {
    justify-content: center;
  }
}
@media (max-width: 1100px) {
  .app-preview .header-v5 {
    flex-wrap: wrap;
    gap: 20px;
  }
  .app-preview .header-v5 .identity-tools {
    margin-left: auto;
    flex-direction: row;
    gap: 10px;
  }
  .app-preview .header-v5 .identity-wallet {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .app-preview .header-v5 .balances {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .app-preview .header-v5 .balances > div {
    justify-content: center;
  }
}
@media (max-width: 700px) {
  #family-header .variant:nth-child(n + 4) > .sample-canvas {
    padding: 12px;
  }
  .header-study .identity-top {
    flex-wrap: wrap;
    gap: 14px;
  }
  .header-study .identity-brand strong {
    font-size: 31px;
  }
  .header-study .identity-brand small {
    font-size: 8px;
  }
  .header-study .identity-pack {
    width: 49px;
    height: 65px;
  }
  .header-study .identity-pack > img {
    width: 33px;
    height: 49px;
  }
  .header-study .identity-brand {
    gap: 11px;
  }
  .header-study .balances {
    justify-content: space-between;
    gap: 10px;
  }
  .header-study .balances strong {
    font-size: 18px;
  }
  .header-study .balances small {
    font-size: 8px;
  }
  .header-study .balances .ui-icon {
    width: 18px;
    height: 18px;
  }
  .header-study .balances > div {
    gap: 5px;
  }
  .header-study .balances > div:last-child {
    padding-left: 10px;
  }
  .header-v3 .identity-top {
    padding: 18px 15px;
  }
  .header-v3 .identity-brand {
    order: -1;
    margin: 0 auto 0 0;
  }
  .header-v3 .identity-top > .ui-icon-btn {
    order: -1;
  }
  .header-v3 .identity-daily {
    width: 100%;
    font-size: 10px;
  }
  .header-v3 .identity-wallet {
    padding: 14px 15px;
  }
  .header-v4 .identity-top {
    padding: 21px 15px 16px;
  }
  .header-v4 .identity-tools {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .header-v4 .identity-wallet {
    padding: 15px 13px 22px;
  }
  .header-v4 .shop-open {
    display: none;
  }
  .app-header.header-v5 {
    padding: 18px 15px;
    gap: 17px;
  }
  .header-v5 .identity-tools {
    flex-direction: row;
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .header-v5 .identity-wallet {
    order: 3;
    width: 100%;
  }
  .header-v5 .balances {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }
  .header-v5 .balances > div {
    padding: 10px 6px;
    min-height: 58px;
    justify-content: center;
  }
  .header-v5 .balances > div:last-child {
    padding-left: 6px;
  }
  .header-v5 .balances strong {
    font-size: 17px;
  }
  .header-v5 .balances .ui-icon {
    width: 15px;
    height: 15px;
  }
  .header-v5 .balances small {
    font-size: 7px;
  }
  .header-v5 .identity-tools > .ui-icon-btn {
    width: 34px;
    height: 32px;
  }
}

.customer-payout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.ui-lab .workshop-tools .color-studio-link {
  display: inline;
}
