@charset "UTF-8";

:root {
  --forest: #3e5544;
  --forest-dark: #2e4235;
  --sage: #a1ad92;
  --paper: #f2eedf;
  --wood: #ae764c;
  --honey: #dbb36b;
  --ink: #343c31;
  --muted: #71766a;
  --line: #d9dccb;
  --canvas: #f7f7ee;
  --white: #fffef6;
  font-family: 'Trebuchet MS', 'Avenir Next', Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #b8893e;
  outline-offset: 4px;
}
img {
  image-rendering: pixelated;
  max-width: 100%;
}
a {
  color: var(--forest);
}
button {
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -1.3px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px 18px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  min-height: 94px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 35px;
  border-bottom: 1px solid var(--line);
  background: #fcfcf4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand > img {
  width: 30px;
  height: 45px;
  transform: rotate(-9deg);
}
.brand strong {
  font-size: 27px;
  letter-spacing: -1.7px;
  line-height: 1;
  font-weight: 900;
}
.brand strong span {
  font-weight: 500;
  letter-spacing: -1.5px;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  letter-spacing: 0.4px;
}
.main-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 10px;
  margin: 0 auto;
}
.main-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 16px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}
.main-tabs button span {
  display: inline-block;
  margin-right: 7px;
  font-size: 19px;
  vertical-align: -1px;
}
.main-tabs button[aria-selected='true'] {
  color: var(--forest);
  border-color: var(--forest);
  font-weight: 700;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lab-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.lab-label > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #90a16f;
  margin: 0 4px 1px 0;
}
.icon-button {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}
main {
  max-width: 1456px;
  margin: auto;
  padding: 0 4%;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 32px 0 27px;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.eyebrow {
  color: #74816a;
  font-size: 11px;
  margin-bottom: 8px;
}
.little-sun {
  color: #a78038;
  margin-right: 4px;
}
.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecefdf;
  border: 1px solid #dce1c8;
  padding: 12px 22px 12px 16px;
  border-radius: 7px;
  flex-shrink: 0;
}
.wallet > img {
  width: 30px;
  height: 30px;
}
.wallet small {
  display: block;
  font-size: 10px;
  color: #71815e;
}
.wallet strong {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.wallet strong span {
  font-size: 11px;
  font-weight: 400;
  color: #71815e;
  letter-spacing: 0;
}
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 23px;
  align-items: stretch;
}
.shop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.scene-panel {
  border: 1px solid #c6cbb7;
  background: var(--white);
  border-radius: 7px;
  overflow: hidden;
  flex: 1;
}
.scene-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 17px;
  font-size: 12px;
  background: #eef0e2;
}
.scene-heading > span {
  font-size: 10px;
  color: #7c8572;
}
.open-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #78906a;
  margin-right: 8px;
  vertical-align: 1px;
}
.shop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #d9d3b5;
  overflow: hidden;
  container-type: inline-size;
}
.scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grandpa {
  position: absolute;
  left: 48%;
  top: 38%;
  width: 16%;
  padding: 0;
  border: 0;
  background: none;
  transform: translateX(-50%);
}
.grandpa img {
  width: 100%;
  display: block;
}
.grandpa-speech {
  position: absolute;
  left: 48%;
  top: 28%;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  font-size: clamp(8px, 1.3cqw, 13px);
  line-height: 1.4;
  color: #5e644f;
  background: #fbf4d9;
  border: 1px solid #c7b58a;
  border-radius: 3px;
  z-index: 2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 2px 2px 0 #6d694724;
}
.grandpa-speech::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 47%;
  width: 7px;
  height: 7px;
  background: #fbf4d9;
  border-right: 1px solid #c7b58a;
  border-bottom: 1px solid #c7b58a;
  transform: rotate(45deg);
}
.scene-tiny-shop .grandpa {
  left: 53%;
  top: 29%;
  width: 12%;
}
.scene-tiny-shop .grandpa-speech {
  left: 53%;
  top: 23%;
}
.scene-desk .grandpa {
  left: 89%;
  top: 5%;
  width: 8%;
  background: #e6d3a5;
  outline: 2px solid #907c55;
}
.scene-desk .grandpa-speech {
  left: 75%;
  top: 23%;
  font-size: clamp(7px, 1.1cqw, 11px);
}
.scene-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.scene-footer > span:first-child {
  color: var(--forest);
  white-space: nowrap;
}
.scene-footer > span:first-child > span {
  margin-right: 5px;
}
.scene-footer small {
  color: #8b927e;
  margin-left: 6px;
}
.shop-display-lab {
  margin-bottom: 38px;
}
.display-fill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.display-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 18px;
  background: #e7eddd;
  border: 1px solid #c5d0b8;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}
