:root{color-scheme:light;--ink:#251644;--paper:#fff9ed;--purple:#612eb1;--peach:#ff775e;--line:#ded2e5;--display:"Arial Rounded MT Bold","Trebuchet MS",system-ui,sans-serif;font-family:system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #5325b1;outline-offset:3px}[hidden]{display:none!important}.wrap{width:min(1170px,calc(100% - 44px));margin-inline:auto}
.top{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9d9d1}.outline{border:1px solid var(--ink);border-radius:999px;padding:8px 15px;background:white;font-weight:750}#bag-count{display:inline-grid;place-items:center;background:#ffd66c;min-width:25px;height:25px;border-radius:100%;margin-left:4px}
.intro{display:flex;align-items:end;justify-content:space-between;gap:22px;padding:36px 0 33px}.eyebrow{font-size:.8rem;font-weight:900;letter-spacing:.14em;margin:0 0 9px;color:#612e97}h1,h2{font-family:var(--display);font-weight:1000;letter-spacing:-.045em;margin:0}h1{font-size:clamp(3rem,8vw,6.35rem);line-height:.86}h1 em{font-style:normal;color:#b83c39}h2{font-size:clamp(1.65rem,3vw,2.45rem);line-height:1.03}.intro>p{max-width:310px;line-height:1.55;margin:0 0 3px}
.bar{display:flex;align-items:center;min-width:0;width:max-content;max-width:calc(100% - 36px);margin-left:36px;position:relative;gap:1px;background:linear-gradient(var(--base),var(--base)) center/100% 55% no-repeat;filter:drop-shadow(0 12px 13px #35215840)}.bar::before{content:"";position:absolute;right:calc(100% - 3px);width:clamp(23px,5vw,37px);aspect-ratio:1;border:4px solid var(--ring);border-radius:50%;box-shadow:0 2px 1px #25164460,inset 0 1px 1px #fff7}.bar .key-housing{width:clamp(19px,5.5vw,65px)}.key-housing{position:relative;display:block;min-width:0;padding:clamp(2px,.6vw,5px);border-radius:24%;background:var(--base);box-shadow:0 4px 0 color-mix(in srgb,var(--base),#251644 40%),inset 0 1px 1px #fff5}.key{min-width:0;width:100%;aspect-ratio:1;border:1px solid #25164480;border-radius:21%;background:var(--cap);color:var(--letter);box-shadow:inset 0 2px 2px #fff7,inset 0 -3px 0 #24163c29;display:grid;place-items:center;padding:0;font-family:var(--key-font);font-weight:950;font-size:clamp(.8rem,3.65vw,2rem);line-height:1;overflow:hidden}.key:active{transform:translateY(3px);filter:brightness(.89)}.key-housing:has(>[aria-pressed=true])::after{content:"";position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);width:9px;height:5px;border-radius:999px;background:var(--purple);pointer-events:none}
#builder,dialog{background:#fff;border:2px solid var(--ink);border-radius:26px;padding:22px;box-shadow:0 5px 0 var(--ink)}.form-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}#price{font-size:1.15rem;background:#ffdf79;padding:5px 12px;border-radius:999px}.hint{font-size:.88rem;color:#514563;margin:8px 0 12px}.word-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}label,legend{font-weight:760;font-size:.91rem}label{display:block}label span{font-weight:550;color:#64546b}input,select{width:100%;min-width:0;border:1px solid #a591b5;background:#fff;border-radius:9px;padding:8px 10px;margin-top:4px;min-height:41px;font-size:1rem}fieldset{border:0;padding:0;margin:13px 0 15px}legend{padding:0;margin-bottom:5px}.swatches{display:flex;gap:5px;flex-wrap:wrap}.swatch{width:29px;height:29px;border-radius:100%;background:var(--chip);border:1px solid #25164470}.swatch[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:1px}.selected-color{margin-left:6px;font-weight:500}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0 7px;font-size:.9rem}.wide{grid-column:1/-1}#ring-colors{margin-bottom:13px}#global-colors{margin-top:10px}.primary{width:100%;border:2px solid var(--ink);background:var(--peach);box-shadow:0 3px 0 var(--ink);border-radius:13px;padding:11px;font-weight:850}.primary:not(:disabled):hover{background:#ff8c78}.status{margin-bottom:0}.status:empty{display:none}
#photos{padding:38px 0 30px}.gallery{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:14px}figure{margin:0;background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}figure img{width:100%;aspect-ratio:1.8;object-fit:cover;object-position:center 44%;display:block}figcaption{padding:10px 14px;font-weight:650}footer{display:flex;justify-content:space-between;gap:12px;padding:18px 0;border-top:1px solid #e9d9d1;font-weight:650}dialog{width:min(480px,calc(100% - 28px));max-height:85vh;color:var(--ink)}dialog::backdrop{background:#23133490}.cart-row{display:grid;grid-template-columns:1fr auto;gap:5px 10px;border-bottom:1px solid var(--line);padding:10px 0}.cart-row button{align-self:start}
@media(max-width:780px){.intro{align-items:start;flex-direction:column}.intro>p{max-width:420px}.bar .key-housing{width:clamp(19px,8vw,65px)}}
@media(max-width:430px){.wrap{width:calc(100% - 24px)}.top{height:74px}.intro{padding-top:25px}#builder{padding:15px}.gallery{grid-template-columns:1fr}.key{font-size:clamp(.68rem,4.1vw,1.3rem)}}

.symbol-picker{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 11px}
.symbol-picker button{padding:6px 10px;font-size:.88rem}
.paw{display:inline-block;width:1em;height:1em;vertical-align:-.13em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='4.5' cy='10' rx='2.5' ry='3.6' transform='rotate(-26 4.5 10)'/%3E%3Cellipse cx='9' cy='5.5' rx='2.5' ry='3.8' transform='rotate(-12 9 5.5)'/%3E%3Cellipse cx='15' cy='5.5' rx='2.5' ry='3.8' transform='rotate(12 15 5.5)'/%3E%3Cellipse cx='19.5' cy='10' rx='2.5' ry='3.6' transform='rotate(26 19.5 10)'/%3E%3Cpath d='M6 16c2-2 3-5 6-5s4 3 6 5c2.5 3 0 6-3 5-2-.7-4-.7-6 0-3 1-5.5-2-3-5z'/%3E%3C/svg%3E") center/contain no-repeat}
#slot-colors{margin-top:10px}

:root{--key-font:ui-rounded,"Arial Rounded MT Bold","Nunito",system-ui,sans-serif}
.key{font-family:Clicker Symbols,var(--key-font);-webkit-text-stroke:.045em currentColor}

@font-face{font-family:Clicker Symbols;src:url("clicker-symbols.ttf?v=pokeball") format("truetype");unicode-range:U+E000-E007}
#word,#status,.cart-row strong,#slot-character,.symbol-picker button span{font-family:Clicker Symbols,system-ui,sans-serif}

/* Color and lettering from the Jack’s Packs market signs. */
:root {
  --ink: #181421;
  --paper: #f9feff;
  --teal: #00bfd1;
  --red: #fa3858;
  --yellow: #ffe53c;
  --line: #86dce3;
  --display: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

.top {
  height: auto;
  min-height: 78px;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 3px solid var(--teal);
}

.intro-ribbon, .rainbow-title {
  font-family: var(--display);
  font-weight: 1000;
  text-transform: uppercase;
}

.market-wordmark {
  display: block;
  position: relative;
  flex: none;
  width: clamp(6.25rem, 31vw, 9.25rem);
  aspect-ratio: 230 / 151;
  overflow: hidden;
}

.market-wordmark img {
  position: absolute;
  top: -19.2%;
  left: -26.1%;
  width: 159.13%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  /* Isolate the artwork from the Instagram profile controls. */
  clip-path: polygon(
    16.4% 16%, 22.8% 16%, 26.6% 19.8%, 29% 15%, 38% 11.3%,
    73% 11.3%, 80% 20%, 80% 53%, 72% 61.8%, 65% 62.5%,
    63.7% 70%, 30% 70%, 17% 57%, 16.4% 51%
  );
}

/* Cover the white spot inside the red J in the profile screenshot. */
.market-wordmark::after {
  content: "";
  position: absolute;
  left: 25.5%;
  top: 21.15%;
  width: 10.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: linear-gradient(150deg, #ed6957, #e74234 55%, #df362a);
  mask-image: radial-gradient(circle closest-side, #000 88%, transparent 100%);
  pointer-events: none;
}

#bag-count { background: var(--yellow); }

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block: 12px 16px;
  padding: clamp(14px, 2.5vw, 28px) 12px;
  text-align: center;
  border: 3px solid var(--red);
  border-radius: clamp(23px, 4vw, 50px);
  background:
    radial-gradient(ellipse at 0% 0%, #adf0f5 0 10%, transparent 10.5%),
    radial-gradient(ellipse at 100% 100%, #ffec79 0 12%, transparent 12.5%),
    #fff;
  box-shadow: 0 5px 0 var(--ink);
}

.intro h1 {
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.5vw, 15px);
  letter-spacing: -.025em;
  line-height: 1;
}

.intro-ribbon {
  display: inline-block;
  font-size: clamp(1rem, 3.25vw, 2.25rem);
  line-height: 1.1;
  padding: .24em .73em;
  background: var(--teal);
  border: 2px solid var(--ink);
  border-radius: .45em;
  box-shadow: 0 .11em 0 var(--ink), 0 0 0 .12em var(--yellow);
  transform: rotate(-2deg);
}

.rainbow-title {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: .21em;
  font-size: clamp(1.82rem, 8vw, 5.45rem);
  letter-spacing: -.035em;
  paint-order: stroke fill;
  -webkit-text-stroke: .105em var(--ink);
  text-shadow: 0 .085em var(--ink);
}

.rainbow-word { display: inline-flex; }
.rainbow-word span:nth-child(6n+1) { color: #ff5272; }
.rainbow-word span:nth-child(6n+2) { color: #ffa54b; }
.rainbow-word span:nth-child(6n+3) { color: #ffe849; }
.rainbow-word span:nth-child(6n+4) { color: #a9dc53; }
.rainbow-word span:nth-child(6n+5) { color: #39cdf2; }
.rainbow-word span:nth-child(6n) { color: #c5a1f5; }

.intro > p { max-width: 31rem; margin: 0; text-wrap: pretty; }




#builder, dialog { border: 3px solid var(--red); }
#price { background: var(--yellow); border: 1px solid var(--ink); }


input, select { border-color: #77969c; }
.outline { border-width: 2px; }
.symbol-picker button { background: #fff7b7; }
.primary { background: var(--red); color: var(--ink); }
.primary:not(:disabled):hover { background: #ff92a3; }
.gallery figure { border: 2px solid #009aa9; }
.gallery figure:nth-child(2) { border-color: var(--red); }
footer { border-top-color: var(--teal); }

@media (max-width: 430px) {
  .top { min-height: 65px; }
  .intro > p { max-width: 22rem; }
}

.builder { max-width: 740px; margin-inline: auto; }
.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  margin-bottom: 14px;
  padding: 14px 10px 20px;
  border: 2px solid #79d7df;
  border-radius: 15px;
  background: radial-gradient(#8adce3 1.25px, transparent 1.25px) 0 0/18px 18px, #dffbfc;
}
.preview .bar { max-width: calc(100% - 43px); margin-left: 43px; }

.base-palette {
  min-width: 0;
  padding: 9px 12px 12px;
  border: 2px solid #79d7df;
  border-radius: 13px;
  background: #f1fcfd;
}
.base-palette legend { padding-inline: 5px; }
.base-palette .hint { margin: 0 0 9px; }

.cart-preview {
  min-width: 0;
  min-height: 0;
  margin: 4px 0 2px;
  container-type: inline-size;
}
.cart-preview .bar {
  margin-left: 31px;
  max-width: calc(100% - 31px);
}
.cart-preview .bar::before {
  width: 25px;
  border-width: 3px;
}
.cart-preview .bar .key-housing {
  width: min(10cqw, 42px);
  padding: clamp(1px, .65cqw, 3px);
}
.cart-preview .key {
  font-size: clamp(.6rem, 4.5cqw, 1.2rem);
}

.key-housing {
  container-type: inline-size;
}

.key.letter-key {
  font-size: 86cqw;
}

.pokeball-face {
  position: relative;
  background: linear-gradient(to bottom,
    #bc302b 0 47%, #211919 47% 53%, #fffdf5 53% 100%);
}
.pokeball-face::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 41%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf5 0 55%, #211919 57% 69%, transparent 71%);
}
.pokeball-icon {
  display: inline-block;
  width: 1em;
  aspect-ratio: 1;
  border: 1px solid #211919;
  border-radius: 21%;
  vertical-align: -.13em;
}

.top {
  flex-wrap: wrap;
}

.shop-nav {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.shop-nav a {
  flex: 1 0 auto;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.shop-nav a:hover,
body:not(:has(main :target)) .shop-nav a[href="#build"],
body:has(#build:target) .shop-nav a[href="#build"],
body:has(#photos:target) .shop-nav a[href="#photos"],
body:has(#about:target) .shop-nav a[href="#about"],
body:has(#contact:target) .shop-nav a[href="#contact"] {
  background: #fff7b7;
}

.info-panel {
  display: none;
  max-width: 740px;
  margin: 24px auto 38px;
  padding: clamp(16px, 4vw, 32px);
  border: 3px solid var(--red);
  border-radius: 26px;
  background: white;
  box-shadow: 0 5px 0 var(--ink);
}

.info-panel:target {
  display: block;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

main:has(.info-panel:target) > :not(.info-panel) {
  display: none;
}

@media (min-width: 960px) {
  .top {
    flex-wrap: nowrap;
    gap: 24px;
    padding-block: 8px;
  }

  .market-wordmark {
    width: 7rem;
  }

  .shop-nav {
    flex: 0 1 auto;
    justify-content: center;
    gap: 8px;
    margin-inline: auto;
    order: 1;
  }

  .shop-nav a {
    padding-inline: 14px;
    font-size: .95rem;
  }

  #open-cart {
    flex: none;
    order: 2;
  }

  main.wrap {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 20px 26px;
    margin-block: 22px 32px;
  }

  .intro {
    grid-area: 1 / 1;
    justify-content: center;
    margin: 0;
    padding: 24px 14px;
    border-radius: 26px;
  }

  .intro-ribbon {
    font-size: clamp(1.1rem, 1.75vw, 1.45rem);
  }

  .rainbow-title {
    font-size: clamp(2.1rem, 3.4vw, 3.35rem);
  }

  .intro > p {
    max-width: 24rem;
  }

  .builder {
    grid-area: 1 / 2 / span 2;
    width: 100%;
    min-width: 0;
  }

  #photos {
    grid-area: 2 / 1;
    min-width: 0;
    padding: 5px 0 0;
  }

  #photos h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
  }

  .gallery {
    gap: 12px;
  }

  .gallery figure img {
    aspect-ratio: 1.25;
  }

  .info-panel {
    grid-column: 1 / -1;
    width: 100%;
    margin-block: 0;
  }
}
