:root {
  color-scheme: dark;
  color: #edf0e8;
  background: #202628;
  --stone: #202628;
  --panel: #24292b;
  --panel-edge: #101414;
  --muted: #aeb9ad;
  --grass: #65b344;
  --gold: #f0d17d;
}

body {
  background-color: #202628;
  background-image:
    linear-gradient(#11181988, #11181988), url("/assets/stone-grid.svg?v=3b9d65fe");
  background-repeat: repeat;
  background-size:
    auto,
    128px 128px;
}

.pixel-icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  flex: none;
  image-rendering: pixelated;
  vertical-align: -4px;
}

button,
input,
textarea,
.gallery-card,
.creator-card,
.orders-summary,
.empty-card,
.package,
.auth-dialog,
.upload-zone,
.filter,
.coming-banner,
.shop-hero,
.points-pill,
.hero-link {
  border-radius: 0;
}

.site-header {
  height: 82px;
  background: #24282a url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  border-bottom: 5px solid #111718;
  box-shadow:
    inset 0 3px #43494b,
    0 4px 0 #0d1112;
}

.brand strong,
.footer-inner strong {
  color: #f7f7ee;
  text-shadow: 2px 2px #101515;
}

.brand small {
  color: #c9d6bf;
}

.brand-mark {
  filter: drop-shadow(0 1px 3px #a840cc8c);
}


.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e2e7db;
  border: 2px solid transparent;
  border-radius: 0;
  text-shadow: 1px 2px #131717;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: #435146;
  border-color: #121a15;
  box-shadow:
    inset 2px 2px #6d866a,
    inset -2px -2px #1f3526;
}

.main-nav a.active {
  box-shadow:
    inset 2px 2px #84ad70,
    inset -2px -2px #1f3526;
}

.header-actions {
  gap: 8px;
}

.dev-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 3px solid #101718;
  background: #3c494a url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  box-shadow: inset 2px 2px #81908a, inset -2px -2px #202b2d, 0 4px #0e1110;
  color: #f2f5e9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.dev-admin-link:hover { background-color: #4b5c53; }
.dev-admin-link:active { transform: translateY(2px); box-shadow: inset 2px 2px #202b2d; }

.account-button,
.primary-button,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid #101711;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(#6dc34f, #448e2f);
  box-shadow:
    inset 2px 2px #a7df80,
    inset -2px -2px #26621d,
    0 4px #0e1110;
  text-shadow: 1px 2px #285c20;
  font-weight: 900;
  transition:
    filter 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}

.account-button:hover,
.primary-button:hover,
.hero-link:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.account-button:active,
.primary-button:active,
.hero-link:active {
  transform: translateY(3px);
  box-shadow:
    inset 2px 2px #427d34,
    inset -2px -2px #b6df8d;
}

.account-button {
  padding: 9px 14px;
}

.points-pill {
  background: #232e23 url("/assets/moss-grid.svg?v=3b9d65fe") repeat;
  border: 2px solid #0f1a10;
  box-shadow:
    inset 2px 2px #4c6946,
    inset -2px -2px #14221a;
  color: #f1d27a;
  padding: 8px 11px;
}

.hero {
  border-bottom: 6px solid #101515;
  height: 478px;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      #0f171ce8 0%,
      #101a20b8 30%,
      #15263317 66%,
      #10232a0d 100%
    ),
    linear-gradient(0deg, #0f161b9e, transparent 39%);
}

.eyebrow {
  background: #17201dd1;
  width: fit-content;
  padding: 9px 12px;
  border: 2px solid #6b8f5a;
  color: #e9f5d7;
  box-shadow: 3px 3px #0e1311;
}

.live-dot {
  background: #8edf66;
  box-shadow: 0 0 0 3px #386937;
}

.hero h1 em {
  color: #a6e27c;
}

.hero-copy p {
  color: #e7ede2;
  text-shadow: 1px 2px #101820;
}

.hero-link {
  padding: 13px 21px;
  color: #fff;
}

.hero-caption {
  background: #161b1bdc url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  border: 2px solid #0b1010;
  color: #dde5d6;
}

.creator-section {
  position: relative;
}

.section-heading h2,
.page-intro h1,
.orders-summary h2,
.empty-card h2,
.shop-section-title h2,
.package h3 {
  color: #f6f7ef;
  text-shadow: 2px 2px #101515;
}

.section-heading p,
.page-intro p {
  color: #c2cebf;
}

.kicker {
  color: var(--gold);
  text-shadow: 1px 2px #161b18;
}