.display-toolbar > div {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}
.display-toolbar strong {
  font-size: 14px;
}
.display-toolbar label,
.display-toolbar span {
  font-size: 11px;
  color: #687c5b;
}
.display-toolbar select {
  margin-left: 7px;
}
.shop-display-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #acbda1;
}
.shop-display {
  --display-card-scale: 1;
  min-width: 1060px;
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 8px solid #97714e;
  background: #3d5746;
  box-shadow:
    inset 0 0 0 2px #c1a87a,
    inset 0 0 35px #192e2877;
}
.display-group {
  min-width: 0;
  position: relative;
}
.display-group-name {
  display: block;
  margin-bottom: 13px;
  text-align: center;
  font-size: 10px;
  color: #e0d6ae;
}
.display-places {
  display: grid;
  grid-template-columns: repeat(var(--display-columns), minmax(0, 1fr));
  gap: 16px 10px;
  align-items: center;
  justify-items: center;
}
.display-place {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 16px;
}
.display-piece {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 2px;
  isolation: isolate;
}
.display-piece .collectible {
  zoom: var(--display-card-scale);
  z-index: 1;
}
.display-piece::before,
.display-piece::after {
  pointer-events: none;
}
.place-number {
  position: absolute;
  bottom: 2px;
  color: #d6dcc3;
  font-size: 8px;
}
.empty-display-place {
  width: calc(72px * var(--display-card-scale));
  height: calc(100px * var(--display-card-scale));
  border: 1px dashed #d2dfbd70;
  background: #e4ecd608;
  color: #c1cdae;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.empty-display-place span {
  font-size: 23px;
}
.empty-display-place small {
  font-size: 9px;
}
.display-wall {
  --display-card-scale: 1.05;
  background: repeating-linear-gradient(0deg, #5e4a36 0 6px, #7d6143 6px 45px);
  border-color: #5c4431;
  gap: 20px;
}
.display-wall .display-group {
  padding: 15px 40px 10px;
  border-bottom: 9px solid #c09962;
  background: #342e2770;
  box-shadow: 0 5px 0 #3b2b23;
}
.display-wall .display-group-name {
  text-align: left;
  margin-bottom: 12px;
}
.display-islands {
  --display-card-scale: 0.72;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: repeating-linear-gradient(90deg, #c7b590 0 40px, #baa582 40px 42px);
  border-color: #8b7655;
  gap: 22px;
}
.display-islands .display-group {
  background: #637764;
  border: 5px solid #a07a50;
  padding: 16px 8px 8px;
  box-shadow:
    3px 5px 0 #7b6c5044,
    inset 0 0 0 1px #bdc3a5;
}
.display-gallery {
  --display-card-scale: 0.88;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #283b36;
  border-color: #526456;
  gap: 20px;
}
.display-gallery .display-group {
  border: 3px solid #82978c;
  background: linear-gradient(115deg, #b2d7d31a, transparent 45%, #b2d7d30c);
  padding: 18px 6px 8px;
  box-shadow: inset 2px 0 #c4dacf55;
}
.display-binder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(90deg, #6a4d34 49%, #362c24 49% 51%, #6a4d34 51%);
  border-color: #493d32;
  gap: 30px;
}
.display-binder .display-group {
  background: #e5dfc8;
  padding: 18px 10px 12px;
  border: 2px solid #b2a98e;
  border-radius: 4px;
}
.display-binder .display-group-name,
.display-binder .place-number {
  color: #796c52;
}
.display-binder .display-place {
  background: #839b8b2b;
  box-shadow:
    inset 0 0 0 1px #697f6d55,
    inset 1px 1px #fff9;
}
.case-normal .display-piece {
  padding: 10px;
}
.case-design-felt .display-piece {
  background: #73866a;
  box-shadow: 1px 2px #263c2d44;
}
.case-design-tabs .display-piece::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 3px;
  background:
    linear-gradient(135deg, #e0d5aa 0 9px, transparent 0) top left,
    linear-gradient(225deg, #e0d5aa 0 9px, transparent 0) top right,
    linear-gradient(45deg, #e0d5aa 0 9px, transparent 0) bottom left,
    linear-gradient(315deg, #e0d5aa 0 9px, transparent 0) bottom right;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
.case-design-inset .display-piece {
  background: #384c3d;
  border-color: #8e9e79;
  box-shadow: inset 0 0 0 3px #22382c;
}
.case-wood .display-piece {
  border: 3px solid #8a5d38;
  background: repeating-linear-gradient(0deg, #b98e5c 0 3px, #bd9666 3px 5px, #b48a59 5px 6px);
  box-shadow:
    2px 3px #312c2670,
    inset 0 0 0 1px #e0ba7e;
}
.case-design-walnut .display-piece {
  background: #684831;
  border-color: #402e24;
  border-left: 7px solid #96704b;
  border-right: 7px solid #96704b;
  box-shadow:
    inset 2px 0 #b48e60,
    inset -2px 0 #b48e60,
    2px 3px #201f1c77;
}
.case-design-slats .display-piece {
  background: repeating-linear-gradient(90deg, #a67d51 0 6px, #654a35 6px 8px);
  border-color: #cea673;
  padding-bottom: 15px;
  box-shadow:
    0 5px #5e4430,
    3px 7px #252a2644;
}
.case-glass .display-piece {
  border-color: #a9d5cb;
  background: #94c6b930;
  box-shadow:
    inset 2px 2px #e1f6e399,
    2px 3px #263d3777;
}
.case-glass .display-piece::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 2px;
  border: 1px solid #d8f2e377;
  background: linear-gradient(
    125deg,
    transparent 22%,
    #e8ffed20 23% 26%,
    transparent 27% 66%,
    #e8ffed19 67% 70%,
    transparent 71%
  );
}
.case-design-stand .display-piece {
  background: #294e45;
  border-color: #82b6a4;
  border-bottom: 9px solid #aec5b2;
  box-shadow:
    0 4px #38574a,
    2px 6px #182e2777;
}
.case-design-vault .display-piece {
  border: 4px solid #5c8e83;
  box-shadow:
    inset 0 0 0 2px #d1ece2,
    3px 4px #203831;
  background: #285048;
}
.case-gold .display-piece {
  border: 4px solid #b48532;
  background: linear-gradient(135deg, #f4dfa0, #c1973e 30%, #ffeebc 48%, #b3862c 75%, #e2bc64);
  box-shadow:
    inset 0 0 0 1px #fff1ba,
    2px 4px #3c352b88;
}
.case-design-deco .display-piece {
  background: #293d35;
  border: 5px double #eed18a;
  outline: 1px solid #a27c34;
  outline-offset: 2px;
}
.case-design-deco .display-piece::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #9f7a30;
}
.case-design-pedestal .display-piece {
  border-color: #e9c76c;
  border-bottom: 9px solid #b28b37;
  background: #3c4936;
  box-shadow:
    0 5px #f1d28a,
    0 8px #88652c,
    3px 10px #1c2e2566;
}
.case-diamond .display-piece {
  border: 5px solid #c5e4ed;
  background: conic-gradient(
    from 45deg,
    #a9c8ec,
    #f3f7ef,
    #91b7d4,
    #ddf7f6,
    #aab6e5,
    #f3f7ef,
    #a9c8ec
  );
  box-shadow:
    inset 0 0 0 1px #fff,
    0 0 0 2px #7cabc1,
    3px 5px #29364899;
}
.case-diamond .display-piece::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: -4px;
  background: linear-gradient(
    135deg,
    transparent 34%,
    #ffffff38 35% 36%,
    transparent 37% 68%,
    #ffffff30 69% 71%,
    transparent 72%
  );
}
.case-design-cushion .display-piece {
  border: 6px ridge #b7d5e9;
  border-radius: 9px;
  background: radial-gradient(ellipse, #664a78, #322f48);
  padding: 12px;
  box-shadow:
    inset 0 0 0 3px #7d6486,
    3px 5px #273c4077;
}
.case-design-crown .display-piece {
  border: 6px double #e2f3f3;
  background: #334c60;
  box-shadow:
    0 0 0 2px #899cca,
    0 4px #b6d3e0,
    3px 7px #1c2e3888;
}
.case-design-crown .display-piece::before {
  content: '';
  position: absolute;
  z-index: 3;
  top: -12px;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  background: conic-gradient(#f2ffff, #9db7e0, #f2ffff, #93c2d6, #f2ffff);
  clip-path: polygon(25% 0, 75% 0, 100% 40%, 50% 100%, 0 40%);
}
.display-counter:not(.display-mini) .display-piece {
  padding: 8px;
}
.display-islands:not(.display-mini) {
  --display-card-scale: 0.55;
}
.display-islands:not(.display-mini) .display-piece {
  padding: 4px;
  border-width: 2px;
}
.display-gallery:not(.display-mini) {
  --display-card-scale: 0.8;
}
.display-gallery:not(.display-mini) .display-piece {
  padding: 8px;
}
.display-binder:not(.display-mini) {
  --display-card-scale: 0.9;
}
.display-binder:not(.display-mini) .display-piece {
  padding: 8px;
}
.display-lab-heading {
  margin: 30px 0 18px;
}
.display-lab-heading h2 {
  font-size: 19px;
}
.display-lab-heading p {
  margin-top: 6px;
  color: #859077;
  font-size: 12px;
}
.display-layout-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 18px;
}
.display-layout-choice {
  min-width: 0;
  border: 1px solid #c5d0b8;
  background: #edf1e4;
  padding: 17px;
  border-radius: 5px;
}
.display-layout-choice.is-selected,
.case-choice.is-selected {
  outline: 2px solid #809b6c;
  outline-offset: 2px;
}
.display-layout-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
  min-height: 58px;
}
.display-layout-copy h3 {
  font-size: 14px;
}
.display-layout-copy p {
  font-size: 11px;
  color: #7d8a6e;
  margin-top: 5px;
  line-height: 1.5;
}
.display-layout-copy button {
  flex-shrink: 0;
  font-size: 10px;
  padding: 7px;
}
.display-mini-mat {
  min-height: 265px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
}
.display-layout-choice > small {
  color: #7d8a6e;
  font-size: 10px;
}
.display-mini {
  min-width: 0;
  width: 100%;
  padding: 10px;
  gap: 8px;
  border-width: 4px;
}
.display-mini .display-places {
  gap: 5px 3px;
}
.display-mini .display-place {
  padding: 0;
}
.display-mini .display-piece {
  padding: 1px;
  border-width: 1px;
  border-radius: 0;
  outline-offset: 0;
}
.display-mini .display-group {
  padding: 5px 2px;
  border-width: 2px;
}
.display-mini.display-wall .display-group {
  border-bottom-width: 4px;
  padding: 4px;
}
.display-mini .mini-card,
.display-mini .mini-empty {
  width: 18px;
  height: 25px;
  display: block;
  background: var(--mini-team, #d3ddbd11);
  border: 1px solid var(--mini-prizm, #a6b59477);
  position: relative;
}
.display-mini .mini-empty {
  border-style: dashed;
}
.mini-card img {
  position: absolute;
  width: 90%;
  left: 5%;
  bottom: 3px;
}
.display-mini.display-islands .mini-card,
.display-mini.display-islands .mini-empty {
  width: 10px;
  height: 15px;
}
.display-mini .display-piece::before,
.display-mini .display-piece::after {
  display: none;
}
.display-case-choices {
  display: grid;
  gap: 18px;
}
.case-level-row {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  border-top: 1px solid #d1dac2;
  padding-top: 18px;
}
.case-level-name {
  padding: 20px 0;
}
.case-level-name span {
  font-size: 10px;
  color: #8d9a7d;
}
.case-level-name h3 {
  font-size: 18px;
  margin-top: 7px;
}
.case-choice {
  padding: 17px;
  border: 1px solid #c5d0b8;
  border-radius: 4px;
  background: #edf1e4;
  min-width: 0;
}
.case-choice h4 {
  font-size: 12px;
}
.case-choice-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin: 12px 0;
  background: #526953;
  border: 1px solid #8e9e7b;
}
.case-choice .display-place {
  padding: 0;
}
.case-choice button.quiet-button {
  width: 100%;
}
@media (max-width: 700px) {
  .shop-display-lab > .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .display-toolbar {
    padding: 12px;
    gap: 12px;
  }
  .display-toolbar > div {
    width: 100%;
  }
  .display-toolbar strong {
    font-size: 12px;
  }
  .case-level-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .case-level-name {
    grid-column: 1 / -1;
    padding: 0;
  }
  .case-level-name h3 {
    font-size: 16px;
    margin-top: 4px;
  }
  .case-choice {
    padding: 8px 4px;
  }
  .case-choice h4 {
    font-size: 10px;
    min-height: 24px;
  }
  .case-choice-art {
    --display-card-scale: 0.7;
    min-height: 145px;
    border: 0;
  }
  .case-choice button.quiet-button {
    padding: 7px 3px;
    font-size: 9px;
  }
}
.pack-counter {
  display: flex;
  gap: 19px;
  align-items: center;
  padding: 21px 23px;
  margin-top: 14px;
  background: #eeebd8;
  border: 1px solid #dddcc5;
  border-radius: 6px;
}
.pack-illustration {
  flex-shrink: 0;
  width: 57px;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pack-illustration img {
  width: 42px;
  height: 63px;
  transform: rotate(-9deg);
  filter: drop-shadow(4px 4px 0 #7f88642a);
}
.tiny-label {
  font-size: 10px;
  color: #89836b;
}
.pack-copy h2 {
  font-size: 18px;
  margin: 2px 0 5px;
}
.pack-copy p {
  font-size: 11px;
  color: #7d7b66;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #657b57;
  font-size: 11px;
}
.pack-copy .text-button {
  margin-top: 8px;
  font-size: 10px;
}
.pack-buy {
  margin-left: auto;
  text-align: center;
  flex-shrink: 0;
}
.pack-buy > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}
.pack-buy img {
  width: 14px;
  height: 14px;
}
.pack-buy small {
  color: #82836d;
  font-size: 10px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--forest-dark);
  border-radius: 4px;
  background: var(--forest);
  color: #f9f7e9;
  padding: 10px 20px;
  font-size: 12px;
  box-shadow: 0 2px 0 #283d30;
}
.primary-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #283d30;
}
.quiet-button {
  border: 1px solid #ccd2be;
  background: #fafbf2;
  border-radius: 4px;
  padding: 8px 12px;
  color: #68755e;
  font-size: 11px;
}
.style-notebook {
  padding: 23px 20px 17px;
  background: #f0f0e2;
  border: 1px solid #d7dcc7;
  border-radius: 6px;
  position: relative;
}
.notebook-title {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.notebook-title > span {
  color: #8f9d7d;
  font-size: 23px;
  line-height: 1;
}
.notebook-title h2 {
  font-size: 18px;
}
.notebook-title p {
  font-size: 10px;
  color: #8a8e79;
  margin-top: 4px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend,
.field-label {
  font-size: 11px;
  color: #657158;
  font-weight: 700;
  display: block;
  margin-bottom: 9px;
}
.scene-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px;
  margin: 0 -1px 4px;
  text-align: left;
}
.scene-option > img {
  width: 49px;
  height: 33px;
  object-fit: cover;
  border: 1px solid #baa987;
}
.scene-option strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.scene-option small {
  font-size: 9px;
  color: #8b907f;
  display: block;
}
.scene-option .selection-check {
  margin-left: auto;
  color: #789365;
  font-size: 13px;
  visibility: hidden;
}
.scene-option[aria-pressed='true'] {
  background: #f9faf0;
  border-color: #a8b297;
  box-shadow: 0 1px 2px #4250390a;
}
.scene-option[aria-pressed='true'] .selection-check {
  visibility: visible;
}
.notebook-rule {
  border-top: 1px dashed #ced2ba;
  margin: 16px 0;
}
select {
  background: #fbfcf4;
  border: 1px solid #ced4c0;
  color: #59634e;
  border-radius: 4px;
  padding: 9px 30px 9px 11px;
  font-size: 11px;
  max-width: 100%;
}
.style-notebook select {
  width: 100%;
}
.size-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 17px;
}
.size-label > span {
  color: #8d9480;
  font-size: 9px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #e5e8d7;
  border: 1px solid #d6dcc6;
  border-radius: 4px;
  gap: 3px;
}
.segmented button {
  border: 1px solid transparent;
  background: transparent;
  flex: 1;
  border-radius: 3px;
  padding: 6px 0;
  font-size: 10px;
  color: #818b72;
}
.segmented button[aria-pressed='true'] {
  background: #fcfdf4;
  border-color: #c0c9ad;
  color: var(--forest);
  box-shadow: 0 1px 2px #32492e10;
}
.notebook-note {
  font-size: 10px;
  color: #879073;
  line-height: 1.7;
  margin-top: 17px;
}
.notebook-workbench {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border-top: 1px dashed #ced2ba;
  margin-top: 14px;
  padding-top: 13px;
  font-size: 10px;
}
.collection-section {
  margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 19px;
}
.section-heading p {
  color: #8b8f7c;
  font-size: 11px;
  margin-top: 4px;
}
.count-badge {
  display: inline-flex;
  padding: 0 7px;
  min-width: 23px;
  height: 21px;
  align-items: center;
  justify-content: center;
  background: #e7ecdb;
  color: #6f805e;
  font-size: 10px;
  vertical-align: 2px;
  border-radius: 4px;
  margin-left: 5px;
  letter-spacing: 0;
}
.collection-tools {
  display: flex;
  gap: 8px;
}
.collection-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 143px;
  padding: 20px;
  border: 1px dashed #d2d8c1;
  border-radius: 5px;
  background: #f1f3e8;
}
.collection-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.collection-item > small {
  font-size: 9px;
  color: #82906e;
}
.empty-collection {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 23px;
  align-items: center;
  padding: 9px 0;
}
.empty-collection > img {
  width: 68px;
  height: 57px;
  transform: rotate(-7deg);
  opacity: 0.76;
}
.empty-collection h3 {
  font-size: 14px;
  font-weight: 600;
}
.empty-collection p {
  font-size: 11px;
  color: #8a937b;
  margin-top: 5px;
}
.empty-collection .text-button {
  margin-top: 8px;
}
.sample-section {
  margin-top: 31px;
  padding-top: 25px;
  border-top: 1px solid #dfe3d1;
}
.sample-label {
  font-size: 10px;
  color: #8e9580;
}
.sample-grid {
  display: flex;
  justify-content: space-between;
  gap: 19px;
  flex-wrap: wrap;
  padding: 7px 0 19px;
}
.sample-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.sample-card > small {
  font-size: 9px;
  color: #8c947d;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 21px 0 24px;
  margin-top: 28px;
  color: #919681;
  font-size: 10px;
}
.site-footer > span:first-child > span {
  margin: 0 8px;
  color: #9caa86;
}
.site-footer .text-button {
  font-size: 10px;
  margin-left: 14px;
}

.collectible {
  --card-w: 90px;
  --card-h: 125px;
  --frame-width: 3px;
  --weave: 6px;
  --weave-angle: 45deg;
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  display: inline-block;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--prizm);
  box-shadow: 1px 3px 0 #27352d35;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  line-height: 1;
  isolation: isolate;
}
button.collectible {
  transition: transform 120ms;
}
button.collectible:hover {
  transform: translateY(-4px);
  filter: none;
}
.frame-bold {
  --frame-width: 6px;
  --weave: 9px;
}
.frame-faceted {
  --frame-width: 4px;
  --weave: 12px;
  --weave-angle: 30deg;
}
.frame-wide {
  --frame-width: 5px;
  --weave: 18px;
}
.collectible:is(.color-blue, .color-red) {
  --frame-width: 1px;
}
.prizm-frame {
  position: absolute;
  inset: 0;
  background: var(--prizm);
  overflow: hidden;
}
.color-pink {
  --ribbon-dark: #ac215c;
  --ribbon-mid: #ec529b;
  --ribbon-light: #ffa6d4;
}
.color-purple {
  --fold-scale: 2;
  --ribbon-dark: #4b1885;
  --ribbon-mid: #9855d8;
  --ribbon-light: #d3a3ff;
}
.color-red {
  --fold-scale: 3;
  --ribbon-dark: #a92335;
  --ribbon-mid: #eb3e4e;
  --ribbon-light: #ff8994;
}
.color-green {
  --ribbon-dark: #08623d;
  --ribbon-mid: #22ad69;
  --ribbon-light: #99e5ad;
}
.color-gold {
  --ribbon-dark: #98620e;
  --ribbon-mid: #e4b641;
  --ribbon-light: #fff0a6;
}
.color-rainbow {
  --ribbon-dark: #261c534d;
  --ribbon-mid: #ffffff08;
  --ribbon-light: #ffffffad;
  --ribbon-base: conic-gradient(
    from 35deg,
    #ee5986,
    #e8ae49,
    #b8e48b,
    #44c9ce,
    #5c7dea,
    #c069e7,
    #ee5986
  );
}
.collectible:is(.color-purple, .color-pink) {
  --weave: calc(var(--card-h) * 0.32);
  --fold-scale: 1;
}
:is(.color-pink, .color-purple, .color-red, .color-green, .color-gold, .color-rainbow) .prizm-frame,
.foil-border-field .card-foil,
.foil-team-border .card-foil {
  --fold: calc(var(--weave) * var(--fold-scale, 1));
  background:
    repeating-linear-gradient(
      var(--weave-angle),
      var(--ribbon-light) 0 calc(var(--fold) * 0.2),
      var(--ribbon-mid) 0 calc(var(--fold) * 0.6),
      var(--ribbon-dark) 0 var(--fold),
      transparent 0 calc(var(--fold) * 2)
    ),
    repeating-linear-gradient(
      calc(var(--weave-angle) * -1),
      var(--ribbon-dark) 0 calc(var(--fold) * 0.2),
      var(--ribbon-mid) 0 calc(var(--fold) * 0.6),
      var(--ribbon-light) 0 var(--fold),
      var(--ribbon-dark) 0 calc(var(--fold) * 2)
    ),
    var(--ribbon-base, linear-gradient(var(--prizm), var(--prizm)));
}
:is(.color-green, .color-gold, .color-rainbow) .prizm-frame::after {
  content: '';
  position: absolute;
  inset: -30% -100%;
  background: linear-gradient(
    110deg,
    transparent 42%,
    #ffffff18 46%,
    #fff9 49%,
    #ffffff18 52%,
    transparent 56%
  );
  animation: edge-glint 7s ease-in-out infinite;
}
.card-paper {
  display: block;
  position: absolute;
  inset: var(--frame-width);
  overflow: hidden;
  border-radius: 1px;
}
.card-top {
  position: absolute;
  z-index: 5;
  top: 5%;
  left: 6%;
  right: 6%;
  height: 13%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: white;
}
.card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.card-rating {
  display: block;
  width: calc(24% * var(--rating-columns, 7) / 7);
  flex-shrink: 0;
  filter: drop-shadow(1px 1px 0 #182126) drop-shadow(-1px -1px 0 #18212670);
}
.pixel-rating {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}
.card-rarity {
  font-size: calc(var(--card-w) * 0.115);
  font-weight: 900;
  line-height: 1.1;
  color: var(--rarity-ink);
  padding: 2px 3px;
  background: #15231cd9;
  border-radius: 1px;
  letter-spacing: -0.3px;
}
.card-rarity[data-rarity='UR'] {
  -webkit-text-stroke: 0.6px #76501b;
  paint-order: stroke fill;
  text-shadow:
    1px 0 #3d290f,
    -1px 0 #3d290f,
    0 1px #3d290f,
    0 -1px #3d290f;
}
.portrait-window {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--team-bg-a) 0 65%, var(--team-bg-b) 65%);
}
.court-lines {
  position: absolute;
  inset: 0;
  border: 0;
  background: linear-gradient(
    135deg,
    transparent 0 42%,
    var(--team-b) 42% 44%,
    transparent 44% 48%,
    var(--team-b) 48% 49%,
    transparent 49%
  );
  opacity: 0.22;
}
.player-head {
  position: absolute;
  width: 94%;
  max-width: none;
  height: auto;
  bottom: 18%;
  left: 3%;
  z-index: 1;
}
.card-character {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 50% 65%;
}
.pixel-jersey {
  display: block;
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -4%;
  height: 35%;
  background: linear-gradient(
    to right,
    var(--team-b) 0 10%,
    var(--team-a) 10% 45%,
    var(--team-b) 45% 55%,
    var(--team-a) 55% 90%,
    var(--team-b) 90%
  );
  clip-path: polygon(
    20% 0,
    35% 0,
    40% 15%,
    60% 15%,
    65% 0,
    80% 0,
    100% 35%,
    100% 100%,
    0 100%,
    0 35%
  );
}
.card-paper::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(transparent 55%, #101b180a 65%, #101b18e8 100%);
  pointer-events: none;
}
.card-name {
  position: absolute;
  z-index: 5;
  left: 3%;
  right: 3%;
  bottom: 5%;
  color: white;
  font-size: calc(var(--card-w) * 0.115);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.3px;
  line-height: 1.15;
  text-shadow: 0 1px 2px #101b18;
}
.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  width: calc(var(--card-w) * 0.34);
}
.card-badges:empty {
  display: none;
}
.card-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(var(--card-w) * 0.08);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
.card-badge b {
  font-weight: 700;
}
.card-badge small {
  display: block;
  font-size: calc(var(--card-w) * 0.036);
  letter-spacing: 0;
  margin-top: 2px;
}
.badge-rc {
  width: 57%;
  color: #253a2f;
}
.badge-rc b {
  font-size: calc(var(--card-w) * 0.085);
}
.badge-rc.badge-style-shield {
  border: 1px solid #d4ceaa;
  background: #eeead3;
  box-shadow: inset 0 0 0 1px #64765c;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  padding: 2px 1px 4px;
}
.badge-rc.badge-style-tab {
  background: #263e35;
  color: #fff1b8;
  border-top: 2px solid #d3bb75;
  padding: 3px 1px;
}
.badge-rc.badge-style-stamp {
  border: 1px solid #f4e7be;
  color: #fff2c9;
  background: #263a2b66;
  box-shadow: 0 0 0 1px #24392d;
}
.badge-numbered {
  width: max-content;
  font-size: calc(var(--card-w) * 0.055);
}
.badge-numbered.badge-style-stamp {
  color: #ffe7a2;
  background: #202f38;
  border: 1px solid #d9b86f;
  border-radius: 2px;
  padding: 1px;
}
.badge-numbered.badge-style-plate {
  border: 1px solid #d4d2b4;
  color: #fff0bc;
  background: linear-gradient(#4b625c, #213a35);
  box-shadow: inset 0 0 0 1px #7d9181;
  padding: 1px;
}
.badge-numbered.badge-style-ticket {
  color: #24372e;
  background: #e9dfbc;
  border-block: 1px dashed #a99b6f;
  clip-path: polygon(
    7% 0,
    93% 0,
    100% 22%,
    93% 50%,
    100% 78%,
    93% 100%,
    7% 100%,
    0 78%,
    7% 50%,
    0 22%
  );
  padding: 1px;
}
.badge-one-of-one {
  width: max-content;
  flex-direction: row;
  gap: 1px;
  font-size: calc(var(--card-w) * 0.055);
  padding: 1px;
  border: 1px solid;
}
.badge-one-of-one small {
  display: none;
}
.badge-gem {
  display: block;
  width: calc(var(--card-w) * 0.03);
  height: calc(var(--card-w) * 0.025);
  background: linear-gradient(135deg, #fffce8, currentColor 48%, #fffce8 52%, currentColor);
  clip-path: polygon(20% 0, 80% 0, 100% 40%, 50% 100%, 0 40%);
}
.badge-one-of-one.badge-style-seal {
  color: #392c19;
  background: conic-gradient(from 25deg, #ffe9a3, #ba8c3d, #fff0ad, #d3a651, #ffe9a3);
  clip-path: polygon(15% 0, 85% 0, 100% 20%, 100% 80%, 85% 100%, 15% 100%, 0 80%, 0 20%);
  border-color: #fff0b0 #b58330 #94651f #efd692;
  box-shadow: inset 0 1px #fff5c2;
}
.badge-one-of-one.badge-style-diamond {
  color: #203b64;
  background: linear-gradient(130deg, #fff9e0, #b4d9eb 40%, #f2f4ff 55%, #a0b5da);
  border: 1px solid #e5fbff;
  clip-path: polygon(17% 0, 83% 0, 100% 25%, 88% 100%, 12% 100%, 0 25%);
}
.badge-one-of-one.badge-style-banner {
  color: #ffe2a0;
  background: #26363e;
  border: 1px solid #d8b562;
  border-top-color: #fff1bd;
  border-radius: 1px;
  box-shadow: inset 0 0 2px #e1ba6770;
}
.treatment-refractor {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
  background: none;
  border: 0;
  opacity: 0.28;
}
.card-embellishments {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.card-patch {
  position: absolute;
  z-index: 1;
  bottom: 17%;
  left: 20%;
  width: 60%;
  height: 23%;
}
.card-autograph {
  position: absolute;
  z-index: 2;
  bottom: 17%;
  left: 10%;
  width: 80%;
  height: 19%;
  padding: 0;
  border: 0;
  background: none;
  fill: none;
  stroke: var(--signature-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.with-patch .card-autograph {
  width: 84%;
  left: 8%;
  filter: drop-shadow(0 0 0.4px var(--signature-outline));
}
.treatment-label {
  position: absolute;
  z-index: 5;
  bottom: 15%;
  left: 5%;
  right: 5%;
  color: #fff5d8;
  padding: 1px 0;
  font-size: calc(var(--card-w) * 0.055);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px #101b18;
}
.collectible.color-normal {
  --frame-width: 2px;
}
.color-normal .prizm-frame {
  background: #fffdf7;
}
.color-normal .card-paper {
  background: #fffdf7;
}
.color-normal .portrait-window {
  inset: 14% 2% 13%;
}
.color-normal .player-head {
  width: 86%;
  left: 7%;
  bottom: 2%;
}
.color-normal .card-paper::before {
  display: none;
}
.color-normal .card-rating {
  color: #243b31;
  filter: none;
}
.color-normal .card-name {
  color: #243b31;
  bottom: 3%;
  text-shadow: none;
}
.color-normal .treatment-label {
  color: #243b31;
  text-shadow: none;
}
.half-body-player {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 88%;
  left: 0;
  bottom: 5%;
  object-fit: cover;
  object-position: center top;
}
.card-trophy {
  position: absolute;
  width: 62%;
  height: 78%;
  right: -3%;
  top: 15%;
  object-fit: contain;
  opacity: 0.9;
}
.layout-trophy.color-rainbow .half-body-player {
  left: -15%;
}
.color-rainbow .card-paper::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: -30% -80%;
  background: linear-gradient(
    115deg,
    transparent 37%,
    #e2faff0a 43%,
    #fff6 49%,
    #f9d8ff29 54%,
    transparent 62%
  );
  transform: translateX(-100%);
  animation: rainbow-shine 6s ease-in-out infinite;
  pointer-events: none;
}
.card-sparkles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
:is(.color-green, .color-gold, .color-rainbow) .card-sparkles::before,
:is(.color-green, .color-gold, .color-rainbow) .card-sparkles::after {
  content: '';
  position: absolute;
  width: 10%;
  aspect-ratio: 1;
  top: 0;
  right: 0;
  background: #fff6c8;
  clip-path: polygon(50% 0, 60% 35%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 35%);
  animation: foil-sparkle 5s ease-in-out infinite;
}
:is(.color-green, .color-gold, .color-rainbow) .card-sparkles::after {
  top: auto;
  right: auto;
  bottom: 1%;
  left: 0;
  animation-delay: 2.5s;
}
@keyframes edge-glint {
  0%,
  45% {
    transform: translateX(-55%);
  }
  75%,
  100% {
    transform: translateX(55%);
  }
}
@keyframes rainbow-shine {
  0%,
  25% {
    transform: translateX(-85%);
  }
  75%,
  100% {
    transform: translateX(85%);
  }
}
@keyframes foil-sparkle {
  0%,
  65%,
  100% {
    opacity: 0.12;
    transform: scale(0.4);
  }
  80% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.effects-lab {
  margin-top: 32px;
}
.badge-lab {
  margin-bottom: 36px;
}
.badge-lab-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: #e8edde;
  border: 1px solid #ccd6bf;
  padding: 15px 18px;
  border-radius: 5px;
}
.badge-lab-controls label,
.edition-values label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #637457;
}
.badge-lab-controls input,
.edition-values input {
  width: 70px;
  background: #fbfcf4;
  border: 1px solid #ced4c0;
  border-radius: 4px;
  padding: 9px;
  color: #41533a;
  font-size: 12px;
}
.badge-lab-controls > span {
  font-size: 10px;
  color: #7c8d6d;
  margin-left: auto;
}
.edition-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 0 2px;
}
.edition-examples button[aria-pressed='true'] {
  background: #3e5944;
  color: #f5efcf;
  border-color: #3e5944;
}
.badge-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.badge-study {
  min-width: 0;
  padding: 20px;
  border: 1px solid #c5d0b8;
  border-radius: 5px;
  background: #edf1e4;
}
.badge-study.is-selected {
  outline: 2px solid #809b6c;
  outline-offset: 2px;
}
.badge-study h4 {
  font-size: 15px;
}
.badge-study > p {
  font-size: 11px;
  line-height: 1.5;
  min-height: 34px;
  margin-top: 6px;
  color: #7d8a6e;
}
.badge-card-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #526953;
  border: 1px solid #91a17e;
  padding: 24px;
  margin: 15px 0;
}
.badge-card-stage .collectible {
  zoom: 1.65;
}
.badge-study > .quiet-button {
  width: 100%;
}
.edition-controls {
  margin-top: 20px;
}
.edition-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.edition-values label {
  align-items: flex-start;
  flex-direction: column;
}
.edition-values select {
  min-width: 80px;
}
@media (max-width: 800px) {
  .badge-study-grid {
    grid-template-columns: 1fr;
  }
  .badge-lab-controls {
    gap: 12px;
  }
  .badge-lab-controls > span {
    width: 100%;
    margin-left: 0;
  }
}
.finish-lab {
  margin-bottom: 36px;
}
.finish-subheading {
  margin: 24px 0 16px;
}
.finish-subheading h3 {
  font-size: 17px;
}
.finish-subheading p {
  font-size: 12px;
  color: #7a896b;
  margin-top: 5px;
}
.signature-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.patch-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.finish-choice {
  padding: 20px;
  background: #edf1e4;
  border: 1px solid #c5d0b8;
  border-radius: 5px;
  min-width: 0;
}
.finish-choice.is-selected {
  outline: 2px solid #809b6c;
  outline-offset: 2px;
}
.finish-choice h4 {
  font-size: 15px;
}
.finish-choice > p {
  font-size: 11px;
  color: #7d8a6e;
  line-height: 1.5;
  min-height: 34px;
  margin-top: 6px;
}
.finish-card-stage {
  padding: 24px 12px;
  margin: 15px 0;
  background: #526953;
  border: 1px solid #91a17e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.finish-card-stage .collectible {
  zoom: 1.65;
}
.finish-pair {
  gap: 25px;
}
.finish-pair > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.finish-pair small {
  font-size: 10px;
  color: #d5e0c5;
}
.finish-choice > .quiet-button {
  width: 100%;
}
.ink-samples {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.ink-sample {
  flex: 1;
  min-width: 0;
  padding: 7px 5px;
  border: 1px solid #b6c3a6;
  text-align: center;
}
.ink-sample .card-autograph {
  position: static;
  display: block;
  width: 100%;
  height: 28px;
}
.ink-sample small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
}
@media (max-width: 850px) {
  .signature-comparison {
    grid-template-columns: 1fr;
  }
  .patch-comparison {
    grid-template-columns: 1fr;
  }
  .finish-card-stage .collectible {
    zoom: 1.5;
  }
}
@media (max-width: 450px) {
  .finish-choice {
    padding: 14px;
  }
  .finish-card-stage {
    padding: 20px 8px;
  }
  .finish-pair {
    gap: 15px;
  }
  .finish-pair .collectible {
    zoom: 1.15;
  }
  .finish-pair small {
    font-size: 9px;
  }
}
.effects-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}
.shot-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 16px;
}
.shot-comparison .effect-option {
  padding: 16px;
}
.shot-originals {
  margin-top: 22px;
}
.shot-originals summary {
  cursor: pointer;
  font-size: 13px;
  color: #526c4a;
  padding: 12px 0;
}
.shot-originals[open] summary {
  margin-bottom: 12px;
}
.effect-option.is-selected {
  outline: 2px solid #93ab79;
  outline-offset: 2px;
}
.effect-option .shot-select {
  margin-top: 8px;
}
.shot-study:not(.has-played) .card-character {
  opacity: 0;
}
.shot-study:not(.has-played) .shooting-player {
  opacity: 1;
}
.study-fadeaway {
  --jump-x: 4px;
  --ball-x: 14px;
}
.study-profile {
  --jump-x: -1px;
  --ball-x: 12px;
}
.study-release {
  --ball-x: 4px;
}
.study-compact {
  --jump-x: 1px;
  --ball-x: 7px;
}
.study-lift {
  --jump-y: -5px;
  --ball-x: 9px;
}
.study-followthrough {
  --jump-x: -1px;
  --jump-y: -2px;
  --ball-x: 12px;
}
.study-turn {
  --jump-x: 2px;
  --ball-x: 10px;
}
.effect-option {
  padding: 20px;
  background: #263a33;
  color: #f1f3df;
  border: 1px solid #bdc8b1;
  border-radius: 5px;
}
.effect-option h3 {
  font-size: 15px;
}
.effect-option p {
  font-size: 11px;
  color: #bbc7ac;
  line-height: 1.5;
  min-height: 34px;
  margin-top: 6px;
}
.effect-mat {
  display: flex;
  justify-content: center;
  padding: 26px 0;
}
.effect-mat .collectible {
  zoom: 1.4;
}
.effect-option .quiet-button {
  width: 100%;
  background: #385044;
  color: #e1ebd4;
  border-color: #738968;
}
.effect-preview .card-paper::after,
.effect-preview .prizm-frame::after,
.effect-preview .card-sparkles::before,
.effect-preview .card-sparkles::after {
  animation: none;
  opacity: 0;
}
.effect-gloss.is-playing .card-paper::after {
  opacity: 1;
  animation: gloss-pass var(--effect-duration) ease-in-out both;
}
.effect-ribbon.is-playing .prizm-frame::after {
  opacity: 1;
  animation: ribbon-pass var(--effect-duration) ease-in-out both;
}
.effect-zoom.is-playing .card-character {
  animation: character-zoom var(--effect-duration) ease-in-out;
}
.effect-tilt {
  transform-origin: 50% 70%;
}
.effect-tilt.is-playing {
  animation: foil-tilt var(--effect-duration) ease-in-out;
}
.effect-tilt.is-playing .card-paper::after {
  opacity: 0.8;
  animation: gloss-pass var(--effect-duration) ease-in-out both;
}
.motion-trace {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff7c9;
  stroke-width: 1.7;
  pointer-events: none;
}
.motion-trace rect {
  opacity: 0;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 100;
}
.effect-trace.is-playing .motion-trace rect {
  animation: edge-trace var(--effect-duration) linear;
}
.motion-ripple {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--team-b);
  stroke-width: 1.5;
  transform-origin: 50% 55%;
  opacity: 0;
  pointer-events: none;
}
.effect-ripple .portrait-window,
.effect-spotlight .portrait-window {
  z-index: 1;
  background: none;
}
.effect-ripple .card-paper,
.effect-spotlight .card-paper {
  background: linear-gradient(135deg, var(--team-bg-a) 0 65%, var(--team-bg-b) 65%);
}
.effect-ripple.is-playing .motion-ripple {
  animation: prism-ripple var(--effect-duration) ease-out;
}
.effect-parallax .portrait-window {
  background-size: 115% 100%;
  background-position: 50% 50%;
}
.effect-parallax.is-playing .portrait-window {
  animation: parallax-back var(--effect-duration) ease-in-out;
}
.effect-parallax.is-playing .card-character {
  animation: parallax-front var(--effect-duration) ease-in-out;
}
.effect-parallax.is-playing .court-lines {
  animation: parallax-lines var(--effect-duration) ease-in-out;
}
.motion-spotlight {
  position: absolute;
  z-index: 0;
  inset: -20% -25% -10%;
  opacity: 0;
  transform-origin: 50% 0;
  background: linear-gradient(
    90deg,
    transparent 15%,
    #fff1a650 40%,
    #fff4bca6 50%,
    #fff1a650 60%,
    transparent 85%
  );
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.effect-spotlight.is-playing .motion-spotlight {
  animation: arena-spotlight var(--effect-duration) ease-in-out;
}
.effect-spotlight.is-playing .card-character {
  animation: spotlight-player var(--effect-duration) ease-in-out;
}
.effect-ink.is-playing .card-autograph path {
  stroke-dasharray: 100;
  animation: autograph-write var(--effect-duration) ease-in-out;
}
.effect-stitch.is-playing .card-patch {
  animation: fabric-reveal var(--effect-duration) ease-out;
}
.effect-stitch.is-playing .patch-stitch-outline {
  stroke-dasharray: 100;
  animation: stitch-edge var(--effect-duration) linear;
}
.effect-coronation.is-playing .badge-one-of-one {
  animation: unique-arrival var(--effect-duration) ease-out;
}
.effect-rarity .card-rarity {
  position: relative;
  overflow: hidden;
}
.effect-rarity .card-rarity::after {
  content: '';
  position: absolute;
  inset: -40% -80%;
  opacity: 0;
  background: linear-gradient(
    110deg,
    transparent 40%,
    #fff6 46%,
    #fffce3d9 50%,
    #fff6 54%,
    transparent 60%
  );
  pointer-events: none;
}
.effect-rarity.is-playing .card-rarity::after {
  animation: rarity-glint var(--effect-duration) ease-in-out;
}
.effect-turn {
  transform-style: preserve-3d;
  overflow: visible;
  isolation: auto;
}
.effect-turn > :not(.motion-card-back) {
  backface-visibility: hidden;
  transform: translateZ(0.1px);
  border-radius: 3px;
}
.motion-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 4px solid var(--prizm);
  border-radius: 3px;
  background: repeating-linear-gradient(45deg, #304b46 0 5px, #3e5b50 5px 6px, #304b46 6px 11px);
  color: #ede3b8;
  box-shadow:
    inset 0 0 0 2px #98a38a,
    inset 0 0 0 8px #263d36;
  backface-visibility: hidden;
  transform: rotateY(180deg) translateZ(0.2px);
}
.motion-card-back img {
  width: 26%;
}
.motion-card-back strong {
  font-size: calc(var(--card-w) * 0.1);
}
.effect-turn.is-playing {
  animation: card-turn var(--effect-duration) ease-in-out;
}
.shooting-player {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  overflow: visible;
}
.effect-shooting.is-playing .card-character {
  animation: portrait-to-shot var(--effect-duration) ease-in-out;
}
.effect-shooting.is-playing .shooting-player {
  animation: shot-to-portrait var(--effect-duration) ease-in-out;
}
.effect-shooting.is-playing .shooting-figure {
  animation: shot-jump var(--effect-duration) ease-in-out;
}
.effect-shooting.is-playing .shooting-ball {
  animation: ball-release var(--effect-duration) ease-in-out;
}
@keyframes gloss-pass {
  0% {
    transform: translateX(-85%);
  }
  100% {
    transform: translateX(85%);
  }
}
@keyframes ribbon-pass {
  0% {
    transform: translateX(-55%);
  }
  100% {
    transform: translateX(55%);
  }
}
@keyframes character-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
@keyframes foil-tilt {
  0%,
  100% {
    transform: perspective(500px) rotateX(0) rotateY(0);
  }
  30% {
    transform: perspective(500px) rotateX(6deg) rotateY(-17deg);
    box-shadow: 5px 7px 0 #15251e66;
  }
  70% {
    transform: perspective(500px) rotateX(-4deg) rotateY(15deg);
    box-shadow: -4px 6px 0 #15251e66;
  }
}
@keyframes edge-trace {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes prism-ripple {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes parallax-back {
  0%,
  100% {
    background-position: 50% 50%;
  }
  30% {
    background-position: 10% 50%;
  }
  70% {
    background-position: 90% 50%;
  }
}
@keyframes parallax-front {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(3px);
  }
  70% {
    transform: translateX(-3px);
  }
}
@keyframes parallax-lines {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-5px);
  }
  70% {
    transform: translateX(5px);
  }
}
@keyframes arena-spotlight {
  0% {
    transform: rotate(-30deg);
    opacity: 0;
  }
  40%,
  60% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(30deg);
    opacity: 0;
  }
}
@keyframes spotlight-player {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16);
  }
}
@keyframes autograph-write {
  0%,
  8% {
    stroke-dashoffset: 100;
  }
  90%,
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes fabric-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70%,
  100% {
    clip-path: inset(0);
    opacity: 1;
  }
}
@keyframes stitch-edge {
  0%,
  35% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes unique-arrival {
  0% {
    transform: translateY(-12px) scale(0.55);
    opacity: 0;
  }
  45% {
    transform: translateY(0) scale(1.14);
    opacity: 1;
  }
  65% {
    transform: translateY(-2px) scale(0.97);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes rarity-glint {
  0% {
    transform: translateX(-60%);
    opacity: 0;
  }
  30%,
  65% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(60%);
    opacity: 0;
  }
}
@keyframes card-turn {
  0%,
  100% {
    transform: perspective(550px) rotateY(0);
  }
  35%,
  60% {
    transform: perspective(550px) rotateY(180deg);
  }
}
@keyframes portrait-to-shot {
  0%,
  12%,
  88%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  30%,
  70% {
    opacity: 0;
    transform: scale(0.65);
  }
}
@keyframes shot-to-portrait {
  0%,
  15%,
  85%,
  100% {
    opacity: 0;
  }
  30%,
  70% {
    opacity: 1;
  }
}
@keyframes shot-jump {
  0%,
  30%,
  75%,
  100% {
    transform: translate(0, 0);
  }
  45%,
  55% {
    transform: translate(var(--jump-x, 0px), var(--jump-y, -3px));
  }
}
@keyframes ball-release {
  0%,
  35% {
    transform: translate(0, 0);
    opacity: 1;
  }
  65%,
  80% {
    transform: translate(var(--ball-x, 8px), -20px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

.prizm-lab {
  margin-top: 32px;
}
.rarity-key {
  display: flex;
  gap: 5px;
  align-items: center;
}
.rarity-key .card-rarity {
  font-size: 10px;
}
.prizm-option {
  padding: 22px 25px;
  border: 1px solid #bdc8b1;
  background: #263a33;
  color: #f1f3df;
  border-radius: 5px;
  margin-bottom: 16px;
}
.prizm-option.is-selected {
  outline: 2px solid #93ab79;
  outline-offset: 2px;
}
.prizm-option-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.prizm-option-heading h3 {
  font-size: 16px;
}
.prizm-option-heading p {
  font-size: 11px;
  color: #bbc7ac;
  margin-top: 4px;
}
.prizm-option-heading .quiet-button {
  flex-shrink: 0;
  background: #385044;
  color: #e1ebd4;
  border-color: #738968;
}
.prizm-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.prizm-color-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}
.prizm-color-preview > small {
  font-size: 9px;
  color: #bcc9b2;
}
.frame-field-label {
  margin-top: 18px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid #d2d8c1;
  border-radius: 7px;
  overflow: hidden;
  background: #f1f1e3;
}
.workbench-preview {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workbench-mat {
  flex: 1;
  min-height: 410px;
  background: #6f8666;
  box-shadow:
    inset 0 0 0 8px #5e7757,
    inset 0 0 0 9px #91a07d;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.workbench-mat::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed #a6b28e77;
  pointer-events: none;
}
#workbench-card {
  position: relative;
  z-index: 1;
}
#workbench-card .collectible {
  zoom: 2.2;
  transform: rotate(-3deg);
  box-shadow: 3px 5px 0 #344d3e44;
}
#workbench-card .collectible:hover {
  transform: rotate(-3deg) translateY(-2px);
}
.mat-caption {
  position: absolute;
  bottom: 24px;
  font-size: 10px;
  color: #d3dcc2;
}
.workbench-summary {
  padding: 19px 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.workbench-summary strong {
  font-size: 13px;
}
.workbench-summary p {
  font-size: 10px;
  color: #8b937b;
  margin-top: 4px;
}
.workbench-summary > span {
  color: #8b937b;
  font-size: 11px;
}
.workbench-controls {
  padding: 31px 38px;
  border-left: 1px solid #d2d8c1;
  background: #fafbf1;
  min-width: 0;
}
.workbench-controls h2 {
  font-size: 20px;
  margin-bottom: 23px;
}
.workbench-controls select {
  width: 100%;
  font-size: 12px;
  padding: 10px 12px;
}
.rating-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 20px;
}
.rating-label output {
  color: var(--forest);
  font-weight: 700;
}
input[type='range'] {
  width: 100%;
  accent-color: var(--forest);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: #939b85;
  font-size: 9px;
}
.color-picker {
  margin: 20px 0;
}
#color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-option {
  width: 34px;
  height: 34px;
  background: var(--swatch);
  border: 4px solid #fffdf0;
  box-shadow: 0 0 0 1px #d8dcc9;
  border-radius: 50%;
  position: relative;
}
.color-option[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--forest);
}
.color-option[aria-pressed='true']::after {
  content: '✓';
  color: white;
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 15px;
  text-shadow: 1px 1px 2px #333;
}
.rainbow-swatch {
  background: conic-gradient(#cf797d, #e9c77a, #8dba8a, #83a9cb, #b689c5, #cf797d) !important;
}
.field-help {
  color: #8a917d;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 8px;
}
.badge-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  border: 1px solid #d8ddc9;
  border-radius: 5px;
  padding: 13px;
  cursor: pointer;
  background: #eff3e6;
}
.badge-toggle input {
  accent-color: var(--forest);
  width: 15px;
  height: 15px;
}
.badge-toggle strong {
  font-size: 11px;
  display: block;
}
.badge-toggle small {
  display: block;
  font-size: 9px;
  color: #8c947e;
  margin-top: 3px;
}
.badge-toggle > img {
  width: 32px;
  height: 20px;
  margin-left: auto;
}
.workbench-preferences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 20px;
}
.workbench-preferences label {
  margin: 0;
}
.workbench-preferences label:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}
.workbench-preferences select:first-of-type {
  grid-column: 1;
}
.layout-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.layout-choice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  background: #eff2e5;
  border: 1px solid #d7ddc7;
  border-radius: 5px;
  padding: 20px;
}
.layout-choice[aria-pressed='true'] {
  border-color: #819870;
  background: #e8eedc;
  box-shadow: inset 0 0 0 1px #819870;
}
.format-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.format-title small {
  display: block;
  margin-top: 5px;
  color: #718065;
  font-size: 10px;
  font-weight: 400;
}
.format-number {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #3e5544;
  color: #fbf9e9;
  font-size: 12px;
  border-radius: 3px;
}
.format-cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 2px 0;
}
.format-selection {
  font-size: 10px;
  color: #687c5c;
}
.comparison-section {
  margin-top: 0;
  margin-bottom: 26px;
}

