/* The featured pull is printed across the face of a booster wrapper. */
@font-face {
  font-family: "Changa One";
  src: url("/assets/fonts/changa-one-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
#hero {
  --cover: url("/assets/cards/ember-print.webp");
  --print-tone: #9e3427;
  --type: #fff5da;
  --muted: #d3d4dc;
  --action-type: "Barlow Semi Condensed", "GP Han", sans-serif;
  background: #171c36;
  color: var(--type);
  padding: clamp(88px, 7.7vw, 116px) 0 clamp(32px, 3.6vw, 62px);
  overflow: hidden;
}
#hero[data-print="grove"] { --cover: url("/assets/cards/grove-print.webp"); --print-tone: #31634f; }
#hero[data-print="moon"] { --cover: url("/assets/cards/moon-print.webp"); --print-tone: #645782; }
#hero[data-print="tide"] { --cover: url("/assets/cards/tide-print.webp"); --print-tone: #356b8a; }
#hero .hero-artwork, #hero .hero-artwork::before, #hero .hero-artwork::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#hero .hero-artwork {
  background: radial-gradient(ellipse at 8% 130%, #49435b, transparent 59%),
    linear-gradient(116deg, #17192d 0%, #232c46 56%, var(--print-tone) 56.1%);
}
#hero .hero-artwork::before {
  content: "";
  inset-inline-start: 38%;
  background: linear-gradient(90deg, #291a3680, transparent 40%), var(--cover) center 39% / cover;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%, 7% 78%, 5% 78%, 15% 48%, 12% 49%, 20% 23%, 18% 24%);
}
#hero .hero-artwork::after {
  content: "";
  background: radial-gradient(circle, #f1e2b332 1px, transparent 1.25px) 0 0 / 5px 5px;
  mask-image: linear-gradient(25deg, #0008, transparent 27%, transparent 60%, #0007);
}
#hero::after {
  content: "";
  position: absolute;
  bottom: 0; inset-inline: 0; height: 8px;
  background: repeating-linear-gradient(104deg, #705432 0 1px, #bf9458 1px 3px, #efcd84 3px 5px);
  border-block: 1px solid #533c2e;
  pointer-events: none;
}
#hero .hero-in {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  grid-template-areas: "copy pulls";
  column-gap: clamp(22px, 3vw, 48px);
  min-height: clamp(396px, 33vw, 495px);
}
#hero .album {
  grid-area: pulls;
  align-self: center;
  min-width: 0;
  margin: 0;
  color: var(--type);
}
#hero .album-stage {
  position: relative;
  isolation: isolate;
  container-type: size;
  aspect-ratio: 1.52;
}
#hero .album-stage::before {
  content: "";
  position: absolute;
  inset: 73% 10% -2%;
  background: radial-gradient(ellipse closest-side, #130f26b3, transparent);
  transform: rotate(-7deg);
  pointer-events: none;
}
#hero .album-feature {
  padding: 0;
  border: 0;
  background: transparent;
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 50%;
  width: min(44cqw, 61cqh);
  aspect-ratio: 270 / 377;
  transform: translate(-50%, -50%) rotate(4deg);
  touch-action: pan-y;
  -webkit-user-drag: none;
}
#hero .album-holo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  perspective: 780px;
}
#hero .album img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4% / 3%;
  box-shadow: 1px 3px 5px #11191877;
}
#hero .album-holo img { width: 100%; height: 100%; }
/* Keep the first-paint photo visible until the foil's own image has loaded. */
#hero .album-holo :is(.hc-tilt, #displayFace, .hc-print > img) { transition-property: none; }
#hero .album-holo > .hc-tilt { visibility: hidden; }
#hero .album-holo:has(.hc-print[data-state="ok"]) > .hc-tilt { visibility: visible; }
#hero .album-holo:has(.hc-print[data-state="ok"]) > #displayFace { visibility: hidden; }
#hero .album-holo.hc { cursor: grab; }
#hero .album-holo.hc:active { cursor: grabbing; }
#hero .album-holo .hc-print img { border-radius: 0; box-shadow: none; }
#hero .album-holo .hc-tilt::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4.8% / 3.45%;
  background: linear-gradient(125deg, #536876, #cfbf9f 50%, #625767);
  transform: translate(calc(-2.5px * var(--hc-tx)), calc(1px - 2px * var(--hc-ty)));
}
#hero .album-holo .hc-face {
  --glare: .11;
  --spot: .07;
  --sheen: .14;
  box-shadow: 0 0 0 1px #dcd3c67a,
    calc(3px - var(--hc-tx) * 9px) calc(8px - var(--hc-ty) * 6px) 4px -3px #12111e80,
    calc(8px - var(--hc-tx) * 16px) 16px 24px -6px #0d0b16c9;
}
#hero .album-holo .hc-face[data-m="rainbow"] .hc-l1 {
  --b: .035;
  --g: .43;
  --lit-mid: .33;
  --lit-far: .06;
}
#hero .album-holo .hc-face[data-m="rainbow"] .hc-l2 { --b: .025; --g: .25; }
#hero .album-holo .hc-face[data-m="rainbow"] .hc-l3 { --b: .05; --g: .21; }
#hero .album-neighbors {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#hero .album-neighbors button {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 34%;
  height: 70%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f8f5e8;
  cursor: pointer;
}
#hero .album-neighbors img {
  position: absolute;
  height: 97%;
  max-width: none;
  top: 7%;
  filter: brightness(.9);
  box-shadow: 1px 5px 7px #100e1d77, 5px 18px 21px #100e1d55;
}
#displayPrev img { right: -19%; transform: rotate(-14deg); }
#displayNext img { left: -16%; transform: rotate(17deg); }
#hero .album-neighbors svg {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  width: clamp(28px, 5.4cqw, 39px);
  height: auto;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid #e6c990;
  border-radius: 4px 10px;
  background: #1e2034;
  box-shadow: 0 2px 0 #342531;
}
#displayPrev svg { left: 0; }
#displayNext svg { right: 0; }
#hero .album :is(a, button):focus-visible { outline: 3px solid #fff0a7; outline-offset: -3px; border-radius: 8px; }
@media (hover: hover) {
  #hero .album-neighbors button:hover img { filter: brightness(1); }
  #hero .album-neighbors button:hover svg { background: #f6e9c7; color: #1e3242; }
}
#hero .album-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 3px auto 0;
  padding: 0 15px;
  border: 1px solid #d3b99191;
  color: #e2d7bf;
  background: #211f30f5;
  transform: skewX(-5deg);
  font: 510 12px/1.4 var(--f-mono);
}
#hero .album-caption > * { transform: skewX(5deg); }
#hero .inspect-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  color: var(--type);
  background: transparent;
  font: 570 14px/1.1 var(--f-ui);
  cursor: zoom-in;
}
#hero .inspect-link svg { width: 17px; height: 17px; }
#hero .inspect-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
#hero .inspect-link:focus-visible { outline-color: var(--type); }
#hero .tilt-hint { display: none; align-items: center; gap: 5px; font: 480 13px/1.4 var(--f-ui); }
#hero .tilt-hint svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) #hero .album:has(.hc-print[data-state="ok"]) .tilt-hint { display: inline-flex; }
}
#hero .hero-intro { grid-area: copy; position: relative; min-width: 0; padding: 8px 0; }
#hero .pack-imprint {
  width: fit-content;
  gap: 9px;
  padding: 4px 15px 4px 10px;
  background: #f1dfb7;
  color: #363047;
  font: 575 13px/1.35 var(--f-ui);
  clip-path: polygon(0 0,100% 0,calc(100% - 7px) 100%,0 100%);
}
#hero .pack-imprint::before, #hero .pack-link::before { content: none; }
#displayPack {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #302333;
  font-weight: 730;
}
#displayPack::before { content: ""; width: 1px; height: 12px; background: #7c695c; transform: skewX(-20deg); }
#hero .h1 {
  max-width: none;
  margin: 17px 0 14px;
  padding-inline-end: .09em;
  font: italic 400 clamp(62px, 7.05vw, 111px)/.89 "Changa One", var(--f-display);
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  transform: rotate(-2deg);
  transform-origin: left bottom;
}
#hero.long-card-name .h1 { font-size: clamp(53px, 5.9vw, 88px); }
#hero .h1 span {
  color: #fff5d9;
  -webkit-text-stroke: .028em #151729;
  paint-order: stroke fill;
  text-shadow: .025em .04em #171829, .05em .067em #ab7854;
}
#hero .card-edition {
  color: #ffefd2;
  font: 540 clamp(15px, 1.22vw, 18px)/1.42 var(--f-ui);
}
#hero #fanCap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 9px;
  color: var(--muted);
  font: 480 13.5px/1.4 var(--f-ui);
}
#displayGrade {
  padding: 3px 6px;
  border: 1px solid #b99b73;
  color: #ffe6aa;
  font: 680 12px/1.15 var(--f-mono);
}
#hero .lead {
  margin: 25px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font: 425 clamp(16px, 1.2vw, 17px)/1.5 var(--f-ui);
}
#hero:lang(zh) .lead { max-width: 25em; line-height: 1.7; }
#hero .hero-act { align-items: center; gap: clamp(13px, 2vw, 29px); margin: 20px 0 0; }
#hero .hero-act a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  font: italic 700 21px/1.05 var(--action-type);
  letter-spacing: .005em;
  text-decoration: none;
}
#hero .hero-act .pack-link {
  --cut: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  color: #302332;
  background: transparent;
  padding: 0 32px 0 17px;
  min-height: 55px;
  filter: drop-shadow(0 4px #281c31);
  text-transform: uppercase;
}
#hero .hero-act .pack-link::before, #hero .hero-act .pack-link::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  clip-path: var(--cut);
}
#hero .hero-act .pack-link::before {
  inset: 0;
  background: #ffe8a5;
}
#hero .hero-act .pack-link::after {
  inset: 2px;
  background: repeating-linear-gradient(92deg, #6b431b80 0 1px, transparent 1px 3px) right 6px center / 7px 100% no-repeat,
    linear-gradient(171deg, #ffdf79 0 52%, #ffca51 52.2% 92%, #eca342 92.2%);
}
#hero .hero-act svg { flex: none; margin: 0; }
#hero .pack-link svg { width: 28px; height: 28px; }
#hero .pack-link span { min-height: 0; padding: 0; border: 0; }
#hero .hero-act .hero-battle {
  color: #fff4da;
  padding-inline: 0 4px;
  gap: 9px;
  text-shadow: 0 1px #171627;
}
#hero .hero-battle span {
  display: inline-block;
  padding-block: 4px 2px;
  border-bottom: 1px solid #b8a68e;
}
#hero .hero-battle svg {
  width: 34px; height: 34px;
  padding: 6px;
  border: 1px solid #e9c98e;
  border-radius: 50%;
  background: #292b40;
  color: #ffdf98;
}
#hero .hero-act a:active { transform: translateY(2px); }
#hero .hero-deal {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  color: #d6c9b7;
  font: 530 13.5px/1.4 var(--f-ui);
  white-space: normal;
  text-decoration: underline;
  text-decoration-color: #938a89;
  text-underline-offset: .28em;
}
#hero .hero-intro a:focus-visible { outline: 3px solid #fff8c8; outline-offset: 5px; }
#hero:lang(zh) .hero-act a { font: 750 17px/1.25 var(--f-zh); }
.sheet .sheet-arena {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding-inline: 15px;
  color: var(--type);
  font: 600 15px/1.3 var(--f-ui);
  text-decoration: none;
}
.sheet .sheet-arena { justify-content: flex-start; gap: 9px; margin: 8px 8px 0; color: #e1c894; }
.sheet .sheet-arena svg { width: 20px; height: 20px; }
@media (min-width: 1101px) and (max-width: 1320px) {
  #siteNav #links { margin-inline-start: 0; }
  #siteNav #links a { padding-inline: 7px; }
}
@media (hover: hover) {
  #hero .hero-act .pack-link:hover { filter: brightness(1.1) drop-shadow(0 4px #281c31); }
  #hero .hero-act .hero-battle:hover svg { background: #59474c; }
  #hero .hero-deal:hover { color: #fff4d9; text-decoration-thickness: 2px; }
}
@media (max-width: 800px) {
  #hero { padding: 71px 0 16px; }
  #hero .hero-in {
    width: min(100% - 40px, 560px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pulls" "copy";
    gap: 10px;
  }
  #hero .hero-artwork { background: radial-gradient(ellipse at 85% 10%, var(--print-tone), transparent 54%), #1e233c; }
  #hero .hero-artwork::before {
    inset: 0 0 auto; height: min(93vw, 494px);
    background-position: center 43%;
    clip-path: polygon(0 0,100% 0,100% 81%,68% 89%,72% 85%,41% 93%,44% 90%,0 100%);
  }
  #hero .album-stage { aspect-ratio: 1.74; }
  #hero .album-caption { margin: 0 0 0 auto; padding-inline: 8px; font-size: 10.5px; }
  #hero .inspect-link { font-size: 12px; gap: 5px; }
  #hero .hero-intro { padding-top: 0; }
  #hero .pack-imprint { font-size: 12px; }
  #hero .h1 { margin: 11px 0; font-size: clamp(48px, 13.1vw, 80px); }
  #hero.long-card-name .h1 { font-size: clamp(44px, 10.7vw, 69px); }
  #hero #fanCap { margin-top: 6px; }
  #hero .lead { margin-top: 14px; }
  #hero .hero-act { margin-top: 14px; gap: 15px; }
}
@media (max-width: 430px) {
  #hero .hero-in { width: calc(100% - 32px); }
  #hero .hero-act { gap: 12px; }
  #hero .hero-act a { font-size: 19px; gap: 5px; }
  #hero .hero-act .pack-link { min-height: 49px; padding-inline: 10px 20px; }
  #hero .pack-link svg { width: 24px; height: 24px; }
  #hero .hero-battle svg { width: 29px; height: 29px; padding: 5px; }
  #hero .hero-deal { margin-top: 1px; }
}

