[hidden] {
  display: none !important;
}
.preview-notice {
  display: block;
  margin: 0;
  padding: 12px 20px;
  text-align: center;
  background: var(--bg, #151910);
  color: var(--accent, #e8913a);
  font:
    11px/1.6 Monocraft,
    monospace;
  border-bottom: 1px solid currentColor;
}
.order-card {
  border-bottom: 1px solid var(--muted);
  padding: 20px 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.order-card h2 {
  font-size: 18px;
}
.order-page [data-orders] {
  display: grid;
  gap: 20px;
}
/* New API flows use the original inset fields, pixel icons and warm accent. */
.auth-input:focus,
.auth-input-wrap:focus-within .auth-icon {
  border-color: var(--accent);
  color: var(--accent);
}
.auth-input:focus {
  color: var(--text);
}
.auth-reveal {
  border: 1px solid transparent;
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}
.auth-reveal:hover,
.auth-reveal[aria-pressed="true"] {
  color: var(--accent);
  background: rgb(232 145 58 / 0.08);
  border-color: rgb(232 145 58 / 0.3);
}
.auth-reveal:focus-visible,
.plan-button:focus-visible,
.build-file:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.auth-reveal:focus-visible {
  color: var(--accent);
}
.plan-button:disabled,
.build-file:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  translate: none;
}
.auth-select {
  appearance: none;
  color-scheme: dark;
}
.auth-select-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.auth-input-wrap:focus-within .auth-select-arrow {
  color: var(--accent);
}
.purchase-form .auth-sub {
  margin: 0;
}
.order-card.security-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
}
@media (pointer: coarse) {
  .auth-reveal {
    width: 40px;
    height: 40px;
    right: 4px;
  }
}
/* Pages keep the same width whether or not they need a scrollbar. */
html {
  scrollbar-gutter: stable;
}
main,
.site-footer {
  opacity: 1;
  transition: opacity 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-loading main,
.is-loading .site-footer,
.is-page-leaving main,
.is-page-leaving .site-footer {
  opacity: 0;
  pointer-events: none;
}
.is-ready-at-once main,
.is-ready-at-once .site-footer {
  transition: none;
}
/* Same-site links crossfade from one page to the next, with the header held
   in place, instead of fading out to an empty page. The opt-in,
   @view-transition { navigation: auto }, is inlined in each page's head
   (scripts/build.mjs). */
.site-header {
  view-transition-name: site-header;
}
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 220ms;
  animation-timing-function: ease-out;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none;
  }
}
/* Fail open: if the bundle never runs, show the static page after a moment. */
.is-loading main,
.is-loading .site-footer {
  animation: reveal-unloaded 0s 4s forwards;
}
@keyframes reveal-unloaded {
  to {
    opacity: 1;
    pointer-events: auto;
  }
}
.is-page-leaving main,
.is-page-leaving .site-footer {
  transition-duration: 90ms;
  transition-timing-function: ease-in;
}
/* Slow loads only: Qu1nten walks in place after a short delay. */
body.is-loading::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  width: 111px;
  height: 123px;
  margin: -62px 0 0 -56px;
  background: url("/static/29d847bdf66f515faeaf/images/character/qu1nten/walk.png") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  opacity: 0;
  animation:
    loader-in 200ms ease-out 180ms forwards,
    loader-out 0s 4s forwards;
}
@keyframes loader-in {
  to {
    opacity: 1;
  }
}
@keyframes loader-out {
  to {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  main,
  .site-footer,
  .is-page-leaving main,
  .is-page-leaving .site-footer {
    transition: none;
  }
  body.is-loading::after {
    background-image: url("/static/29d847bdf66f515faeaf/images/character/qu1nten/sitting.png");
    animation:
      loader-in 0s 180ms forwards,
      loader-out 0s 4s forwards;
  }
}
.runtime-error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(640px, 90vw);
  background: var(--bg, #151910);
  border: 1px solid var(--accent, #e8913a);
  padding: 16px 20px;
  color: var(--text, #eef0d8);
}
.consent-form {
  display: grid;
  gap: 18px;
}
.consent-form .auth-verify {
  align-items: flex-start;
  height: auto;
  padding: 14px;
  white-space: normal;
  line-height: 1.6;
}
.consent-form .auth-check {
  margin-top: 2px;
}
.auth-google {
  width: 100%;
  margin-top: 12px;
}
.footer-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 1712px;
  margin: 24px auto 0;
}
.footer-preferences {
  padding: 0;
  font: inherit;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.policy-copy {
  max-width: 850px;
  margin: 60px auto;
  padding: 24px;
  white-space: pre-wrap;
  line-height: 1.8;
}
.callback {
  max-width: 700px;
  margin: 60px auto;
  padding: 24px;
  display: grid;
  gap: 24px;
}
.callback .auth-form {
  max-width: 480px;
  margin: auto;
}
.privacy-link {
  display: block;
  margin: 32px auto;
  text-align: center;
}
.security-qr img {
  width: 100%;
  max-width: 180px;
  image-rendering: pixelated;
}
.security-qr {
  display: grid;
  gap: 10px;
  height: auto;
}
.security-qr code {
  overflow-wrap: anywhere;
  font-size: 11px;
  user-select: all;
}
.billing-load-more {
  margin-top: 16px;
}
.gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-preview-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: rgb(15 18 11 / 0.85);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.guide-preview-toggle .pixel-icon {
  width: 16px;
  height: 16px;
}
.guide-preview-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.guide-preview-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .guide-locked {
    padding-bottom: 48px;
  }
  .guide-preview-toggle {
    min-height: 40px;
  }
}

.card {
  min-width: 0;
}
.build-desc > :first-child {
  margin-top: 0;
}
.build-desc > :last-child {
  margin-bottom: 0;
}
.seller-disclosure {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-line;
}
.private-store { min-height: 70vh; align-content: center; }
.private-store .welcome-char { width: 111px; }
.private-store .aa-text { max-width: 620px; line-height: 1.8; }
.private-store .aa-button { border: 0; cursor: pointer; font: inherit; font-size: 14px; }
.private-store .aa-button:disabled { opacity: .65; cursor: wait; }
.private-store-help { margin: 0; color: var(--muted); font-size: 11px; }
.private-store-error { max-width: 620px; margin: 0; color: var(--accent); font-size: 12px; line-height: 1.8; }
/* Held at the bottom of the screen rather than above the header, so it
   doesn't push each page down once the access check answers. */
.private-store-notice { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; position: fixed; left: 50%; bottom: 16px; z-index: 40; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 8px 8px 8px 14px; border: 1px solid currentColor; }
.private-store-notice button { border: 1px solid currentColor; background: transparent; color: inherit; padding: 7px 10px; font: inherit; cursor: pointer; }
.private-store-notice button:disabled { opacity: .65; cursor: wait; }
#account-data {
  scroll-margin-top: 120px;
}
/* The info panel 40px wider than the original's 400px; the page widens by
   the same, so the picture keeps its size and both stay centred. */
@media (min-width: 1001px) {
  .build {
    max-width: 1140px;
  }
  .build-top {
    grid-template-columns: minmax(0, 1fr) 440px;
  }
}
/* Same layout for every build: on desktop the panel is exactly as tall as the
   gallery, so the price, stats and DOWNLOAD sit in the same place and a long
   description scrolls inside the panel. */
/* From 1180px, where the gallery is tall enough for the panel's fixed parts;
   the panel still scrolls rather than spill if a long tag list needs it. */
@media (min-width: 1180px) {
  .build-panel {
    height: 0;
    min-height: 100%;
    overflow-y: auto;
  }
  .build-desc {
    flex: 1 1 0;
    min-height: 3.4em;
  }
  /* READ MORE: the panel grows down past the gallery to fit it all. */
  .build-panel.is-desc-open {
    height: auto;
    overflow-y: visible;
  }
  .build-panel.is-desc-open .build-desc {
    flex: none;
  }
}
/* A long description is cut off (to its space beside the gallery, or about
   eight lines on narrower screens) with a fade and READ MORE. */
.build-desc {
  overflow: hidden;
}
@media (max-width: 1179px) {
  .build-panel:not(.is-desc-open) .build-desc {
    max-height: 13.6em;
  }
}
.build-desc.is-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3.4em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 3.4em), transparent);
}
.build-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: -12px 0 24px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 11px/1 "Monocraft", monospace;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.15s;
}
.build-desc-toggle[hidden] {
  display: none;
}
.build-desc-toggle:hover {
  color: var(--accent);
}
.build-desc-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
.build-desc-toggle .pixel-icon {
  width: 12px;
  height: 12px;
  transition: rotate 0.2s;
}
.build-desc-toggle[aria-expanded="true"] .pixel-icon {
  rotate: 180deg;
}
/* Library cards keep DOWNLOAD on one line across the row, however long the
   build's name is. */
