:root {
  --toybox-black: #080c0d;
  --toybox-chalk: #f1e4c3;
  --toybox-gold: #d7ad5b;
}

.toybox-landing {
  box-sizing: border-box;
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.toybox-view,
html.toybox-view body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  color: var(--toybox-chalk);
  background-color: var(--toybox-black);
  background-image: url("images/gotchops-chalkboard-background.webp");
  background-repeat: repeat;
  font-family: Georgia, "Times New Roman", serif;
}

html.toybox-view #assembly-app,
html.toybox-view .assembly-chat-only,
html.toybox-view .after-assembly,
html.toybox-view .privacy-section {
  display: none !important;
}

html.toybox-view .toybox-landing {
  width: min(560px, 92vw);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 2.75rem) 0;
  display: grid;
  align-content: center;
  gap: clamp(1.3rem, 3.5vh, 2.5rem);
}

.toybox-brand {
  text-align: center;
}

.toybox-brand-logo {
  display: block;
  width: 92%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.toybox-brand-taglines {
  display: grid;
  gap: clamp(0.2rem, 0.55vh, 0.4rem);
  margin-top: clamp(0.35rem, 0.9vh, 0.65rem);
}

.toybox-brand-taglines p {
  margin: 0;
  color: var(--toybox-chalk);
  font: 600 clamp(0.62rem, 1.35vh, 0.9rem)/1.35 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: clamp(0.14em, 0.3vh, 0.22em);
  text-transform: uppercase;
}

.toybox-brand-taglines .toybox-step-forth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vh, 0.8rem);
  color: var(--toybox-gold);
  font: 500 clamp(0.9rem, 2vh, 1.2rem)/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: clamp(0.12em, 0.3vh, 0.2em);
  text-transform: none;
}

.toybox-step-rule {
  display: block;
  width: clamp(1rem, 2.5vh, 1.6rem);
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--toybox-gold));
  opacity: 0.78;
}

.toybox-step-rule:last-child {
  transform: scaleX(-1);
}

.toybox-products {
  display: grid;
  gap: clamp(2.1rem, 6vh, 4rem);
  width: 100%;
  margin: 0 auto;
}

/* One stationary window; the original badges travel upward behind its edge. */
.toybox-reel-track {
  display: grid;
  gap: 2rem;
}

.toybox-reel.is-ready {
  position: relative;
  aspect-ratio: 1600 / 895;
  overflow: hidden;
  border-radius: clamp(1rem, 2.4vh, 1.5rem);
}

.toybox-reel.is-ready .toybox-reel-track {
  height: calc(var(--toybox-reel-panel-count, 3) * 100%);
  grid-template-rows: repeat(var(--toybox-reel-panel-count, 3), minmax(0, 1fr));
  gap: 0;
  will-change: transform;
}

.toybox-reel.is-ready .toybox-image-button {
  min-height: 0;
  height: 100%;
}

.toybox-reel .toybox-image-button:hover,
.toybox-reel .toybox-image-button:focus-visible {
  transform: none;
  outline-offset: -5px;
}

/* The same soft gold pass used by the Assembly's Thoth passage. */
.toybox-glitter {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 229, 151, 0.13) 49%, transparent 62%);
  mix-blend-mode: screen;
}

.toybox-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--toybox-chalk);
  border: 0;
  border-radius: clamp(1rem, 2.4vh, 1.5rem);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.toybox-image-button > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Match the diagonal red Demo ribbon on GotChops.com/toy_box.html. */
.toybox-demo-ribbon {
  position: absolute;
  z-index: 6;
  top: 1.35rem;
  left: -2.35rem;
  width: 9rem;
  padding: 0.48rem 0;
  color: #fff9ee;
  border-top: 1px solid rgba(255, 225, 204, 0.72);
  border-bottom: 1px solid rgba(83, 4, 8, 0.72);
  background: linear-gradient(180deg, #df4739, #a8171d);
  box-shadow: 0 0.35rem 0.75rem rgba(0, 0, 0, 0.38);
  font: 900 0.78rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: center;
}

.toybox-image-button:hover,
.toybox-image-button:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--toybox-chalk);
  outline-offset: 5px;
  transform: translateY(-4px) scale(1.01);
}

.ibis-product {
  display: grid;
  gap: 0.85rem;
}

.ibis-card {
  aspect-ratio: 1600 / 895;
  isolation: isolate;
}