.card-viewer {
  width: min(728px, calc(100vw - 24px));
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #a88b64;
  border-radius: 5px 16px 5px 16px;
  color: #fff1d3;
  background: #202238;
  box-shadow: 0 18px 70px #0008;
}
.card-viewer::backdrop { background: #09151de8; }
html:has(.card-viewer[open]) { overflow: hidden; }
.viewer-inside {
  display: grid;
  grid-template: "header header" auto "mat info" 1fr "mat strip" auto / minmax(0,1.2fr) minmax(0,.9fr);
  align-items: start;
  gap: 12px 22px; padding: 14px 20px 20px;
}
.viewer-inside header { grid-area: header; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#viewerTitle { margin: 0; font: italic 400 clamp(27px, 4vw, 39px)/1.1 "Changa One", var(--f-display); overflow-wrap: anywhere; }
.viewer-close, .viewer-strip button {
  display: grid; place-content: center; padding: 0; border: 1px solid transparent;
  color: inherit; background: transparent; cursor: pointer; border-radius: 5px;
}
.viewer-close { flex: none; width: 44px; height: 44px; }
.viewer-close svg { width: 20px; height: 20px; }
.viewer-close:hover { background: #363950; }
.viewer-mat {
  grid-area: mat; display: grid; place-items: center; gap: 8px;
  padding: 16px 12px 12px; border: 1px solid #585365; border-radius: 4px;
  background: radial-gradient(ellipse at 50% 38%, #45425a, #161b2a 80%); perspective: 900px;
}
#viewerHolo { position: relative; width: min(100%, 330px, 40dvh); aspect-ratio: 630/880; touch-action: pan-y; cursor: grab; }
#viewerHolo:active { cursor: grabbing; }
#viewerPhoto { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4% / 3%; }
#viewerHolo > .hc-tilt { visibility: hidden; }
#viewerHolo:has(.hc-print[data-state="ok"]) > .hc-tilt { visibility: visible; }
#viewerHolo:has(.hc-print[data-state="ok"]) > #viewerPhoto { visibility: hidden; }
#viewerHolo .hc-face { --glare: .09; --spot: .07; --sheen: .14; }
#viewerHolo .hc-l1 { --b: .025; --g: .44; --lit-mid: .34; --lit-far: .06; }
#viewerHolo .hc-l2 { --b: .02; --g: .24; }
#viewerHolo .hc-l3 { --b: .04; --g: .22; }
.viewer-info { grid-area: info; min-width: 0; align-self: center; }
#viewerEdition { font: 550 17px/1.4 var(--f-ui); color: #fff6e2; }
.viewer-detail { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 10px 0 0; color: #d3cad0; font: 500 12px/1.4 var(--f-mono); }
#viewerGrade { padding: 2px 6px; color: #ffe1a0; border: 1px solid #a78e66; }
.viewer-source, .viewer-pack { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.viewer-source { color: #ecdfc5; font: 500 13px/1.3 var(--f-ui); text-underline-offset: 3px; }
.viewer-source[hidden] { display: none; }
.viewer-source svg { width: 13px; height: 13px; }
.viewer-pack {
  display: grid; grid-template: "label arrow" auto "name arrow" auto / 1fr auto; gap: 1px 10px; margin-top: 8px;
  padding: 7px 12px; border: 1px solid #a58c62; border-inline-start: 3px solid #ffcb67;
  color: #fff0cd; background: #2d2c40; text-decoration: none;
}
.viewer-pack span { grid-area: label; font: 500 12px/1.3 var(--f-ui); color: #d8d0c1; }
.viewer-pack strong { grid-area: name; font: italic 700 21px/1.1 "Barlow Semi Condensed", var(--f-display); }
.viewer-pack svg { grid-area: arrow; width: 19px; height: 19px; }
.viewer-pack:hover { background: #3a384e; border-color: #ffdc91; }
.viewer-tilt { color: #c5c2cf; font: 500 12px/1.3 var(--f-ui); }
.rm .viewer-tilt { display: none; }
@media (prefers-reduced-motion: reduce) { .viewer-tilt { display: none; } }
.viewer-strip { grid-area: strip; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.viewer-strip button { min-height: 48px; padding-block: 4px; opacity: .67; }
.viewer-strip button[aria-pressed="true"] { opacity: 1; background: #334954; border-color: #efd38d; }
.viewer-strip img { display: block; width: 28px; height: auto; border-radius: 2px; }
.viewer-strip button:hover { opacity: 1; }
.card-viewer :is(a,button):focus-visible { outline: 2px solid #ffdfa4; outline-offset: -2px; }
#packList .pc[id] { scroll-margin-top: 76px; }
#packList .pc:focus-visible { outline: 3px solid #f6be60; outline-offset: 3px; }
@media (max-width: 600px) {
  .card-viewer { width: min(430px, calc(100vw - 16px)); }
  .viewer-inside { grid-template: "header" auto "mat" auto "strip" auto "info" auto / minmax(0,1fr); padding: 7px 14px 14px; gap: 7px; }
  .viewer-mat { padding: 10px; }
  #viewerHolo { width: min(100%, 33dvh, 285px); }
  .viewer-strip { grid-template-columns: repeat(6,minmax(0,1fr)); }
  #viewerEdition { font-size: 15px; }
  .viewer-detail { margin-top: 4px; }
  .viewer-pack { margin-top: 0; }
}

#stats {
  display: grid;
  grid-template: "title note link" auto "figures figures figures" auto / auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(16px, 2.2vw, 34px);
  margin-block: 20px 0;
  padding: 12px clamp(14px, 2.3vw, 30px);
  border-inline-start: 3px solid #bca574;
  background: #1a2c39;
  color: #fbf7ef;
}
#statsTitle { grid-area: title; display: flex; align-items: center; gap: 10px; margin: 0; font: 600 20px/1.2 var(--f-ui); }
#statsTitle svg { width: 24px; height: 24px; color: #e1c894; }
#statsNote { grid-area: note; margin: 0; color: #c5cfd2; font: 450 14px/1.5 var(--f-ui); }
#stats .vault-link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #eee3c9;
  font: 550 14px/1.4 var(--f-ui);
  text-decoration: underline;
  text-underline-offset: 4px;
}
#stats .vault-link svg { width: 16px; height: 16px; }
#stats .vault-link:focus-visible { outline: 2px solid #f7d99e; outline-offset: 3px; }
#ledger { scroll-margin-top: 76px; }
.vault-stats {
  grid-area: figures;
  display: grid;
  padding-block: 16px 8px;
  border-top: 1px solid #50606b;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.vault-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}
.vault-stats dt { color: #e6dfcb; font: 520 15px/1.4 var(--f-ui); }
.vault-stats dd { margin: 0; }
.vault-stats .stat-value {
  color: var(--ink);
  font: 600 19px/1.2 var(--f-ui);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.vault-stats .stat-value small { color: var(--ink-2); font: 500 13px/1.35 var(--f-ui); }
.vault-stats .stat-detail { color: #c5cfd2; font: 420 13px/1.45 var(--f-ui); overflow-wrap: anywhere; }
.vault-balances .stat-value {
  margin: 4px 0;
  font: 650 clamp(28px, 2.5vw, 38px)/1.1 var(--f-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.vault-activity > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 4px 12px;
  padding-block: 8px;
}
.vault-activity > div + div { border-block-start: 1px solid var(--line); }
.vault-activity .stat-detail { text-align: end; }
@media (max-width: 900px) {
  .vault-stats { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  #stats { grid-template: "title link" auto "note note" auto "figures figures" auto / minmax(0, 1fr) auto; padding-block: 7px 12px; }
  #statsTitle { gap: 7px; font-size: 18px; }
  #statsNote { margin-top: 1px; }
  .vault-activity > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 1px; }
  .vault-activity .stat-value, .vault-activity .stat-detail { text-align: end; }
  .vault-activity .stat-detail { grid-column: 1 / -1; }
}

/* Opening a pack */
#draw { margin-top: clamp(30px, 3.6vw, 54px); }
#draw .cab {
  gap: 0;
  padding: 0;
  border-block: 1px solid var(--line-ui);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#draw .stg {
  align-self: stretch;
  aspect-ratio: auto;
  min-height: 400px;
  border-radius: 0;
  background: var(--well);
}

#draw .stg[data-scene="pick"] {
  container-type: inline-size;
  background: #182f43;
}

#draw .stg[data-scene="pick"] .stg-bg {
  --stage-stock: #243949;
  --stage-ink: #b0a382;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 36%, transparent 20%, #07162477 100%),
    repeating-linear-gradient(110deg, transparent 0 3px, #fff1 3px 3.4px),
    var(--stage-stock);
}
#draw .stg[data-scene="pick"] .stg-bg[data-pack="01"] { --stage-stock: #24394e; }
#draw .stg[data-scene="pick"] .stg-bg[data-pack="03"] { --stage-stock: #24444a; }
#draw .stg[data-scene="pick"] .stg-bg[data-pack="04"] { --stage-stock: #49303a; }
#draw .stg[data-scene="pick"] .stg-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 103%;
  aspect-ratio: 1;
  border: 1px solid var(--stage-ink);
  border-radius: 50%;
  opacity: .29;
  transform: translate(-50%, -50%) rotate(-27deg);
  background:
    radial-gradient(circle, var(--stage-stock) 0 10%, var(--stage-ink) 10.1% 10.45%, var(--stage-stock) 10.55% 15%, var(--stage-ink) 15.1% 15.45%, transparent 15.55%),
    linear-gradient(transparent calc(50% - 2px), var(--stage-ink) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px));
  box-shadow: 0 0 0 7px var(--stage-stock), 0 0 0 8px var(--stage-ink);
}
#draw .stg[data-scene="pick"] .stg-bg::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(232 213 172 / .23);
  border-radius: 3px;
}

#draw .stg[data-scene="pick"] .stg-hud {
  color: #fff;
  align-items: flex-start;
  text-shadow: 0 1px 2px #201a45;
}
body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] .stg-hud { display: none; }
#draw .stg[data-scene="pick"] .stg-hud.on i {
  background: #dfbc73;
}
#draw .stg[data-scene="pick"] .stg-cap {
  left: clamp(16px, 4cqi, 28px);
  bottom: 10px;
  transform: none;
  color: #fff;
  text-align: start;
  white-space: normal;
  font: 600 clamp(13px, 3.3cqi, 18px)/1.3 var(--f-zh);
}
#draw .stg[data-scene="pick"] .pick-pack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: min(72%, 405px);
  max-width: 57%;
  transform: translate(-50%, -50%) rotate(5deg);
  filter: drop-shadow(5px 13px 10px #07111d80);
}
#draw .stg[data-scene="pick"] .pick-pack .hc-print > img {
  filter: none;
}

#draw :is(.cover-meta, .cover-title, .sample-card, .sample-details) { display: none; }
body[data-launch="prelaunch"] #draw .cab {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border: 1px solid #8a7b62;
  border-radius: 8px;
  overflow: clip;
  background: #f8f3e7;
}
body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] {
  height: auto;
  min-height: clamp(448px, 40vw, 570px);
  background: #233749;
}
body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] .sample-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  container-type: size;
  place-items: center;
  margin: 0;
  color: #f2e8ce;
}
body[data-launch="prelaunch"] #draw .sample-card img {
  width: min(77cqw, 60cqh);
  height: auto;
  max-height: 86cqh;
  object-fit: contain;
  border-radius: 4.8% / 3.5%;
  box-shadow: 0 0 0 1px #f2dfb4a8, 4px 7px 10px #06101ea6, 12px 22px 25px -10px #06101eb3;
}
body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] :is(.pick-pack, .stg-cap, .stg-bg i) { display: none; }
body[data-launch="prelaunch"] #draw .ctl {
  --pick-accent: #243a4c;
  background: transparent;
  color: #20231e;
  padding: clamp(26px, 4vw, 66px);
}
body[data-launch="prelaunch"] #draw .cover-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #55584e;
  font: 500 13px/1.4 var(--f-zh);
}
#draw #samplePack { color: #39485a; font: 650 14px/1.4 var(--f-ui); }
body[data-launch="prelaunch"] #draw .pick-heading {
  margin: 6px 0 -.5em;
  color: #233749;
  font: 660 15px/1.3 var(--f-ui);
  letter-spacing: 0;
}
body[data-launch="prelaunch"] #draw .cover-title {
  display: block;
  margin: 0;
  color: #213345;
  font: 740 clamp(31px, 8.5cqi, 50px)/1.02 "Archivo", var(--f-zh);
  letter-spacing: -.045em;
  font-synthesis: none;
  overflow-wrap: anywhere;
}
body[data-launch="prelaunch"] #draw .sample-details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  color: #43483f;
  font: 470 13px/1.5 var(--f-zh);
}
#draw #sampleSource {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-underline-offset: 3px;
}
@media (max-width: 780px) {
  body[data-launch="prelaunch"] #draw .cab { grid-template-columns: minmax(0, 1fr); }
  body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] { height: clamp(285px, 84vw, 430px); min-height: 0; }
  body[data-launch="prelaunch"] #draw .ctl { padding: clamp(18px, 5vw, 36px); }
}

