/* Accounts, local community, and owner controls. */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px;
  margin: 28px 0;
}
.shop-product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071326e6;
  display: flex;
  flex-direction: column;
}
.shop-product-placeholder {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  color: #91a9c2;
  background: radial-gradient(ellipse at top, #18365766, transparent 75%);
  border-bottom: 1px solid var(--line);
}
.shop-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}
.shop-product-copy h2 {
  margin: 0 0 12px;
}
.shop-product-price {
  margin: 0;
  color: #a4d9fc;
}
.shop-product-copy > .btn,
.shop-product-copy > button {
  margin-top: auto;
}
[data-maker-link][hidden],
#use-creator[hidden] {
  display: none;
}
header {
  height: auto;
  min-height: 104px;
  padding-block: 22px;
  gap: 24px;
  flex-wrap: wrap;
}

nav {
  flex-wrap: wrap;
  gap: 22px;
}

nav .nav-preorder {
  padding: 15px 22px;
  background: linear-gradient(135deg, #eed49b, #c09b55);
  color: #111827;
  font-weight: 800;
  letter-spacing: 1px;
}

a.preorder-button,
button.preorder-button {
  display: inline-block;
  padding: 22px 30px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  box-shadow:
    0 0 35px #dfbd7c25,
    inset 0 0 0 3px #39291416;
}

.hero .actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 22px;
}

.hero .hero-preorder {
  width: min(100%, 380px);
  font-size: 25px;
  padding-block: 26px;
}

.account-section {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px 6% 75px;
}

.account-form {
  max-width: 580px;
  margin: auto;
}

.account-form h2 {
  font-size: 32px;
}

.account-form .actions,
.community-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.community-actions {
  margin-bottom: 25px;
}

.home-specials {
  width: 96%;
  margin-inline: auto;
  padding: 42px 5%;
  border: 1px solid #4b79a6;
  border-radius: 16px;
  background: linear-gradient(125deg, #0a1930, #142e52 60%, #0a1930);
  box-shadow: 0 18px 48px #0005, inset 0 0 0 1px #9edfff1a;
}
.home-specials-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.home-specials-heading h2 {
  margin: 8px 0 0;
  font-size: 28px;
}
.home-specials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 205px));
  justify-content: start;
  gap: 16px;
}
.home-special-product {
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.home-special-product .shop-card-face {
  min-height: 258px;
  padding: 28px 24px 25px;
}
.home-special-product .shop-card-face .eyebrow {
  font-size: 7px;
  letter-spacing: 0.8px;
}
.home-special-product .shop-card-face h2 {
  margin: 7px 0 4px;
  font-size: 17px;
  line-height: 1.15;
}
.home-special-product .shop-card-image-placeholder,
.home-special-product .shop-card-description {
  display: none;
}
.home-special-product .shop-product-price {
  margin: 2px 0 6px;
  font-size: 12px;
}
.home-special-product .shop-special-offer {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
}
.home-special-product .shop-special-badge {
  top: -10px;
  right: -10px;
  width: min(62%, 112px);
}
.home-special-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding: 6px 7px;
  border: 1px solid #72c8ff;
  border-radius: 4px;
  background: linear-gradient(180deg, #123e69, #07172c);
  color: #d9f1ff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px #09213b, 0 5px 0 #020b18;
}
.home-special-product:hover .home-special-cta,
.home-special-product:focus-visible .home-special-cta {
  background: linear-gradient(180deg, #1a5b8f, #0a2443);
  color: #fff;
}

.cart-promo-earned,
.cart-discount-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: #b5f0cb;
}
.cart-promo-earned {
  padding: 10px 12px;
  border: 1px solid #59b67b66;
  border-radius: 8px;
  background: #15352288;
}
.cart-promo-progress {
  padding: 10px 12px;
  border: 1px solid #6ba9de55;
  border-radius: 8px;
  color: #c4def4;
}
.cart-estimated-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
}
.special-rule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 28px;
  margin-top: 32px;
}