.creator-card,
.gallery-card,
.empty-card,
.package,
.auth-dialog {
  background-color: #24292b;
  background-image:
    linear-gradient(#1c2323b0, #1c2323b0), url("/assets/panel-grid.svg?v=3b9d65fe");
  background-repeat: repeat;
  background-size:
    auto,
    48px 48px;
  border: 3px solid #0c1112;
  box-shadow:
    inset 2px 2px #4b5655,
    inset -2px -2px #151b1c,
    0 7px #111617;
  color: #eff1e8;
}

.creator-top,
.auth-tabs {
  border-bottom-color: #4b5753;
}

.auth-tabs button {
  color: #b5c1b4;
}

.auth-tabs button.active {
  color: #fff;
  border-bottom-color: #86c85e;
  text-shadow: 1px 2px #182218;
}

.optional-note,
.input-label span,
.preset-row span,
.cost-note small,
.upload-zone small {
  color: #b3c1b1;
}

.creator-card textarea,
.auth-dialog input {
  background: #171c1d;
  border: 3px solid #0f1415;
  box-shadow:
    inset 2px 2px #080d0e,
    inset -2px -2px #3c4845;
  color: #f1f6ec;
}

.creator-card textarea::placeholder,
.auth-dialog input::placeholder {
  color: #9eaca0;
}

.creator-card textarea:focus,
.auth-dialog input:focus {
  border-color: #83c262;
  box-shadow:
    inset 2px 2px #142719,
    0 0 0 2px #17251b;
}

.preset-row button,
.filter,
.auth-tabs button,
.package button,
.table-action {
  border-radius: 0;
}

.preset-row button,
.filter,
.table-action {
  background: linear-gradient(#46504e, #303837);
  border: 2px solid #101617;
  box-shadow:
    inset 1px 1px #6d7773,
    inset -1px -1px #1e2826,
    0 2px #111617;
  color: #e8eee2;
}

.preset-row button:hover,
.filter:hover,
.table-action:hover {
  background: linear-gradient(#5c6e58, #3f5c3a);
  color: #fff;
  border-color: #101617;
}

.preset-row button {
  padding: 4px 7px;
  border: 1px dashed #728278;
  background: transparent;
  box-shadow: none;
  color: #afc0af;
  font-size: 11px;
}
.preset-row button:hover {
  border-color: #acd696;
  background: #67815a20;
  box-shadow: none;
  color: #e7f6dc;
}
.preset-row button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }

.filter.active {
  background: linear-gradient(#6fbd50, #417e2e);
  border-color: #101617;
  box-shadow:
    inset 1px 1px #b3dc91,
    inset -1px -1px #2b5e25,
    0 2px #111617;
  color: #fff;
}

.upload-zone {
  background: #202b23 url("/assets/moss-grid.svg?v=3b9d65fe") repeat;
  border: 2px dashed #668659;
  color: #f4f6eb;
}

.upload-zone.dragging {
  background: #3c5736 url("/assets/moss-grid.svg?v=3b9d65fe") repeat;
  border-color: #a1de7b;
}
.upload-zone.needs-image { border-color: #e4b963; background-color: #473924; box-shadow: 0 0 0 2px #e4b96355; }

.upload-icon,
.upload-plus,
.cost-icon {
  color: #9fdb72;
}

.cost-note strong,
.input-label {
  color: #f4f5e9;
}

.orders-summary,
.shop-hero,
.coming-banner {
  background-color: #253b29;
  background-image:
    linear-gradient(#182b1b70, #182b1b70), url("/assets/moss-grid.svg?v=3b9d65fe");
  background-repeat: repeat;
  background-size:
    auto,
    64px 64px;
  border: 3px solid #0d1710;
  box-shadow:
    inset 2px 2px #58744b,
    inset -2px -2px #15231a,
    0 7px #111617;
  color: #f5f6e8;
}

.shop-hero h2 {
  color: #f9f9ee;
  text-shadow: 2px 2px #132018;
}

.shop-hero p {
  color: #d3e3ca;
}

.small-cube {
  width: 33px;
  height: 33px;
  background: url("/assets/enderman-logo.png?v=3b9d65fe") center / contain no-repeat;
  border: 0;
  box-shadow: none;
}

.gallery-card:hover {
  box-shadow:
    inset 2px 2px #617263,
    inset -2px -2px #151b1c,
    0 11px #111617;
}

.gallery-art {
  background: #172725;
  border-bottom: 3px solid #0c1112;
}

.gallery-art span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1d2725ed url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  border: 2px solid #0e1515;
  color: #e6f3d9;
}

.gallery-body h3,
.gallery-meta strong {
  color: #f7f6e7;
}

.gallery-body p,
.gallery-meta,
.orders-summary p,
.empty-card p,
.package p,
.shop-disclaimer {
  color: #bfcebc;
}

.gallery-meta {
  border-top-color: #546154;
}

.site-footer {
  background: #202628 url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  border-top: 4px solid #0c1112;
}

.inner-page {
  background: transparent;
}

.coming-banner p,
.coming-banner a {
  color: #e5f1d9;
}

.summary-stat {
  border-top-color: #6f8d61;
}

.summary-stat strong,
.summary-stat span,
.package-points {
  color: #edcf79;
}

.shop-hero:after {
  color: #ffffff1b;
}

.shop-hero .pixel-icon,
.package-points .pixel-icon {
  width: 23px;
  height: 23px;
  vertical-align: -3px;
}

.coming-banner > span .pixel-icon {
  width: 30px;
  height: 30px;
}

.shop-section-title span {
  color: #f3d783;
  border: 2px solid #7c915f;
  background: #233025;
}

.package > span {
  color: #f1d480;
}

.package.featured {
  border-color: #83bb5e;
  box-shadow:
    inset 2px 2px #7eb471,
    inset -2px -2px #1b3120,
    0 7px #111617;
}

.package-badge {
  background: #4b9d35;
  border-left: 2px solid #122014;
  border-bottom: 2px solid #122014;
}

.package button {
  background: #303937;
  border: 3px solid #131919;
  box-shadow:
    inset 2px 2px #5e6864,
    inset -2px -2px #1d2925;
  color: #aebcab;
}

.auth-dialog form label {
  color: #e9f0df;
}

.auth-name-field > label {
  margin-bottom: 7px;
}

.auth-name-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.auth-name-control input {
  min-width: 0;
}

.auth-name-control button {
  padding: 0 11px;
  border: 3px solid #101715;
  background: #4b6343;
  box-shadow: inset 2px 2px #829877, inset -2px -2px #273a27, 0 3px #101715;
  color: #f1f6e9;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-name-control button:hover,
.auth-name-control button:focus-visible {
  background: #5d7c4e;
}

.auth-name-control button:active {
  transform: translateY(2px);
  box-shadow: inset 2px 2px #273a27;
}

.auth-dialog::backdrop {
  background: #0b1010c9 url("/assets/stone-grid.svg?v=3b9d65fe") repeat;
  backdrop-filter: blur(2px);
}

.auth-dialog > p,
.auth-dialog .auth-foot,
.auth-brand,
.resend-button {
  color: #cedbc9;
}

.dialog-close {
  color: #e9f2df;
}

.auth-back-button {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 16px;
  border: 2px solid #121a1a;
  background: #303a37;
  box-shadow: inset 1px 1px #5f6c65, inset -1px -1px #1a2421, 0 2px #111617;
  color: #e1e9dd;
  font-size: 12px;
  font-weight: 800;
}

.auth-back-button:hover,
.auth-back-button:focus-visible {
  background: #45524b;
}

.auth-error {
  background: #4d2520;
  border: 2px solid #8b3830;
  color: #ffe0db;
}

.toast {
  background: #233327 url("/assets/moss-grid.svg?v=3b9d65fe") repeat;
  border: 3px solid #0f1710;
  border-left: 5px solid #9ddd75;
  box-shadow: 0 5px #111617;
}

@media (max-width: 1050px) {
  .main-nav a {
    gap: 4px;
  }
  .main-nav .pixel-icon {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 760px) {
  .dev-admin-link { min-height: 32px; padding: 5px 6px; font-size: 10px; }
  .brand-group {
    gap: 4px;
  }
  .site-header {
    height: auto;
  }
  .main-nav a {
    border-width: 1px;
  }
  .main-nav .pixel-icon {
    width: 15px;
    height: 15px;
  }
  .account-button {
    padding: 7px 8px;
  }
  .hero {
    height: 438px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #0d161ce8, #101b1fb8 80%),
      linear-gradient(0deg, #0f1517a8, transparent);
  }
  .gallery-art {
    border-bottom: 0;
    border-right: 3px solid #0c1112;
  }
  .header-actions .pixel-icon {
    display: none;
  }
}

/* 积分入口仅在悬停或当前页面时高亮 */
.header-inner { gap: 16px; }
.brand { min-width: 200px; }
.main-nav { gap: 3px; }
.main-nav a { white-space: nowrap; padding: 10px 9px; }
.header-actions { flex: none; }
.main-nav a[data-nav="shop"]:hover,
.main-nav a[data-nav="shop"].active {
  color: #2b210f;
  background: linear-gradient(#f3d379, #c68b2e);
  border-color: #39270f;
  box-shadow: inset 2px 2px #fff0ad, inset -2px -2px #93601d, 0 3px #111617;
  text-shadow: none;
}
.main-nav a[data-nav="shop"]:hover { filter: brightness(1.08); }
.main-nav a[data-nav="shop"] .pixel-icon { width: 20px; height: 20px; }
.points-pill,
.shop-hero strong {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid #654419;
  background: linear-gradient(135deg, #fff0ab 0%, #ebc36d 37%, #b77827 100%);
  box-shadow: inset 2px 2px #fff8ca, inset -2px -2px #96601e, 0 4px #111617, 0 0 14px #dda93e4a;
  color: #3a280f;
  text-shadow: 0 1px #fff2bc;
  white-space: nowrap;
}
.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
}
.points-pill b { font-variant-numeric: tabular-nums; font-size: 13px; }
.points-pill .pixel-icon { width: 19px; height: 19px; }
.points-pill::before,
.shop-hero strong::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, #fffce0a8, transparent);
  transform: translateX(-180%) skewX(-25deg);
  animation: points-glint 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes points-glint {
  0%, 52% { transform: translateX(-180%) skewX(-25deg); }
  76%, 100% { transform: translateX(390%) skewX(-25deg); }
}
@media (prefers-reduced-motion: reduce) {
  .points-pill::before,
  .shop-hero strong::before { animation: none; opacity: 0; }
}
.shop-hero strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 40px;
}
.shop-hero strong small { color: #583712; text-shadow: none; }
.shop-hero .shop-balance-icon { width: 38px; height: 38px; margin-right: 5px; vertical-align: -5px; }

.hero-process {
  position: absolute;
  right: 0;
  bottom: 22px;
  display: flex;
  border: 2px solid #0e1513;
  background: #17201edc url("/assets/panel-grid.svg?v=3b9d65fe") repeat;
  box-shadow: 0 4px #0d1211;
  color: #f6f6e9;
}
.hero-process span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-right: 1px solid #6c795c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.hero-process span:last-child { border-right: 0; }
.hero-process b { color: #f1d17b; font-size: 12px; }

.preview-card,
.preview-dialog,
.orders-summary,
.shop-hero,
.coming-banner {
  background-color: #735437;
  background-image: linear-gradient(#241b14a6, #241b14a6), url("/assets/oak-planks.svg?v=3b9d65fe");
  background-repeat: repeat;
  background-size: auto, 96px 96px;
  border: 3px solid #24190f;
  box-shadow: inset 2px 2px #b38c5e, inset -2px -2px #3d2a1b, 0 7px #111617;
  color: #faf4e6;
}
.preview-card { min-width: 0; min-height: 483px; padding: 18px; display: flex; flex-direction: column; gap: 15px; }
.preview-head,
.preview-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.preview-kicker { color: #f3d788; font-size: 10px; letter-spacing: .18em; font-weight: 900; }
.preview-head h3,
.preview-dialog-head h2 { display: flex; align-items: center; gap: 8px; margin: 5px 0 0; color: #fff8e8; font-size: 21px; text-shadow: 2px 2px #352316; }
.preview-expand,
.preview-dialog-head button {
  flex: none;
  padding: 7px 10px;
  border: 2px solid #271a10;
  background: linear-gradient(#d4ae70, #a87239);
  box-shadow: inset 1px 1px #f1d392, inset -1px -1px #76502b, 0 2px #211711;
  color: #21180f;
  font-size: 11px;
  font-weight: 900;
}
.preview-expand:hover,
.preview-dialog-head button:hover { filter: brightness(1.1); }
.preview-stage {
  position: relative;
  min-height: 325px;
  flex: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid #191e1c;
  background-color: #182320;
  background-image: linear-gradient(#263b352f 1px, transparent 1px), linear-gradient(90deg, #263b352f 1px, transparent 1px), radial-gradient(circle at center, #324b3d, #111a18 72%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 2px 2px #43534a, inset -2px -2px #0d1513;
}
.preview-stage img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.preview-stage .preview-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.preview-stage .preview-canvas:active { cursor: grabbing; }
.preview-stage .preview-canvas[hidden] { display: none; }
.preview-gallery { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: thin; }
.preview-gallery[hidden] { display: none; }
.preview-gallery button {
  position: relative; flex: 1 0 48px; min-width: 48px; height: 57px; padding: 0;
  border: 2px solid #291d12; background: #dae8ed; color: #243028;
  box-shadow: 0 2px #1c1510; font-size: 12px; font-weight: 900;
}
.preview-gallery button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-gallery button.is-selected { border-color: #b7da79; outline: 2px solid #4f822d; outline-offset: 1px; }
.preview-gallery button[data-view-mode="3d"] { background: #e4ecf3; font-size: 18px; letter-spacing: .12em; }
.preview-gallery-large { justify-content: center; margin-top: 10px; }
.preview-gallery-large button { flex: 0 1 78px; height: 67px; }
.preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; }
.preview-block { display: grid; place-items: center; width: 86px; height: 86px; border: 3px solid #415447; background: #283d31; box-shadow: inset 2px 2px #5f8060, inset -2px -2px #18271d; }
.preview-block .pixel-icon { width: 64px; height: 64px; }
.preview-placeholder strong { color: #f4f4e7; font-size: 16px; }
.preview-placeholder small { max-width: 220px; color: #b9c9bd; font-size: 11px; line-height: 1.6; }
.preview-progress {
  position: absolute; z-index: 2; inset: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 16px; text-align: center;
  border: 2px solid #768a70; background: #14201bea;
  box-shadow: inset 2px 2px #344638, inset -2px -2px #0b120e;
}
.preview-progress[hidden], .preview-progress-action[hidden] { display: none; }
.preview-stage.has-live-preview .preview-progress {
  inset: auto 10px 10px; gap: 5px; padding: 10px 12px;
  background: #122018ee; border-color: #a8bc91;
}
.preview-progress-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid #6b9252; background: #38552e;
  box-shadow: inset 2px 2px #80ac60, inset -2px -2px #1b301e;
  animation: preview-block-bob 1.7s ease-in-out infinite;
}
.preview-progress-icon .pixel-icon { width: 31px; height: 31px; }
.preview-stage.has-live-preview .preview-progress-icon { display: none; }
.preview-progress-kicker { color: #efcf80; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.preview-progress strong { color: #fff9e9; font-size: 17px; line-height: 1.25; text-shadow: 2px 2px #111a14; }
.preview-progress-stage { max-width: 100%; color: #d4e0cc; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.preview-progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 310px; gap: 4px; margin-top: 5px; }
.preview-progress-steps span {
  padding: 6px 2px; border: 1px solid #48544c; background: #26302a;
  color: #9ca99b; font-size: 9px; font-weight: 800;
}
.preview-progress-steps span.is-done { background: #31512b; border-color: #72a656; color: #e7f7d6; }
.preview-progress-steps span.is-current { background: #ba8845; border-color: #f0c779; color: #211711; animation: preview-step-pulse 1.5s ease-in-out infinite; }
.preview-progress-meta { color: #d5ddcf; font-size: 10px; line-height: 1.5; }
.preview-progress-action { padding: 7px 11px; border: 2px solid #5c923d; background: #4e8d32; color: white; font-size: 11px; font-weight: 800; text-decoration: none; }
.preview-progress.is-failed { border-color: #ac6556; background: #321f1cec; }
.preview-progress.is-failed .preview-progress-icon { border-color: #ae6859; background: #68382c; animation: none; }
.preview-progress.is-failed .preview-progress-kicker { color: #ffc2a8; }
.preview-progress.is-completed { border-color: #8db567; }
.preview-progress.is-completed .preview-progress-icon { animation: none; }
@keyframes preview-block-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes preview-step-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.28); } }
@media (prefers-reduced-motion: reduce) {
  .preview-progress-icon, .preview-progress-steps span.is-current { animation: none; }
}
.preview-foot { display: flex; align-items: center; gap: 8px; color: #f1ddae; font-size: 11px; font-weight: 800; }
.preview-foot small { margin-left: auto; color: #e1d5bf; font-size: 10px; font-weight: 400; }
.preview-status-dot { width: 8px; height: 8px; background: #d4b268; box-shadow: 0 0 0 3px #d4b26833; }
.preview-dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 20px; }
.preview-dialog::backdrop { background: #0a1111dc; }
.preview-dialog-head { margin-bottom: 16px; }
.preview-dialog-head button { min-width: 36px; font-size: 20px; line-height: 1; }
.preview-stage-large { height: min(70vh, 650px); min-height: 280px; }
.preview-dialog:has(.preview-gallery-large:not([hidden])) .preview-stage-large { height: min(61vh, 580px); }
.preview-stage-large .preview-block { width: 112px; height: 112px; }
.preview-stage-large .preview-block .pixel-icon { width: 88px; height: 88px; }
.preview-dialog > p { margin: 13px 0 0; color: #f3e0bf; font-size: 11px; }
.upload-zone { background: linear-gradient(#211a14ba, #211a14ba), url("/assets/oak-planks.svg?v=3b9d65fe") repeat; background-size: auto, 96px 96px; border-color: #ad8554; }
.upload-zone.dragging { background: linear-gradient(#65492dab, #65492dab), url("/assets/oak-planks.svg?v=3b9d65fe") repeat; border-color: #e5bd79; }
.summary-stat { border-top-color: #b79566; }
.shop-hero p,
.orders-summary p,
.coming-banner p { color: #f0e2ca; }

@media (max-width: 760px) {
  .hero { height: 505px; }
  .hero-process { left: 0; right: 0; bottom: 13px; }
  .hero-process span { flex: 1; justify-content: center; padding: 8px 4px; gap: 4px; font-size: 9px; }
  .hero-process b { font-size: 10px; }
  .preview-card { min-height: 430px; }
  .preview-stage { min-height: 275px; }
  .preview-stage-large { height: 60vh; }
  .header-actions .points-pill .pixel-icon { display: inline-block; }
  .shop-hero { flex-wrap: wrap; gap: 18px; }
  .shop-hero strong { font-size: 31px; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .site-header { height: auto; }
  .header-inner { height: auto; min-height: 82px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 9px 0 10px; }
  .brand-group { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; height: auto; justify-content: center; }
}

@media (max-width: 520px) {
  .header-inner { grid-template-columns: 1fr; padding-top: 5px; }
  .brand-group { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 1; grid-row: 2; justify-self: stretch; justify-content: flex-end; flex-wrap: wrap; padding: 4px 0 5px; }
  .main-nav { grid-column: 1; grid-row: 3; }
}

.creator-top { margin-bottom: 18px; padding-bottom: 12px; color: #f4f5e9; font-size: 14px; }
.creator-top .optional-note { margin: 0; }
.creator-top-actions { display: flex; align-items: center; gap: 12px; }
.tutorial-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 31px; padding: 5px 8px; border: 2px solid #111918; background: #3b4943 url('/assets/panel-grid.svg?v=3b9d65fe') repeat; box-shadow: inset 1px 1px #718178, inset -1px -1px #202e26, 0 2px #101616; color: #f7e4ac; font-size: 11px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.tutorial-trigger .pixel-icon { width: 17px; height: 17px; }
.tutorial-trigger:hover { filter: brightness(1.18); }
.tutorial-trigger:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.creation-options { display: grid; gap: 15px; margin-top: 18px; }
.creation-option-row { display: grid; gap: 9px; }
.creation-option-label { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #f3f5e9; }
.creation-option-label strong { font-size: 13px; }
.creation-option-label small { color: #aebbac; font-size: 10px; line-height: 1.4; }
.creation-step, .input-label .creation-step {
  display: inline-grid; place-items: center; flex: none;
  min-width: 27px; height: 23px; padding: 0 3px;
  border: 2px solid #423015; background: #d8ad58;
  box-shadow: inset 1px 1px #ffe7a9, inset -1px -1px #946825;
  color: #2b2416; font-size: 11px; font-weight: 900; line-height: 1; text-shadow: none;
}
.choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.image-choices .choice-button { min-width: 210px; }
#plotChoices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-button {
  display: flex; align-items: stretch; justify-content: stretch;
  min-height: 44px; padding: 0; border: 2px solid #0e1515;
  background: #303936; color: #edf1e7;
  box-shadow: inset 1px 1px #77827a, inset -1px -1px #202b26, 0 2px #0e1515;
  font-size: 13px; font-weight: 800; text-align: left; cursor: pointer;
}
.choice-main, .choice-price { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.choice-main { flex: 1; min-width: 0; padding: 8px 9px; color: #f0f4e9; }
.choice-main .pixel-icon { width: 20px; height: 20px; }
.choice-price {
  flex: none; padding: 7px; border-left: 1px solid #141a15;
  background: #252f28; color: #f5d887; font-size: 12px; font-weight: 800;
}
.choice-price .pixel-icon { width: 18px; height: 18px; }
.choice-price b { font: inherit; }
.choice-button:hover { filter: brightness(1.14); }
.choice-button:disabled { opacity: .62; cursor: not-allowed; filter: none; }
.choice-button.active {
  border-color: #b5e388; background: linear-gradient(#6fbd50, #417e2e); color: #fff;
  box-shadow: inset 1px 1px #b3dc91, inset -1px -1px #2b5e25, 0 2px #0e1515;
}
.choice-button.active .choice-main { color: #fff; }
.choice-button.active .choice-price { background: #2b4529; color: #ffe49b; }
.choice-button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.pricing-loading { color: #c6d2c1; font-size: 11px; }
.creator-card .upload-zone { margin: 0; }
.cost-note strong { font-size: 13px; }
.cost-note strong b { color: #f5ce75; font-size: 20px; }
.generate-button {
  min-height: 72px; min-width: 244px; padding: 10px 14px; gap: 10px;
  border-color: #4f3616; background: linear-gradient(#f6d984, #c9973d);
  box-shadow: inset 2px 2px #fff0b1, inset -2px -2px #946824, 0 4px #0e1110;
  color: #2e2514; text-align: left; text-shadow: none;
}
.generate-button .generate-build-icon { width: 37px; height: 37px; }
.generate-step { display: inline-grid; place-items: center; flex: none; width: 29px; height: 29px; border: 2px solid #3b2a12; background: #6d4b22; box-shadow: inset 1px 1px #a97b38, inset -1px -1px #39250e; color: #fff0bc; font-size: 12px; font-weight: 900; line-height: 1; }
.generate-button-copy { display: grid; gap: 3px; }
.generate-button-copy strong { font-size: 16px; line-height: 1.2; }
.generate-button-copy small { display: flex; align-items: center; gap: 3px; color: #493819; font-size: 11px; line-height: 1.2; }
.generate-button-copy small .pixel-icon { width: 18px; height: 18px; margin-left: 2px; }
.generate-button-copy small b { font: inherit; }
.generate-button-arrow { margin-left: 3px; padding-left: 10px; border-left: 1px solid #79592280; font-size: 22px; }
.generate-button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.generate-button:disabled { cursor: wait; filter: saturate(.6); }
.generate-button:active { box-shadow: inset 2px 2px #9c6a27, inset -2px -2px #ffe5a0; }
.generation-note { margin: 14px 0 0; color: #b1bfae; font-size: 10px; line-height: 1.55; }
@media (max-width: 1200px) { #plotChoices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) {
  .choice-list { gap: 6px; }
  .image-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-choices .choice-button { min-width: 0; }
  #plotChoices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-button { flex-direction: column; min-height: 58px; font-size: 12px; }
  .choice-main { padding: 6px 7px 4px; gap: 4px; }
  .choice-price { min-height: 25px; padding: 3px 7px; border-top: 1px solid #141a15; border-left: 0; font-size: 11px; }
  .generate-button { min-width: 0; padding-inline: 9px; gap: 6px; }
  .generate-step { width: 26px; height: 26px; font-size: 11px; }
  .generate-button .generate-build-icon { width: 30px; height: 30px; }
  .generate-button-copy strong { font-size: 15px; }
  .generate-button-arrow { display: none; }
  .creator-top .optional-note { display: none; }
}

.orders-content-filled { display: grid; align-content: start; align-items: stretch; justify-content: stretch; gap: 12px; text-align: left; min-height: 355px; }
.order-card { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 11px; border: 2px solid #111918; background: linear-gradient(#17211caa, #17211caa), url('/assets/oak-planks.svg?v=3b9d65fe') repeat; background-size: auto, 96px 96px; box-shadow: inset 1px 1px #89714e, inset -1px -1px #1a2420; }
.order-card > img, .order-icon { width: 94px; height: 72px; object-fit: cover; border: 2px solid #111918; background: #17231e; }
.order-icon { display: grid; place-items: center; }
.order-icon .pixel-icon { width: 48px; height: 48px; }
.order-card-body { min-width: 0; display: grid; gap: 6px; }
.order-card-body strong { color: #f7f6e8; font-size: 13px; overflow-wrap: anywhere; }
.order-card-body small { color: #b8c9b9; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.order-status { color: #f4d47e; font-size: 10px; font-weight: 800; }
.order-status.completed { color: #a8e487; }
.order-status.failed, .order-error { color: #f1a99f !important; }
.order-card-actions { display: flex; align-items: stretch; flex-direction: column; gap: 6px; }
.order-download { padding: 8px 10px; border: 2px solid #121918; background: linear-gradient(#6fbd50, #417e2e); box-shadow: inset 1px 1px #b3dc91, inset -1px -1px #2b5e25; color: #fff; font-size: 10px; font-weight: 900; white-space: nowrap; }
.order-download:hover { filter: brightness(1.12); }
.order-download:disabled { cursor: default; opacity: .75; filter: none; }
.order-share-button { background: linear-gradient(#b88b4f, #78562f); box-shadow: inset 1px 1px #e3bc78, inset -1px -1px #4c331d; }
.detail-intro { margin-bottom: 25px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.detail-heading-copy { min-width: 0; overflow-wrap: anywhere; }
.detail-heading-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.detail-back-button { flex: none; min-height: 46px; padding: 10px 17px; font-size: 13px; text-decoration: none; white-space: nowrap; }
.detail-back-button .pixel-icon { width: 21px; height: 21px; }
.detail-social-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 43px; padding: 9px 13px; border: 3px solid #101711; background: linear-gradient(#866b4b, #56432e); box-shadow: inset 2px 2px #af9068, inset -2px -2px #382c21, 0 4px #0e1110; color: #fff9ea; font-size: 11px; font-weight: 900; white-space: nowrap; }
.detail-social-button:hover { filter: brightness(1.13); }
.detail-social-button:disabled { opacity: .76; cursor: default; filter: none; }
.detail-social-button .pixel-icon { width: 17px; height: 17px; }
.detail-intro h1 { margin: 8px 0; color: #f7f4e9; font-size: clamp(27px, 3vw, 38px); }
.detail-intro p { margin: 0; color: #bdc8bd; font-size: 12px; line-height: 1.6; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .9fr); gap: 20px; align-items: start; }
.detail-preview-panel { min-width: 0; padding: 18px; border: 3px solid #24190f; background: linear-gradient(#241b14a6, #241b14a6), url('/assets/oak-planks.svg?v=3b9d65fe') repeat; background-size: auto, 96px 96px; box-shadow: inset 2px 2px #b38c5e, inset -2px -2px #3d2a1b, 0 7px #111617; color: #faf4e6; }
.detail-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.detail-panel-head h2 { margin: 5px 0 0; font-size: 21px; color: #fff8e8; text-shadow: 2px 2px #352316; }
.detail-stage { height: clamp(380px, 46vw, 650px); min-height: 380px; }
.detail-gallery { margin-top: 12px; }
.detail-gallery button { flex: 1 1 72px; height: 68px; }
.detail-view-hint { margin: 10px 0 0; color: #e1d5bf; font-size: 11px; }
.detail-description { margin-top: 18px; padding: 16px; border: 2px solid #3c2a1b; background: #211b16c9; }
.detail-description strong { color: #f3d788; font-size: 12px; }
.detail-description p { margin: 8px 0 0; color: #eee4d4; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-aside { display: grid; gap: 18px; min-width: 0; }
.detail-side-card { padding: 18px; border: 3px solid #111918; background: #1f2927 url('/assets/stone-grid.svg?v=3b9d65fe') repeat; box-shadow: inset 2px 2px #48514d, inset -2px -2px #101715, 0 6px #111617; color: #f1f3eb; }
.detail-side-head h2 { margin: 6px 0 4px; font-size: 19px; }
.detail-side-head p { margin: 0 0 17px; color: #bfcbc0; font-size: 11px; line-height: 1.5; }
.detail-download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-height: 160px; }
.detail-download-option { min-width: 0; min-height: 72px; padding: 11px; border: 2px solid #617165; background: #26342d; display: flex; flex-direction: column; justify-content: center; gap: 5px; text-decoration: none; color: #eaf0e3; }
.detail-download-option strong { font-size: 14px; }
.detail-download-option small { color: #b7c6b5; font-size: 10px; }
.detail-download-option.available { border-color: #6eaa50; background: linear-gradient(#4c8632, #315e26); box-shadow: inset 1px 1px #95c875; }
.detail-download-option.available small { color: #e0f2d4; }
.detail-download-option.available:hover { filter: brightness(1.12); }
.detail-download-option.unavailable { opacity: .68; }
.detail-materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 470px; overflow-y: auto; scrollbar-width: thin; }
.detail-material { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 5px; background: #19221f; border: 1px solid #3c4a42; }
.detail-material-icon { flex: none; width: 30px; height: 30px; image-rendering: pixelated; border: 1px solid #74847b; background: #dce5dd; }
.detail-material-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #e8eee5; }
.detail-material-count { flex: none; color: #f4da8b; font-size: 11px; font-weight: 900; }
.detail-materials-empty { grid-column: 1 / -1; margin: 8px 0; color: #b9c7b8; font-size: 11px; line-height: 1.6; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } .detail-stage { height: min(65vw, 560px); } }
@media (max-width: 520px) {
  .detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: start; }
  .detail-heading-copy { display: contents; }
  .detail-heading .kicker { grid-column: 1; grid-row: 1; align-self: center; }
  .detail-heading-actions { grid-column: 2; grid-row: 1; align-items: flex-end; flex-direction: column-reverse; }
  .detail-back-button { min-height: 42px; width: auto; padding: 8px 10px; font-size: 11px; }
  .detail-social-button { min-height: 36px; padding: 6px 8px; font-size: 10px; }
  .detail-intro h1 { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
  .detail-intro p { grid-column: 1 / -1; grid-row: 3; }
  .detail-preview-panel, .detail-side-card { padding: 13px; }
  .detail-stage { height: 320px; min-height: 320px; }
  .detail-gallery button { flex: 1 0 48px; height: 57px; }
}
@media (max-width: 760px) {
  .order-card { grid-template-columns: 72px minmax(0,1fr); }
  .order-card > img, .order-icon { width: 72px; height: 72px; }
  .order-card-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
.gallery-page-grid { align-items: start; }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 13px; border-bottom: 2px solid #46534c; }
.gallery-tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 17px; border: 2px solid #111918; background: #35413d url('/assets/panel-grid.svg?v=3b9d65fe') repeat; box-shadow: inset 1px 1px #687870, inset -1px -1px #1e2925, 0 2px #111617; color: #dce6d7; font-size: 12px; font-weight: 900; text-decoration: none; }
.gallery-tabs a.active { background: linear-gradient(#6fbd50, #417e2e); box-shadow: inset 1px 1px #b3dc91, inset -1px -1px #2b5e25, 0 2px #111617; color: #fff; }
.gallery-tabs .pixel-icon { width: 17px; height: 17px; }
.gallery-tabs + .filter-bar { margin-top: 18px; }
.gallery-message { grid-column: 1 / -1; min-height: 250px; padding: 38px; border: 3px solid #101718; background: #27312e url('/assets/panel-grid.svg?v=3b9d65fe') repeat; color: #f2f4eb; text-align: center; }
.gallery-message h2 { margin: 20px 0 9px; font-size: 22px; }
.gallery-message p { color: #c6d0c5; font-size: 12px; }
.gallery-message .primary-button { min-height: 42px; margin-top: 12px; padding: 8px 15px; }
.public-work-card { min-width: 0; }
.public-work-card .gallery-art { display: block; }
.public-work-card .gallery-art img { object-fit: contain; background: #edf6ff; image-rendering: auto; }
.public-work-card .gallery-body { min-width: 0; }
.public-work-card .gallery-body h3 { color: #fff8e9; }
.public-work-card .gallery-body p { display: -webkit-box; min-height: 36px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #c6d0c1; }
.public-work-card .gallery-meta { border-top-color: #526054; color: #d2dccd; }
.public-work-card .gallery-meta strong { color: #f3d681; }
.gallery-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 13px; }
.gallery-card-actions a, .gallery-favorite-button { min-height: 34px; padding: 6px 9px; border: 2px solid #111918; background: linear-gradient(#506b47, #334d30); box-shadow: inset 1px 1px #8fac7d, inset -1px -1px #263d24; color: #fff; font-size: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.gallery-favorite-button { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(#6f6252, #4e453a); box-shadow: inset 1px 1px #a0927e, inset -1px -1px #383025; }
.gallery-favorite-button[aria-pressed="true"] { background: linear-gradient(#ad625f, #713d3c); }
.gallery-favorite-button .pixel-icon { width: 15px; height: 15px; }
.gallery-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.gallery-pagination button { min-width: 37px; min-height: 36px; padding: 6px 11px; border: 2px solid #111918; background: #384640 url('/assets/panel-grid.svg?v=3b9d65fe') repeat; color: #f0f2e8; font-size: 11px; font-weight: 800; }
.gallery-pagination button[aria-current="page"] { background: #4e8738; }
.gallery-pagination button:disabled { opacity: .4; cursor: default; }
.gallery-pagination span { color: #cbd5c9; font-size: 11px; }
.share-dialog { width: min(470px, calc(100% - 28px)); padding: 28px; border: 3px solid #101718; background: #252d2d url('/assets/panel-grid.svg?v=3b9d65fe') repeat; box-shadow: 0 8px #111718; color: #f5f5ec; }
.share-dialog::backdrop { background: #0b1414c9; }
.share-dialog h2 { margin: 13px 0; font-size: 24px; }
.share-dialog p { color: #cbd5c8; font-size: 12px; line-height: 1.7; }
.share-dialog .share-reward { padding: 10px 13px; border: 2px solid #7d5b20; background: #4c3b22; color: #ffe49c; font-weight: 800; }
.share-dialog .share-error { color: #ffa99d; }
.share-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.share-actions .primary-button { min-height: 43px; padding: 8px 15px; }
.generation-confirm-dialog { width: min(520px, calc(100% - 28px)); }
.generation-confirm-summary { display: grid; margin-top: 18px; border: 2px solid #111918; background: #1b2522; }
.generation-confirm-summary > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 13px; border-bottom: 1px solid #435148; font-size: 12px; }
.generation-confirm-summary > div:last-child { border-bottom: 0; }
.generation-confirm-summary span { flex: none; color: #b9c9b7; }
.generation-confirm-summary strong { min-width: 0; color: #f5f6ea; text-align: right; overflow-wrap: anywhere; }
.generation-confirm-summary .generation-confirm-total { align-items: center; background: #3b3420; }
.generation-confirm-total strong { display: inline-flex; align-items: center; gap: 5px; color: #ffe09a; font-size: 17px; }
.generation-confirm-total .pixel-icon { width: 22px; height: 22px; }
.generation-confirm-dialog .generation-confirm-prompt { max-height: 90px; margin: 13px 0 0; overflow: auto; color: #cbd7c9; overflow-wrap: anywhere; }
.generation-confirm-accept { border-color: #5b4119; background: linear-gradient(#f6d984, #c9973d); box-shadow: inset 2px 2px #fff0b1, inset -2px -2px #946824, 0 3px #0e1110; color: #2e2514; text-shadow: none; }
.generation-confirm-accept .pixel-icon { width: 20px; height: 20px; }
.generation-confirm-accept:active { box-shadow: inset 2px 2px #9c6a27, inset -2px -2px #ffe5a0; }
@media (max-width: 520px) {
  .generation-confirm-dialog .share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation-confirm-dialog .share-actions button { width: 100%; }
}
@media (max-width: 1180px) { .main-nav a { padding-inline: 7px; } }
@media (max-width: 760px) { .main-nav { flex-wrap: nowrap; } .main-nav a { font-size: 10px; padding: 7px 5px; } .main-nav .pixel-icon { width: 13px; height: 13px; } }
@media (max-width: 520px) { .main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 2px; } .main-nav a { flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 5px 1px; font-size: 9px; } .main-nav .pixel-icon { width: 15px; height: 15px; } }
@media (max-width: 640px) { .gallery-page-grid .public-work-card { display: block; } .public-work-card .gallery-art { height: 205px; } .gallery-grid { grid-template-columns: 1fr; } }

.tutorial-backdrop { position: fixed; inset: 0; z-index: 2000; background: #07100dd6; }
.tutorial-backdrop[hidden], .tutorial-popover[hidden] { display: none; }
.tutorial-highlight { position: relative !important; z-index: 2001 !important; pointer-events: none !important; outline: 3px solid #f1d17b; outline-offset: 4px; box-shadow: 0 0 0 7px #132019, 0 0 0 10px #f1d17b88 !important; }
.tutorial-popover { position: fixed; z-index: 2002; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 18px; border: 3px solid #111918; background: #29332f url('/assets/panel-grid.svg?v=3b9d65fe') repeat; box-shadow: inset 2px 2px #65776c, inset -2px -2px #1a2620, 0 8px #0b110e; color: #f6f6e9; }
.tutorial-kicker { color: #f0d282; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.tutorial-popover h2 { margin: 9px 0 8px; color: #fffaf0; font-size: 20px; }
.tutorial-popover p { margin: 0; color: #d2e0cf; font-size: 12px; line-height: 1.7; }
.tutorial-progress { display: flex; gap: 5px; margin-top: 16px; }
.tutorial-progress span { flex: 1; height: 5px; background: #617066; }
.tutorial-progress span.active { background: #e7c76d; }
.tutorial-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 17px; }
.tutorial-actions button { min-height: 36px; padding: 6px 10px; border: 2px solid #111918; background: #415148; box-shadow: inset 1px 1px #748676, inset -1px -1px #25382c; color: #f6f7ec; font-size: 11px; font-weight: 900; cursor: pointer; }
.tutorial-actions button:hover { filter: brightness(1.15); }
.tutorial-actions button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.tutorial-actions #tutorialClose { margin-right: auto; background: transparent; border-color: transparent; box-shadow: none; color: #b9c7ba; }
.tutorial-actions #tutorialNext { background: linear-gradient(#f3d682, #c5933a); border-color: #5b4119; box-shadow: inset 1px 1px #fff0b1, inset -1px -1px #946824; color: #302513; }
@media (max-width: 640px) { .tutorial-popover { left: 12px !important; right: 12px !important; bottom: 12px !important; top: auto !important; width: auto; } }
@media (min-width: 761px) {
  .public-work-card .gallery-body h3 { margin-bottom: 11px; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.35; overflow-wrap: anywhere; }
  .order-card-body strong { font-size: 18px; line-height: 1.4; }
}

.shop-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; margin-bottom: 30px; }
.shop-grid.single-card { grid-template-columns: minmax(0, 1fr); }
.shop-panel { min-width: 0; padding: 24px; border: 3px solid #101718; background: #242d2c url('/assets/panel-grid.svg?v=3b9d65fe') repeat; box-shadow: inset 2px 2px #52615b, inset -2px -2px #141d1a, 0 6px #111617; color: #f5f5ea; }
.shop-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #50605a; }
.shop-panel-head h2 { margin: 8px 0 0; font-size: 23px; }
.shop-panel-status { padding: 6px 8px; border: 1px solid #9b7c4b; background: #463b29; color: #ffe0a1; font-size: 10px; white-space: nowrap; }
.shop-help { min-height: 37px; margin: 16px 0; color: #c4d2c1; font-size: 12px; line-height: 1.65; }
.shop-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
.shop-preset { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; min-height: 185px; padding: 10px; border: 2px solid #57452d; background: linear-gradient(#1c2f22c9, #1c2f22c9), url('/assets/oak-planks.svg?v=3b9d65fe') repeat; background-size: auto, 96px 96px; box-shadow: inset 1px 1px #a48154, inset -1px -1px #33251a, 0 3px #101617; color: #f3ead9; text-align: center; cursor: pointer; }
.shop-preset:hover, .shop-preset.selected { border-color: #f0cc73; box-shadow: inset 1px 1px #e7c288, inset -1px -1px #6f502b, 0 0 0 2px #f0cc7344; }
.shop-preset-art { display: block; width: min(100%, 164px); height: 104px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 4px 2px #0b1a12b0); }
.shop-preset-value { display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; width: 100%; color: #dbf7c7; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.shop-preset-value strong { color: #d2ffa5; font-size: clamp(21px, 2vw, 30px); text-shadow: 1px 2px #122b1c; }
.shop-preset-value span { font-size: 12px; }
.shop-preset-price { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; color: #e0cfaa; font-size: 11px; font-weight: 700; }
.shop-activity-tag { display: inline-block; padding: 2px 5px; border: 1px solid #d6a24e; background: #654524; color: #fff0b4; font-size: 10px; font-weight: 900; line-height: 1.3; white-space: nowrap; }
#shopRateNote { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.shop-bonus { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; color: #f4ddab; font-size: 11px; font-weight: 800; }
.shop-bonus-number { display: inline-block; color: #ffd66f; background: linear-gradient(105deg, #d89732 8%, #ffe99c 28%, #fff8db 42%, #e7ad41 62%, #f9d276 88%); background-size: 250% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px #573419); animation: shop-bonus-shine 3.2s linear infinite; }
.shop-preset > .shop-bonus { min-height: 22px; }
.shop-preset > .shop-bonus .shop-bonus-number { font-size: 16px; }
#shopRateNote .shop-bonus .shop-bonus-number, .shop-quote > .shop-bonus .shop-bonus-number { font-size: 15px; }
@keyframes shop-bonus-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .shop-bonus-number { animation: none; background-position: 50% 0; } }
.shop-grid.single-card .shop-preset-art { width: min(100%, 195px); height: 112px; }
.shop-custom-label { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; color: #f5e8c9; font-size: 12px; font-weight: 800; }
.shop-custom-label small { color: #b9c8b5; font-size: 10px; font-weight: 400; }
.shop-custom-row { display: flex; align-items: center; gap: 8px; max-width: 290px; padding: 0 12px; border: 2px solid #65705d; background: #171e1d; color: #f3ce75; font-weight: 900; }
.shop-custom-row input { width: 100%; min-width: 0; padding: 11px 4px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 800; }
.shop-custom-row:focus-within { border-color: #e6bd69; }
.shop-quote { display: grid; gap: 5px; margin: 17px 0 12px; padding: 13px; border: 2px solid #5e785a; background: #213328; color: #def5cb; font-size: 13px; font-weight: 800; }
.shop-quote-points { display: inline-flex; align-items: center; gap: 7px; }
.shop-quote-points .pixel-icon { width: 24px; height: 24px; }
.shop-quote-points strong { color: #d3ffa8; font-size: 22px; }
.shop-quote-price { color: #c9d1bd; font-size: 11px; font-weight: 600; }
.shop-quote-base { color: #c9d1bd; font-size: 11px; font-weight: 600; }
.shop-quote > .shop-bonus { justify-content: flex-start; }
.shop-checkout, .shop-redeem { width: 100%; min-height: 44px; border: 3px solid #111918; color: #fff; font-size: 13px; font-weight: 900; }
.shop-checkout { background: linear-gradient(#b59c65, #796440); color: #2b2115; cursor: not-allowed; }
.shop-redeem { background: linear-gradient(#6dc34f, #448e2f); box-shadow: inset 2px 2px #a7df80, inset -2px -2px #26621d, 0 3px #101617; cursor: pointer; }
.shop-redeem:hover { filter: brightness(1.1); }
.shop-redeem:disabled { opacity: .65; cursor: wait; }
.voucher-purchase-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin: 0 0 18px; padding: 8px 14px; border: 2px solid #b7914e; background: #483720; box-shadow: inset 1px 1px #856537, 0 3px #111617; color: #ffe2a0; font-size: 12px; font-weight: 900; }
.voucher-purchase-link:hover { background: #5d4728; }
.voucher-purchase-link:focus-visible { outline: 2px solid #ffe2a0; outline-offset: 3px; }
.shop-panel .shop-disclaimer { margin: 12px 0 0; color: #c4c9b5; line-height: 1.6; }
.voucher-form { display: grid; gap: 9px; }
.voucher-form label { color: #f2e5bd; font-size: 12px; font-weight: 800; }
.voucher-form input { width: 100%; min-width: 0; padding: 12px; border: 2px solid #637260; outline: 0; background: #151d1b; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.voucher-form input:focus { border-color: #9bd174; }
.voucher-form input::placeholder { color: #aab8a4; letter-spacing: 0; }
.shop-error { margin: 0; padding: 9px; border: 1px solid #a75b4c; background: #432720; color: #ffe1d9; font-size: 11px; }
.voucher-history { margin-top: 25px; padding-top: 18px; border-top: 1px solid #50605a; }
.voucher-history h3 { margin: 0 0 12px; font-size: 15px; }
#voucherHistory { color: #c0cabd; font-size: 11px; }
.voucher-history-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #394940; }
.voucher-history-row strong { color: #d4ee9e; }
.voucher-history-row small { grid-column: 1 / -1; color: #aab7ab; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .shop-panel { padding: 16px; } .shop-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shop-preset { min-height: 158px; } .shop-preset-art { height: 82px; } .shop-preset-value strong { font-size: 22px; } .shop-panel-head h2 { font-size: 20px; } }