#draw .stg-hud {
  inset-inline: 20px;
  top: 16px;
  color: var(--ink-2);
}

#draw .stg-hud > span {
  align-items: baseline;
  white-space: normal;
}

#draw .stg-cap {
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 6px 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--ink-2);
  text-align: center;
}

#draw .ctl {
  --pick-accent: #e7c782;
  justify-content: center;
  container: pack-controls / inline-size;
  min-width: 0;
  padding: clamp(22px, 3vw, 50px);
  background: #1c2a38;
}

#draw .deck {
  flex: 0 1 auto;
}

#draw .cab-top {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

#draw .vst:empty {
  display: none;
}

#draw .pick-heading {
  margin: 0 0 7px;
  color: #f6f4ec;
  font: 750 clamp(32px, 9.4cqi, 54px)/1.03 "Archivo", var(--f-zh);
  letter-spacing: -.055em;
}
html:lang(zh-CN) #draw .pick-heading { font-weight: 780; letter-spacing: -.025em; }

#draw .keys {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.8cqi, 10px);
}

#draw .key {
  isolation: isolate;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 88px;
  padding: 9px 4px;
  border: 1px solid #647283;
  border-radius: 5px;
  background: #243544;
  box-shadow: none;
  text-align: center;
}

#draw .key[aria-checked="true"] {
  color: #172a39;
  border-color: #e4c989;
  background: #eee2c8;
  box-shadow: inset 0 -3px #c4a268;
}
#draw .key[aria-checked="true"]::after {
  content: "";
  position: absolute;
  inset: 5px 5px auto auto;
  width: 11px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px);
}
#draw .key .k-n {
  display: block;
  max-width: 100%;
  color: #f3ead9;
  font: 720 clamp(25px, 6.5cqi, 40px)/1.04 "Archivo", var(--f-zh);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
