@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--ink:#191815;--cream:#f5efe3;--amber:#f5b647;--dark:#171613;--muted:#6e6254}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--cream);font:16px/1.55 'DM Sans',sans-serif}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b86223;outline-offset:3px}.shell{max-width:1280px;margin:auto;padding-inline:clamp(20px,5vw,72px)}.top{background:#181713;color:#fbf3df;border-bottom:1px solid #42372b}.nav{height:74px;display:flex;align-items:center;justify-content:space-between;gap:20px}.logo{font:800 27px/1 'Barlow Condensed',sans-serif;letter-spacing:.1em;white-space:nowrap}.logo span{color:#f3ac37}.nav nav{display:flex;gap:clamp(12px,4vw,42px);font-weight:600}.outline,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid currentColor;padding:11px 17px;color:inherit;background:none;font-weight:700;border-radius:4px}.button{background:var(--amber);color:#20170f;border-color:transparent}.button:hover{background:#ffd077}.outline:hover{background:#a7773530}.hero{background:radial-gradient(ellipse at 68% 52%,#513523 0,#241e19 42%,#171613 77%);color:#fff5e5;overflow:hidden;position:relative}.hero-layout{min-height:600px;display:grid;grid-template-columns: .9fr 1.1fr;align-items:center;position:relative}.intro{position:relative;z-index:4;padding-block:76px}.eyebrow{text-transform:uppercase;font-weight:800;font-size:.85rem;letter-spacing:.16em;color:#8a4c14;margin:0 0 10px}.hero .eyebrow,.custom .eyebrow{color:var(--amber)}h1,h2,h3{margin:0;line-height:.88;font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-weight:800}h1{font-size:clamp(4.6rem,9vw,8.7rem);text-transform:uppercase;letter-spacing:-.026em}h1 em{color:#ffc15a;font-style:normal}.intro>p:not(.eyebrow),.custom-layout>div>p:not(.eyebrow){color:#e0d4c2;max-width:360px;margin-block:22px 27px}.actions{display:flex;flex-wrap:wrap;gap:10px}.fan{position:relative;min-height:500px;perspective:1000px;isolation:isolate}.fan-card,.card-art{border-radius:13px;background:var(--card-bg);color:var(--card-ink);border:2px solid var(--card-ink);display:flex;flex-direction:column;justify-content:space-between;align-items:center;overflow:hidden;position:relative;box-shadow:inset 0 0 0 5px #1b1819,inset 0 0 0 7px var(--card-ink),0 18px 32px #100b09af;text-shadow:0 2px #1c1714;padding:15px 10px;aspect-ratio:.70;font:800 1.4rem/1 'Barlow Condensed',sans-serif;letter-spacing:.1em}.fan-card::before,.card-art::before{content:'';position:absolute;inset:12%;border:1px solid currentColor;border-radius:45% 45% 16% 16%;opacity:.45;pointer-events:none}.fan-card b,.card-art b{font-size:clamp(3rem,9vw,7rem);line-height:1}.fan-card small,.card-art small{font-size:.65rem}.fan-card{width:clamp(140px,18vw,258px);position:absolute;top:48%;left:50%;transform:translate(-50%,-50%)}.clue{--card-ink:#77e0cf;--card-bg:radial-gradient(circle,#415967,#132331 60%,#232134);--x:-66%;--y:4%;--rot:-24deg}.food{--card-ink:#ffa677;--card-bg:radial-gradient(circle,#ad4b3c,#502325 55%,#2d1e26);--x:66%;--y:4%;--rot:22deg}.treasure{--card-ink:#ffcb63;--card-bg:radial-gradient(circle,#934a32,#40304e 56%,#1b1829);--x:0%;--y:-8%;--rot:-5deg}.vintage{--card-ink:#ffdf98;--card-bg:radial-gradient(circle,#ad6748,#663130 50%,#2e1f23)}.staple{--card-ink:#c4c8ec;--card-bg:radial-gradient(circle,#47477e,#231e3c 61%,#19172a)}.hero{border-bottom:5px solid var(--amber)}.catalog{position:relative;padding-block:65px 78px}.catalog>span{position:absolute;top:0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px}h2{font-size:clamp(3.5rem,6vw,5.8rem);letter-spacing:-.015em}.filters{display:flex;gap:9px;flex-wrap:wrap;margin-top:23px}.filters button{border:1px solid #9b8b77;background:none;padding:8px 14px;border-radius:4px;color:inherit}.filters [aria-pressed=true]{background:#27221c;color:#fcf2df;border-color:#27221c}.muted{font-size:.85rem;color:var(--muted)}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.product{border:1px solid #d6c9b6;border-radius:6px;background:#fff9ec;overflow:hidden}.product-media{background:radial-gradient(circle at center,#59443a,#28231e 72%);display:grid;place-items:center;padding:22px;min-height:230px}.card-art{width:min(50%,145px);min-width:100px;transform:rotate(-6deg);font-size:1rem}.card-art b{font-size:3rem}.product-info{padding:16px}.product-info h3{font-size:1.8rem}.product-info p{margin:8px 0}.product-bottom{display:flex;gap:8px;align-items:center;justify-content:space-between}.custom{color:#fff3df;background:#211d19;padding-block:74px}.custom-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(20px,6vw,84px);align-items:start}.custom ul{padding-left:20px}.custom form{color:var(--ink);background:var(--cream);border-radius:7px;padding:clamp(16px,4vw,32px);display:grid;gap:14px}.custom h3{font-size:2.5rem}.custom form p{margin:0}label,legend{font-weight:700}input:not([type=radio]),textarea{display:block;width:100%;padding:9px 10px;border:1px solid #ab9b86;border-radius:4px;background:#fffaf1;color:var(--ink);margin-top:4px}fieldset{padding:0;border:0;margin:0}.options,.form-row{display:flex;gap:10px;flex-wrap:wrap}.options label{padding:7px 10px;border:1px solid #b6a68e;border-radius:4px;cursor:pointer}.options label:has(:checked){border-color:#914d12;background:#f9dfae}.form-row label{flex:1;min-width:140px}.quote-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.quote-bottom strong{display:block;font-size:1.4rem}footer{display:flex;gap:22px;justify-content:space-between;padding-block:28px}dialog{width:min(560px,calc(100% - 30px));border:1px solid #aa8f6b;background:var(--cream);color:var(--ink);border-radius:8px;padding:22px}dialog::backdrop{background:#100c09a8}.dialog-head,.bag-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{font-size:2.5rem}.bag-row{border-bottom:1px solid #bdad97;padding-block:10px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.quote-summary{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:760px){.nav{height:auto;min-height:70px;flex-wrap:wrap;padding-block:12px}.nav nav{order:3;width:100%;justify-content:space-between}.hero-layout,.custom-layout{grid-template-columns:1fr}.intro{padding-block:45px 5px}.fan{min-height:300px}.fan-card{width:clamp(122px,28vw,200px)}.section-head{align-items:start;flex-direction:column}.search{width:100%}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-media{min-height:0;padding:15px 10px}.product-info{padding:10px}.product-bottom{align-items:start;flex-direction:column}.catalog,.custom{padding-block:44px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fan-card{transition:none}}
.treasure{--illustration:url(treasure.webp)}.food{--illustration:url(food.webp)}.clue{--illustration:url(clue.webp)}.fan-card,.card-art{background-image:linear-gradient(0deg,#151118e8,transparent 26%,transparent 74%,#151118eb),var(--illustration,none),var(--card-bg);background-position:center;background-size:100% 100%,89% 82%,cover;background-repeat:no-repeat}.fan-card:is(.treasure,.clue,.food) b,.card-art:is(.treasure,.clue,.food) b{visibility:hidden}.fan-card:is(.treasure,.clue,.food)::before,.card-art:is(.treasure,.clue,.food)::before{display:none}.fan-card small,.card-art small{color:var(--card-ink)}@media(max-width:760px){.fan-card{--x:0%}.fan-card.clue{--x:-57%}.fan-card.food{--x:57%}}@media(max-width:375px){h1{font-size:4rem}}

/* The stack and its cards share a single perspective. */
.fan { perspective: 1050px; }
.fan-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--deck-yaw, 0deg) + var(--hover-yaw, 0deg)))
    rotateX(calc(var(--deck-pitch, 8deg) + var(--hover-pitch, 0deg)));
  transition: transform 120ms ease-out;
}
.fan-stage::before {
  content: '';
  position: absolute;
  inset: 64% 14% 7%;
  background: radial-gradient(ellipse, #0b0806c9, transparent 69%);
  transform: translateZ(-64px) rotateX(52deg);
  pointer-events: none;
}
.fan-card {
  --progress: 1;
  --stack-x: 0%;
  --stack-y: 0%;
  --stack-angle: -8deg;
  --level: 0px;
  outline-offset: 5px;
  transform:
    translate3d(
      calc(-50% + var(--stack-x) * (1 - var(--progress)) + var(--x) * (var(--progress) + var(--hover-spread, 0))),
      calc(-50% + var(--stack-y) * (1 - var(--progress)) + var(--y) * var(--progress)),
      var(--level)
    )
    rotateZ(calc(var(--stack-angle) * (1 - var(--progress)) + var(--rot) * var(--progress)));
  box-shadow:
    inset 0 0 0 5px #1b1819,
    inset 0 0 0 7px var(--card-ink),
    1px 2px 0 #a18b71,
    2px 4px 0 #645341,
    4px 8px 12px #100906d9,
    11px 21px 34px #1009068f;
  transition: transform 105ms ease-out;
}
.fan-card.clue { --stack-x: -13%; --stack-y: 12%; --stack-angle: -14deg; --level: 0px; }
.fan-card.food { --stack-x: 13%; --stack-y: 6%; --stack-angle: 4deg; --level: 18px; }
.fan-card.treasure { --level: 37px; }
.fan-card:focus-visible { outline-color: #fff3df; }
.art-preview {
  display: block;
  width: min(100%, 310px);
  max-height: 63vh;
  object-fit: contain;
  margin: 18px auto 0;
  border: 2px solid #8a4c14;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .fan-stage::before { inset-inline: 7%; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-stage, .fan-card { transition: none; }
}

.fan-card.full-card {
  aspect-ratio: 672 / 936;
  padding: 0;
  border: 0;
  background: #171613;
  box-shadow: 1px 2px 0 #a18b71, 2px 4px 0 #645341, 4px 8px 12px #100906d9, 11px 21px 34px #1009068f;
}
.full-card img { display: block; width: 100%; height: 100%; object-fit: contain; }

.hero-backdrop {
  position: absolute;
  inset: 0 0 0 22%;
  opacity: .30;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  pointer-events: none;
}
.hero-backdrop img {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: clamp(125px, 18vw, 285px);
  aspect-ratio: 672 / 936;
  border-radius: 5%;
  object-fit: cover;
  box-shadow: 8px 16px 28px #0f0c0a;
  filter: saturate(.72);
  transform: rotate(var(--angle));
}
.hero-backdrop img:nth-child(1) { --left: 30%; --top: -18%; --angle: -21deg; }
.hero-backdrop img:nth-child(2) { --left: 53%; --top: -23%; --angle: 13deg; }
.hero-backdrop img:nth-child(3) { --left: 77%; --top: -7%; --angle: -12deg; }
.hero-backdrop img:nth-child(4) { --left: 20%; --top: 45%; --angle: 18deg; }
.hero-backdrop img:nth-child(5) { --left: 47%; --top: 44%; --angle: -13deg; }
.hero-backdrop img:nth-child(6) { --left: 75%; --top: 48%; --angle: 20deg; }

@media (max-width: 760px) {
  .hero-backdrop {
    inset: auto 0 0;
    height: 310px;
    mask-image: linear-gradient(transparent, #000 34%);
  }
  .hero-backdrop img { width: clamp(95px, 29vw, 175px); }
}

[hidden] { display: none !important; }
.nav nav [aria-current="page"] { color: var(--amber); }
.home-collections { padding-block: 68px 78px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.home-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d6c9b6; border-radius: 7px; background: #fff9ec; }
.tile-art { height: 195px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse, #634739, #27201b 75%); }
.tile-staples { background: radial-gradient(ellipse, #44465c, #211d27 75%); }
.tile-custom { background: radial-gradient(ellipse, #80603b, #302217 75%); }
.tile-art img { position: absolute; height: 78%; width: auto; max-width: 38%; object-fit: cover; border-radius: 6px; box-shadow: 2px 9px 16px #110d0bbd; transform: translateX(var(--offset,0%)) rotate(var(--turn,-4deg)); }
.tile-art img:first-child { --offset: -58%; --turn: -20deg; }
.tile-art img:nth-child(2) { z-index: 1; }
.tile-art img:last-child { --offset: 58%; --turn: 15deg; }
.tile-copy { padding: 20px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.tile-copy h3 { font-size: 2rem; line-height: 1; }
.tile-copy p { color: var(--muted); margin: 10px 0 16px; }
.tile-copy span { font-weight: 700; color: #79440f; margin-top: auto; text-decoration: underline; text-underline-offset: 4px; }
.home-tile:hover { border-color: #a56c30; }
.order-preview { transform: rotate(-5deg); border: 1px solid #d9a761; border-radius: 6px; padding: 12px; background: #211a15; color: #fff3df; display: grid; gap: 6px; width: min(68%, 205px); box-shadow: 2px 10px 18px #140f0c99; }
.order-preview span { border: 1px solid #76624c; border-radius: 3px; padding: 4px 9px; font-size: .88rem; }
.order-preview span:first-child { color: #20170f; background: var(--amber); }
@media(max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-collections { padding-block: 44px; }
  .nav nav { flex-wrap: wrap; }
}

.token-media {
  width: 100%;
  border: 0;
  background: radial-gradient(ellipse at 50% 35%, #4b2658, #151525 80%);
  padding: clamp(12px, 3vw, 27px);
}
.token-media img {
  display: block;
  width: min(100%, 218px);
  height: auto;
  border-radius: 5%;
  box-shadow: 3px 9px 18px #100917ae;
}
.token-media:hover img { box-shadow: 0 0 14px #c67cf57d, 3px 9px 18px #100917ae; }
.token-status { color: #624827; font-size: .875rem; }
.tile-tokens { background: radial-gradient(ellipse, #622860, #131b39 75%); }

.token-banner{position:relative;isolation:isolate;overflow:hidden;color:#fff5e7;background:linear-gradient(110deg,#30204c,#171c3d 65%,#21152e);border-bottom:3px solid #d58d55;padding-block:clamp(32px,5vw,64px)}
.token-banner .shell{position:relative}.token-banner h1{font-size:clamp(3.3rem,7vw,7rem);color:#ffcb83}
.token-banner .eyebrow{color:#8ddce8}.token-banner p:last-child{margin:12px 0 0}
.token-banner-art{position:absolute;inset:-36% -3% -65% 28%;display:flex;gap:12px;align-items:start;transform:rotate(-12deg);opacity:.34;mask-image:linear-gradient(90deg,transparent,#000 63%)}
.token-banner-art img{width:20%;min-width:72px;border-radius:9px}.token-banner-art img:nth-child(even){margin-top:7%}
.token-catalog{padding-block:35px 64px}.token-catalog .section-head h2{font-size:clamp(2.4rem,4vw,3.6rem)}
.token-catalog .catalog-layout{display:grid;grid-template-columns:minmax(145px,190px) minmax(0,1fr);gap:clamp(18px,4vw,46px);margin-top:22px}
.catalog-sidebar{display:grid;align-content:start;gap:15px;padding:17px;background:#ece2d3;border-top:2px solid #a86432;border-radius:4px}
.catalog-sidebar select{display:block;width:100%;margin-top:4px;background:#fff9ec;color:var(--ink);border:1px solid #a99983;border-radius:4px;padding:8px;font:inherit;font-size:.875rem}
.catalog-sidebar .outline{padding:6px 9px;font-size:.875rem}
.token-catalog #products{display:block;margin:0}.token-catalog #catalog-note{margin:0 0 12px}
.token-group+ .token-group{margin-top:32px}.token-group h3{font-size:2.15rem;line-height:1;margin-bottom:12px}
.token-set-grid,.token-single-grid{display:grid;gap:clamp(10px,2vw,24px)}
.token-set-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.token-single-grid{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:26px}
.collection-item{text-align:center;min-width:0}.collection-item h4{margin:9px 0 0;font-size:1rem}.collection-item p{margin:2px 0;color:#615443;font-size:.85rem}
.single-media,.set-media{border:0;padding:0;width:100%;display:block;background:none}
/* Keep the image inset so the arcade backdrop frames the whole card. */
.single-media {
  display: grid;
  place-items: center;
  padding: clamp(9px, 1.35vw, 20px);
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 35%, #5d326f, #19192f 82%);
}
.single-media img { display: block; width: 100%; height: auto; border-radius: 5%; box-shadow: 3px 9px 18px #100917ae; }
.single-media:hover img { box-shadow: 0 0 14px #c67cf57d, 3px 9px 18px #100917ae; }
.set-media{display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:112px;padding:14px 9px;background:radial-gradient(ellipse,#632662,#1a1c39 84%);border-radius:6px}
.set-media img{width:21%;height:auto;border-radius:4px;box-shadow:3px 4px 8px #0c0714aa;transform:rotate(-7deg)}
.set-media img+img{margin-left:-2%}.set-media img:nth-child(n+4){transform:rotate(7deg)}
.token-swatches{display:flex;justify-content:center;gap:7px;margin-top:7px}
.token-swatches button{width:34px;height:34px;padding:2px;border:1px solid transparent;border-radius:50%;background:transparent}
.token-swatches button[aria-pressed=true]{border-color:#86501e}
.token-swatches img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover;object-position:50% 28%}
.set-detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.set-detail img{width:100%;height:auto;border-radius:4px}
@media(max-width:760px){.token-catalog .catalog-layout{grid-template-columns:1fr}.catalog-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.token-single-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.token-banner-art{inset:-10% -26% -30% 17%}}

.nav nav [aria-current="location"] { color: var(--amber); }
.token-directory {
  max-width: 2000px;
  padding-inline: clamp(16px, 3vw, 64px);
  padding-block: clamp(40px, 6vw, 76px);
}
.token-directory h1 { text-align: center; font-size: clamp(3.15rem, 7vw, 5.4rem); }
.collection-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 30px; margin-top: clamp(24px, 5vw, 45px); }
.collection-directory-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center;
  min-height: 440px;
  overflow: hidden;
  border: 2px solid #e96a65;
  border-radius: 12px;
  color: #fff0dc;
  background: repeating-linear-gradient(0deg, #0002 0 2px, transparent 2px 5px),
    radial-gradient(ellipse at 30% 21%, #972254 0%, transparent 54%),
    linear-gradient(150deg, #191533 4%, #10162e 66%, #1b2847);
  box-shadow: inset 0 0 0 5px #17132a, 0 12px 26px #29153930;
}
.collection-directory-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: clamp(150px, 27%, 320px);
  aspect-ratio: 1;
  left: 20%;
  top: 4%;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #48174b55 0 3px, transparent 3px 10px), linear-gradient(#ffc260, #eb437e 80%);
  box-shadow: 0 0 35px #ef507f40;
  opacity: .78;
}
.collection-directory-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -22% -15% -22%;
  height: 51%;
  background: repeating-linear-gradient(90deg, #ec489977 0 2px, transparent 2px 78px),
    repeating-linear-gradient(0deg, #ec489977 0 2px, #181934a8 2px 27px);
  transform: perspective(220px) rotateX(48deg) scaleX(1.35);
  transform-origin: center top;
  mask-image: linear-gradient(transparent, black 36%);
}
.collection-copy { padding: clamp(24px, 4vw, 50px); position: relative; z-index: 1; }
.collection-copy .eyebrow { color: #9debf0; letter-spacing: .33em; }
.collection-copy h2 { color: #ffd38f; font-size: clamp(3.1rem, 5.8vw, 6rem); line-height: .9; font-style: italic; text-transform: uppercase; text-shadow: 2px 3px #9c2757, 4px 6px #190f2d; }
.collection-copy p:not(.eyebrow) { max-width: 27ch; color: #fff0dc; text-shadow: 0 1px 4px #140c23; }
.collection-copy .button { color: #fff3d0; background: #681a50; border-color: #ffb568; box-shadow: inset 0 0 0 2px #a03d65, 0 0 14px #ea568052; }
.collection-copy .button:hover { background: #8d235d; }
.collection-style { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.collection-style button { padding: 7px 12px; border: 1px solid #8c739a; border-radius: 4px; background: #251b3d; color: #fff0dc; }
.collection-style button[aria-pressed="true"] { background: #593867; border-color: #efacd7; }
.collection-stage { position: relative; min-width: 0; height: clamp(290px, 37vw, 480px); perspective: 920px; }
.collection-stage::before {
  content: '';
  position: absolute;
  inset: 18% 9% 14%;
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse, #ec76bd20 0 1px, transparent 2px 20px), radial-gradient(ellipse, #cf65d332, transparent 69%);
  transform: rotateX(33deg);
  pointer-events: none;
}
.collection-spread {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--collection-pitch, 8deg)) rotateY(var(--collection-yaw, -6deg));
  transition: transform .22s ease-out;
}
.collection-spread img {
  position: absolute;
  display: block;
  width: 29%;
  height: auto;
  aspect-ratio: 650 / 905;
  object-fit: contain;
  left: 50%;
  top: 46%;
  border-radius: 6%;
  box-shadow: 0 2px #a17586, 0 4px #473149, 5px 15px 25px #150a21a8;
  --card-pose: translate3d(calc(-50% + var(--offset, 0%)), calc(-50% + var(--drop, 0%)), var(--depth, 58px)) rotate(var(--angle, 0deg));
  transform: var(--card-pose);
  transition: transform .38s ease-out;
}
.collection-spread img:nth-child(1) { --offset: -117%; --drop: 18%; --angle: -24deg; --depth: 0px; }
.collection-spread img:nth-child(2) { --offset: -62%; --drop: 4%; --angle: -13deg; --depth: 27px; }
.collection-spread img:nth-child(4) { --offset: 62%; --drop: 4%; --angle: 13deg; --depth: 27px; }
.collection-spread img:nth-child(5) { --offset: 117%; --drop: 18%; --angle: 24deg; --depth: 0px; }
@media (prefers-reduced-motion: no-preference) {
  .collection-stage:not(.is-tracking) .collection-spread { animation: drift-collection 5s ease-in-out 1; }
}
@keyframes drift-collection {
  0%, 100% { transform: rotateX(8deg) rotateY(-6deg); }
  50% { transform: translateY(-9px) rotateX(14deg) rotateY(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .collection-spread, .collection-spread img { transition: none; }
}
@media (max-width: 720px) {
  .collection-directory-card { grid-template-columns: 1fr; min-height: 0; }
  .collection-copy { padding-bottom: 0; }
  .collection-stage { height: clamp(190px, 70vw, 410px); }
  .collection-spread img { width: 26%; }
}
.collections-back { display: inline-block; margin-bottom: 16px; text-decoration: underline; text-underline-offset: 4px; }

/* Retro Collection header: a sunset and arcade grid beneath the card art. */
.token-banner {
  background: repeating-linear-gradient(0deg, #080a1e38 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 39% 54%, #822256, transparent 61%),
    linear-gradient(150deg, #19102d, #111a37 72%, #1a2446);
  border-bottom-color: #f68569;
}
.token-banner::before,
.token-banner::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.token-banner::before {
  width: clamp(130px, 22vw, 310px);
  aspect-ratio: 1;
  top: -12%;
  left: 36%;
  border-radius: 50%;
  opacity: .62;
  background: repeating-linear-gradient(0deg, #4b184a85 0 3px, transparent 3px 10px),
    linear-gradient(#ffcc71, #ff796b 47%, #ea3d91);
  box-shadow: 0 0 55px #ea4f8466;
}
.token-banner::after {
  inset: auto -23% -30% -23%;
  height: 67%;
  background: repeating-linear-gradient(90deg, #e952a075 0 2px, transparent 2px 65px),
    repeating-linear-gradient(0deg, #e952a075 0 2px, #11172a91 2px 22px);
  transform: perspective(190px) rotateX(44deg);
  transform-origin: center top;
  mask-image: linear-gradient(transparent, #000 44%);
}
.token-banner-art { z-index: 1; opacity: .39; }
.token-banner .shell { z-index: 2; }
.token-banner .eyebrow { color: #9debf0; letter-spacing: .26em; }
.token-banner h1 { color: #ffcf80; font-style: italic; text-shadow: 2px 3px #9e275c, 4px 6px #140e2b; }
.token-banner .collections-back, .token-banner p { text-shadow: 0 1px 5px #0a0819; }
@media (max-width: 760px) {
  .token-banner::before { top: 5%; left: 48%; opacity: .4; }
  .token-banner-art { opacity: .27; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-tile .tile-art img {
    transform: scale(var(--tile-zoom, 1)) translateX(var(--offset, 0%)) rotate(var(--turn, -4deg));
    transition: transform 240ms ease-out;
  }

  .home-tile .order-preview {
    scale: var(--tile-zoom, 1);
    transition: scale 240ms ease-out;
  }

  .home-tile:focus-visible { --tile-zoom: 1.055; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-tile:hover { --tile-zoom: 1.055; }
}

.nav nav a { position: relative; }
.nav nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.nav nav a:focus-visible { color: var(--amber); }
.nav nav a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) {
  .nav nav a:hover { color: var(--amber); }
  .nav nav a:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav nav a { transition: color 160ms ease-out, transform 160ms ease-out; }
  .nav nav a::after { transition: transform 180ms ease-out; }
  .nav nav a:focus-visible { transform: translateY(-2px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nav nav a:hover { transform: translateY(-2px); }
}

.collection-motion {
  display: block;
  margin-top: 12px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #f3d7e7;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes collection-grid-flow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 0 27px; }
}
@keyframes collection-sunset-glow {
  from { opacity: .69; }
  to { opacity: .88; }
}
@media (prefers-reduced-motion: no-preference) {
  .collection-directory-card::before { animation: collection-sunset-glow 5s ease-in-out infinite alternate; }
  .collection-directory-card::after { animation: collection-grid-flow 1.55s linear infinite; }
  .collection-directory-card.is-background-paused::before,
  .collection-directory-card.is-background-paused::after { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .collection-motion { display: none; }
}

.staples-banner {
  position: relative;
  overflow: hidden;
  color: #fff2df;
  background: radial-gradient(ellipse at 73% 46%, #3e6654 0%, #203c33 32%, #121d1b 69%);
  border-bottom: 3px solid #bd9a65;
}
.staples-hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; min-height: 440px; }
.staples-hero-copy { position: relative; z-index: 1; padding-block: clamp(32px, 5vw, 64px); }
.staples-hero-copy .eyebrow { color: #d9b98c; }
.staples-banner h1 { font-size: clamp(4.4rem, 9vw, 9rem); letter-spacing: -.02em; text-transform: uppercase; }
.staples-hero-copy > p:not(.eyebrow) { max-width: 33ch; color: #e1e9dd; margin: 18px 0 0; }
.staples-switch { display: inline-flex; gap: 5px; margin-top: 24px; padding: 4px; background: #111a18; border: 1px solid #617369; border-radius: 6px; }
.staples-switch a { padding: 8px 17px; border-radius: 4px; font-weight: 700; }
.staples-switch a:hover { color: #ffd38f; }
.staples-switch [aria-current="page"] { background: var(--amber); color: #21170b; }
.staples-hero-art { position: relative; width: 100%; align-self: stretch; min-height: 290px; perspective: 900px; }
.staples-hero-art::before {
  content: '';
  position: absolute;
  inset: 9% 3%;
  border-radius: 50%;
  border: 1px solid #c7b38252;
  box-shadow: 0 0 0 16px #c7b38210, inset 0 0 42px #efc16416;
  transform: rotateX(31deg) rotateZ(-14deg);
}
.staples-hero-art img {
  position: absolute;
  width: clamp(105px, 16vw, 220px);
  height: auto;
  border-radius: 6%;
  top: 48%;
  left: 50%;
  transform: translate3d(calc(-50% + var(--shift, 0%)), -50%, var(--depth, 0px)) rotate(var(--angle, -4deg));
  box-shadow: 1px 3px #99917b, 2px 5px #414637, 8px 22px 27px #080e0dbc;
}
.staples-hero-art img:first-child { --shift: -62%; --angle: -19deg; }
.staples-hero-art img:nth-child(2) { --depth: 25px; z-index: 1; }
.staples-hero-art img:last-child { --shift: 62%; --angle: 15deg; }
.staples-catalog { padding-block: 36px 64px; }
.staples-catalog .section-head h2 { font-size: clamp(2.8rem, 5vw, 4.3rem); }
.staples-catalog:not(.staples-singles) #products { display: block; }
.staple-group { padding-block: 17px 25px; border-top: 1px solid #c9bcaa; }
.staple-group + .staple-group { margin-top: 12px; }
.staple-group h3 { margin-bottom: 16px; font-size: 2.25rem; line-height: 1; }
.staple-pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.staple-pack { overflow: hidden; border: 1px solid #cdbfae; border-radius: 8px; background: #fff9ec; display: flex; flex-direction: column; }
.staple-pack-art {
  padding: clamp(12px, 2vw, 25px);
  display: grid;
  align-content: center;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, .6vw, 8px);
  min-height: 190px;
  background: radial-gradient(ellipse, var(--pack-light, #525947), #1a2320 82%);
}
[data-pack-theme="fetch-lands"] { --pack-light: #3a5765; }
[data-pack-theme="cedh-utility-lands"] { --pack-light: #546b53; }
[data-pack-theme="fast-mana"] { --pack-light: #6b4b30; grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.staple-pack-art[data-size="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-pack-theme="fast-mana"] .staple-pack-art { padding-inline: clamp(30px, 8vw, 110px); }
.staple-pack-art img { width: 100%; aspect-ratio: 360 / 502; border-radius: 5%; box-shadow: 1px 4px 7px #000a; }
.staple-pack-art span { color: #fff9ec; font-size: .8rem; overflow-wrap: anywhere; }
.staple-pack-copy { padding: 18px; display: flex; flex-direction: column; align-items: start; flex: 1; }
[data-pack-theme="fast-mana"] .staple-pack-copy { justify-content: center; padding: clamp(18px, 5vw, 58px); }
.staple-pack-copy h4 { margin: 0; font: 800 1.9rem/1 'Barlow Condensed', sans-serif; }
.staple-pack-copy p { color: var(--muted); margin: 8px 0 16px; }
.staple-pack-copy .pack-count { margin: 0 0 7px; color: #536148; font-size: .875rem; font-weight: 700; }
.staple-pack-copy .button { margin-top: auto; background: #243930; color: #fff8e6; }
[data-pack-theme="fast-mana"] .button { margin-top: 0; }
.staple-pack-copy .button:hover { background: #365445; }
.staples-singles #products { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 26px; }
.staples-singles .single-media { background: radial-gradient(ellipse, #56624e, #25352d 85%); }
.staples-singles .outline { font-size: .85rem; padding: 5px 8px; }
.staple-pack-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; text-align: center; }
.staple-pack-list img { width: 100%; display: block; border-radius: 5%; }
.staple-pack-list span { display: block; margin-top: 4px; font-size: .875rem; }
@media (max-width: 760px) {
  .staples-hero { grid-template-columns: 1fr; }
  .staples-hero-copy { padding-bottom: 0; }
  .staples-banner h1 { font-size: clamp(3.8rem, 11vw, 6rem); }
  .staples-banner h1 br { display: none; }
  .staples-hero-art img { width: clamp(100px, 27vw, 170px); }
  .staple-pack-grid, .staples-singles #products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .staple-pack-grid, [data-pack-theme="fast-mana"] { grid-template-columns: 1fr; }
}

.staples-banner {
  background:
    repeating-linear-gradient(135deg, #b7cba708 0 1px, transparent 1px 7px),
    radial-gradient(ellipse at 77% 65%, #98694966, transparent 48%),
    radial-gradient(ellipse at 72% 28%, #376c5a, #1b352f 37%, #141e23 77%);
}
.staples-banner h1 { color: #ffebce; text-shadow: 3px 4px #0b191d; }
.staples-hero-art::before {
  background: repeating-radial-gradient(ellipse, transparent 0 19px, #dfb98c24 20px 21px, transparent 22px 36px);
  opacity: .78;
}
[data-pack-theme="original-dual-lands"] { --pack-light: #5e5639; --pack-edge: #aa884c; }
[data-pack-theme="fetch-lands"] { --pack-light: #3b536e; --pack-edge: #668daf; }
[data-pack-theme="cedh-utility-lands"] { --pack-light: #435d53; --pack-edge: #678d78; }
[data-pack-theme="fast-mana"] { --pack-light: #785041; --pack-edge: #a96555; }
.staple-pack { border-top: 3px solid var(--pack-edge, #aa884c); }
.staple-pack-art {
  background:
    repeating-linear-gradient(135deg, #fff1 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 55% 40%, var(--pack-light, #525947), #192125 88%);
}
.staple-pack-copy {
  background: linear-gradient(150deg, color-mix(in srgb, var(--pack-edge, #aa884c) 17%, #fff9ec), #fff9ec 65%);
}
.staples-singles .single-media {
  background: radial-gradient(ellipse at 50% 25%, var(--single-light, #4e6a60), #212a32 85%);
}
.staples-singles .collection-item:nth-child(3n+2) { --single-light: #656280; }
.staples-singles .collection-item:nth-child(3n+3) { --single-light: #795643; }

@media (prefers-reduced-motion: no-preference) {
  .staple-pack-art img, .staples-singles .single-media img { transition: transform 200ms ease-out; }
  .staple-pack:focus-within .staple-pack-art img,
  .staples-singles .single-media:focus-visible img { transform: translateY(-3px) scale(1.04); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .staple-pack:hover .staple-pack-art img,
  .staples-singles .single-media:hover img { transform: translateY(-3px) scale(1.04); }
  .staple-pack:hover .staple-pack-art img:nth-child(even) { transition-delay: 45ms; }
}


.staples-pile {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.staples-pile img {
  position: absolute;
  left: var(--pile-x);
  top: var(--pile-y);
  width: clamp(117px, 19vw, 360px);
  height: auto;
  aspect-ratio: 360 / 502;
  object-fit: cover;
  border-radius: 5%;
  box-shadow: 0 10px 18px #050b10c9;
  transform: rotate(var(--pile-angle));
}
.staples-pile::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #111c20f5 2%, #111e24eb 21%, #15252bc4 38%, #15262a58 65%, #14232946),
    linear-gradient(0deg, #0e1b2360, transparent 58%);
}
.staples-hero { position: relative; }
@media (max-width: 760px) {
  .staples-pile img { width: clamp(112px, 34vw, 215px); }
  .staples-pile::after {
    background: linear-gradient(180deg, #111c20f2 2%, #111e24e6 38%, #15252b70 66%, #14232950);
  }
}

.staples-motion {
  display: block;
  margin-top: 12px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #f1e2c7;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .staples-hero-art { perspective: none; isolation: isolate; }
  .staples-hero-art img {
    z-index: auto;
    animation: staples-card-orbit 12s infinite, staples-card-layer 12s step-end infinite;
    animation-delay: var(--orbit-phase, 0s);
  }
  .staples-hero-art img:first-child { --orbit-phase: -8s; }
  .staples-hero-art img:last-child { --orbit-phase: -4s; }
  .staples-hero-art.is-paused img { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .staples-motion { display: none; }
}
@keyframes staples-card-orbit {
  0%, 100% { transform: perspective(900px) translate3d(-50%, -50%, 66px) rotateZ(-4deg); }
  16.667% { transform: perspective(900px) translate3d(4%, -47%, 32px) rotateZ(11deg) rotateY(-8deg); }
  33.333% { transform: perspective(900px) translate3d(22%, -50%, -25px) rotateZ(17deg) rotateY(-17deg); }
  50% { transform: perspective(900px) translate3d(-50%, -63%, -125px) rotateZ(0deg); }
  66.667% { transform: perspective(900px) translate3d(-122%, -50%, -25px) rotateZ(-19deg) rotateY(17deg); }
  83.333% { transform: perspective(900px) translate3d(-104%, -47%, 32px) rotateZ(-15deg) rotateY(8deg); }
}

/* Order whole card faces independently of their perspective transforms. */
@keyframes staples-card-layer {
  0%, 83.333%, 100% { z-index: 3; }
  16.667%, 66.667% { z-index: 2; }
  33.333%, 50% { z-index: 1; }
}

.hero-float-toggle {
  display: block;
  margin-top: 14px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #e0d4c2;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .fan-stage { animation: home-card-float 5.5s ease-in-out infinite; }
  .fan.is-float-paused .fan-stage,
  .fan:has(.fan-card:focus-visible) .fan-stage { animation-play-state: paused; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fan:hover .fan-stage { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-toggle { display: none; }
}
@keyframes home-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.collection-builder-link { margin-top: 18px; }
.token-detail { padding-block: 42px 72px; }
.token-detail h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
.token-detail .collections-back { color: #703e51; }
.set-page-heading {
  background: radial-gradient(ellipse at 85% 0%, #772855, transparent 64%), #211b39;
  color: #fff2df;
  padding: clamp(22px, 5vw, 52px);
  border-radius: 8px 8px 0 0;
}
.set-page-heading .eyebrow { color: #8ddce8; }
.set-page-heading h1 { color: #ffd38f; }
.set-page-heading p:last-child { margin-bottom: 0; }
.set-page-spread {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: clamp(12px, 3vw, 30px);
  background: radial-gradient(ellipse at 50% 20%, #593263, #17182d 78%);
  border-radius: 0 0 8px 8px;
}
.set-page-card,.builder-card { display: grid; gap: 6px; border: 0; padding: 0; background: none; color: #fff3e3; text-align: left; }
.set-page-card img,.builder-card img { display: block; width: 100%; height: auto; border-radius: 5%; box-shadow: 2px 6px 12px #0d091eba; }
.set-page-card small { color: #e9c1d8; }
.set-page-footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .45fr); gap: 20px; align-items: start; margin-top: 22px; }
.builder-options section { background: #251b3b; color: #ffd38f; border-radius: 7px; padding: 18px; }
.builder-options section + section { margin-top: 14px; }
.builder-options h2,.builder-tray h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 12px; }
.builder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.builder-card { grid-template-columns: 1fr auto; gap: 4px; font-size: .875rem; }
.builder-card img { grid-column: 1 / -1; }
.builder-card:hover span { color: var(--amber); }
.builder-tray { background: #eadcc9; border: 1px solid #d0bda7; border-radius: 7px; padding: 17px; }
.tray-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.tray-row img { width: 100%; border-radius: 3px; }
.tray-row small { display: block; }
.tray-row .outline { padding: 4px 9px; }
.staples-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.staples-tools [data-singles-view] { background: #f7efdf; color: var(--ink); padding: 7px 14px; border: 1px solid #907c67; border-radius: 4px; }
.staples-tools [aria-pressed="true"] { background: #263d34; border-color: #263d34; color: #fff3df; }
.staple-pack-list a { text-decoration: underline; text-underline-offset: 2px; }
.staples-singles #products.is-staples-list { display: block; }
.is-staples-list .collection-item { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #ccbeaa; text-align: left; }
.is-staples-list .single-media { width: 44px; padding: 3px; }
.is-staples-list .collection-item h4 { margin: 0; flex: 1 1 140px; }
.is-staples-list .collection-item label { display: flex; align-items: center; gap: 6px; }
.is-staples-list .collection-item input { width: 64px; margin: 0; padding: 4px 6px; }
.deck-review #deck-preview-status { margin-top: 7px; }
.deck-preview-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; margin-top: 8px; }
.deck-preview-items article { background: #fff8e9; border: 1px solid #d2c0a7; padding: 7px; border-radius: 5px; font-size: .875rem; }
.deck-preview-items img { display: block; width: 100%; height: auto; border-radius: 4px; margin-bottom: 5px; }
.deck-preview-items label { display: flex; gap: 5px; align-items: center; font-weight: 500; }
.deck-preview-items input[type="checkbox"] { display: inline; width: auto; margin: 0; }
button:disabled { opacity: .52; cursor: default; }
@media (max-width: 700px) {
  .builder-layout { grid-template-columns: 1fr; }
  .set-page-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.browse-token-builder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #76587f;
  border-radius: 6px;
  background: linear-gradient(115deg, #382146, #22233e);
  color: #fff0dd;
}
.browse-token-builder p { margin: 3px 0 0; color: #eed4e6; }
.collection-item .token-list-price { color: var(--ink); font-weight: 700; }
#builder-total { font-weight: 700; }

.staples-singles .catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 300px);
  align-items: start;
  gap: 22px;
}
.staples-singles #products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staples-tray { position: sticky; top: 20px; margin-top: 14px; }
#staples-tray-items { max-height: min(380px, 42vh); overflow-y: auto; padding: 3px; }
#staples-tray-summary p { margin: 8px 0; }
@media (max-width: 970px) {
  .staples-singles #products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .staples-singles .catalog-layout { grid-template-columns: 1fr; }
  .staples-tray { position: static; grid-row: 1; }
}

.staples-tools label { display: grid; gap: 3px; font-size: .875rem; }
.staples-tools select {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #a79a8a;
  border-radius: 4px;
  background: #fff9ed;
  color: var(--ink);
  font: inherit;
}
.staples-tools [role="group"], .staples-tools > button { align-self: end; }
.staples-tools > span { align-self: end; padding-bottom: 7px; }
.staple-single-label { margin-bottom: 4px; }
.staple-single-label p { font-size: .8rem; color: #4f614f; }
.is-staples-list .staple-single-label { flex: 1 1 140px; margin: 0; }
@media (max-width: 560px) {
  .staples-tools > label { flex: 1 1 125px; }
}

.staple-pack-copy .pack-quick-add { margin-top: 8px; }
[data-pack-theme="tutor-toolbox"] { --pack-light: #645144; --pack-edge: #b58c61; }
[data-pack-theme="stack-protection"] { --pack-light: #365670; --pack-edge: #79a3bb; }
[data-pack-theme="card-advantage"] { --pack-light: #546750; --pack-edge: #8aab78; }
[data-pack-theme="combo-toolkit"] { --pack-light: #713f54; --pack-edge: #b76c83; }
[data-pack-theme="table-disruption"] { --pack-light: #565074; --pack-edge: #9c88be; }
[data-pack-theme="early-ramp"] { --pack-light: #48655b; --pack-edge: #84a99a; }

.nav .logo,.site-footer .logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.logo img { display: block; width: clamp(120px, 15vw, 196px); height: auto; }
.site-footer { border-top: 1px solid #4b4031; background: #181713; color: #f4ead9; }
.site-footer .shell { display: flex; gap: 14px 22px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-footer .logo img { width: clamp(110px, 13vw, 168px); }
.home-contact { padding-bottom: clamp(36px, 6vw, 70px); }
.home-contact-inner { border-top: 1px solid #c8b79e; padding-top: clamp(22px, 4vw, 42px); }
.home-contact h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.home-contact p { margin: 9px 0; color: var(--muted); }
.home-contact a { color: #79440f; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

.home-contact-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 24px 44px; }
.home-contact form { display: grid; gap: 12px; }
.home-contact form .button { justify-self: start; }
#contact-status:empty { display: none; }
@media (max-width: 650px) { .home-contact-inner { grid-template-columns: 1fr; } }

/* Match the homepage divider across the storefront. */
.top,
.hero,
.token-banner,
.staples-banner {
  border-bottom: 3px solid #d49a3d;
}

.collection-directory-grid { grid-template-columns: 1fr; }
.ink-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(22px, 5vw, 64px);
  color: #faedce;
  border: 1px solid #a88d61;
  border-radius: 10px;
  background: radial-gradient(ellipse at 82% 42%, #43627c, #192c40 62%, #121e2d);
  box-shadow: inset 0 0 0 5px #d1b27a2c;
}
.ink-tile .eyebrow { color: #e6c18a; }
.ink-tile h1,.ink-tile h2 { color: #fff0cc; font: 700 clamp(2.3rem, 6vw, 5.1rem)/1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: none; letter-spacing: -.04em; }
.ink-tile p:not(.eyebrow) { max-width: 44ch; }
.ink-tile .button { background: #edc891; }
.ink-tile:hover .button { background: #ffe0aa; }
.ink-seal { display: grid; place-items: center; width: clamp(60px, 17vw, 195px); aspect-ratio: 1; border: 4px double #d6b87c; border-radius: 50%; font-size: clamp(2rem, 8vw, 7rem); color: #e6c18a; }
.ink-collection { padding-bottom: 72px; }
.ink-lineup > h2 { margin-top: 32px; font-size: clamp(2.55rem, 5vw, 4rem); }
.ink-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ink-grid article { border: 1px solid #c7ae82; border-radius: 5px; padding: 18px; background: #efe0c3; color: #172c42; }
.ink-grid p { margin: 0 0 7px; font-size: .875rem; color: #644b35; }
.ink-grid h3 { font: 700 clamp(1.25rem, 2.1vw, 1.7rem)/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; }
@media (max-width: 600px) { .ink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.collection-directory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 30px);
}
.collection-directory-grid .collection-directory-card,
.collection-directory-grid .ink-tile {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  aspect-ratio: 3 / 2;
  min-height: min-content;
  max-width: none;
}
.collection-directory-grid .collection-copy { padding: clamp(12px, 2.2vw, 42px) 0 clamp(12px, 2.2vw, 42px) clamp(12px, 2.2vw, 42px); }
.collection-directory-grid .collection-copy h2,
.collection-directory-grid .ink-tile h2 { font-size: clamp(1.65rem, 3.35vw, 4.25rem); }
.collection-directory-grid .collection-stage { height: 100%; min-height: 120px; }
.collection-directory-grid .collection-spread img { width: 30%; }
.collection-directory-grid .collection-spread img:first-child { --offset: -93%; }
.collection-directory-grid .collection-spread img:nth-child(2) { --offset: -49%; }
.collection-directory-grid .collection-spread img:nth-child(4) { --offset: 49%; }
.collection-directory-grid .collection-spread img:last-child { --offset: 93%; }
.collection-directory-grid .ink-tile { padding: clamp(12px, 2.2vw, 42px); gap: 12px; }
.collection-directory-grid .ink-seal { width: min(100%, clamp(64px, 13vw, 245px)); justify-self: center; font-size: clamp(2rem, 6vw, 7rem); }
@media (max-width: 850px) {
  .collection-directory-grid { grid-template-columns: 1fr; }
  .collection-directory-grid .collection-directory-card,
  .collection-directory-grid .ink-tile { aspect-ratio: 2 / 1; }
}

@media (min-width: 851px) {
  .collection-directory-grid .collection-directory-card {
    grid-template-columns: minmax(0, 8fr) minmax(0, 17fr);
  }
  .collection-directory-grid .collection-stage {
    margin-inline-end: clamp(12px, 2vw, 32px);
  }
  .collection-directory-grid .collection-spread img {
    width: 38%;
    top: 45%;
  }
  .collection-directory-grid .collection-spread img:first-child { --offset: -72%; --angle: -17deg; }
  .collection-directory-grid .collection-spread img:nth-child(2) { --offset: -40%; --angle: -10deg; }
  .collection-directory-grid .collection-spread img:nth-child(4) { --offset: 40%; --angle: 10deg; }
  .collection-directory-grid .collection-spread img:last-child { --offset: 72%; --angle: 17deg; }
}

.ink-grid { margin-top: 20px; gap: clamp(12px, 2.5vw, 28px); }
.ink-grid article { text-align: center; padding: clamp(8px, 2vw, 20px); }
.ink-grid img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: contain; margin-bottom: 12px; }
.ink-grid p { margin: 5px 0 0; }

.ink-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ink-hero {
  color: #f4e7ca;
  border-bottom: 3px solid #ad874d;
  background: linear-gradient(90deg, #152b44df, #18344a55 59%, transparent),
    #203954 url("tokens/ink/castle-mist.webp") center 12% / cover no-repeat;
}
.ink-hero::before { content: none; }
.ink-hero-layout {
  padding-block: clamp(28px, 3.3vw, 50px);
}
.ink-hero h1 {
  color: #fff0cf;
  font: 700 clamp(2.55rem, 5.3vw, 5rem)/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.ink-hero .eyebrow { color: #e3bd7f; }
.ink-hero p:not(.eyebrow) { max-width: 46ch; margin-bottom: 0; }
@media (max-width: 650px) {
  .ink-hero {
    background-position: center, right 15%;
    background-image: linear-gradient(90deg, #152b44e8, #18344a88),
      url("tokens/ink/castle-mist.webp");
  }
}
.ink-lineup > h2 {
  margin-top: clamp(32px, 5vw, 64px);
  font: 700 clamp(2.1rem, 4vw, 3.6rem)/1.1 "Barlow Condensed", "Arial Narrow", sans-serif;
  color: #1c2e43;
}
.ink-grid article {
  padding: clamp(8px, 1.1vw, 15px);
  border-color: #c8af87;
  border-radius: 16px;
  box-shadow: 0 5px 15px #2b241414;
}
.ink-card-display {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 7;
  padding: 7%;
  margin-bottom: 16px;
  border: 1px solid #877350;
  border-radius: 11px;
  background: radial-gradient(ellipse at 50% 27%, #536f87 0%, #253e56 56%, #14263b);
  box-shadow: inset 0 0 0 3px #d1aa662b;
}
.ink-grid .ink-card-display img {
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 7% / 5%;
  box-shadow: 1px 3px #9d8667, 4px 12px 18px #0b1426aa;
}
.ink-grid p { margin: 6px 0 10px; }
@media (hover: hover) {
  .ink-grid article:hover {
    border-color: #b18b46;
    box-shadow: 0 0 0 2px #e4c280, 0 12px 24px #2b24142b;
  }
  .ink-grid article:hover .ink-card-display img {
    box-shadow: 0 0 0 1px #f6d591, 2px 4px #9d8667, 6px 17px 22px #0b1426c9;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ink-grid article, .ink-card-display img { transition: box-shadow .22s ease, transform .22s ease; }
  .ink-grid article:hover .ink-card-display img { transform: translateY(-4px); }
}

.ink-grid .ink-price {
  margin-block: 5px 10px;
  color: #233a53;
  font: 700 1.45rem/1.15 "Barlow Condensed", "Arial Narrow", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.ink-builder-banner { background: linear-gradient(115deg, #203a54, #131f33); }
.ink-builder-banner p { color: #f6e5c4; }
.ink-section-title { margin-top: 32px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ink-sets-title { text-align: center; }
.ink-complete-set {
  max-width: 780px;
  margin: 16px auto 0;
  padding: clamp(12px, 2vw, 24px);
  text-align: center;
  border: 1px solid #c8af87;
  border-radius: 16px;
  box-shadow: 0 8px 20px #43331917;
}
.ink-set-spread {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 2%;
  padding: 4%;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 30%, #506a80, #15273d);
}
.ink-set-spread img { width: 100%; border-radius: 5%; box-shadow: 2px 5px 10px #0913229c; }
.ink-complete-set h4 { margin: 12px 0 0; font-size: 1.125rem; }
.ink-complete-set p { margin: 4px 0 8px; }
.ink-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .ink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ink-collection {
  background: linear-gradient(90deg, #e1c8a047, transparent 19%, transparent 81%, #e1c8a047);
}
@media (min-width: 1000px) {
  .ink-collection { position: relative; isolation: isolate; }
  .ink-collection::before,
  .ink-collection::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    width: clamp(60px, 12vw, 290px);
    pointer-events: none;
    background: url("tokens/ink/castle-mist.webp") left bottom / auto 460px repeat-y;
    opacity: .21;
    mask-image: linear-gradient(90deg, #000 4%, transparent 94%);
  }
  .ink-collection::before { left: 0; }
  .ink-collection::after { right: 0; transform: scaleX(-1); }
}

.ink-grid article,
.ink-complete-set {
  background: linear-gradient(155deg, #fcf2dcf2 12%, #f5e8cef0 52%, #eadcc1b8),
    #eadcc1 url("tokens/ink/castle-mist.webp") right bottom / auto 100% no-repeat;
}
.ink-complete-set {
  background-position: center, right 72%;
  background-size: auto, cover;
}

.ink-cover {
  display: grid;
  align-self: stretch;
  border-radius: 16px;
}
.ink-cover:focus-visible { outline: 3px solid #725828; outline-offset: 5px; }
.ink-showcase {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 6px;
  padding: clamp(16px, 2.2vw, 34px);
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: #293e50 url("tokens/ink/arcane-archives.webp") center / cover no-repeat;
  box-shadow: 0 12px 26px #30281430;
}
.ink-showcase h2 {
  text-align: center;
  color: #fff1d6;
  font: 700 clamp(1.4rem, 3.5vw, 3rem)/1.05 Georgia, serif;
  text-shadow: 0 2px 7px #162737;
}
.ink-showcase .button {
  text-align: center;
  background: #f3cd8d;
  color: #212b34;
  font-weight: 700;
}
.ink-cover:is(:hover, :focus-visible) .button { background: #ffe0aa; }
.ink-cover-cards { position: relative; width: 100%; height: 100%; }
.ink-cover-cards img {
  position: absolute;
  width: auto;
  height: 57%;
  max-width: 22%;
  object-fit: contain;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--turn));
  border-radius: 6%;
  filter: drop-shadow(3px 5px 5px #101727a0);
}
.ink-cover-cards img:nth-child(1) { --x: 25%; --y: 33%; --turn: -10deg; }
.ink-cover-cards img:nth-child(2) { --x: 50%; --y: 30%; --turn: -2deg; }
.ink-cover-cards img:nth-child(3) { --x: 75%; --y: 33%; --turn: 10deg; }
.ink-cover-cards img:nth-child(4) { --x: 25%; --y: 69%; --turn: -7deg; }
.ink-cover-cards img:nth-child(5) { --x: 50%; --y: 66%; --turn: 2deg; height: 64%; z-index: 1; }
.ink-cover-cards img:nth-child(6) { --x: 75%; --y: 69%; --turn: 7deg; }
@media (prefers-reduced-motion: no-preference) {
  .ink-cover-cards img { animation: ink-archives-open .75s cubic-bezier(.19, 1, .22, 1) both; }
  @keyframes ink-archives-open {
    from { left: 50%; top: 51%; transform: translate(-50%, -50%) scale(.94); }
  }
}
@media (max-width: 520px) { .ink-showcase { min-height: 230px; } }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ink-cover-cards img {
    transition: translate .35s ease, filter .35s ease;
  }
  .ink-cover:is(:hover, :focus-visible) .ink-cover-cards img {
    translate: 0 -4px;
    filter: drop-shadow(4px 9px 7px #101727b0);
  }
  .ink-cover:is(:hover, :focus-visible) .ink-cover-cards img:nth-child(5) {
    translate: 0 -8px;
  }
}

@supports (background-clip: text) {
  .ink-showcase h2 {
    background: linear-gradient(170deg, #fff6e3f5, #f1dcb3cc),
      url("tokens/ink/castle-mist.webp") right 80% / cover;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 2px #162737);
  }
}
.ink-showcase .button {
  background: linear-gradient(155deg, #fcf2dced, #eadcc1be),
    #eadcc1 url("tokens/ink/castle-mist.webp") right 80% / cover;
  border-color: #d6b77d;
}
.ink-cover:is(:hover, :focus-visible) .ink-showcase .button {
  background-image: linear-gradient(155deg, #fff7e7f5, #f4dfb6d9),
    url("tokens/ink/castle-mist.webp");
}
@media (forced-colors: active) {
  .ink-showcase h2 { color: LinkText; background: none; }
}

.token-cart-add {
  margin-block: 8px 3px;
  min-width: 8.75rem;
  padding-inline: 8px;
  font-size: .875rem;
}
.token-cart-add.is-added { background: #28564a; color: #fff3dd; }

.collection-directory-grid .collection-stage {
  height: auto;
  align-self: stretch;
}
.collection-directory-grid .collection-directory-card {
  aspect-ratio: auto;
  min-height: max-content;
}
@media (min-width: 851px) and (max-width: 1250px) {
  .collection-directory-grid .collection-directory-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

@media (max-width: 850px) {
  .collection-directory-grid .collection-directory-card {
    min-height: max(290px, 45vw);
  }
}

.checkout { padding-block: clamp(30px, 6vw, 76px); }
.checkout h1 { font-size: clamp(3rem, 7vw, 5.5rem); margin: 8px 0 28px; }
.checkout h2 { font-size: clamp(1.65rem, 4vw, 2.6rem); line-height: 1; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: start; }
#checkout-items { list-style: none; padding: 0; margin: 16px 0 0; }
.checkout-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; padding-block: 12px; border-bottom: 1px solid #cebda3; }
.checkout-item img { width: 100%; border-radius: 6px; box-shadow: 2px 4px 9px #17161342; }
.checkout-item p { margin: 2px 0; }
.checkout-summary { padding: clamp(16px, 3vw, 28px); border: 1px solid #c8af87; border-radius: 12px; background: #fbf3e2; }
.checkout-total { display: flex; justify-content: space-between; gap: 10px; }
.checkout-summary .button { width: 100%; }
.checkout-summary .muted { margin-bottom: 0; }
@media (max-width: 680px) { .checkout-layout { grid-template-columns: 1fr; } }

body:has(#checkout:not([hidden]), #tokens:not([hidden])) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body:has(#checkout:not([hidden]), #tokens:not([hidden])) > main { flex: 1 0 auto; min-width: 0; }
.checkout-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
.checkout-item button { padding: 7px 10px; font-size: .875rem; }
@media (max-width: 430px) {
  .checkout-item { grid-template-columns: 56px minmax(0, 1fr); }
  .checkout-item button { grid-column: 2; justify-self: start; }
}

.checkout-total[hidden] { display: none; }