.ibis-frame-source {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ibis-card-interior {
  position: absolute;
  inset: 5.8% 4.3%;
  z-index: -1;
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  gap: 5%;
  overflow: hidden;
  border-radius: 16% / 28%;
  background-color: #060909;
  background-image: url("images/gotchops-chalkboard-background.webp");
  background-repeat: repeat;
}

.ibis-portrait {
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ibis-portrait img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.ibis-card-copy {
  display: grid;
  justify-items: center;
  gap: clamp(0.2rem, 1vw, 0.6rem);
  padding-right: 8%;
  text-align: center;
}

.ibis-coming-soon {
  color: var(--toybox-gold);
  font: 700 clamp(0.42rem, 1.8vw, 0.78rem)/1.2 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.ibis-name {
  color: var(--toybox-chalk);
  font: 500 clamp(2.1rem, 10vw, 4.8rem)/0.9 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 3px #000;
}

.chef-card {
  aspect-ratio: 1600 / 895;
  isolation: isolate;
  cursor: default;
}

.chef-card-interior {
  position: absolute;
  inset: 5.8% 4.3%;
  z-index: -1;
  display: grid;
  grid-template-columns: 50% 1fr;
  align-items: center;
  gap: 2%;
  overflow: hidden;
  border-radius: 16% / 28%;
  background: radial-gradient(circle at 30% 35%, #fffaf5 0, #f8ece5 58%, #ead9cf 100%);
}

.chef-art {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2%;
}

.chef-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.08);
}

.chef-card-copy {
  display: grid;
  justify-items: center;
  gap: clamp(0.35rem, 1.3vw, 0.75rem);
  padding: 0 5% 0 2%;
  color: #294c34;
  text-align: center;
}

.chef-name {
  font: 600 clamp(1.45rem, 5.5vw, 3rem)/0.9 Georgia, "Times New Roman", serif;
  letter-spacing: 0.035em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #fff;
}

.chef-tagline {
  color: #586449;
  font: 600 clamp(0.4rem, 1.4vw, 0.72rem)/1.35 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toybox-store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 240px);
  min-height: 152px;
  margin: 0 auto;
}

.toybox-store-product {
  display: grid;
  grid-area: 1 / 1;
  grid-template-rows: 64px 52px 20px;
  justify-items: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.toybox-store-product[hidden] {
  display: none;
}

.toybox-store-title {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 64px;
  margin: 0;
  color: var(--toybox-chalk);
  font: 500 2.8rem/0.9 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  text-align: center;
}

.assembly-store-title svg {
  display: block;
  width: 156px;
  max-width: 100%;
  height: 64px;
  mix-blend-mode: screen;
}

.chef-store-title {
  align-content: end;
  gap: 0.28rem;
  font-size: 2.25rem;
  letter-spacing: 0.035em;
}

.chef-store-title small {
  color: var(--toybox-gold);
  font: 600 0.54rem/1.1 "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toybox-store-badge {
  display: block;
  width: 156px;
  max-width: 100%;
  line-height: 0;
  border-radius: 7px;
}

a.toybox-store-badge:focus-visible {
  outline: 2px solid var(--toybox-gold);
  outline-offset: 5px;
}

a.toybox-store-badge:hover {
  filter: brightness(1.12);
}

.toybox-store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.toybox-store-badge.is-unavailable {
  filter: grayscale(0.25) brightness(0.82);
  opacity: 0.7;
  cursor: default;
  user-select: none;
}

.toybox-store-coming-soon {
  color: var(--toybox-chalk);
  font: 400 clamp(0.78rem, 1.7vh, 1rem)/1.35 Georgia, "Times New Roman", serif;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
}

.toybox-footer {
  color: var(--toybox-chalk);
  font: 400 clamp(0.78rem, 1.7vh, 1rem)/1.35 Georgia, "Times New Roman", serif;
  text-align: center;
}

.toybox-footer p {
  margin: 0;
}

.toybox-footer-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.toybox-footer-link:hover,
.toybox-footer-link:focus-visible {
  color: #fff2cc;
  text-shadow: 0 0 10px rgba(215, 173, 91, 0.7), 0 0 20px rgba(215, 173, 91, 0.3);
  transform: translateY(-2px);
}

.toybox-footer-link:focus-visible {
  outline: 1px solid var(--toybox-gold);
  outline-offset: 5px;
  border-radius: 2px;
}

@media (max-width: 520px) {
  html.toybox-view .toybox-landing {
    width: min(92vw, 440px);
    padding: 1rem 0 1.5rem;
  }

  .toybox-products {
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toybox-footer-link {
    transition: none;
  }

  .toybox-footer-link:hover,
  .toybox-footer-link:focus-visible {
    transform: none;
  }

  .toybox-image-button {
    transition: none;
  }

  .toybox-reel.is-ready {
    aspect-ratio: auto;
    overflow: visible;
  }

  .toybox-reel.is-ready .toybox-reel-track {
    height: auto;
    grid-template-rows: none;
    gap: 2rem;
    transform: none !important;
    will-change: auto;
  }

  [data-reel-clone] {
    display: none;
  }
}