#draw .key:not(.named) .k-n { font-size: clamp(25px, 6.5cqi, 40px); }
#draw .key.long-name .k-n { font: 650 clamp(14px, 4cqi, 22px)/1.15 var(--f-zh); letter-spacing: -.02em; transform: none; }
#draw .key .k-t,
#draw .key .k-p { color: #d6dce1; font: 520 clamp(10px, 2.7cqi, 13px)/1.3 var(--f-ui); letter-spacing: 0; overflow-wrap: anywhere; }
#draw .key:not(.named) .k-t { display: none; }
#draw .key[aria-checked="true"] :is(.k-t, .k-n, .k-p) { color: #191921; }
#draw .key:focus-visible { outline: 2px solid var(--pick-accent); outline-offset: 2px; }

/* Pack-list photos retain the card's printed edges. */
#draw .k-preview { display: none; }
body[data-launch="prelaunch"] #draw .keys { gap: clamp(5px, 1.6cqi, 10px); }
body[data-launch="prelaunch"] #draw .key {
  display: grid;
  grid-template: 1fr auto / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  gap: 7px;
  padding: clamp(5px, 1.35cqi, 8px) 4px 8px;
  border: 1px solid #b8ae99;
  color: #334550;
  background: #f0eadc;
  text-align: center;
}
body[data-launch="prelaunch"] #draw .key .k-t { display: none; }
body[data-launch="prelaunch"] #draw .key .k-preview {
  display: block;
  grid-row: 1;
  width: min(84%, 68px);
  height: auto;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: 5% / 3.5%;
  box-shadow: 0 1px 3px #19273636;
}
body[data-launch="prelaunch"] #draw .key .k-n {
  grid-row: 2;
  color: inherit;
  font: 650 clamp(14px, 3.3cqi, 17px)/1.25 var(--f-ui);
  letter-spacing: 0;
  transform: none;
  overflow-wrap: normal;
  text-wrap: balance;
}
body[data-launch="prelaunch"] #draw .key::after { content: none; }
body[data-launch="prelaunch"] #draw .key[aria-checked="true"] {
  background: #243a4b;
  color: #fff4d9;
  border-color: #243a4b;
  box-shadow: inset 0 -3px #c7a76d;
}
body[data-launch="prelaunch"] #draw .key[aria-checked="true"] .k-n { font-weight: 720; }
body[data-launch="prelaunch"] #draw .key[aria-checked="true"]::after {
  content: "";
  position: absolute;
  background: radial-gradient(circle, #263947 0 2px, transparent 2.5px), #f1d698;
  border-color: #263947;
}
body[data-launch="prelaunch"] #draw .key:focus-visible { outline-color: #8a433c; }
@media (hover: hover) {
  #draw .key[aria-checked="false"]:hover { border-color: var(--pick-accent); }
  body[data-launch="prelaunch"] #draw .key[aria-checked="false"]:hover { background: #f5e4c4; }
}