.admin-grid textarea,
#share-form textarea {
  resize: vertical;
}

.community-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  align-items: start;
}

.community-ui-starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 22px;
}
.community-ui-theme {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #558bb2;
  background: linear-gradient(155deg, #0b1b30, #10192a);
}
.community-ui-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 240px;
  overflow: hidden;
  padding: 14px;
  border: 2px solid var(--ui-accent);
  background: linear-gradient(145deg, var(--ui-bg), var(--ui-panel));
  color: var(--ui-text);
  font-family: ui-monospace, Consolas, monospace;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 4px #02071299, 0 8px 20px #0005;
}
.community-ui-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 4px, #0002 5px 6px);
}
.community-ui-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  opacity: 0.32;
}
.community-ui-screen-header,
.community-ui-counter,
.community-ui-menu {
  position: relative;
  z-index: 1;
}
.community-ui-screen-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ui-accent);
  color: var(--ui-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}
.community-ui-counter {
  align-self: center;
  width: min(100%, 190px);
  padding: 10px 14px;
  border: 1px solid var(--ui-accent);
  background: color-mix(in srgb, var(--ui-panel) 88%, transparent);
  text-align: center;
  box-shadow: 0 0 16px color-mix(in srgb, var(--ui-accent) 32%, transparent);
}
.community-ui-counter small {
  color: var(--ui-accent);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.community-ui-counter strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 38px;
  line-height: 1;
}
.community-ui-counter > div {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.community-ui-counter i,
.community-ui-menu span {
  padding: 4px 8px;
  border: 1px solid var(--ui-accent);
  background: var(--ui-bg);
  color: var(--ui-text);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.community-ui-menu {
  display: flex;
  justify-content: space-around;
  gap: 6px;
}
.community-ui-menu span {
  flex: 1;
  text-align: center;
}
.community-ui-theme h3 {
  margin: 0;
  color: var(--gold-bright);
}
.community-ui-theme p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.community-ui-swatches {
  display: flex;
  gap: 7px;
}
.community-ui-swatches span {
  width: 20px;
  height: 20px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
}
.community-ui-theme > .btn {
  margin-top: auto;
  text-align: center;
}
.community-ui-theme > .text-link {
  text-align: center;
  font-size: 12px;
}

.community-post {
  min-width: 0;
}

.community-post h2 {
  font-size: 30px;
  overflow-wrap: anywhere;
}

.post-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.deck-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0b1220;
  padding: 20px;
  border: 1px solid var(--line);
  max-height: 420px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.7;
}

.community-post summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 20px;
}

.shared-ui {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  margin: 20px auto;
  border: 1px solid var(--line);
}

button.text-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #c5c2ca;
  text-decoration: underline;
  padding: 12px 0;
  font-size: 12px;
}

#share-form textarea[name="design"] {
  font-family: monospace;
  font-size: 12px;
}

.preorder-section {
  padding-top: 25px;
}

@media (max-width: 760px) {
  .home-specials {
    width: 96%;
    padding: 25px 5%;
  }

  .home-specials-heading h2 {
    font-size: 26px;
  }

  .admin-grid,
  .community-feed {
    grid-template-columns: 1fr;
  }

  .home-specials-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  a.preorder-button {
    font-size: 18px;
    padding: 20px;
  }

  nav {
    gap: 16px;
  }

  .special-rule-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Social profiles sit above the homepage archive section. */
.social-section {
  margin: 0 6% 50px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  align-items: center;
  gap: 35px;
}

.social-intro h2 {
  font-size: 31px;
  margin: 12px 0 8px;
}

.social-intro p {
  font-size: 13px;
  margin: 0;
  max-width: 320px;
}

.social-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid #87744c;
  border-radius: 3px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, #20293c, #101827);
  font-size: 13px;
}

a.social-account:hover {
  border-color: var(--gold-bright);
  background: #303145;
}