.library-total {
  font-size: 11px;
  color: #718561;
  background: #eaf0de;
  border: 1px solid #d5dfc3;
  padding: 8px 13px;
  border-radius: 5px;
}
.head-lab {
  margin-bottom: 38px;
}
.head-lab-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.head-lab-tools .search-field {
  flex: 1;
}
#head-lab-count {
  font-size: 12px;
  color: #718561;
  white-space: nowrap;
}
.head-lab-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #bdc8b1;
  border-radius: 5px;
}
.head-lab-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px;
  table-layout: fixed;
}
.head-lab-table th,
.head-lab-table td {
  padding: 14px;
  border-bottom: 1px solid #d3dbc6;
  border-right: 1px solid #d3dbc6;
}
.head-lab-table th:first-child {
  width: 148px;
  text-align: left;
}
.head-lab-table thead {
  background: #263a33;
  color: #f1f3df;
}
.head-lab-table thead th {
  vertical-align: top;
}
.head-lab-table thead strong {
  display: block;
  font-size: 15px;
}
.head-lab-table thead small {
  display: block;
  color: #bbc7ac;
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 12px;
  min-height: 34px;
}
.head-lab-table thead .quiet-button {
  width: 100%;
  background: #385044;
  color: #e1ebd4;
  border-color: #738968;
}
.head-lab-table tbody th {
  font-size: 13px;
  background: #edf1e3;
}
.head-lab-table td {
  background: #f8faef;
}
.head-lab-table .is-selected {
  box-shadow:
    inset 3px 0 #8fa56f,
    inset -3px 0 #8fa56f;
}
.head-study {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.head-study-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #dce5cf;
  border: 1px solid #c8d4b9;
}
.head-study-art img {
  max-width: none;
}
.head-native {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  gap: 10px;
  margin-top: 8px;
}
.head-native small {
  font-size: 10px;
  color: #77886b;
}
.library-toolbar {
  display: flex;
  gap: 13px;
  align-items: center;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.search-field {
  display: flex;
  flex: 1;
  max-width: 490px;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid #cfd6bf;
  background: #fffef6;
  border-radius: 4px;
}
.search-field > span {
  font-size: 24px;
  color: #95a181;
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  color: var(--ink);
}
.search-field input:focus-visible {
  outline-offset: 0;
}
#asset-result-count {
  margin-left: auto;
  color: #8b947d;
  font-size: 11px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}