#draw .key.off,
#packs .pc.off {
  opacity: 1;
}

#draw .key.off .k-n,
#packs .pc.off h3 {
  color: var(--ink-3);
}

#draw .key.off[aria-checked="true"] .k-n { color: #38382d; }

#draw .key .k-t,
#draw .key .k-p {
  overflow: visible;
  white-space: normal;
}

#draw .cost {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

#draw .cost > div {
  padding: 14px 16px;
}

#draw .cost > div:first-child {
  padding-inline-start: 0;
}

#draw .cost > div + div {
  box-shadow: none;
  padding-inline-end: 0;
}

#draw .vrow {
  flex-wrap: wrap;
  gap: 3px 6px;
}

#draw .cost .val {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#draw .steps {
  width: 100%;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#draw .steps li {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 6px;
  border-top: 2px solid #484650;
  font: 500 12px/1.2 var(--f-zh);
}
#draw .steps li:is(.cur, .done) { border-color: var(--pick-accent); }
#draw .steps li+li::before { content: none; }
#draw .steps li span { display: inline; }
#draw .steps b {
  background: none;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  min-width: 1ch;
  font: 500 12px/1 var(--f-mono);
}

#draw .steps li.cur b, #draw .steps li.done b { background: none; box-shadow: none; color: var(--pick-accent); }