.social-symbol {
  width: 20px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.social-pending {
  color: #c5c2ca;
  border-color: var(--line);
}

.social-account small {
  color: var(--muted);
  font-size: 10px;
}

.social-arrow {
  font-size: 12px;
}

.social-settings {
  padding: 20px 0 0;
  margin: 28px 0 20px;
  border: 0;
  border-top: 1px solid var(--line);
}

.social-settings legend {
  padding-right: 12px;
  color: var(--accent);
}

@media (max-width: 850px) {
  .social-section {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 30px;
  }
}

.social-handle {
  flex-basis: 100%;
  color: var(--gold-bright);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.launch-schedule {
  max-width: 410px;
  border-left: 2px solid var(--accent);
  padding: 5px 0 5px 18px;
  margin: 24px 0 30px;
}

.launch-schedule p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

/* Four-part CriticalCounter with product image previews. */
.hero .assembly-viewer {
  height: 600px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 24px auto 28px;
}

.assembly-viewer #assembly-canvas {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.assembly-status {
  margin: 0;
  text-align: center;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
}

.assembly-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 12px 0 6px;
}

.product-image-placeholder {
  aspect-ratio: 4 / 3;
  background: #101a2e99;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.assembly-gallery #assembly-retry {
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 11px;
  padding: 9px 12px;
}

.assembly-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .hero .assembly-viewer {
    height: 490px;
  }
}

.connection-notice {
  margin: 22px 6% 0;
}

.hero .assembly-load-error {
  grid-template-rows: minmax(80px, 1fr) auto auto 28px;
}

.assembly-load-error .assembly-status {
  padding: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  background: #101a2eee;
  border-left: 2px solid var(--accent);
}

.assembly-gallery [hidden] {
  display: none;
}
.preorder-config {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: start;
}
.preorder-config fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
}
.preorder-config legend {
  color: var(--accent);
  padding: 0 8px;
}
.material-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.material-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coming-soon {
  opacity: 0.65;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.color-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.color-choice:has(input:checked) {
  border-color: var(--accent);
  background: #24344f;
}
.color-choice input,
.preorder-config input[type="radio"],
.preorder-config input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  flex-shrink: 0;
}
.order-summary {
  position: sticky;
  top: 30px;
}
.color-preview {
  padding: 20px 0;
}
.color-preview div {
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid #ffffff33;
}
.color-preview div:first-child {
  border-radius: 22px 22px 4px 4px;
  transform: translateY(-4px);
}
.color-preview div:last-child {
  border-radius: 4px 4px 22px 22px;
}
.price-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.price-breakdown dd {
  margin: 0;
  white-space: nowrap;
}
.price-breakdown .total {
  color: var(--accent);
  font-weight: bold;
}
.custom-return {
  padding-top: 0;
  padding-bottom: 12px;
}
.drop-active {
  outline: 2px dashed var(--accent);
  outline-offset: 6px;
}
.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.request-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.community-style-preview {
  margin: 20px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080d18;
}
.community-style-screen {
  aspect-ratio: 3 / 2;
  border: 3px solid #090d16;
  border-radius: 10px;
  padding: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7%;
  background: var(--style-bg);
  color: var(--style-text);
  box-shadow: inset 0 0 0 2px var(--style-accent), 0 12px 24px #0007;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  text-align: center;
}
.community-style-screen span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.community-style-screen i {
  width: 70%;
  height: 10%;
  border: 1px solid var(--style-accent);
  border-radius: 5px;
  background: var(--style-panel);
}
.community-style-swatches {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.community-style-swatches span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ffffff70;
}
.community-post > .btn {
  display: inline-block;
  margin-top: 12px;
}
@media (max-width: 800px) {
  .preorder-config {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
    grid-row: 1;
  }
}
@media (max-width: 480px) {
  .community-feed {
    grid-template-columns: 1fr;
  }
  .swatch-grid {
    grid-template-columns: 1fr;
  }
}