.asset-tile {
  border: 1px solid #d4dcc5;
  border-radius: 5px;
  background: #fcfdf4;
  overflow: hidden;
  padding: 0;
  text-align: left;
}
.asset-art {
  height: 162px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  position: relative;
  background-color: #e9eddf;
  background-image:
    linear-gradient(45deg, #dfe5d5 25%, transparent 25%),
    linear-gradient(-45deg, #dfe5d5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dfe5d5 75%),
    linear-gradient(-45deg, transparent 75%, #dfe5d5 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
}
.asset-art img {
  object-fit: contain;
  max-height: 124px;
  width: auto;
  max-width: 92%;
}
.asset-art .asset-grid-image {
  width: var(--preview-w);
  height: var(--preview-h);
}
.asset-art small {
  position: absolute;
  bottom: 7px;
  right: 8px;
  color: #5a6d53;
  background: #f3f5e5;
  padding: 1px 5px;
  font-size: 8px;
}
.asset-tile-copy {
  display: block;
  padding: 13px 15px;
}
.asset-tile-copy strong {
  font-size: 12px;
  font-weight: 600;
}
.asset-tile-copy > span {
  display: flex;
  justify-content: space-between;
  color: #929a83;
  font-size: 10px;
  margin-top: 5px;
}
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: #879576;
  padding: 70px 20px;
}

dialog {
  padding: 32px;
  border: 1px solid #bbc9aa;
  border-radius: 8px;
  background: #fafbf0;
  color: var(--ink);
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-shadow: 0 18px 80px #24392a44;
}
dialog::backdrop {
  background: #263b2cc4;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  z-index: 3;
  right: 13px;
  top: 10px;
  border: 0;
  background: #e9eddc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #788568;
}
.inspect-dialog {
  width: 640px;
}
.inspect-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 12px;
}
.inspect-card-mat {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 330px;
  background: #e6ecdb;
  border: 1px solid #d4dec5;
  border-radius: 4px;
}
.inspect-card-mat .collectible {
  zoom: 1.8;
}
.inspect-details {
  padding-top: 8px;
}
.inspect-details h2 {
  font-size: 25px;
  margin-bottom: 7px;
}
.inspect-details > p {
  font-size: 11px;
  color: #859176;
}
.inspect-details dl {
  margin: 17px 0;
  font-size: 11px;
}
.inspect-details dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e1e6d3;
}
.inspect-details dt {
  color: #8b957e;
}
.inspect-details dd {
  margin: 0;
  text-align: right;
}
.inspect-details .demo-value {
  color: #738365;
  margin-bottom: 13px;
}
.slot-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 9px 0;
}
.slot-choices button {
  border: 1px dashed #aab99b;
  border-radius: 2px;
  background: #edf2e2;
  padding: 7px 0;
  font-size: 10px;
  color: #7e8d6e;
}
.inspect-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.inspect-actions button {
  font-size: 10px;
  padding: 8px 12px;
}
.slot-picker {
  min-width: 240px;
  padding-top: 10px;
}
.slot-picker > p {
  font-size: 11px;
  color: #8a947e;
  margin: 8px 0 23px;
}
.slot-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 500px;
}
.pack-dialog {
  width: 800px;
  text-align: center;
  padding: 35px 28px 25px;
}
.pack-dialog h2 {
  font-size: 28px;
}
.pack-dialog > p:not(.eyebrow) {
  color: #8a947b;
  font-size: 12px;
  margin-top: 10px;
}
.pack-reveal-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 29px 0;
  min-height: 160px;
  flex-wrap: wrap;
}
.card-back {
  width: 90px;
  height: 125px;
  border: 3px solid #c8bb8d;
  background: #54745a;
  padding: 6px;
  box-shadow: 1px 3px 0 #53634d2a;
  border-radius: 3px;
  position: relative;
}
.card-back::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #a8b180;
}
.card-back img {
  width: 38px;
}
.card-back small {
  display: block;
  color: #d0d5ad;
  margin-top: 10px;
  font-size: 9px;
}
.revealed-card {
  animation: card-appear 200ms ease-out;
}
@keyframes card-appear {
  from {
    transform: scaleX(0.3);
    opacity: 0.5;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.pack-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.asset-dialog {
  width: 650px;
}
.asset-dialog h2 {
  margin-top: 6px;
}
.asset-dialog .asset-art {
  height: 270px;
  margin-top: 20px;
}
.asset-dialog .asset-art img {
  max-height: 235px;
  max-width: 95%;
}
.native-preview {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 20px 0;
  font-size: 11px;
  color: #7f8d70;
  overflow-x: auto;
  padding: 5px;
}
.native-preview img {
  flex-shrink: 0;
  max-width: none;
}
.asset-dialog a {
  font-size: 11px;
}
.asset-path {
  font-family: monospace;
  font-size: 10px;
  color: #829074;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.odds-dialog {
  width: 520px;
}
.odds-dialog > p:not(.eyebrow) {
  font-size: 12px;
  color: #88967a;
  margin: 10px 0 18px;
}
.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.odds-table th {
  color: #8e987e;
  text-align: left;
  padding: 8px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.odds-table td {
  padding: 8px;
  border-bottom: 1px solid #e2e7d5;
}
.odds-table td:last-child,
.odds-table th:last-child {
  text-align: right;
}
.odds-color {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
}
.odds-note {
  font-size: 11px;
  color: #829272;
  margin-top: 16px;
}
.reset-dialog {
  width: 450px;
}
.reset-dialog > p:not(.eyebrow) {
  font-size: 12px;
  color: #879475;
  margin-top: 13px;
}
.dialog-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--forest);
  border: 1px solid #66815f;
  border-radius: 5px;
  color: #f0f5e1;
  padding: 12px 23px;
  font-size: 12px;
  box-shadow: 0 4px 20px #1d3b2e33;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.load-error {
  background: #f9e4cc;
  border: 1px solid #c6a170;
  padding: 25px;
  margin: 30px 0;
  color: #85552e;
}

@media (min-width: 1550px) {
  .site-header {
    padding-left: calc((100vw - 1340px) / 2);
    padding-right: calc((100vw - 1340px) / 2);
  }
}
@media (max-width: 1120px) {
  .layout-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-header {
    gap: 20px;
    padding: 0 3%;
  }
  .main-tabs {
    gap: 0;
  }
  .main-tabs button {
    padding: 0 10px;
    font-size: 12px;
  }
  .header-actions {
    gap: 10px;
  }
  .lab-label {
    display: none;
  }
  main {
    padding: 0 3%;
  }
  .shop-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .style-notebook {
    padding: 20px 15px 16px;
  }
  .pack-counter {
    padding: 18px 15px;
    gap: 12px;
  }
  .pack-copy h2 {
    font-size: 16px;
  }
  .pack-copy p {
    font-size: 10px;
    max-width: 220px;
  }
  .pack-buy .primary-button {
    padding: 9px 12px;
  }
  .scene-footer > span:last-child {
    max-width: 47%;
    font-size: 9px;
    text-align: right;
  }
  .scene-heading > span {
    font-size: 9px;
  }
  .scene-panel {
    flex: none;
  }
  .shop-main {
    justify-content: space-between;
  }
  .sample-grid {
    justify-content: flex-start;
    gap: 24px;
  }
  .asset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .layout-choice {
    gap: 15px;
    padding: 16px 10px;
  }
  .format-title {
    font-size: 11px;
  }
  .format-title small {
    font-size: 9px;
  }
}
@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px 4% 0;
    gap: 13px;
  }
  .brand {
    margin-right: auto;
  }
  .header-actions {
    order: 1;
  }
  .main-tabs {
    order: 2;
    flex-basis: 100%;
    justify-content: center;
    height: 47px;
    gap: 14px;
  }
  .main-tabs button {
    flex: 1;
    padding: 0 8px;
  }
  main {
    padding: 0 4%;
  }
  .page-heading {
    padding-top: 25px;
    padding-bottom: 23px;
  }
  h1 {
    font-size: 29px;
  }
  .page-heading p:not(.eyebrow) {
    max-width: 330px;
    font-size: 12px;
  }
  .wallet {
    padding: 10px 14px;
    gap: 8px;
  }
  .wallet strong {
    font-size: 18px;
  }
  .wallet > img {
    width: 24px;
    height: 24px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .shop-main {
    display: block;
  }
  .style-notebook {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding: 20px;
  }
  .notebook-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }
  .scene-picker {
    grid-row: 2 / 7;
  }
  .notebook-rule,
  .notebook-note {
    display: none;
  }
  .style-notebook > .field-label {
    grid-column: 2;
    margin: 0;
  }
  .style-notebook > select {
    grid-column: 2;
  }
  .size-label {
    margin-top: 0;
  }
  .size-label .field-label {
    margin: 0;
  }
  .notebook-workbench {
    grid-column: 2;
    padding-top: 10px;
    margin-top: 1px;
    align-self: end;
  }
  .scene-option small {
    display: none;
  }
  .pack-copy p {
    max-width: none;
  }
  .pack-counter {
    padding: 19px;
    gap: 18px;
  }
  .scene-footer > span:last-child {
    max-width: none;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .collection-tools {
    margin-left: auto;
  }
  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .workbench-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .workbench-controls {
    border-left: 0;
    border-top: 1px solid #d2d8c1;
  }
  .workbench-mat {
    min-height: 385px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .library-toolbar {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .asset-art {
    height: 155px;
  }
  .asset-tile-copy {
    padding: 12px;
  }
  .asset-tile-copy strong {
    font-size: 11px;
  }
  .page-heading > .sample-label,
  .page-heading > .library-total {
    display: none;
  }
}
@media (max-width: 480px) {
  .main-tabs {
    gap: 0;
  }
  .main-tabs button {
    font-size: 11px;
    padding: 0 3px;
  }
  .main-tabs button span {
    margin-right: 4px;
    font-size: 16px;
  }
  .icon-button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .brand strong {
    font-size: 25px;
  }
  .brand > img {
    width: 26px;
    height: 39px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    max-width: 200px;
  }
  h1 {
    font-size: 27px;
    max-width: 235px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
    max-width: 205px;
  }
  .wallet {
    padding: 9px;
    gap: 6px;
    margin-top: 25px;
  }
  .wallet strong {
    font-size: 15px;
    white-space: nowrap;
  }
  .wallet strong span {
    display: none;
  }
  .wallet small {
    font-size: 9px;
  }
  .wallet > img {
    width: 20px;
    height: 20px;
  }
  .scene-heading {
    padding: 10px;
    font-size: 10px;
  }
  .scene-heading > span {
    font-size: 8px;
  }
  .scene-footer {
    padding: 9px 10px;
    font-size: 9px;
  }
  .scene-footer > span:last-child {
    display: none;
  }
  .grandpa-speech {
    padding: 4px 7px;
    font-size: 7px;
  }
  .display-slot.empty::before {
    font-size: 12px;
  }
  .display-slot-number {
    bottom: -9px;
    font-size: 6px;
  }
  .pack-counter {
    gap: 12px;
    padding: 15px 12px;
    flex-wrap: wrap;
  }
  .pack-illustration {
    width: 39px;
    height: 62px;
  }
  .pack-illustration img {
    width: 34px;
    height: 51px;
  }
  .pack-copy {
    flex: 1;
  }
  .pack-copy h2 {
    font-size: 16px;
  }
  .pack-copy p {
    font-size: 10px;
  }
  .pack-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #d2d0b6;
  }
  .pack-buy > span {
    margin: 0;
  }
  .pack-buy .primary-button {
    padding: 9px 18px;
  }
  .style-notebook {
    padding: 16px 12px;
    column-gap: 12px;
  }
  .notebook-title {
    margin-bottom: 2px;
  }
  .scene-option {
    padding: 5px;
    gap: 6px;
  }
  .scene-option > img {
    width: 32px;
    height: 25px;
  }
  .scene-option strong {
    font-size: 9px;
  }
  .scene-option .selection-check {
    display: none;
  }
  .scene-picker legend {
    font-size: 10px;
  }
  .size-label > span {
    display: none;
  }
  .notebook-workbench {
    font-size: 9px;
  }
  .collection-tools {
    width: 100%;
    justify-content: space-between;
  }
  .empty-collection {
    gap: 15px;
    padding: 10px 0;
  }
  .empty-collection > img {
    width: 48px;
    height: 40px;
  }
  .empty-collection h3 {
    font-size: 12px;
  }
  .empty-collection p {
    font-size: 10px;
    max-width: 200px;
  }
  .collection-grid {
    padding: 17px;
    gap: 18px;
  }
  .sample-grid {
    gap: 20px;
    justify-content: center;
  }
  .section-heading > .sample-label {
    font-size: 9px;
  }
  .workbench-preview {
    padding: 17px;
  }
  .workbench-controls {
    padding: 24px 20px;
  }
  .workbench-summary {
    flex-wrap: wrap;
  }
  .workbench-mat {
    min-height: 385px;
  }
  #workbench-card .collectible {
    zoom: 2;
  }
  .color-option {
    width: 31px;
    height: 31px;
  }
  #color-options {
    gap: 9px;
  }
  .prizm-option {
    padding: 18px 14px;
  }
  .prizm-cards {
    gap: 18px;
    justify-content: center;
  }
  .prizm-option-heading {
    align-items: flex-start;
  }
  .prizm-option-heading h3 {
    font-size: 14px;
  }
  .prizm-option-heading p {
    font-size: 10px;
  }
  .prizm-option-heading .quiet-button {
    font-size: 10px;
    padding: 7px;
  }
  .layout-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .format-title {
    font-size: 13px;
  }
  .format-title small {
    font-size: 10px;
  }
  .format-cards .collectible {
    zoom: 1.2;
  }
  .layout-choice {
    padding: 18px 4px;
    gap: 13px;
  }
  .asset-art {
    height: 125px;
  }
  .asset-art img {
    max-height: 95px;
  }
  .asset-tile-copy > span {
    font-size: 8px;
    gap: 4px;
  }
  .asset-tile-copy strong {
    font-size: 10px;
  }
  dialog {
    padding: 28px 20px 22px;
  }
  .inspect-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .inspect-card-mat {
    min-height: 300px;
  }
  .inspect-card-mat .collectible {
    zoom: 1.6;
  }
  .inspect-details {
    padding: 0 3px;
  }
  .inspect-details h2 {
    font-size: 23px;
  }
  .pack-dialog h2 {
    font-size: 24px;
  }
  .pack-reveal-grid {
    gap: 16px;
    margin: 25px 0;
  }
  .pack-dialog-actions {
    flex-wrap: wrap;
  }
  .native-preview {
    gap: 10px;
    flex-wrap: wrap;
  }
  .odds-table {
    font-size: 10px;
  }
  .odds-table th,
  .odds-table td {
    padding: 7px 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .effect-preview .card-paper::after,
  .effect-preview .prizm-frame::after {
    opacity: 0 !important;
  }
}