#draw .pick-actions { display: grid; }
#draw :is(.pick-contents, .pick-lock) { display: none; }
body[data-launch="prelaunch"] #draw :is(.cab-top, .cost, .key:not(.named) .k-p) { display: none; }
body[data-launch="prelaunch"] #draw .pane[data-pane="pick"] { gap: clamp(12px, 3.25cqi, 18px); }
body[data-launch="prelaunch"] #draw .pick-actions {
  order: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  border-top: 1px solid #c8bfad;
  padding-top: 14px;
}
body[data-launch="prelaunch"] #draw .cta {
  justify-content: flex-start;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 0 14px;
  gap: 8px;
  border: 1px dashed #9a9689;
  border-radius: 4px;
  color: #4d514d;
  background: #e9e5d9;
  box-shadow: none;
  font: 500 14px/1.3 var(--f-zh);
  letter-spacing: 0;
}
body[data-launch="prelaunch"] #draw .pick-lock { display: block; flex: none; }
body[data-launch="prelaunch"] #draw .pick-contents {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: #334b5d;
  font: 650 15px/1.3 var(--f-zh);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
#draw .pick-contents:hover { text-decoration-thickness: 2px; }
#draw .pick-contents:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#draw .cta-note { margin: 0; font: 420 15px/1.55 var(--f-zh); color: #c4c1cc; }
body[data-launch="prelaunch"] #draw .cta-note { color: #53564d; font-size: 14px; }

@container pack-controls (max-width: 300px) {
  body[data-launch="prelaunch"] #draw .pick-actions { column-gap: 6px; }
  body[data-launch="prelaunch"] #draw :is(.cta, .pick-contents) { gap: 5px; font-size: 13px; }
}

:is(#draw, #mbar) .cta {
  border-radius: 0;
  font-weight: 600;
}

:is(#draw, #mbar) .cta:not(:disabled) {
  background: var(--paper);
  color: var(--print);
}

:is(#draw, #mbar) .cta:not(:disabled):hover { background: var(--lav); }
#draw .pick-actions .cta:not(:disabled),
#mbar .cta:not(:disabled) {
  background: var(--pick-accent);
  color: #1c2936;
  border-radius: 5px;
  box-shadow: inset 0 -3px #b29564;
}
#mbar .cta:not(:disabled) { --pick-accent: #e7c782; }
#draw .pick-actions .cta:not(:disabled):hover, #mbar .cta:not(:disabled):hover { background: #f1d89f; }
#draw .pick-actions .cta:focus-visible, #mbar .cta:focus-visible { outline: 2px solid #fff4d9; outline-offset: 3px; }
body[data-launch="live"] #draw #cta:disabled {
  border: 1px dashed #697783;
  border-radius: 5px;
  background: #293744;
  color: #c1cad1;
}
#draw .appr {
  gap: 2px 14px;
  color: #dce3e8;
}
#draw .appr label {
  min-height: 44px;
}
#draw .appr input {
  width: 16px;
  height: 16px;
  accent-color: var(--pick-accent);
}
#draw .appr input:focus-visible { outline: 2px solid var(--pick-accent); outline-offset: 2px; }
:is(#draw, #mbar) .cta::after { content: none; }
:is(#draw, #mbar) .cta-r {
  padding-inline-start: 14px;
  border-inline-start: 1px dashed currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font: 500 13px/1.3 var(--f-mono);
}

#draw .sub .w {
  color: var(--ink-3);
}

#draw .sub:empty {
  display: none;
}

#draw .how {
  margin-block: 28px 0;
}

/* The catalogue presents one pack at a time on a phone. Let amounts and
   names use two lines when the contract or the translation needs more room. */
#packs .packs {
  gap: clamp(14px, 1.5vw, 24px);
}

#packs .pc {
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

#packs .pc-art {
  border-radius: 0;
  padding: 20px 8px;
  background: var(--well);
  border-block: 1px solid var(--line-2);
}

#packs .pc.on .pc-art {
  border-bottom: 3px solid var(--lav);
  padding-bottom: 18px;
}

#packs .pk {
  max-width: 145px;
}

#packs :is(.pc-card-preview, .pc-sample, .pc-unpictured) { display: none; }
body[data-launch="prelaunch"] #packs .pc-art {
  background: #d8dbd2;
  min-height: 150px;
}
body[data-launch="prelaunch"] #packs .pk { display: none; }
body[data-launch="prelaunch"] #packs .pc-card-preview {
  display: block;
  width: min(80%, 168px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#packs .pc-card-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: 4.5%;
  box-shadow: 1px 5px 9px rgb(25 31 27 / .23);
}
#packs .pc-card-preview:focus-visible { outline: 2px solid #233c31; outline-offset: 4px; }
body[data-launch="prelaunch"] #packs .pc-sample {
  display: block;
  margin: 0;
  font: 500 14px/1.4 var(--f-zh);
  color: var(--ink);
  overflow-wrap: anywhere;
}
#packs .pc-sample span { color: var(--ink-3); font-weight: 400; }
body[data-launch="prelaunch"] #packs .pc-unpictured {
  display: block;
  color: #4a5149;
  font: 500 14px/1.4 var(--f-zh);
  text-align: center;
}
#packs .pc-name,
#packs .pc-b {
  flex-wrap: wrap;
}