.library-card {
  display: flex;
  flex-direction: column;
}
.library-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.library-card .library-download {
  margin-top: auto;
}
/* Three library tabs fit a 320px phone: icons hidden, tighter buttons. */
@media (max-width: 440px) {
  .library-tabs .billing-btn {
    min-width: 0;
    gap: 4px;
    padding: 0 6px;
    font-size: 11px;
  }
  .library-tabs .billing-btn > .pixel-icon,
  .library-tabs .billing-btn > [data-icon] {
    display: none;
  }
}
/* Long file names have no spaces to wrap at: let the columns and rows shrink
   and break the name, so a file row never widens the page on a phone. */
.build-files {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* The "Choose a File" pop-up keeps its one column at every width. */
.build-files.file-picker-files {
  grid-template-columns: minmax(0, 1fr);
}
.build-files > li,
.build-file {
  min-width: 0;
}
.build-file-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .build-files {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Verification widget in the site's own style (it reads these variables
   through its shadow root). */
cap-widget {
  /* Spaced by the form's gap, like the fields above it. */
  display: block;
  --cap-widget-width: 100%;
  --cap-widget-height: 56px;
  --cap-widget-padding: 14px;
  --cap-background: var(--bg);
  --cap-border-color: var(--border);
  --cap-border-radius: 0;
  --cap-color: var(--text);
  --cap-font: "Monocraft", monospace;
  --cap-gap: 14px;
  /* 16px inside the border: the pixel icons below at 2px per pixel, like
     the site's own icons. */
  --cap-checkbox-size: 18px;
  /* The box shows the page behind it, like the ✓ and ✗ drawn in it. */
  --cap-checkbox-background: transparent;
  --cap-checkbox-border: 1px solid var(--muted);
  --cap-checkbox-border-radius: 0;
  --cap-spinner-color: var(--accent);
  --cap-spinner-background-color: var(--border);
  --cap-focus-ring: var(--accent);
  --cap-invalid-border-color: var(--danger);
  --cap-invalid-ring-color: var(--danger);
  /* The site's pixel check and cross (site.js PIXEL_ICONS) in --survival and
     --danger; data URIs can't read the variables, so the colours are inline. */
  --cap-checkmark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%238cc45c' d='M7 1h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM0 3h1v1h-1zM5 3h1v1h-1zM6 3h1v1h-1zM0 4h1v1h-1zM1 4h1v1h-1zM4 4h1v1h-1zM5 4h1v1h-1zM1 5h1v1h-1zM2 5h1v1h-1zM3 5h1v1h-1zM4 5h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1z'/%3E%3C/svg%3E");
  --cap-error-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath fill='%23e0574a' d='M1 1h1v1h-1zM6 1h1v1h-1zM2 2h1v1h-1zM5 2h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM2 5h1v1h-1zM5 5h1v1h-1zM1 6h1v1h-1zM6 6h1v1h-1z'/%3E%3C/svg%3E");
}
/* Referral prompt (src/referral-prompt.js): a creator's picture or Qu1nten's
   chibi with a speech bubble, styled like the banner's name tags; the cookie
   variant is one line. Sits bottom left, above the page, until answered. */
.ref-card {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  width: min(440px, calc(100vw - 40px));
  padding: 18px 20px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--ref-color, var(--accent));
  color: var(--text);
  text-transform: none;
  box-shadow: 0 6px 0 rgb(0 0 0 / 0.35);
  animation: ref-in 0.3s ease;
  transition: opacity 0.3s, translate 0.3s;
}
.ref-card.is-leaving {
  opacity: 0;
  translate: 0 12px;
}
.ref-buddy {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  width: 96px;
  padding-top: 52px;
}
.ref-say {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: 150px;
  margin: 0;
  padding: 3px 7px;
  background: rgb(0 0 0 / 0.35);
  color: #fff;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
}
.ref-say strong {
  color: var(--accent);
  font-weight: 400;
}
/* Pixel tail pointing at the character, like .buddy-say */
.ref-say::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 3px);
  width: 6px;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2' shape-rendering='crispEdges'%3E%3Cpath fill-opacity='.35' d='M0 0h3v1H0zM1 1h1v1H1z'/%3E%3C/svg%3E") no-repeat;
}
.ref-chibi {
  height: 82px;
  width: auto;
  max-width: none;
  image-rendering: pixelated;
}
.ref-avatar {
  width: 82px;
  height: 82px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: ref-bob 1.6s steps(2, jump-none) infinite;
}
.ref-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ref-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.ref-text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.ref-text strong {
  color: var(--text);
  font-weight: 400;
}
.ref-text a {
  color: var(--muted);
  text-decoration: underline;
}
.ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ref-actions .plan-button {
  margin: 0;
  padding: 9px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.ref-actions .plan-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.ref-cookie {
  align-items: center;
  border-top-width: 1px;
}
.ref-cookie .ref-actions {
  flex: none;
  margin: 0;
}
@keyframes ref-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
@keyframes ref-bob {
  50% {
    translate: 0 -2px;
  }
}
@media (max-width: 520px) {
  .ref-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .ref-cookie {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ref-card,
  .ref-avatar {
    animation: none;
  }
}
