.sample-card {
  --light-x: 50%;
  --light-y: 50%;
  --turn-x: 0deg;
  --turn-y: 0deg;
  --edge: #ffffff55;
  --paper: #f0ebe3;
  --ink: #2a2622;
  --glare-color: #ffffffbd;
  --glare-rest: .06;
  --glare-live: .36;
  --foil-rest: .16;
  --foil-live: .52;
  --finish: screen;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  box-sizing: border-box;
  container-type: inline-size;
  isolation: isolate;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 4% / 3%;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 17px 37px #02020965, inset 0 0 0 1px #ffffff22;
  font-family: var(--sans);
  line-height: 1.2;
  touch-action: none;
  user-select: none;
  transform: perspective(800px) rotateX(var(--turn-x)) rotateY(var(--turn-y));
  transition: transform .18s cubic-bezier(.18,.75,.29,1), box-shadow .23s ease;
}

.sample-card[data-engaged] { box-shadow: 0 24px 46px #02020973, inset 0 0 0 1px #ffffff30; }
.sample-card:focus-visible { outline: 2px solid #85b8ff; outline-offset: 5px; }
.sample-card *, .sample-card *::before, .sample-card *::after { box-sizing: border-box; }

.sample-card .sc-field,
.sample-card .sc-foil,
.sample-card .sc-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sample-card .sc-header,
.sample-card .sc-title {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sample-card .sc-header {
  inset: 6% 7.5% auto;
  gap: 2cqw;
  font-size: 4.05cqw;
  font-weight: 700;
  line-height: 1;
}

.sample-card .sc-index { font: 650 3.35cqw/1 var(--mono); letter-spacing: .07em; }
.sample-card .sc-title { inset: auto 7.5% 7%; align-items: end; gap: 2cqw; }
.sample-card .sc-title strong { font-size: 12.7cqw; font-weight: 820; letter-spacing: -.085em; line-height: .93; }
.sample-card .sc-title > span { font-size: 4.1cqw; font-weight: 675; white-space: nowrap; }

.sample-card .sc-art {
  position: absolute;
  z-index: 1;
  inset: 17% 8% 23%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.sample-card .sc-art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  scale: 1.28;
  display: block;
  pointer-events: none;
}

.sample-card .sc-foil {
  z-index: 3;
  opacity: var(--foil-rest);
  background: var(--foil, linear-gradient(140deg, #ffffff5e, transparent 42%, #fff9c657 75%, transparent));
  background-position: var(--light-x) var(--light-y);
  background-size: var(--foil-size, 185% 185%);
  mix-blend-mode: var(--finish);
  transition: opacity .23s ease;
}

.sample-card .sc-glare {
  z-index: 4;
  opacity: var(--glare-rest);
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), var(--glare-color), transparent 58%);
  mix-blend-mode: screen;
  transition: opacity .23s ease;
}

.sample-card[data-engaged] .sc-foil { opacity: var(--foil-live); }
.sample-card[data-engaged] .sc-glare { opacity: var(--glare-live); }

.sample-card[data-card="archive"] {
  --paper: #f2ecdf;
  --ink: #34352e;
  --edge: #dfd4bb;
  --foil-rest: .09;
  --foil-live: .28;
  --glare-color: #fbefe6a0;
  --foil: repeating-linear-gradient(125deg, #f4deae1f 0 2px, transparent 2px 6px), linear-gradient(128deg, #fff8dc70, transparent 52%, #e8f1ef69);
}

.sample-card[data-card="archive"] .sc-field {
  inset: 4.2% 5.5%;
  border: 1px solid #a79d824c;
}

.sample-card[data-card="archive"] .sc-field::after {
  content: "";
  position: absolute;
  inset: 9.7% 3% 14%;
  border-block: 1px solid #9f98785c;
}

.sample-card[data-card="archive"] .sc-header { top: 7.25%; inset-inline: 9.3%; letter-spacing: .06em; }
.sample-card[data-card="archive"] .sc-brand { font-family: var(--serif); }
.sample-card[data-card="archive"] .sc-title { bottom: 8.7%; inset-inline: 9.1%; }
.sample-card[data-card="archive"] .sc-title strong { font: 760 13cqw/.95 var(--serif); letter-spacing: -.075em; }
.sample-card[data-card="archive"] .sc-title > span { color: #5d5a4f; font-family: var(--serif); }

.sample-card[data-card="archive"] .sc-art {
  inset: 18% 9% 25%;
  border: 1px solid #8a8b7a90;
  background: radial-gradient(ellipse at 51% 43%, #ddded3 8%, #c0c4b8 60%, #aab1a6);
  box-shadow: inset 0 0 0 3px #f2f3e538;
}

.sample-card[data-card="archive"] .sc-art img { filter: saturate(.68) contrast(1.04) drop-shadow(0 4cqw 4cqw #36433242); }

.sample-card[data-card="archive"] .sc-mark {
  position: absolute;
  z-index: 2;
  inset: 19.7% 11.2% 26.7%;
  background:
    linear-gradient(#fcfbecb5, #fcfbecb5) left top / 8px 1px,
    linear-gradient(#fcfbecb5, #fcfbecb5) left top / 1px 8px,
    linear-gradient(#fcfbecb5, #fcfbecb5) right top / 8px 1px,
    linear-gradient(#fcfbecb5, #fcfbecb5) right top / 1px 8px,
    linear-gradient(#fcfbecb5, #fcfbecb5) left bottom / 8px 1px,
    linear-gradient(#fcfbecb5, #fcfbecb5) left bottom / 1px 8px,
    linear-gradient(#fcfbecb5, #fcfbecb5) right bottom / 8px 1px,
    linear-gradient(#fcfbecb5, #fcfbecb5) right bottom / 1px 8px;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sample-card[data-card="gilded"] {
  --paper: radial-gradient(ellipse at 53% 42%, #573621 0, #2a1c17 45%, #17110f 86%);
  --ink: #f7d79d;
  --edge: #b88753;
  --glare-color: #ffe9a95c;
  --glare-live: .51;
  --foil-rest: .17;
  --foil-live: .64;
  --foil: repeating-linear-gradient(116deg, #dba35215 0 1px, transparent 2px 6px), linear-gradient(137deg, transparent 21%, #ffc4716b, #fff1afba 50%, #97904039 62%, transparent 72%);
}

.sample-card[data-card="gilded"] .sc-field {
  inset: 3.4% 4.8%;
  border: 1px solid #d7a460a0;
  border-radius: 5% / 3.5%;
  box-shadow: inset 0 0 0 1px #2b1712, 0 0 0 1px #a8653160;
}

.sample-card[data-card="gilded"] .sc-field::before {
  content: "";
  position: absolute;
  inset: 2.4% 3.45%;
  background:
    repeating-radial-gradient(ellipse at 0 0, transparent 0 5px, #c6874e89 5.7px, #f6c98596 6.5px, transparent 7.1px 10px) left top,
    repeating-radial-gradient(ellipse at 100% 0, transparent 0 5px, #c6874e89 5.7px, #f6c98596 6.5px, transparent 7.1px 10px) right top,
    repeating-radial-gradient(ellipse at 0 100%, transparent 0 5px, #c6874e89 5.7px, #f6c98596 6.5px, transparent 7.1px 10px) left bottom,
    repeating-radial-gradient(ellipse at 100% 100%, transparent 0 5px, #c6874e89 5.7px, #f6c98596 6.5px, transparent 7.1px 10px) right bottom;
  background-repeat: no-repeat;
  background-size: 22% 14%;
  mask-image: radial-gradient(ellipse at center, transparent 60%, #000 88%);
}

.sample-card[data-card="gilded"] .sc-header { top: 8.7%; justify-content: center; }
.sample-card[data-card="gilded"] .sc-brand { font: 700 4cqw/1 var(--serif); letter-spacing: .2em; }
.sample-card[data-card="gilded"] .sc-index {
  position: absolute;
  inset: 44cqw auto auto -3.3cqw;
  writing-mode: vertical-rl;
  color: #e8b970;
}

.sample-card[data-card="gilded"] .sc-art {
  inset: 16% 13% 24%;
  border: 1px solid #d3975bc2;
  border-radius: 49% 49% 14% 14% / 29% 29% 9% 9%;
  background:
    repeating-linear-gradient(142deg, #cfa47522 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 53% 37%, #91633e, #64412b 49%, #291b17 88%);
  box-shadow: inset 0 0 0 2px #352018, inset 0 0 0 3px #ab7a4b87;
}

.sample-card[data-card="gilded"] .sc-art img {
  scale: 1.36;
  filter: sepia(.57) saturate(.79) contrast(1.15) brightness(1.06) drop-shadow(0 4cqw 3.4cqw #23150f9c);
}

.sample-card[data-card="gilded"] .sc-mark {
  position: absolute;
  z-index: 2;
  inset: auto 48% 24%;
  height: 4.1cqw;
  rotate: 45deg;
  border: 1px solid #efc887;
  background: #9a6a41;
  box-shadow: 0 0 0 1px #2b1b11;
}

.sample-card[data-card="gilded"] .sc-title { display: grid; justify-items: center; justify-content: center; bottom: 7.2%; gap: 1.15cqw; }
.sample-card[data-card="gilded"] .sc-title strong { font: 770 12cqw/.92 var(--serif); letter-spacing: .005em; }
.sample-card[data-card="gilded"] .sc-title > span { color: #d8aa78; font-size: 3.6cqw; letter-spacing: .24em; }

.sample-card[data-card="prism"] {
  --paper: conic-gradient(from 23deg at 49% 49%, #aaa2e9, #d7f2f3, #e9aadf, #ffe6b8, #e5e6f7, #adc1eb, #aaa2e9);
  --ink: #242341;
  --edge: #f0eeffba;
  --glare-color: #fbf4f8b0;
  --glare-live: .64;
  --finish: color-dodge;
  --foil-rest: .42;
  --foil-live: .84;
  --foil-size: 220% 240%;
  --foil: repeating-linear-gradient(120deg, #e6ffb838 0 3px, #ffa5e620 3px 6px, #b4cbfb5a 7px 10px, #6f8ef336 11px 15px), linear-gradient(125deg, #838aff0a, #b4fbff8d, #ffffffd4 45%, #e7a2ff5b 55%, #ff826b6d 71%, #b4eec829);
}

.sample-card[data-card="prism"] .sc-field {
  inset: 3.35% 4.8%;
  border-radius: 5% / 3.5%;
  border: 1px solid #f9f7ffe0;
  background: repeating-linear-gradient(51deg, transparent 0 10%, #fff6 10.3%, transparent 10.5% 25%);
  opacity: .86;
}

.sample-card[data-card="prism"] .sc-header { top: 7.3%; inset-inline: 9.2%; }
.sample-card[data-card="prism"] .sc-index { border: 1px solid #30234b55; border-radius: 2em; padding: .65cqw 1.4cqw; background: #ffffff45; }

.sample-card[data-card="prism"] .sc-art {
  inset: 18% 7.4% 22%;
  clip-path: polygon(8% 0, 92% 0, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0 92%, 0 8%);
  background:
    linear-gradient(141deg, transparent 0 35%, #faf6ff66 35.3%, #fff3 35.6% 75%, transparent 75.4%),
    radial-gradient(ellipse at 54% 36%, #e6ddf0, #c0badc 76%);
  box-shadow: inset 0 0 0 1px #f6f5ffde;
}

.sample-card[data-card="prism"] .sc-art img { scale: 1.31; filter: drop-shadow(0 4cqw 4cqw #6243806b); }
.sample-card[data-card="prism"] .sc-foil { mask-image: radial-gradient(ellipse at 51% 45%, #0003 10%, #000a 51%, #000 87%); }
.sample-card[data-card="prism"] .sc-title {
  inset: auto 7.4% 6%;
  padding: 3cqw 4.2cqw 3.1cqw;
  align-items: end;
  border: 1px solid #fff9;
  border-radius: 2.4cqw;
  background: #f7f5ff77;
  box-shadow: inset 0 0 1px 1px #ffffff30;
}
.sample-card[data-card="prism"] .sc-title strong { font-size: 11cqw; }

.sample-card[data-card="screenprint"] {
  --paper: #f5e271;
  --ink: #23213c;
  --edge: #f3ce69;
  --glare-color: #ffffff91;
  --glare-live: .25;
  --foil-rest: .09;
  --foil-live: .34;
  --foil: repeating-linear-gradient(128deg, #eae9fb26 0 2px, transparent 2px 5px), linear-gradient(115deg, transparent 11%, #ffffff65, #f9ba8884 65%, transparent 73%);
  border-radius: 3% / 2.2%;
}

.sample-card[data-card="screenprint"] .sc-field {
  inset: 4.6% 5.7%;
  border-bottom: 1px solid #28213fbd;
  background:
    radial-gradient(circle, #3e27d594 0 .65px, transparent 1.07px) right top / 3.5cqw 3.5cqw,
    linear-gradient(156deg, transparent 51%, #252148 51.25%, #252148 51.5%, transparent 51.75%);
  mask-image: linear-gradient(120deg, #0000 15%, #0009 74%, #000 90%);
}

.sample-card[data-card="screenprint"] .sc-header { inset: 6% 7.1% auto; border-bottom: 1px solid #2b1a34a0; padding-bottom: 2.6cqw; }
.sample-card[data-card="screenprint"] .sc-title { inset: 16% 7.4% auto; align-items: start; gap: 3cqw; }
.sample-card[data-card="screenprint"] .sc-title strong { font-size: 21.5cqw; font-weight: 920; line-height: .93; letter-spacing: -.14em; }
.sample-card[data-card="screenprint"] .sc-title > span {
  margin-top: 1.65cqw;
  padding: .9cqw 1.45cqw;
  border: 1px solid #2f2842;
  font-size: 4cqw;
  font-weight: 760;
}

.sample-card[data-card="screenprint"] .sc-art {
  inset: 36% 5.8% 7%;
  clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
  background:
    radial-gradient(circle, #d2bdfd80 0 1px, transparent 1.35px) 0 0 / 2.2cqw 2.2cqw,
    linear-gradient(151deg, #4839c1 0%, #2d2593 62%, #251952 62.35%);
}

.sample-card[data-card="screenprint"] .sc-art img {
  scale: 1.37;
  translate: 0 1%;
  filter: saturate(1.31) contrast(1.09) drop-shadow(1.2cqw 1.6cqw 0 #201757a9);
}

.sample-card[data-card="screenprint"] .sc-mark {
  position: absolute;
  z-index: 2;
  inset: auto 7.8% 8.65% auto;
  width: 12.2cqw;
  height: 12.2cqw;
  background: #f6e782;
  clip-path: polygon(50% 0%, 57% 39%, 87% 16%, 68% 45%, 100% 50%, 68% 55%, 87% 84%, 57% 61%, 50% 100%, 43% 61%, 13% 84%, 32% 55%, 0 50%, 32% 45%, 13% 16%, 43% 39%);
}

.sample-card[data-card="signal"] {
  --paper: linear-gradient(150deg, #1c3745, #0a1b2a 54%, #101527 90%);
  --ink: #dcffff;
  --edge: #97d9e5a8;
  --glare-color: #9efff860;
  --glare-live: .55;
  --foil-rest: .24;
  --foil-live: .56;
  --foil-size: 190% 200%;
  --foil: repeating-linear-gradient(0deg, #67fddc14 0 1px, transparent 1px 4px), linear-gradient(148deg, #1c609624, transparent 37%, #8beaff85 46%, #56ffec50 49%, transparent 55% 77%, #8545db61 94%);
  box-shadow: 0 15px 38px #02020973, inset 0 0 0 2px #85ebf134, inset 0 0 35px #4febdd24;
}

.sample-card[data-card="signal"] .sc-field {
  inset: 4.3% 6%;
  border: 1px solid #7ee4ea49;
  border-radius: 2.4cqw;
}

.sample-card[data-card="signal"] .sc-field::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .64;
  background:
    linear-gradient(#86faff, #86faff) top left / 13% 1px,
    linear-gradient(#86faff, #86faff) top left / 1px 10%,
    linear-gradient(#86faff, #86faff) bottom right / 13% 1px,
    linear-gradient(#86faff, #86faff) bottom right / 1px 10%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px #50faeb);
}

.sample-card[data-card="signal"] .sc-header { inset: 7.6% 10% auto; letter-spacing: .12em; }
.sample-card[data-card="signal"] .sc-index { color: #a1f3ed; }
.sample-card[data-card="signal"] .sc-art {
  inset: 16% 9.5% 25%;
  clip-path: polygon(0 0, 90% 0, 100% 8.4%, 100% 100%, 10% 100%, 0 92%);
  background:
    linear-gradient(#6deaf025 1px, transparent 1px) center / 8.5cqw 8.5cqw,
    linear-gradient(90deg, #6deaf025 1px, transparent 1px) center / 8.5cqw 8.5cqw,
    radial-gradient(ellipse at center, #246370, #0b283c 78%);
  box-shadow: inset 0 0 0 1px #8be6ee74;
}

.sample-card[data-card="signal"] .sc-art::before,
.sample-card[data-card="signal"] .sc-art::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid #8bfbef54;
  border-radius: 50%;
  pointer-events: none;
}

.sample-card[data-card="signal"] .sc-art::after { inset: 22%; border-style: dashed; }
.sample-card[data-card="signal"] .sc-art img {
  scale: 1.25;
  filter: saturate(.83) contrast(1.04) drop-shadow(0 0 3.05cqw #75e4f0a9) drop-shadow(0 3.2cqw 4.1cqw #0119239c);
}

.sample-card[data-card="signal"] .sc-mark {
  position: absolute;
  inset: 18% 10% 26%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, transparent 42%, #6df9ec21 49%, #b9fff780 50%, #5ee5ed1a 51%, transparent 54%);
  background-repeat: no-repeat;
  background-size: 100% 26%;
  background-position: center var(--light-y);
  opacity: .74;
}

.sample-card[data-card="signal"] .sc-title {
  inset: auto 10% 9%;
  flex-direction: row-reverse;
  border-top: 1px solid #65dce19b;
  padding-top: 3cqw;
}

.sample-card[data-card="signal"] .sc-title strong { font-size: 11cqw; font-weight: 750; letter-spacing: -.055em; }
.sample-card[data-card="signal"] .sc-title > span { color: #a1e8ec; font-size: 4.05cqw; letter-spacing: .12em; }

@media (prefers-reduced-motion: reduce) {
  .sample-card, .sample-card[data-engaged] { transform: none; transition: none; }
  .sample-card .sc-foil, .sample-card .sc-glare { transition: none; }
}