#packs .pc-name h3 { font: 400 clamp(24px,2.1vw,32px)/1.15 "Instrument Serif", var(--f-ui); }
body[data-launch="prelaunch"] #packs .pc-name { justify-content: flex-start; align-items: baseline; gap: 8px; }
body[data-launch="prelaunch"] #packs .pc-name h3 { font: 680 clamp(19px, 2vw, 29px)/1.25 var(--f-zh); letter-spacing: -.02em; }
body[data-launch="prelaunch"] #packs .pc-n {
  display: inline;
  position: static;
  color: var(--ink-3);
  -webkit-text-stroke: 0;
  font: 500 12px/1 var(--f-mono);
}
body[data-launch="prelaunch"] #packs :is(.pc dl, .pc-p) { display: none; }
#packs .pc-p { max-width: 100%; font: 500 13px/1.4 var(--f-mono); overflow-wrap: anywhere; }
#packs .pc dl { padding-block: 5px; border-block: 1px solid var(--line-2); }
#packs .pc dl div { padding-block: 5px; border: 0; }
#packs .pc dd { font-family: var(--f-mono); font-weight: 500; }

#packs .pc-name h3,
#packs .pc dd {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#packs .pc-b .pick {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px 0 0;
  gap: 8px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: none;
  font: 600 14px/1.35 var(--f-ui);
}

#packs .pick::before {
  content: "";
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
}

#packs .pick[aria-pressed="true"] { color: var(--lav); }
#packs .pick[aria-pressed="true"]::before { border-width: 4px; }
#packs .pick:hover { text-decoration: underline; text-underline-offset: .22em; }

#packs a.rn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The front of a binder pocket stays uncluttered. The card title toggles
   its back, where the source link and valuation are available together. */
#binder .binder {
  border-block-start: 1px solid var(--line-2);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 20px 0 0;
}

#binder .bd-head {
  gap: 4px 24px;
  margin-bottom: 24px;
}

#binder .bd-head .kicker {
  font: 500 13px/1.45 var(--f-mono);
  font-variant-numeric: tabular-nums;
}

#binder .sleeve {
  padding: 0;
  background: none;
  border-radius: 4.8% / 3.4%;
  box-shadow: none;
}

#binder .bc {
  gap: 10px;
}

#binder .bc-cap {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 10px;
  padding-block-start: 7px;
  border-top: 1px solid var(--line-ui);
}

#binder .bc-toggle {
  grid-row: 1;
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 clamp(22px, 2vw, 29px)/1.1 var(--f-heading);
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#binder .bc.flipped .bc-cap {
  border-color: var(--lav);
}

#binder .bc-no {
  grid-column: 1;
  grid-row: 2;
  display: block;
  color: var(--ink-2);
  font: 500 12px/1.4 var(--f-mono);
  font-variant-numeric: tabular-nums;
}

#binder .bc-cap .tt {
  grid-row: 2;
  grid-column: 2;
  height: auto;
  min-width: 0;
  padding: 0 0 0 8px;
  border-inline-start: 1px solid var(--line-ui);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--tc);
  font: 600 12px/1.2 var(--f-mono);
}

#binder .bc-back {
  background: var(--paper);
  color: var(--print);
  box-shadow: none;
}

#binder .bk-top {
  border-bottom: 1px solid var(--print);
  padding-bottom: 6px;
}

#binder .bk-no,
#binder .bk-top .tt {
  color: var(--print);
  font: 600 12px/1.25 var(--f-mono);
}

#binder .bk-top .tt {
  height: auto;
  min-width: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

#binder .bk-name {
  color: var(--print);
  font: 400 clamp(22px, 2.1vw, 30px)/1.07 var(--f-heading);
  overflow-wrap: anywhere;
}

#binder .bk-story,
#binder .bk-link {
  color: var(--print);
}

#binder .bk-link:focus-visible {
  outline-color: var(--print);
}

#binder .bk-scene,
#binder .bk-line {
  color: var(--print-muted);
}

#binder .bk-foot {
  border-top: 1px dashed var(--print-rule);
}

#binder .bc-toggle:focus-visible,
#binder .bc:has(.bc-toggle:focus-visible) .sleeve {
  outline: 2px solid var(--lav);
  outline-offset: 3px;
}

@media (hover: hover) {
  #draw .key[aria-checked="false"]:hover::after { background: #32313c; }
  #packs .pc-art:has(.pk:hover) {
    background: var(--raised);
  }

  #binder .bc-toggle:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (max-width: 900px) {
  #draw .stg[data-scene="pick"] {
    height: clamp(224px, 42vw, 350px);
    min-height: 0;
  }
}

@media (max-width: 720px) {
  #draw .stg[data-scene="pick"] .stg-hud {
    top: 10px;
    inset-inline: 14px;
    gap: 4px 12px;
    font-size: 11px;
  }
  body[data-launch="live"] #draw .stg[data-scene="pick"] .pick-pack { height: 62%; top: 52%; }

  #draw .ctl {
    padding: 24px clamp(12px, 4vw, 26px) 18px;
  }

  #draw .cab-top {
    row-gap: 10px;
    margin-bottom: 14px;
  }

  #draw .key {
    min-height: 64px;
    padding: 7px 2px;
  }

  #draw .cta,
  #mbar .cta {
    height: auto;
    min-height: 52px;
    gap: 8px;
    padding: 9px 12px;
  }

  #draw .cta-l,
  #mbar .cta-l {
    flex: 1 1 auto;
    overflow: visible;
    white-space: normal;
    text-align: start;
    line-height: 1.25;
  }

  #draw .cta-r,
  #mbar .cta-r {
    flex: 0 1 auto;
    max-width: 56%;
    padding: 5px 8px;
    overflow-wrap: anywhere;
    text-align: end;
    line-height: 1.25;
  }

  #draw .how {
    margin-top: 20px;
  }

  #packs .pc {
    grid-template-columns: minmax(80px, 29%) minmax(0, 1fr);
    border-top: 1px solid var(--line-2);
    padding-top: 14px;
  }

  #packs .pc-art {
    align-self: start;
    min-height: 130px;
    padding: 12px 6px;
  }
  #packs .pc.on .pc-art { padding-bottom: 10px; }

  #packs .pc dt {
    white-space: normal;
  }

  #binder .bk-scene {
    display: block;
    font-size: 11.5px;
    line-height: 1.35;
  }

  #binder .bc-back {
    gap: 4px;
    padding: 8%;
  }

  #binder .bk-link {
    align-self: start;
    padding-block: 4px;
    line-height: 1.3;
  }
}