.final-heading > a {
  white-space: nowrap;
  font-size: 12px;
}
.final-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
}
.final-decisions strong {
  color: var(--ink);
  margin-right: 6px;
}
.final-motion-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 34px;
  padding: 18px 22px;
  background: #e8edde;
  border-left: 3px solid #8c9f75;
}
.final-motion-bar > div:first-child {
  flex: 1;
  min-width: 220px;
}
.final-motion-bar p {
  max-width: 620px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.final-motion-bar > div:nth-child(2) {
  display: flex;
  gap: 8px;
}
#final-motion-status {
  flex-basis: 100%;
  font-size: 11px;
  color: #637457;
}
.final-section {
  margin: 32px 0 40px;
}
.final-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.final-card-study {
  min-width: 0;
}
.final-card-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 12px;
  background: #30463c;
  border: 1px solid #8a987c;
  box-shadow: inset 0 0 0 6px #3b5142;
}
.final-card-stage .collectible {
  zoom: 1.75;
}
.final-card-study h3 {
  font-size: 14px;
  margin-top: 13px;
}
.final-card-study > p {
  min-height: 38px;
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 12px;
}
.final-card-study > button {
  padding: 6px 12px;
  font-size: 11px;
}
.final-reference-note {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.final-canvas .card-paper::after,
.final-canvas .prizm-frame::after,
.final-canvas .card-sparkles::before,
.final-canvas .card-sparkles::after {
  animation: none;
  opacity: 0;
}
.final-motion {
  --effect-duration: 2.8s;
  --depth-duration: 3.2s;
  --shot-duration: 4s;
  --shot-delay: 3.2s;
}
.final-motion.effect-gloss .card-paper::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: -30% -80%;
  background: linear-gradient(
    115deg,
    transparent 37%,
    #e2faff0a 43%,
    #fff6 49%,
    #f9d8ff29 54%,
    transparent 62%
  );
  transform: translateX(-100%);
  pointer-events: none;
}
.final-motion.effect-ribbon .prizm-frame::after {
  content: '';
  position: absolute;
  inset: -30% -100%;
  background: linear-gradient(
    110deg,
    transparent 42%,
    #ffffff18 46%,
    #fff9 49%,
    #ffffff18 52%,
    transparent 56%
  );
}
.final-canvas .effect-gloss.is-playing .card-paper::after {
  opacity: 1;
  animation: gloss-pass var(--effect-duration) ease-in-out both;
}
.final-canvas .effect-ribbon.is-playing .prizm-frame::after {
  opacity: 1;
  animation: ribbon-pass var(--effect-duration) ease-in-out both;
}
.final-motion.effect-parallax.is-playing .portrait-window {
  animation: parallax-back var(--depth-duration) ease-in-out both;
}
.final-motion.effect-parallax.is-playing .card-character {
  animation: parallax-front var(--depth-duration) ease-in-out both;
}
.final-motion.effect-parallax.is-playing .court-lines {
  animation: parallax-lines var(--depth-duration) ease-in-out both;
}
.final-motion.effect-shooting.is-playing .card-character {
  animation:
    parallax-front var(--depth-duration) ease-in-out,
    portrait-to-shot var(--shot-duration) ease-in-out var(--shot-delay) both;
}
.final-motion.effect-shooting.is-playing .shooting-player {
  animation: shot-to-portrait var(--shot-duration) ease-in-out var(--shot-delay) both;
}
.final-motion.effect-shooting.is-playing .shooting-figure {
  animation: shot-jump var(--shot-duration) ease-in-out var(--shot-delay) both;
}
.final-motion.effect-shooting.is-playing .shooting-ball {
  animation: ball-release var(--shot-duration) ease-in-out var(--shot-delay) both;
}
.final-motion.effect-spotlight.is-playing .motion-spotlight {
  animation: arena-spotlight var(--effect-duration) ease-in-out both;
}
.final-motion.effect-ink.is-playing .card-autograph path {
  animation: autograph-write var(--depth-duration) ease-in-out both;
}
@media (max-width: 1050px) {
  .final-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .final-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .final-card-stage {
    padding: 22px 8px;
  }
  .final-card-stage .collectible {
    zoom: 1.45;
  }
  .final-heading {
    flex-wrap: wrap;
  }
  .final-motion-bar {
    padding: 15px;
  }
}
@media (max-width: 370px) {
  .final-card-stage .collectible {
    zoom: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .final-canvas .card-paper::after,
  .final-canvas .prizm-frame::after,
  .final-canvas .motion-spotlight {
    opacity: 0 !important;
  }
}

.card-edition-corner {
  position: absolute;
  z-index: 7;
  right: 1%;
  bottom: 1%;
  display: flex;
}
.color-normal.has-edition .card-name {
  right: 18%;
}
.card-foil {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.foil-spectrum .card-foil {
  background: linear-gradient(
    120deg,
    #ff729f 0%,
    #ffd578 19%,
    #98f5b1 38%,
    #70e4ff 57%,
    #a99aff 76%,
    #ff8cd8 100%
  );
  mix-blend-mode: color;
  opacity: 0.65;
}
.foil-facets .card-foil,
.foil-facets-pop .card-foil {
  background: conic-gradient(
    from 20deg at 38% 43%,
    #ff7ac8 0deg 55deg,
    #75d9ff 55deg 105deg,
    #ffe274 105deg 160deg,
    #78f7af 160deg 210deg,
    #ba7bff 210deg 270deg,
    #ff9b77 270deg 320deg,
    #ff7ac8 320deg
  );
  mix-blend-mode: overlay;
  opacity: 0.68;
}
.foil-woven .card-foil,
.foil-woven-pop .card-foil {
  background:
    repeating-linear-gradient(
      38deg,
      #ff82c780 0 4px,
      #f9dc8280 4px 8px,
      #7af0cd80 8px 12px,
      #81b8ff80 12px 16px,
      #cfa1ff80 16px 20px
    ),
    repeating-linear-gradient(-38deg, transparent 0 9px, #fff8 9px 11px, transparent 11px 20px);
  mix-blend-mode: screen;
  opacity: 0.52;
}
.foil-stardust .card-foil {
  background: conic-gradient(from 40deg at 25% 25%, #ffb1d8, #a6f4f2, #d9ffaa, #b99bff, #ffb1d8);
  mix-blend-mode: overlay;
  opacity: 0.75;
}
.foil-stardust .card-foil::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(#fff 0 0.7px, transparent 0.8px) 2px 3px / 9px 11px,
    radial-gradient(#fff9 0 1px, transparent 1.1px) 7px 6px / 17px 19px;
  opacity: 0.8;
}
.foil-lab {
  margin-bottom: 38px;
}
.foil-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 16px;
}
.foil-option {
  --effect-duration: 1s;
  min-width: 0;
  padding: 15px;
}
.foil-option > p {
  min-height: 50px;
}
.foil-option .effect-mat {
  background: #172e28;
  border: 1px solid #637c63;
  margin: 14px 0;
  padding: 22px 4px;
}
.foil-option .effect-mat .collectible {
  zoom: 1.65;
}
.foil-option > .quiet-button + .quiet-button {
  margin-top: 8px;
}

.foil-player-pop .portrait-window {
  isolation: isolate;
}
.foil-player-pop .card-foil {
  z-index: 0;
}
.foil-player-pop .card-character {
  z-index: 1;
  filter: drop-shadow(0 -1px 0 #fff5cfcc) drop-shadow(2px 3px 0 #152438cc);
}
.foil-ribbon-stage .portrait-window {
  background: #8260ba;
}
.foil-ribbon-stage .court-lines {
  display: none;
}
.foil-ribbon-stage .card-foil {
  background:
    repeating-linear-gradient(
      36deg,
      #fff9 0 2px,
      #fff2 2px 10px,
      transparent 10px 29px,
      #38225270 29px 35px,
      transparent 35px 58px
    ),
    repeating-linear-gradient(
      -36deg,
      transparent 0 21px,
      #fff9 21px 23px,
      #2a205d66 23px 29px,
      transparent 29px 54px
    ),
    linear-gradient(
      135deg,
      #ef85b1 0%,
      #f4ca71 20%,
      #8bd7ac 40%,
      #72c5e2 60%,
      #9a99e9 80%,
      #db9bdd 100%
    );
}

.collectible.color-rainbow.foil-wide-border {
  --frame-width: calc(var(--card-w) * 0.095);
}
.foil-border-field .portrait-window,
.foil-team-border .portrait-window {
  background: none;
}
.foil-border-field .court-lines,
.foil-team-border .court-lines {
  display: none;
}

.foil-team-border .prizm-frame {
  background: var(--team-a);
}