#siteNav, body.scrolled #siteNav {
  background: #181c30;
  box-shadow: inset 0 -1px 0 #6b6163;
}
#siteNav #chain { display: none; }
#siteNav .menu-b { display: block; }
#siteNav .brand, #foot .brand { gap: 6px; min-height: 44px; }
.brand .brand-word {
  font: italic 400 22px/1 "Changa One", var(--f-display);
  letter-spacing: -.025em;
  white-space: nowrap;
  color: #fff0c9;
}
.brand-word em { color: #ffc449; font: inherit; }
#siteNav .brand .mk { width: 31px; height: 31px; }
#siteNav #links a:is([href="#story"], [href="#audit"], [href="#rules"]) { display: none; }
#siteNav #links { gap: 3px; }
#siteNav .links a { display: inline-flex; align-items: center; min-height: 44px; }
#siteNav .links a:hover, #siteNav .links a.cur { color: #ffe4a4; box-shadow: inset 0 -2px 0 #edbb66; }
#sheet nav a > b { display: none; }
@media (min-width: 1101px) {
  #sheet {
    left: auto; right: max(16px, calc((100vw - 1240px)/2)); top: 72px; bottom: auto;
    width: 310px; border: 1px solid #61717c; border-radius: 8px; background: #1a2c39;
  }
  #sheet .grab { display: none; }
}
#stats {
  background: #ebe7da;
  border: 1px solid #c9c3ac;
  border-inline-start: 4px solid #96794b;
  color: #1e3139;
}
#statsTitle svg { color: #805a2f; }
#statsNote, #stats .stat-detail { color: #4b5a5d; }
#stats .vault-link { color: #344a4d; }
#stats .vault-link:focus-visible { outline-color: #805a2f; }
#stats .vault-stats, #stats .vault-activity > div + div { border-color: #b9b8a9; }
#stats .vault-stats dt, #stats .stat-value small { color: #4e5145; }
#stats .stat-value { color: #192f35; }
#siteNav .wallet {
  min-height: 44px;
  padding-inline: 13px;
  gap: 7px;
  border: 1px solid #a99d8d;
  border-radius: 2px 10px 2px 10px;
  background: linear-gradient(145deg, #38394e, #292e44);
  box-shadow: inset 0 -2px #1a1c2e;
  color: #fff9ed;
}
#siteNav .wallet-icon { color: #efd395; }
#siteNav .wallet:hover { border-color: #f1dcaa; background: #414056; }
#siteNav .wallet:hover .w-t { text-decoration: none; }
body[data-wallet="connected"] #siteNav .wallet { border-color: #8baea2; }
body[data-wallet="wrongChain"] #siteNav .wallet { border-color: #e3b66d; color: #ffe3ae; }
#siteNav :is(a, button):focus-visible { outline: 2px solid #ffdfa4; outline-offset: 2px; }
#walletModal {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #786a62;
  border-top: 3px solid #e0ad57;
  border-radius: 4px 12px 4px 12px;
  background: #202438;
  color: #fff2d5;
}
#walletModal .md-h { padding: 12px 12px 6px 20px; }
#walletModal .md-h b { color: #fff0cb; font: italic 700 28px/1.12 "Barlow Semi Condensed", var(--f-display); }
#walletModal:lang(zh) .md-h b { font: 720 22px/1.3 var(--f-zh); }
#walletModal .md-x { display: grid; place-items: center; color: #eadfc8; }
#walletModal .md-b { padding: 0 20px 18px; }
#walletModal .md-b > p { padding: 3px 0 12px; color: #dbdbe3; font: 460 15px/1.5 var(--f-ui); }
#walletModal .wopt {
  width: 100%; min-height: 50px; height: auto; padding: 9px 5px;
  border-block-start: 1px solid #515166;
  color: #fff4d9; font: 620 15px/1.35 var(--f-ui);
}
#walletModal .wopt > svg { width: 20px; height: 20px; color: #edce91; }
#walletModal .wopt[href] > svg { width: 15px; height: 15px; margin-inline-start: auto; }
#walletModal .wopt:hover, #wmenu [role="menuitem"]:focus-visible { background: #35384b; }
#walletModal .wallet-check {
  align-self: flex-start; min-height: 44px; padding: 0 15px;
  border: 1px solid #dbae63; border-radius: 2px 8px;
  background: #f4ce80; color: #252437; font: 680 15px/1.3 var(--f-ui); cursor: pointer;
}
#walletModal [aria-disabled="true"] { cursor: progress; opacity: .7; }
#walletModal .md-b > .wallet-feedback { margin-top: 8px; padding-bottom: 0; color: #ffe0a5; }
#walletModal .md-b > .wallet-feedback:empty { margin: 0; padding: 0; }
#walletModal :is(a, button):focus-visible, #wmenu [role="menuitem"]:focus-visible {
  outline: 2px solid #ffdfa4; outline-offset: -2px;
}
.social-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font: 550 13px/1.3 var(--f-ui);
  text-decoration: none;
  white-space: nowrap;
}
.social-profile svg { width: 17px; height: 17px; }
.social-profile:hover { color: var(--lav); }
.social-profile:focus-visible { outline: 2px solid var(--lav); outline-offset: 1px; }
.sheet > .social-profile { padding-inline: 12px; }
@media (min-width: 1101px) and (max-width: 1240px) {
  .nav { gap: 10px; }
  .nav .links { margin-inline-start: 4px; gap: 0; }
}
@media (max-width: 850px) {
  .nav-r .social-profile span { display: none; }
}
@media (max-width: 480px) {
  #siteNav .brand { gap: 4px; }
  #siteNav .brand-word { display: block; font-size: 17px; line-height: .92; }
  #siteNav .brand-word em { display: block; }
  #siteNav .brand .mk { width: 26px; height: 26px; }
}
@media (max-width: 400px) {
  #siteNav { padding-inline: 8px; gap: 5px; }
  #siteNav .brand-word { font-size: 16px; }
  #siteNav .nav-r { gap: 2px; }
  #siteNav .wallet { padding-inline: 9px; }
}
@media (max-width: 349px) {
  #siteNav .wallet { gap: 3px; padding-inline: 7px; }
  #siteNav .wallet .w-t { max-width: 8ch; white-space: normal; line-height: 1.12; }
}
