: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=cc70edd2");
  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;
}
html body .primary-button > .action-logo {
  width: 28px;
  height: 32px;
  object-fit: contain;
  image-rendering: auto;
}

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=cc70edd2") 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=cc70edd2") 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=cc70edd2") 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=cc70edd2") repeat;
  border: 2px solid #0b1010;
  color: #dde5d6;
}

.creator-section {
  position: relative;
}

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

.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=cc70edd2");
  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=cc70edd2") repeat;
  border: 2px dashed #668659;
  color: #f4f6eb;
}

.upload-zone.dragging {
  background: #3c5736 url("/assets/moss-grid.svg?v=cc70edd2") 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=cc70edd2");
  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=cc70edd2") 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-body h3,
.gallery-meta strong {
  color: #f7f6e7;
}

.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=cc70edd2") 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=cc70edd2") 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;
}


@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;
  }
}

/* 积分入口仅在悬停或当前页面时高亮 */
.site-header { height: auto; }
.header-inner { gap: 8px 16px; width: min(1480px, calc(100% - 64px)); min-height: 77px; height: auto; padding-block: 9px; flex-wrap: wrap; }
.brand-group { flex-shrink: 0; }
.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; }


.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=cc70edd2");
  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: 0; align-self: start; 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-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 9px 11px; border: 1px solid #a98250; background: #241d17d9; color: #f5e8d0; font-size: 11px; line-height: 1.5; }
.preview-controls[hidden] { display: none; }
.preview-controls > span:first-child { color: #f3d788; font-weight: 800; }
.preview-controls kbd { padding: 2px 5px; margin-right: 4px; border: 1px solid #9d865f; background: #3c3429; color: #fff8e8; font: 700 11px/1.4 monospace; white-space: nowrap; }
.preview-controls label { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #f3d788; font-weight: 800; white-space: nowrap; }
.preview-controls input { width: 100px; accent-color: #e0b861; cursor: pointer; }
.preview-controls output { min-width: 53px; color: #fff8e8; text-align: right; }
.preview-expand,
.preview-dialog-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  text-decoration: none;
}
.preview-download-blueprint {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: #784423;
  background: linear-gradient(#ffe2ac, #e9a766 55%, #b66a3c);
  box-shadow: inset 1px 1px #fff3d4, inset -1px -1px #a55c34, 0 2px #211711;
}
.preview-download-blueprint::after {
  position: absolute;
  inset: -35% auto -35% -40%;
  width: 32%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, #fff9dcba, transparent);
  content: '';
  pointer-events: none;
  animation: preview-download-shine 3s ease-in-out infinite;
}
@keyframes preview-download-shine {
  0%, 50% { left: -40%; }
  85%, 100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-download-blueprint::after { animation: none; }
}
.preview-expand:hover,
.preview-dialog-head button:hover { filter: brightness(1.1); }
.preview-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.preview-head-actions [hidden], .preview-dialog-actions [hidden], .preview-slice-panel[hidden] { display: none; }
.preview-head-actions button.is-selected, .preview-dialog-actions button.is-selected { background: linear-gradient(#b4dd7b, #568e36); }
.preview-slice-panel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; padding: 8px 10px; border: 1px solid #ad895a; background: #201a15eb; color: #f5e8d0; font-size: 11px; font-weight: 800; }
.preview-slice-label { color: #f3d788; }
.preview-slice-axes { display: inline-flex; gap: 3px; }
.preview-slice-panel button { min-height: 28px; padding: 4px 9px; border: 1px solid #9d7850; background: #382e23; color: #fff7e6; font-size: 11px; font-weight: 800; cursor: pointer; }
.preview-slice-panel button.is-selected { background: #82a94e; color: #14210f; }
.preview-slice-panel input { flex: 1 1 140px; min-width: 90px; accent-color: #d9b459; cursor: pointer; }
.preview-slice-panel output { min-width: 66px; text-align: center; }
.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; user-select: none; -webkit-user-drag: none; }
.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-stage .preview-canvas:focus { outline: none; }
/* Follow the canvas's real keyboard focus, including inside the enlarged view.
   Draw inside the viewport so selection never changes its size or catches input. */
.preview-stage:has(> .preview-canvas:not([hidden]):focus)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 3px solid #7ee6bb;
  box-shadow: inset 0 0 0 1px #102b25;
  pointer-events: none;
}
.preview-stage .preview-camera-reset { position: absolute; top: 10px; right: 10px; z-index: 2; min-height: 38px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.4; box-shadow: inset 1px 1px #ffffff50, 0 2px var(--theme-edge, #101718); cursor: pointer; }
.preview-stage .preview-camera-reset[hidden], .preview-stage.has-concept-loading .preview-camera-reset { 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: 68px; 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; user-select: none; -webkit-user-drag: none; }
.preview-gallery button.is-selected { border-color: #b7da79; outline: 2px solid #4f822d; outline-offset: 1px; }
.preview-gallery button[data-view-mode="3d"] {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 118px; min-width: 118px; height: 68px; padding: 7px 8px;
  border-color: #93bcb1;
  background: radial-gradient(circle at 28% 18%, #7ac9b43b, transparent 58%), linear-gradient(145deg, #28463e, #111f22 78%);
  box-shadow: inset 1px 1px #96cabb, inset -2px -2px #0a1418, 0 3px #111917;
  color: #f5f6e8; text-align: left;
}
.preview-gallery button[data-view-mode="3d"]::before { content: ''; position: absolute; inset: 4px; border: 1px solid #d3c68b54; pointer-events: none; }
.preview-gallery button[data-view-mode="3d"]:hover { transform: translateY(-2px); border-color: #e7cb7c; filter: brightness(1.12); }
.preview-gallery button[data-view-mode="3d"].is-selected { border-color: #e7cb7c; outline-color: #e7cb7c; box-shadow: inset 1px 1px #b6dec9, inset -2px -2px #0a1418, 0 3px #111917, 0 0 14px #c6e29d66; }
.immersive-preview-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; filter: drop-shadow(0 0 5px #92ddbd88); }
.immersive-preview-icon svg { display: block; width: 30px; height: 30px; stroke: #a8e2d1; stroke-width: 1.7; stroke-linejoin: round; }
.immersive-preview-icon .immersive-preview-spark { stroke: #f4d681; stroke-width: 2; stroke-linecap: square; }
.immersive-preview-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: nowrap; }
.immersive-preview-copy small { color: #f0d789; font-size: 9px; line-height: 1; font-weight: 900; letter-spacing: .02em; text-shadow: 1px 1px #071416; }
.immersive-preview-copy strong { color: #fff9e8; font-size: 13px; line-height: 1.1; font-weight: 900; letter-spacing: .02em; text-shadow: 1px 1px #071416; }
.preview-gallery-large { justify-content: center; margin-top: 10px; }
.preview-gallery-large button { flex: 0 1 78px; height: 68px; }
.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-progress { overflow-y: auto; }
.preview-stage .preview-progress-thumbnail { display: block; position: static; inset: auto; flex: 0 0 auto; width: 100%; height: auto; max-width: 520px; max-height: 240px; aspect-ratio: 2 / 1; object-fit: contain; background: #e7edf1; border: 1px solid currentColor; margin-top: 6px; }
.preview-stage .preview-progress-thumbnail[hidden] { display: none; }
.preview-stage:has(.preview-progress-thumbnail:not([hidden])) { min-height: 440px; }
.preview-progress:has(.preview-progress-thumbnail:not([hidden])) .preview-progress-icon { display: none; }
.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-meter { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; }
.preview-progress-meter span { font-size: 16px; font-weight: 800; min-width: 3.5em; color: inherit; }
.preview-progress-meter progress { flex: 1; min-width: 0; height: 14px; accent-color: var(--theme-accent, #d9ae63); }
.preview-progress-kicker, .preview-progress-stage { font-size: 13px; }
.preview-progress-meta { color: #d5ddcf; font-size: 13px; 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); } }
@media (prefers-reduced-motion: reduce) {
  .preview-progress-icon { 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; flex-wrap: wrap; }
.preview-dialog-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; white-space: nowrap; }
.preview-dialog-head + .preview-controls { margin-bottom: 12px; }
.preview-dialog-head button { min-width: 36px; font-size: 20px; line-height: 1; }
.preview-dialog-head .preview-tool-button { font-size: 11px; min-height: 32px; }
.preview-dialog-error { margin-bottom: 12px; padding: 9px 11px; border: 1px solid #d1785f; background: #442622; color: #ffe1d5; font-size: 12px; line-height: 1.5; }
.preview-dialog-error[hidden] { display: none; }
.preview-dialog.is-native-fullscreen { display: flex; flex-direction: column; box-sizing: border-box; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 0; box-shadow: none; background: #101916; }
.preview-dialog:not([open]) { display: none; }
.preview-dialog.is-native-fullscreen .preview-dialog-head { padding: 8px 12px; margin: 0; background: #211b16; }
.preview-dialog.is-native-fullscreen .preview-controls,
.preview-dialog.is-native-fullscreen .preview-slice-panel { flex: none; margin: 0; }
.preview-dialog.is-native-fullscreen .preview-stage-large,
.preview-dialog.is-native-fullscreen:has(.preview-gallery-large:not([hidden])) .preview-stage-large { flex: 1 1 auto; height: auto; min-height: 0; border: 0; }
.preview-dialog.is-native-fullscreen .preview-gallery-large { flex: none; padding: 7px 10px; background: #211b16; }
.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; }
.upload-zone { background: linear-gradient(#211a14ba, #211a14ba), url("/assets/oak-planks.svg?v=cc70edd2") repeat; background-size: auto, 96px 96px; border-color: #ad8554; }
.upload-zone.dragging { background: linear-gradient(#65492dab, #65492dab), url("/assets/oak-planks.svg?v=cc70edd2") 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; }
  .preview-stage { min-height: 275px; }
  .preview-stage-large { height: 60vh; }
  .preview-dialog-actions { max-width: 100%; overflow-x: auto; }
  .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: 1440px) {
  .site-header { height: auto; }
  .header-inner { height: auto; min-height: 82px; display: grid; grid-template-columns: auto minmax(0, 1fr); 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; flex-wrap: wrap; justify-content: flex-end; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; height: auto; justify-content: center; }
}

@media (max-width: 760px) {
  .header-inner { width: min(100% - 34px, 560px); grid-template-columns: minmax(0, 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; height: auto; }
}

.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; }
#creator .creator-top #creatorTitle {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--theme-heading-ink, var(--theme-ink));
  text-shadow: none;
}
.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=cc70edd2') 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; }
.adaptive-refund-hint { display: block; margin-top: 9px; padding: 9px 11px; font-size: 13px; line-height: 1.5; }
.adaptive-refund-hint[hidden] { display: none; }
.creator-card .upload-zone { margin: 0; }
.cost-note strong { font-size: 13px; }
.cost-note strong b { color: var(--theme-bonus-card-ink); font-size: 20px; }
.creator-actions { display: grid; gap: 8px; min-width: 244px; }
.generate-button {
  width: 100%; min-height: 72px; 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; object-fit: contain; image-rendering: auto; }
.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; }
.buy-points-button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 6px 12px; border: 2px solid #557044;
  background: #25352b; box-shadow: inset 1px 1px #6b8b59, inset -1px -1px #17251c, 0 2px #0e1110;
  color: #e9f6df; font-size: 13px; font-weight: 800; text-decoration: none;
}
.buy-points-button .pixel-icon { width: 20px; height: 20px; }
.buy-points-button:hover { background: #314a35; border-color: #8ebd6a; }
.buy-points-button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.buy-points-button span { margin-left: 3px; color: #b7d59d; }
.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; }
  .creator-actions { min-width: 0; }
  .generate-button { 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; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: stretch; justify-content: stretch; gap: 16px; min-width: 0; text-align: left; min-height: 355px; }
.order-card { position: relative; display: grid; grid-template-columns: clamp(142px, 18vw, 188px) minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; min-width: 0; min-height: 172px; padding: 16px; border: 11px solid transparent; background: linear-gradient(#261c16a8, #261c16a8) padding-box, url('/assets/minecraft-1.20.1/textures/block/dark_oak_planks.png') repeat padding-box, url('/assets/minecraft-1.20.1/textures/block/gold_block.png') repeat border-box; background-size: auto, 64px 64px, 48px 48px; box-shadow: inset 0 0 0 2px #d8b477, 0 5px 0 #111615; cursor: pointer; transition: box-shadow .18s, transform .18s; }
.order-card::before { content: ''; position: absolute; inset: 4px; border: 2px solid #b89660; box-shadow: inset 1px 1px #e4cf9b, inset -1px -1px #3a2a1d; pointer-events: none; }
.order-card:hover, .order-card:focus-within { box-shadow: inset 0 0 0 2px #ffe3a5, 0 0 16px #eabf6670, 0 5px 0 #111615; transform: translateY(-2px); }
.order-preview-frame { width: 100%; aspect-ratio: 4 / 3; padding: 4px; border: 2px solid #caa864; background: #dce5df; box-shadow: 0 0 0 3px #111918, inset 0 0 0 2px #fff2c4; overflow: hidden; }
.order-preview-frame > img, .order-preview-frame > .order-icon { display: block; width: 100%; height: 100%; object-fit: contain; background: #dce5df; }
.order-preview-frame > .order-icon { display: grid; place-items: center; background: #17231e; }
.order-icon .pixel-icon { width: 72px; height: 72px; }
.order-card-body { min-width: 0; display: grid; justify-items: start; gap: 10px; }
.order-card-heading { display: inline-flex; flex-wrap: wrap; align-items: stretch; max-width: 100%; }
.order-card-title { position: relative; isolation: isolate; display: inline-block; max-width: 100%; padding: 7px 12px; overflow: hidden; border: 2px solid #8d6b36; background: linear-gradient(#30271fd9, #30271fd9), url('/assets/minecraft-1.20.1/textures/block/dark_oak_planks.png') repeat; background-size: auto, 48px 48px; box-shadow: inset 1px 1px #d9b675, inset -1px -1px #1c1712; color: #fff2cb; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.35; overflow-wrap: anywhere; text-shadow: 1px 2px #2b2116; }
.order-card-title > span { position: relative; z-index: 1; color: inherit; }
.order-card-title::after { content: ''; position: absolute; z-index: 0; top: -50%; left: -70%; width: 34%; height: 200%; transform: skewX(-24deg); background: linear-gradient(90deg, transparent, #fff7c573, transparent); animation: order-title-shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes order-title-shine { 0%, 22% { left: -70%; } 50%, 100% { left: 135%; } }
.order-card-facts { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.order-card-facts > span { display: inline-flex; align-items: center; min-height: 35px; padding: 6px 10px; border: 2px solid #77531f; background: linear-gradient(#ffe09cdb, #e9b960e8), url('/assets/minecraft-1.20.1/textures/block/gold_block.png') repeat; background-size: auto, 40px 40px; box-shadow: inset 1px 1px #fff3c4, inset -1px -1px #a36d28, 0 2px #101512; color: #3c270d; font-size: 14px; font-weight: 900; line-height: 1.25; text-shadow: none; }
.order-card-body small { color: #d2d8c8; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.order-card-body .order-card-meta { display: inline-block; max-width: 100%; padding: 4px 7px; border: 1px solid #c3a66d; background: #1c2924; color: #fff8e8; font-weight: 700; text-shadow: none; }
.order-card-open-link { position: absolute; z-index: 1; inset: 0; }
.order-card-open-link:focus-visible { outline: 3px solid #f8dc91; outline-offset: 3px; }
.order-status { display: inline-flex; align-items: center; padding: 7px 10px; border: 2px solid #8d6b36; border-left: 0; background: linear-gradient(#e2bd6a, #a97930); box-shadow: inset 1px 1px #fff0b6, inset -1px -1px #593c19; color: #322111; font-size: 14px; font-weight: 900; white-space: nowrap; }
.order-status.completed { background: linear-gradient(#85c865, #4b8c36); box-shadow: inset 1px 1px #b9e89b, inset -1px -1px #2a5825; color: #fff; }
.order-status.failed { background: linear-gradient(#ca7468, #884036); color: #fff; }
.order-error { color: #f1a99f !important; }
.order-card-actions { position: relative; z-index: 2; display: flex; align-items: stretch; flex-direction: column; gap: 9px; }
.order-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 2px solid #121918; background: linear-gradient(#6fbd50, #417e2e); box-shadow: inset 1px 1px #b3dc91, inset -1px -1px #2b5e25, 0 3px #111711; color: #fff; font-size: 14px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.order-detail-button { background: linear-gradient(#bd9356, #79552e); box-shadow: inset 1px 1px #e7c992, inset -1px -1px #4b311b, 0 3px #111711; }
.order-download:hover, .order-download:focus-visible { filter: brightness(1.12); }
@media (prefers-reduced-motion: reduce) { .order-card, .order-card-title::after { animation: none; transition: none; } }
.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; }
#detailMeta { display: block; width: max-content; max-width: 100%; padding: 2px 6px; background: linear-gradient(#211b15d9, #211b15d9), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; color: #fff5df; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .9fr); gap: 20px; align-items: stretch; }
.detail-preview-panel { min-width: 0; padding: 18px; border: 3px solid #24190f; background: linear-gradient(#241b14a6, #241b14a6), url('/assets/oak-planks.svg?v=cc70edd2') 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 + .preview-controls { margin-bottom: 12px; }
.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[hidden] { display: none; }
.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; min-height: 0; contain: size; }
.detail-materials-card { display: flex; flex-direction: column; min-height: 0; }
.detail-aside.has-references { grid-template-rows: minmax(0, 1fr) 290px; }
.detail-reference-card { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; min-height: 0; min-width: 0; }
.detail-reference-card[hidden], .detail-reference-tabs[hidden] { display: none; }
.detail-reference-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-reference-head h2 { margin: 0; font-size: 19px; }
.detail-reference-head > span { font-size: 11px; color: var(--theme-muted-ink, #bfcbc0); }
.detail-reference-tabs { display: flex; gap: 6px; min-width: 0; overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
.detail-reference-tabs .choice-button { flex: none; min-height: 32px; }
.detail-reference-tabs .choice-main { padding: 6px 9px; white-space: nowrap; font-size: 12px; }
.detail-reference-view { grid-row: 3; position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; min-width: 0; overflow: hidden; padding: 0; border: 3px solid var(--theme-edge, #111918); background: var(--theme-inset-background, #19221f); color: var(--theme-ink, #f1f3eb); cursor: zoom-in; }
.detail-reference-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-reference-view [data-reference-message] { padding: 14px; font-size: 12px; line-height: 1.7; }
.detail-materials-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-materials-domain { width: 94px; height: 14px; flex: none; fill: currentColor; color: inherit; opacity: .75; shape-rendering: crispEdges; }
.detail-side-card { padding: 18px; border: 3px solid #111918; background: #1f2927 url('/assets/stone-grid.svg?v=cc70edd2') 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-downloads { margin-bottom: 22px; padding: 23px; border-color: #332216; background: linear-gradient(#241b14bd, #241b14bd), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 112px 112px; box-shadow: inset 2px 2px #bd9867, inset -2px -2px #3d2a1b, 0 7px #111617; }
.detail-downloads .detail-side-head { margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid #9d7951; }
.detail-downloads .detail-side-head h2 { margin: 0 0 6px; color: #fff5dc; font-size: clamp(23px, 2.2vw, 28px); }
.detail-downloads .detail-side-head p { margin: 0; color: #f1dfc3; font-size: 15px; line-height: 1.6; }
.detail-download-options { min-height: 160px; font-size: 15px; }
.delivery-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.delivery-platforms button { flex: 1 1 185px; min-height: 46px; padding: 9px 15px; border: 2px solid #9b764d; background: linear-gradient(#291c14c9, #291c14c9), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 80px; color: #fff1d7; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.delivery-platforms button[aria-pressed="true"] { border-color: #f6cf77; color: #27190d; background: #e2b965; box-shadow: inset 1px 1px #fff0bd; }
.delivery-platforms button:focus-visible, .delivery-version-row select:focus-visible, .delivery-download-button:focus-visible { outline: 3px solid #ffe6a5; outline-offset: 3px; }
.delivery-version-row { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 15px; margin-bottom: 13px; color: #f7e9ce; font-size: 16px; font-weight: 800; }
.delivery-version-row select { min-width: 170px; max-width: 100%; min-height: 42px; padding: 7px 12px; border: 2px solid #ddba75; background: #281e14; color: #fff1d2; font: inherit; font-size: 16px; }
.delivery-settings-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; margin-bottom:8px; }
.delivery-settings-row .delivery-version-row { margin:0; }
.delivery-site-base { display:inline-flex; align-items:center; gap:9px; min-height:42px; padding:7px 12px; border:2px solid #9b764d; box-shadow:inset 1px 1px #fff0bd55; color:inherit; font-weight:800; cursor:pointer; }
.delivery-site-base input { width:20px; height:20px; margin:0; accent-color:#557a28; flex-shrink:0; cursor:inherit; }
.delivery-site-base:has(input:checked) { border-color:#708b32; }
.delivery-site-base:has(input:disabled) { opacity:.65; cursor:default; }
.delivery-site-base:focus-within { outline:3px solid #ffe6a5; outline-offset:3px; }
.delivery-site-base-help { margin-top:0; }
.delivery-platform-version { font-weight:800; }
.delivery-help { margin: 0 0 17px; padding: 12px 15px; border: 1px solid #9d7951; background: #241b16; color: #f4e4ca; font-size: 15px; line-height: 1.7; }
.mod-bridge-status { margin: 0; padding: 7px 9px; border: 1px solid #866844; background: #211911; color: #ffe5a8; font-size: 14px; font-weight: 800; }
.mod-update-notice { margin: 0; padding: 10px 12px; border: 2px solid #d99558; background: #5a3524; color: #fff1d6; font-size: 14px; font-weight: 800; line-height: 1.55; }
.mod-update-notice[hidden] { display: none; }
.mod-bridge-controls, .mod-bridge-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.mod-bridge-controls { margin-top: auto; }
.mod-panel-key-setting { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 9px; border: 1px solid #8e86c8; background: #e8e7fb; color: #282446; }
.mod-panel-key-setting label { font-size: 14px; font-weight: 900; }
.mod-panel-key-setting select { min-width: 82px; min-height: 37px; padding: 5px 8px; border: 2px solid #7770ad; background: #fff; color: #24203f; font: inherit; font-size: 14px; font-weight: 800; }
.mod-panel-key-setting span { font-size: 13px; font-weight: 800; color: #575176; }
.mod-panel-key-setting select:focus-visible { outline: 3px solid #c8c4fa; outline-offset: 2px; }
.mod-delivery-option button, .mod-delivery-option .mod-bridge-controls a { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 6px 9px; border: 2px solid #714a1d; background: linear-gradient(#ffe29b, #dca847); color: #2b1a09; font: inherit; font-size: 13px; font-weight: 900; text-decoration: none; cursor: pointer; }
.mod-delivery-option .mod-bridge-controls .mod-download-primary { position: relative; overflow: hidden; min-height: 41px; padding: 8px 15px; border-color: #9a532b; background: linear-gradient(#ffe3b7, #e9a264 55%, #c87a45); box-shadow: inset 1px 1px #fff4dc, 0 2px #663a20; color: #3c2412; font-size: 14px; isolation: isolate; }
.mod-delivery-option a.mod-guide-link { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 48px; margin-top: 4px; padding: 10px 16px; border: 2px solid #bd925a; background: #302113; color: #ffefce; font-size: 16px; font-weight: 900; text-align: center; text-decoration: none; }
.mod-delivery-option a.mod-guide-link:hover { background: #4a311a; }
.mod-download-primary::after { position: absolute; inset: -30% auto -30% -45%; width: 30%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, #ffffffa8, transparent); content: ''; pointer-events: none; }
.mod-download-primary:hover::after, .mod-download-primary:focus-visible::after { animation: mod-download-shine .65s ease-out forwards; }
@keyframes mod-download-shine { to { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .mod-download-primary:hover::after, .mod-download-primary:focus-visible::after { animation: none; } }
.mod-delivery-option button:disabled { opacity: .5; cursor: default; }
.mod-delivery-option button:focus-visible, .mod-delivery-option .mod-bridge-controls a:focus-visible, .mod-delivery-option a.mod-guide-link:focus-visible { outline: 3px solid #ffe6a5; outline-offset: 2px; }
.delivery-file-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.detail-download-option { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 235px; padding: 18px; border: 2px solid #aa8657; background: linear-gradient(#291c14ce, #291c14ce), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 112px; color: #fff3d8; box-shadow: inset 1px 1px #aa8657; }
.detail-download-option.mod-delivery-option { position: relative; border: 3px solid #d9ab68; background: linear-gradient(135deg, #382516bd, #5b3d21c7), url('/assets/minecraft-1.20.1/textures/block/dark_oak_log_top.png') repeat; background-size: auto, 72px 72px; box-shadow: inset 0 0 0 1px #f5d9a580, 0 3px #24160c; color: #fff5e3; }
.detail-download-option.mod-delivery-option::before { position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #ad743b, #f3d38d); content: ''; pointer-events: none; }
.detail-download-option.mod-delivery-option .delivery-tool { color: #ffdfaa; }
.detail-download-option.mod-delivery-option .delivery-extension { border-color: #e9b96e; background: #493014; color: #fff2d0; }
.delivery-option-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-download-option strong { font-size: 19px; line-height: 1.35; }
.detail-download-option .delivery-extension { flex: none; padding: 4px 7px; border: 1px solid #d4ae68; background: #211911; color: #ffdf9a; font-size: 14px; font-weight: 800; }
.detail-download-option .delivery-version { margin: 0; color: #fff3d8; font-size: 16px; font-weight: 800; line-height: 1.5; }
.detail-download-option .delivery-tool { margin: 0; color: #ffe0a1; font-size: 15px; font-weight: 800; line-height: 1.5; }
.detail-download-option .delivery-usage { margin: 0; color: #f4e6cd; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.delivery-command { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 2px; }
.delivery-command code { padding: 9px 11px; border: 1px solid #d4ae68; background: #211911; color: #ffe09d; font-size: 16px; font-weight: 800; }
.delivery-command button { min-height: 40px; padding: 7px 11px; border: 2px solid #714a1d; background: linear-gradient(#ffe29b, #dca847); color: #2b1a09; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.delivery-quick-copy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.delivery-quick-copy button { flex: 1 1 auto; min-height: 38px; padding: 6px 9px; border: 2px solid #714a1d; background: linear-gradient(#ffe29b, #dca847); color: #2b1a09; font: inherit; font-size: 14px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.delivery-quick-copy button:hover, .delivery-quick-copy button:focus-visible { filter: brightness(1.1); outline: 2px solid #ffe6a5; outline-offset: 2px; }
.delivery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.delivery-download-button, .delivery-unavailable-label { align-self: flex-start; margin-top: auto; padding: 9px 17px; border: 2px solid #714a1d; background: linear-gradient(#ffe29b, #dca847); box-shadow: inset 1px 1px #fff2c1, 0 3px #3a2716; color: #2b1a09; font-size: 16px; font-weight: 900; line-height: 1.2; text-decoration: none; }
.delivery-actions .delivery-download-button, .delivery-actions .delivery-unavailable-label { margin-top: 0; }
.delivery-guide-button { padding: 9px 15px; border: 2px solid #b89467; background: #211911; color: #fff0d0; font-size: 16px; font-weight: 900; line-height: 1.2; text-decoration: none; }
.delivery-guide-button:hover, .delivery-guide-button:focus-visible { border-color: #ffe09d; color: #fff7e7; }
.delivery-download-button:hover { filter: brightness(1.1); }
.detail-download-option.unavailable { border-color: #7f7464; }
.detail-download-option.unavailable .delivery-usage { color: #f2d5c1; }
.delivery-unavailable-label { border-color: #777268; background: #a79b86; box-shadow: none; color: #2b251c; }
.detail-materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; flex: 1; height: 0; min-height: 0; align-content: start; 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 { position: relative; display: block; flex: none; width: 30px; height: 30px; overflow: hidden; image-rendering: pixelated; border: 1px solid #74847b; background: #dce5dd; text-align: center; }
.detail-material-icon img { position: absolute; max-width: none; visibility: hidden; image-rendering: pixelated; }
.detail-material-icon img.is-loaded { visibility: visible; }
.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); } .detail-aside { contain: none; } .detail-materials { flex: none; height: auto; max-height: 560px; } }
@media (max-width: 960px) { .detail-aside.has-references { grid-template-rows: auto 290px; } .has-references .detail-materials { max-height: 300px; } }
@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-downloads { padding: 16px; }
  .delivery-platforms button { flex-basis: 135px; font-size: 15px; }
  .detail-download-option { min-height: 0; }
  .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: minmax(100px, 27%) minmax(0, 1fr); gap: 14px; padding: 13px; }
  .order-card-actions { grid-column: 1 / -1; justify-content: flex-end; flex-direction: row; flex-wrap: wrap; }
  .order-card-title { font-size: 17px; }
  .order-card-facts > span { font-size: 13px; }
}
@media (max-width: 560px) {
  .order-card { grid-template-columns: minmax(0, 1fr); }
  .order-preview-frame { aspect-ratio: 4 / 3; }
  .order-card-actions { grid-column: 1; justify-content: stretch; }
  .order-card-actions > a { flex: 1 1 120px; }
}
.detail-downloads, .detail-preview-panel { scroll-margin-top: 20px; }
.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=cc70edd2') 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-admin-badge { display: inline-block; margin-left: 9px; padding: 3px 6px; border: 1px solid #b58b39; background: #5c4827; color: #ffe4a0; font-size: 10px; font-weight: 900; vertical-align: middle; }
.gallery-author-avatar { image-rendering: pixelated; }
.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=cc70edd2') 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 { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.public-work-card .gallery-art {
  --cover-stage-edge: #191d1c; --cover-stage-glow: #2c332e;
  display: block; height: auto; aspect-ratio: 4 / 3;
  background-color: var(--cover-stage-edge);
  background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px), radial-gradient(ellipse at 50% 65%, var(--cover-stage-glow), var(--cover-stage-edge));
  background-size: 24px 24px, 24px 24px, auto;
}
.public-work-card .gallery-art[data-cover-tone="1"] { --cover-stage-edge: #211d19; --cover-stage-glow: #383028; }
.public-work-card .gallery-art[data-cover-tone="2"] { --cover-stage-edge: #191d22; --cover-stage-glow: #2c323b; }
.public-work-card .gallery-art[data-cover-tone="3"] { --cover-stage-edge: #211c23; --cover-stage-glow: #342c37; }
.public-work-card .gallery-art[data-cover-tone="4"] { --cover-stage-edge: #202119; --cover-stage-glow: #333528; }
.public-work-card .gallery-art > img { object-fit: contain; background: transparent; image-rendering: auto; }
.public-work-card .gallery-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px 14px; }
.public-work-card .gallery-body h3 { display: flex; align-items: center; flex: 1; min-width: 0; gap: 5px; margin: 0; font-size: 15px; line-height: 1.5; color: #fff8e9; }
.public-work-card .gallery-body h3 > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-work-card .gallery-body h3 .gallery-admin-badge { flex: none; margin: 0; }
.public-work-card .gallery-meta { flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; color: #d2dccd; }
.public-work-card .gallery-meta > span { flex: none; white-space: nowrap; font-size: 11px; }
.public-work-card .gallery-meta strong { color: #f3d681; }
.gallery-build-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gallery-counts { margin-left: auto; font-size: 11px; white-space: nowrap; color: var(--theme-muted-ink, #d2dccd); }
.gallery-build-facts span { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 8px; border: 1px solid #9a7645; background: #271f17e8; box-shadow: inset 1px 1px #6b5133, 0 2px #101614; color: #ffd77b; font-size: 13px; font-weight: 900; line-height: 1.3; white-space: nowrap; }
.gallery-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; margin-top: 9px; }
.gallery-card-actions .gallery-author-label { display:flex; align-items:center; gap:5px; min-width:0; white-space:nowrap; color:inherit; font-size:13px; font-weight:700; }
.gallery-card-actions .gallery-author-avatar { width:24px; height:24px; flex:none; object-fit:cover; border:1px solid var(--theme-author-border, #657868); background:#242d28; image-rendering:pixelated; }
.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=cc70edd2') 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; }
.gallery-pagination a { min-height: 36px; padding: 6px 11px; border: 2px solid var(--theme-edge, #111918); background: var(--theme-button-background, #384640); color: var(--theme-button-ink, #f0f2e8); font-size: 14px; font-weight: 700; text-decoration: none; }
.gallery-body h3 a { color: inherit; text-decoration: none; }
.footer-guides { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; grid-column: 1 / -1; font-size: 14px; line-height: 1.6; }
.footer-guides a { color: inherit; text-decoration: none; }
.footer-guides a:hover { text-decoration: underline; }
.share-dialog { width: min(640px, calc(100% - 28px)); max-height:calc(100dvh - 40px); box-sizing:border-box; overflow-y:auto; padding: 28px; border: 3px solid #101718; background: #252d2d url('/assets/panel-grid.svg?v=cc70edd2') repeat; box-shadow: 0 8px #111718; color: #f5f5ec; }
.share-dialog::backdrop { background: #0b1414c9; }
.share-dialog h2 { margin: 13px 0; font-size: 26px; font-weight:800; line-height:1.5; }
.share-dialog p { color: #cbd5c8; font-size: 18px; font-weight:700; line-height: 1.8; overflow-wrap:anywhere; }
/* Keep reward colors paired: global theme text overrides must not put dark
   lettering back onto a dark reward background. */
html body #shareRewardText { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 2px solid #ad7d32; background: #fff0c5; box-shadow: inset 2px 2px #fff9e8, inset -2px -2px #dfbc73; color: #513411; font-size: 16px; line-height: 1.6; }
html body #shareRewardText[hidden] { display: none; }
html body #shareRewardText .share-reward-copy { color: #513411; font-weight: 700; }
html body #shareRewardText .share-reward-points { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 8px; padding: 7px 13px; border: 2px solid #93621b; background: linear-gradient(#ffe99b, #edb94d); box-shadow: inset 2px 2px #fff6cc, inset -2px -2px #cf9130, 0 2px #b88739; color: #40280c; font-size: 21px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
html body #shareRewardText .pixel-icon { width: 24px; height: 24px; flex: none; }
.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; }
html body .share-dialog .share-actions button { min-height:48px; font-size:16px; font-weight:700; line-height:1.5; }
.generation-confirm-dialog { width: min(640px, calc(100% - 28px)); }
.generation-payment-choice { min-inline-size: 0; margin: 16px 0 0; padding: 12px; border: 2px solid var(--theme-border, #ae8b51); color: inherit; }
.generation-payment-choice legend { max-width: 100%; white-space: normal; }
.generation-payment-choice label { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; cursor: pointer; }
.generation-payment-choice input { flex: 0 0 auto; margin-top: 4px; accent-color: #407c3b; }
.generation-payment-choice p, .generation-payment-choice small { line-height: 1.6; font-size: 13px; }
#generationConfirmError { color: #a32916; font-weight: 700; }
html body .sound-preview-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 6px; vertical-align: middle; border: 2px solid var(--theme-edge-light, #ae8b51); background: var(--theme-button-background, #edce91); color: var(--theme-button-ink, #513411); box-shadow: inset 1px 1px #ffffff70, 0 2px #00000025; cursor: pointer; }
.sound-preview-button svg { width: 22px; height: 22px; }
.sound-preview-button:hover { filter: brightness(1.1); }
.sound-preview-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sound-preview-button:disabled { opacity: .6; cursor: wait; }
/* Confirmation details use the same theme colors as form fields, including
   when a saved light theme is applied before the dialog opens. */
.generation-confirm-summary { display: grid; margin-top: 18px; border: 2px solid var(--theme-edge-light, #111918); background: var(--theme-field-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 var(--theme-edge-light, #435148); background: var(--theme-field-background, #1b2522); font-size: 16px; font-weight:700; line-height:1.6; }
.generation-confirm-summary > div:last-child { border-bottom: 0; }
.generation-confirm-summary span { flex: none; color: var(--theme-muted-ink, #b9c9b7); }
.generation-confirm-summary strong { min-width: 0; color: var(--theme-ink, #f5f6ea); text-align: right; overflow-wrap: anywhere; }
.generation-confirm-summary .generation-confirm-total { align-items: center; background: var(--theme-selected-background, #3b3420); }
.generation-confirm-total strong { display: inline-flex; align-items: center; gap: 5px; color: var(--theme-ink, #ffe09a); font-size: 20px; }
.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: var(--theme-ink, #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) {
  .share-dialog .share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-dialog .share-actions button { width: 100%; }
  .share-dialog { padding:20px; }
}
@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(5, 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; } .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=cc70edd2') 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; } }

.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=cc70edd2') 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=cc70edd2') 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, .theme-promo-tag { display: inline-block; padding: 4px 7px; border: 1px solid var(--theme-promo-border); background: var(--theme-promo-background); color: var(--theme-promo-ink); font-size: 12px; font-weight: 900; line-height: 1.3; white-space: nowrap; }
#shopRateNote { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.shop-bonus, .theme-bonus { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; color: var(--theme-bonus-ink); font-size: 12px; font-weight: 800; }
.shop-bonus-number, .theme-bonus-number, .theme-points-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 6px; border: 2px solid var(--theme-bonus-card-border); background: var(--theme-bonus-card-background); background-size: 250% 100%; box-shadow: inset 1px 1px #fff4bb, inset -1px -1px #ab7629, 0 2px var(--theme-bonus-card-shadow); color: var(--theme-bonus-card-ink); line-height: 1.1; text-shadow: none; white-space: nowrap; }
.shop-bonus-number, .theme-bonus-number { 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, .theme-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 #654419; background: linear-gradient(#f6d984, #c9973d); box-shadow: inset 1px 1px #fff0b1, 0 3px #563919; color: #302513; font-size: 14px; font-weight: 900; text-shadow: none; }
.voucher-purchase-link:hover { background: linear-gradient(#ffe7a0, #d5a548); }
.voucher-purchase-link:focus-visible { outline: 2px solid #654419; 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: 10px 12px; border: 2px solid #a75b4c; background: #432720; color: #ffe1d9; font-size: 14px; font-weight: 700; line-height: 1.6; }
.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; } }

.account-button { max-width: 198px; min-width: 0; }
.account-menu-wrap { position: relative; display: inline-flex; min-width: 0; }
.account-button .account-chevron { width: 10px; height: 10px; flex: none; margin: 0 3px 4px 7px; padding: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.account-button[aria-expanded="true"] .account-chevron { margin-top: 5px; margin-bottom: 0; transform: rotate(225deg); }
.account-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 55; display: grid; min-width: 170px; padding: 6px; border: 3px solid #111918; background: #29352f; box-shadow: inset 1px 1px #6a7b6b, 0 5px #101617; }
.account-menu[hidden] { display: none; }
.account-menu a { display: block; padding: 10px 12px; color: #f1f4e9; font-size: 12px; font-weight: 800; white-space: nowrap; }
.account-menu a:hover, .account-menu a:focus-visible { outline: 0; background: #486243; color: #fff; }
.account-button .account-label { min-width: 0; max-width: 138px; overflow: hidden; padding-left: 0; text-overflow: ellipsis; white-space: nowrap; }
.account-button .header-avatar { width: 25px; height: 25px; flex: none; object-fit: cover; border: 2px solid #483115; image-rendering: pixelated; }
.logout-button { min-height: 42px; padding: 7px 10px; border: 2px solid #536359; background: #2b3833; box-shadow: inset 1px 1px #617168, inset -1px -1px #1a2922, 0 2px #101617; color: #e5ebdd; font-size: 11px; font-weight: 800; white-space: nowrap; }
.logout-button:hover { background: #3d4a42; }
.account-button:focus-visible, .logout-button:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.orders-avatar { width: 64px; height: 64px; object-fit: cover; border: 3px solid #30251a; background: #1c2924; box-shadow: inset 1px 1px #d8b98b, 0 4px #1a201b; image-rendering: pixelated; }
.detail-author { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 9px; padding: 5px 9px 5px 5px; border: 1px solid #af8959; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; color: #fff0d3; font-size: 12px; font-weight: 800; }
.detail-author img { width: 30px; height: 30px; object-fit: cover; border: 1px solid #7f9970; image-rendering: pixelated; }

.profile-layout { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 18px; }
.profile-settings { display: grid; gap: 18px; }
.profile-card { min-width: 0; padding: 24px; border: 3px solid #302216; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; box-shadow: inset 2px 2px #a17d50, inset -2px -2px #302216, 0 5px #21170f; color: #fff1da; }
.profile-card h2 { margin: 8px 0 10px; font-size: 21px; overflow-wrap: anywhere; }
.profile-card p { margin: 0 0 18px; color: #e5d2b0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.profile-identity { display: grid; justify-items: start; gap: 4px; min-height: 330px; background: linear-gradient(#3322169e, #332216b8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; }
.profile-identity .profile-avatar { width: 126px; height: 126px; margin-bottom: 16px; object-fit: cover; border: 4px solid #bd985e; background: #30241b; box-shadow: inset 2px 2px #edcb91, 0 5px #21170f; image-rendering: pixelated; }
.profile-identity .kicker { color: #e9c780; }
.profile-uid { padding: 4px 9px; border: 1px solid #b9914d; background: #443923; color: #ffe29a; font-size: 12px; }
.profile-works-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 14px; padding: 7px 11px; border: 2px solid #90754a; background: #483824; color: #f9e1ae; font-size: 12px; font-weight: 800; }
.profile-works-link:hover { background: #604b2b; }
.profile-form { display: grid; gap: 9px; }
.profile-form label { color: #e8dfc2; font-size: 12px; font-weight: 800; }
.profile-control-row { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-control-row input { flex: 1 1 210px; min-width: 0; min-height: 43px; padding: 9px 11px; border: 2px solid #a8875d; background: #30241b; color: #fff4df; font-size: 14px; font-weight: 700; }
.profile-control-row input:focus { outline: 0; border-color: #e9c577; }
.profile-save-button, .profile-file-button { min-height: 43px; padding: 8px 15px; border: 2px solid #3b2919; background: linear-gradient(#ecd499, #b78b4c); box-shadow: inset 1px 1px #fff0bf, inset -1px -1px #75542d, 0 3px #21170f; color: #352412; font-size: 12px; font-weight: 900; white-space: nowrap; }
.profile-file-button { background: #785b39; box-shadow: inset 1px 1px #b49362, inset -1px -1px #3c2b1d, 0 3px #21170f; color: #fff2d5; }
.profile-save-button:hover:not(:disabled), .profile-file-button:hover:not(:disabled) { filter: brightness(1.13); }
.profile-save-button:disabled, .profile-file-button:disabled { opacity: .48; cursor: not-allowed; }
.profile-save-button:focus-visible, .profile-file-button:focus-visible, .profile-works-link:focus-visible { outline: 2px solid #f3d27b; outline-offset: 3px; }
.profile-limit { display: block; margin-top: 14px; color: #efcb7c; font-size: 11px; }
.profile-avatar-editor { display: flex; align-items: center; gap: 16px; }
.profile-avatar-editor > img { width: 94px; height: 94px; object-fit: cover; border: 3px solid #b89562; background: #30241b; image-rendering: pixelated; }
.profile-avatar-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-password-form > input { width: 100%; min-height: 43px; padding: 9px 11px; border: 2px solid #a8875d; background: #30241b; color: #fff4df; font-size: 14px; }
.profile-password-form > input:focus { outline: 0; border-color: #e9c577; }
.profile-password-form > label:not(:first-child) { margin-top: 5px; }
.profile-password-visibility { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin: 4px 0; cursor: pointer; }
.profile-password-visibility input { width: 17px; height: 17px; margin: 0; accent-color: #cda561; }
.profile-password-form .profile-save-button { justify-self: start; margin-top: 4px; }
.profile-password-error { margin: 0 !important; padding: 9px 11px; border: 1px solid #a75b4c; background: #432720; color: #ffe1d9 !important; font-size: 11px !important; }
@media (max-width: 760px) { .profile-layout { grid-template-columns: 1fr; } .profile-identity { min-height: 0; } }
@media (max-width: 520px) { .profile-card { padding: 17px; } .profile-avatar-editor { align-items: flex-start; } .header-actions { gap: 5px; } .account-button { padding: 6px; } .account-button .account-label { max-width: 104px; } .logout-button { min-height: 34px; padding: 5px 7px; font-size: 10px; } }

.global-banner { position: sticky; top: 0; z-index: 40; border-bottom: 4px solid #513915; background: linear-gradient(#ffdf6b, #e9af35); box-shadow: inset 0 2px #fff1a7, 0 3px #111617; color: #352509; }
.global-banner-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 11px; min-height: 43px; padding: 5px 0; font-size: 12px; font-weight: 800; }
.global-banner-inner > img { width: 26px; height: 26px; image-rendering: pixelated; }
.global-banner-inner strong { padding: 3px 7px; border: 2px solid #654417; background: #fff0ae; color: #352509; letter-spacing: .08em; }
.global-banner-inner button:not(.global-banner-close), .global-banner-inner a { min-height: 28px; padding: 3px 8px; border: 2px solid #5b3d13; background: #8f5d20; box-shadow: inset 1px 1px #c79037, 0 2px #3d270d; color: #fff4cc; font-size: 11px; font-weight: 900; }
.global-banner-inner button:hover, .global-banner-inner a:hover { filter: brightness(1.12); }
.global-banner-close { position: absolute; right: 10px; top: 5px; width: 29px; height: 29px; border: 2px solid #55360e; background: #d49c2f; color: #3c290b; font-size: 20px; line-height: 1; }
.notice-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 43px; flex: none; border: 2px solid #70582d; background: #453b2a; box-shadow: inset 1px 1px #8b7446, inset -1px -1px #241e19, 0 2px #101617; }
.notice-button img { width: 30px; height: 30px; image-rendering: pixelated; }
.notice-button:hover, .notice-button:focus-visible { border-color: #f2cc6e; background: #65502d; }
.notice-button span { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border: 1px solid #341a10; background: #e4744a; }
.mailbox-button { background: #705335; border-color: #c49b60; }
.mailbox-button svg { width: 28px; height: 28px; image-rendering: pixelated; }
.mailbox-button:hover, .mailbox-button:focus-visible { background: #906d44; border-color: #f0d49d; }
.mailbox-button span { width: 10px; height: 10px; background: #eac65d; }
.notice-button:focus-visible, .global-banner button:focus-visible, .global-banner a:focus-visible { outline: 2px solid #fff1b7; outline-offset: 3px; }

.announcement-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; padding: 14px 17px; border: 3px solid #302216; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; box-shadow: inset 1px 1px #a17d50, 0 4px #21170f; color: #fff0d4; font-size: 12px; }
.announcement-contacts > strong { color: #f4d27c; white-space: nowrap; }
.announcement-contact { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-left: 13px; border-left: 1px solid #667665; }
.announcement-contact b { color: #fff2ca; font-size: 13px; }
.announcement-contact button, .announcement-contact a { padding: 4px 7px; border: 1px solid #8d7448; background: #493a25; color: #ffe1a3; font-size: 11px; font-weight: 800; }
.announcement-contact button:hover, .announcement-contact a:hover { background: #654c2d; }
.announcement-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: start; gap: 17px; min-height: 440px; }
.announcement-list, .announcement-article { min-width: 0; border: 3px solid #302216; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; box-shadow: inset 2px 2px #a17d50, inset -2px -2px #302216, 0 5px #21170f; }
.announcement-list { display: grid; align-content: start; gap: 4px; min-height: 440px; padding: 12px; color: #c6d1c2; }
.announcement-list-item { position: relative; display: grid; gap: 7px; padding: 14px 42px 14px 12px; border: 2px solid transparent; background: linear-gradient(#24190fd1, #24190fd1), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; }
.announcement-list-item:hover, .announcement-list-item.active { border-color: #e0bf81; background: linear-gradient(#3322168c, #3322168c), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; }
.announcement-list-item strong { overflow: hidden; color: #f4f5e9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.announcement-list-item small { color: #b7c5af; font-size: 10px; }
.announcement-list-item em { position: absolute; top: 11px; right: 8px; padding: 2px 4px; background: #9d6d25; color: #fff0c4; font-size: 10px; font-style: normal; font-weight: 900; }
.announcement-article { min-height: 440px; padding: 30px; color: #edf1e5; }
.announcement-article h2 { margin: 13px 0 10px; font-size: clamp(23px, 2.3vw, 32px); line-height: 1.3; overflow-wrap: anywhere; }
.announcement-article time { display: block; padding-bottom: 18px; border-bottom: 1px solid #58655b; color: #b9c7b5; font-size: 11px; }
.announcement-content { padding-top: 22px; color: #e6ecdf; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.announcement-popup { width: min(610px, calc(100% - 30px)); max-height: min(85vh, 760px); padding: 0; border: 4px solid #302216; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; box-shadow: inset 2px 2px #a17d50, inset -2px -2px #302216, 0 10px #21170f; color: #fff1da; }
.announcement-popup::backdrop { background: #06100cbd; }
.announcement-popup-head { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 6px 12px; border-bottom: 3px solid #573e1a; background: linear-gradient(#e6bd63, #ac7b31); color: #35240e; font-size: 13px; font-weight: 900; }
.announcement-popup-head img { width: 29px; height: 29px; image-rendering: pixelated; }
.announcement-popup-head button { margin-left: auto; width: 28px; height: 28px; border: 2px solid #6c4c1a; background: #f2d581; color: #35240e; font-size: 19px; line-height: 1; }
.announcement-popup-body { max-height: min(60vh, 560px); overflow-y: auto; padding: 25px; }
.announcement-popup-body h2 { margin: 12px 0 17px; font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; }
.announcement-popup-body p { margin: 0; color: #e2e9dc; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement-popup-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 12px 25px 20px; }
.announcement-popup-actions button, .announcement-popup-actions a { min-height: 38px; padding: 8px 13px; border: 2px solid #302216; background: #785b39; box-shadow: inset 1px 1px #b49362, 0 2px #21170f; color: #fff2d5; font-size: 12px; font-weight: 900; }
.announcement-popup-actions a { background: linear-gradient(#e2c06d, #ae8139); color: #33250f; }
@media (max-width: 760px) { .announcement-layout { grid-template-columns: 1fr; } .announcement-list { display: flex; min-height: 0; overflow-x: auto; } .announcement-list-item { min-width: 180px; } .announcement-article { min-height: 320px; } .global-banner-inner { padding-right: 34px; font-size: 11px; } }
@media (max-width: 520px) { .notice-button { width: 35px; height: 35px; } .notice-button img { width: 25px; height: 25px; } .announcement-article { padding: 19px; } .announcement-popup-body { padding: 18px; } .announcement-popup-actions { padding: 10px 18px 18px; } }
.mail-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; color: #c5d5c9; font-size: 12px; }
.mail-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-toolbar button, .mail-pagination button, .mail-send { min-height: 38px; padding: 8px 14px; border: 2px solid #111918; background: linear-gradient(#e8c979,#ac7e36); box-shadow: inset 1px 1px #ffebaa,0 3px #101617; color: #34270f; font-size: 12px; font-weight: 900; }
.mail-toolbar button:hover, .mail-pagination button:hover:not(:disabled), .mail-send:hover:not(:disabled) { filter: brightness(1.1); }
.mail-toolbar #mailRefresh { background: #785b39; color: #fff0d4; box-shadow: inset 1px 1px #b49362,0 3px #21170f; }
.mail-layout { display: grid; grid-template-columns: minmax(240px,310px) minmax(0,1fr); gap: 16px; align-items: start; }
.mail-list, .mail-paper { min-width: 0; min-height: 480px; border: 3px solid #302216; background: linear-gradient(#332216a8, #332216a8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; box-shadow: inset 2px 2px #a17d50,0 4px #21170f; }
.mail-list { display: grid; align-content: start; gap: 6px; padding: 12px; }
.mail-list > p, #mailEmpty { margin: 0; padding: 25px; color: #cad9cc; }
.mail-list-item { display: grid; gap: 7px; width: 100%; padding: 12px; border: 2px solid transparent; background: linear-gradient(#24190fd1, #24190fd1), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; text-align: left; color: #fff1da; }
.mail-list-item:hover, .mail-list-item.active { border-color: #e0bf81; background: linear-gradient(#3322168c, #3322168c), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; }
.mail-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mail-list-item small, .mail-thread-head small { color: #e2cda8; font-size: 11px; }
.mail-list-item span { overflow: hidden; color: #f0dfbf; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mail-list-item em, .mail-status { justify-self: start; padding: 3px 6px; border: 1px solid #8a7140; background: #69552d; color: #ffebae; font-size: 10px; font-style: normal; font-weight: 900; }
.mail-list-item em.is-reviewed, .mail-status.is-reviewed { border-color: #77c884; background: #315e3d; color: #dcffe3; }
.mail-list-item em.is-unreviewed, .mail-status.is-unreviewed { border-color: #e2b95c; background: #71582a; color: #fff1b7; }
.mail-list-item em.mail-unread { border-color: #7cc88d; background: #315e40; color: #d3ffe0; }
.mail-paper { padding: 24px; }
.mail-paper h2 { margin: 9px 0 18px; font-size: 24px; overflow-wrap: anywhere; }
.mail-paper form label, .mail-reply-form label { display: grid; gap: 7px; margin-bottom: 16px; color: #f1ecd9; font-size: 12px; font-weight: 800; }
.mail-paper form label small { color: #aabcb2; font-weight: 400; }
.mail-paper input, .mail-paper textarea, .mail-reply-form textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 2px solid #302216; background: #30241b; color: #fff4df; font: inherit; font-size: 13px; resize: vertical; }
.mail-paper input:focus, .mail-paper textarea:focus, .mail-reply-form textarea:focus { outline: 2px solid #caa95d; outline-offset: 1px; }
.mail-thread-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; border-bottom: 1px solid #a8875d; padding-bottom: 16px; }
.mail-thread-head h2 { margin-bottom: 5px; }
.mail-messages { display: grid; gap: 13px; padding: 21px 0; }
.mail-message { width: min(85%,640px); padding: 13px 15px; border: 2px solid #b48d60; background: linear-gradient(#332216b8, #332216b8), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; color: #fff1da; }
.mail-message.is-self { justify-self: end; border-color: #998047; background: linear-gradient(#24190fc9, #24190fc9), url('/assets/oak-planks.svg?v=cc70edd2') repeat; background-size: auto, 96px 96px; }
.mail-message header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; color: #f8d88b; font-size: 11px; font-weight: 900; }
.mail-message time { color: #c3cabb; font-weight: 400; }
.mail-message p { margin: 10px 0 0; color: #f0f2e8; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.mail-reply-form { padding-top: 17px; border-top: 1px solid #a8875d; }
.mail-error { margin: 0 0 10px; color: #ffd8cd; font-size: 12px; }
.mail-pagination { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 14px; color: #d3dccf; font-size: 11px; }
.mail-pagination button { min-height: 32px; padding: 5px 10px; background: #785b39; color: #fff0d4; }
.mail-pagination button:disabled, .mail-send:disabled { opacity: .55; cursor: default; }
@media (max-width: 760px) { .mail-layout { grid-template-columns: 1fr; } .mail-list { min-height: 0; max-height: 250px; overflow: auto; } .mail-paper { min-height: 350px; } }
@media (max-width: 520px) { .mail-paper { padding: 17px; } .mail-message { width: 96%; } .mailbox-button svg { width: 24px; height: 24px; } }

.order-number-row { position:relative; z-index:2; display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:fit-content; max-width:100%; font-size:14px; }
.order-number-row span { user-select:text; overflow-wrap:anywhere; }
.order-number-copy { padding:3px 7px; font:inherit; color:inherit; background:transparent; border:1px solid currentColor; cursor:pointer; }
.order-number-copy:hover { opacity:.8; }

.preview-task-picker {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px;padding:9px;border:2px solid #927346;background:#29251e;color:#ffe8a6;}
.preview-task-picker[hidden] {display:none;}
.preview-task-picker label {font-size:13px;font-weight:800;}
.preview-task-picker select {flex:1;min-width:0;max-width:100%;width:180px;padding:7px;background:#fff4da;color:#302516;border:2px solid #a88751;font:inherit;font-size:13px;}

.banner-group-reward { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.banner-group-reward[hidden] { display: none; }
.global-banner .banner-reward-badge {
  position: relative; display: inline-flex; align-items: center; gap: 5px; overflow: hidden;
  padding: 4px 10px; border: 2px solid #74480e; color: #3b2508;
  background: linear-gradient(115deg, #fff2b6, #ffd15e 45%, #edb23b 75%, #ffe8a0);
  box-shadow: inset 1px 1px #fff8d4, inset -1px -1px #b97719, 0 2px #765019;
}
.banner-reward-badge b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.banner-reward-badge .pixel-icon { width: 18px; height: 18px; }
.banner-reward-badge::after {
  content: ''; pointer-events: none; position: absolute; inset: -12px auto -12px -75%; width: 45%;
  background: linear-gradient(90deg, transparent, #fffbeabf, transparent);
  transform: skewX(-22deg); animation: banner-reward-shine 3.6s ease-in-out infinite;
}
@keyframes banner-reward-shine { 0%, 35% { left: -75%; } 75%, 100% { left: 145%; } }
@media (prefers-reduced-motion: reduce) { .banner-reward-badge::after { animation: none; display: none; } }

/* Keep the paid action inside the description field, with readable solid colors. */
.prompt-editor { position: relative; }
.prompt-editor textarea { display: block; width: 100%; }
#creator .prompt-editor textarea { padding-bottom: 54px; }
.prompt-clear-button { flex-shrink: 0; min-height: 34px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#creator .prompt-clear-button { position: absolute; right: 10px; bottom: 10px; z-index: 1; }
.prompt-editor.has-optimizer textarea { padding-bottom: 54px; min-height: 180px; }
#creator .prompt-editor .prompt-optimize-button { position: absolute; bottom: 10px; left: 10px; display: flex; flex-direction: row; min-height: 32px; width: auto; max-width: calc(100% - 20px); z-index: 1; }
.prompt-editor .prompt-optimize-button[hidden] { display: none; }
#creator #optimizePrompt .choice-main { color: #fff; background: #3b682d; padding: 4px 8px; font-size: 14px; line-height: 20px; }
#creator #optimizePrompt .choice-price { color: #fff0b1; background: #263f23; border-top: 0; border-left: 2px solid #182a16; padding: 4px 7px; font-size: 14px; line-height: 20px; gap: 4px; }
#creator #optimizePrompt .pixel-icon { width: 14px; height: 14px; }
#optimizePrompt .choice-price :is(span, b) { color: #fff0b1; }

/* Studio typography is shared by every theme. Keep supporting copy readable
   instead of shrinking labels to preserve a fixed number of columns. */
#creator { font-size: 16px; }
#creator :is(.optional-note, .input-label > span, .creation-option-label small,
  .preset-row > span, .preset-row button, .upload-zone small, .cost-note small,
  .generation-note, .pricing-loading, .adaptive-refund-hint,
  .preview-placeholder small, .preview-foot, .preview-foot small,
  .preview-progress-kicker, .preview-progress-stage, .preview-progress-meta,
  .preview-progress-action, .preview-controls, .preview-controls kbd,
  .preview-slice-panel, .preview-slice-panel button) {
  font-size: 15px;
  line-height: 1.65;
}
#creator :is(.input-label, .creation-option-label strong, .upload-zone strong,
  .cost-note strong, .choice-main, .buy-points-button) { font-size: 16px; line-height: 1.5; }
#creator :is(.preview-placeholder strong, .generate-button-copy strong) { font-size: 18px; line-height: 1.5; }
#creator textarea { font-size: 16px; line-height: 1.8; min-height: 170px; }
#creator .prompt-editor.has-optimizer textarea { min-height: 210px; padding-bottom: 54px; }
@media (max-width: 400px) {
  #creator .prompt-editor.has-optimizer textarea { padding-bottom: 96px; }
  #creator .prompt-editor.has-optimizer .prompt-optimize-button { bottom: 54px; }
}
#creator :is(.creator-top, .creator-top-actions, .input-label, .creator-bottom, .preview-head, .preview-foot) { flex-wrap: wrap; }
#creator .creator-top { gap: 10px; }
#creator .creator-top-actions { gap: 10px; }
#creator .input-label { row-gap: 6px; }
#creator .creation-option-label small { flex: 1 1 100%; }
#creator .creation-options { gap: 22px; }
#creator .creation-option-row { gap: 12px; }
#creator .preset-row { gap: 10px; }
#creator .preset-row button { padding: 7px 11px; }
#creator .upload-zone { padding: 16px; gap: 12px; }
#creator .upload-zone small { overflow: visible; overflow-wrap: anywhere; }
#creator :is(.creation-step, .generate-step) { font-size: 14px; min-width: 29px; min-height: 27px; }
#creator #plotChoices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 10px; }
#creator .choice-button { min-height: 48px; }
#creator .choice-price { font-size: 15px; line-height: 1.5; }
#creator .choice-main { padding: 10px; }
#creator .choice-price { padding: 8px; }
#creator .creator-actions { min-width: min(100%, 300px); }
#creator .cost-note strong b { font-size: 24px; }
#creator .generate-button-copy small { font-size: 14px; line-height: 1.5; flex-wrap: wrap; }
#creator .generate-button { min-height: 80px; }
#creator .buy-points-button { min-height: 44px; }
#creator :is(.preview-expand, .tutorial-trigger) { font-size: 14px; line-height: 1.5; min-height: 38px; padding: 8px 11px; }
#creator .preview-head { gap: 12px; }
#creator .preview-head > div:first-child { flex: 1 0 160px; }
#creator .preview-head-actions { flex-wrap: wrap; }
#creator #previewTitle { font-size: 24px; white-space: nowrap; }
#creator .preview-kicker { font-size: 13px; }
#creator .preview-placeholder small { max-width: 300px; }
#creator .preview-progress strong { font-size: 20px; line-height: 1.4; }
#creator #previewTaskPicker :is(label, select) { font-size: 15px; }
#creator .preview-foot { row-gap: 6px; }
#creator .immersive-preview-copy small { font-size: 12px; }
#creator .immersive-preview-copy strong { font-size: 15px; }
@media (max-width: 560px) {
  #creator .creator-top-actions { width: 100%; justify-content: space-between; }
  #creator .creator-actions { width: 100%; }
  #creator :is(#plotChoices, .image-choices) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #creator :is(#plotChoices, .image-choices) .choice-button { min-width: 0; flex-direction: column; }
  #creator :is(#plotChoices, .image-choices) .choice-main { padding: 8px 6px; gap: 4px; }
  #creator :is(#plotChoices, .image-choices) .choice-price { border-left: 0; border-top: 1px solid currentColor; padding: 5px 7px; }
  #creator .preview-head-actions { justify-content: flex-start; }
  #creator .preview-foot small { margin-left: 0; }
}
@media (max-width: 360px) {
  #creator :is(#plotChoices, .image-choices) { grid-template-columns: 1fr; }
}

/* The studio viewport keeps its own proportions regardless of form height. */
.preview-card > .preview-stage:not(:has(> #previewImage:not([hidden]))) {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
}

/* Inline screenshots own their height. The fixed interactive viewport is only
   needed for the placeholder and 3D canvas; contain must not leave grid bands. */
.preview-stage:not(.preview-stage-large):has(> :is(#previewImage, #detailImage):not([hidden])) {
  display: block;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
}
.preview-stage:not(.preview-stage-large) > :is(#previewImage, #detailImage):not([hidden]) {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto 4 / 3;
  object-fit: contain;
}

/* Compact gallery toolbar; inputs stay opaque over every theme texture. */
.gallery-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}
.gallery-sort-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-toolbar .filter { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.gallery-toolbar select {
  width: auto;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 6px;
  border: 1px solid var(--theme-edge-light);
  background: var(--theme-field-background, #1d2924);
  color: var(--theme-ink);
  font: inherit;
  font-size: 14px;
  border-radius: 0;
}
.gallery-search-input {
  display: flex;
  align-items: stretch;
  width: 220px;
  min-width: 0;
  border: 1px solid var(--theme-edge-light);
  background: var(--theme-field-background, #1d2924);
  color: var(--theme-ink);
}
.gallery-search-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
}
.gallery-search-input input::placeholder { color: var(--theme-muted-ink); opacity: 1; }
.gallery-search-input .gallery-search-submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.gallery-search-submit svg { display: block; width: 20px; height: 20px; }
.gallery-search-submit:hover { background: var(--theme-selected-background, #35483e); }
.gallery-toolbar :is(input, select, button):focus-visible,
.gallery-results-head button:focus-visible { outline: 2px solid #ce9237; outline-offset: 2px; }
.gallery-results-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gallery-result-summary {
  max-width: 100%;
  margin: 0;
  padding: 5px 8px;
  background: var(--theme-field-background, var(--theme-inset-background));
  color: var(--theme-muted-ink);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.gallery-results-head #galleryFilterReset {
  padding: 5px 8px;
  border: 0;
  background: var(--theme-field-background, var(--theme-inset-background));
  color: var(--theme-ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gallery-result-summary:empty, .gallery-results-head #galleryFilterReset:disabled { display: none; }
@media (max-width: 600px) {
  .gallery-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .gallery-sort-controls { grid-column: 1 / -1; }
  .gallery-toolbar .filter { padding-inline: 9px; }
  .gallery-search-input { width: 100%; }
  .gallery-search-input input { font-size: 16px; }
}
/* Card purchases use external links; redemption remains a separate panel. */
.shop-hero { display: grid; grid-template-columns: 94px minmax(0,1fr) auto; grid-template-areas: "player copy balance" "player member balance"; column-gap: 24px; row-gap: 6px; padding: 22px 28px; min-height: 174px; margin-bottom: 24px; }
.shop-hero .wallet-copy { grid-area: copy; min-width: 0; align-self: end; }
.shop-hero .wallet-copy h2 { margin: 5px 0 0; }
.shop-hero .wallet-level { display: flex; align-items: center; gap: 7px; }
.wallet-level .member-badge { max-width: 100%; min-width: 0; padding: 2px 7px; border: 2px solid var(--member-frame, #a5aaa9); background: #f7e8c2; color: #49321a; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.wallet-player .member-portrait { margin-top: 0; }
.shop-hero > strong { grid-area: balance; align-self: center; }
.shop-hero #walletMembership { grid-area: member; align-self: start; margin: 0; }
.shop-hero .wallet-player { grid-area: player; position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; text-align: center; text-decoration: none; }
.wallet-player span { max-width: 130px; font-size: 15px; font-weight: 800; letter-spacing: normal; overflow-wrap: anywhere; }
.wallet-player #walletName { min-width: 0; max-width: 100%; }
.member-avatar, .member-portrait { --member-frame: #a5aaa9; --member-highlight: #e1e5df; }
.member-avatar { border: 5px solid var(--member-frame) !important; box-shadow: 0 0 0 2px #493523, inset 0 0 0 2px var(--member-highlight); padding: 3px; background: #2b2723; object-fit: cover; }
:is(.member-avatar,.member-portrait,.member-badge)[data-frame="copper"] { --member-frame: #b97443; --member-highlight: #f4c189; }
:is(.member-avatar,.member-portrait,.member-badge)[data-frame="emerald"] { --member-frame: #279564; --member-highlight: #b6e998; }
:is(.member-avatar,.member-portrait,.member-badge)[data-frame="gold"] { --member-frame: #cca12c; --member-highlight: #fff3a9; }
:is(.member-avatar,.member-portrait,.member-badge)[data-frame="diamond"] { --member-frame: #36aeb9; --member-highlight: #dbffff; }
:is(.member-avatar,.member-portrait,.member-badge)[data-frame="amethyst"] { --member-frame: #9273c9; --member-highlight: #ecd4ff; }
.member-portrait { position: relative; display: inline-block; width: max-content; margin-top: 9px; line-height: 0; }
.member-portrait .member-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); max-width: calc(100% + 28px); padding: 2px 7px; border: 2px solid var(--member-frame); background: #f7e8c2; color: #49321a; font-size: 13px; line-height: 1.3; letter-spacing: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-badge[hidden] { display: none; }
.profile-portrait { margin-bottom: 16px; }
.profile-identity .profile-portrait .profile-avatar { margin-bottom: 0; }
.wallet-player .member-avatar { width: 84px; height: 84px; }
.membership-summary { margin: 10px 0; font-size: 14px; line-height: 1.5; }
.membership-summary[hidden] { display: none; }
.membership-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.shop-hero .membership-facts > span { font-size: 14px; letter-spacing: normal; }
.membership-summary p { margin: 5px 0 !important; font-size: 13px !important; }
.membership-tiers { margin-bottom: 24px; padding: 15px 20px; }
.membership-tiers summary { cursor: pointer; font-weight: 800; }
.membership-tiers p { font-size: 14px; line-height: 1.7; }
.membership-table-wrap { overflow-x: auto; }
.membership-tiers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.membership-tiers :is(th,td) { text-align: left; padding: 10px; border-bottom: 1px solid #b69962; }
.membership-tiers tr[aria-current] { background: #54844022; font-weight: 800; }
.membership-saving { font-size: 14px; line-height: 1.6; }
@media(max-width:640px) {
  .shop-hero { grid-template-columns: 72px minmax(0,1fr); grid-template-areas: "player copy" "player balance" "member member"; gap: 10px 16px; padding: 18px; min-height: 0; }
  .shop-hero > strong { justify-self: start; padding: 9px 12px; font-size: 32px; }
  .shop-hero .shop-balance-icon { width: 26px; height: 26px; margin-right: 2px; }
  .shop-hero .wallet-player { min-width: 0; }
  .shop-hero .wallet-copy h2 { font-size: 21px; margin: 5px 0 0; }
  .wallet-player .member-avatar { width: 72px; height: 72px; }
  .shop-hero:has(.wallet-long-balance) { grid-template-areas: "player copy" "balance balance" "member member"; }
  .shop-hero .wallet-long-balance { font-size: 24px; }
}
@font-face {
  font-family: 'Workshop Pixel Digits';
  src: url('/assets/voucher-pixel-digits.woff2?v=cc70edd2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+002C, U+0030-0039;
}
.shop-grid { align-items: start; }
.shop-purchase-column { display: grid; gap: 20px; min-width: 0; }
.shop-purchase-column[hidden], #voucherCardsPanel[hidden] { display: none; }
.voucher-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; align-items: start; }
.voucher-product {
  display: block; container-type: inline-size; width: 100%; max-width: 380px; min-width: 0; justify-self: center;
  border: 18px solid #be8840; border-image: url('/assets/voucher-ticket-frame.webp?v=cc70edd2') 52 fill / 18px / 0 stretch;
  background: #fff3d7; color: #563013; font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif; text-decoration: none; box-shadow: 0 4px 10px #613b1a20;
  transition: transform .15s, box-shadow .15s;
}
.voucher-product:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #613b1a38; }
.voucher-product:focus-visible { outline: 3px solid #9a5017; outline-offset: 4px; }
.voucher-product-art { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
#voucherCards .voucher-card-brand {
  display: flex; align-items: center; gap: 7px; margin: 10px 12px 12px; color: #4c2c15;
  font-size: 16px; font-weight: 800; text-shadow: none;
}
.voucher-card-brand .pixel-icon { width: 23px; height: 23px; flex: none; }
.voucher-card-brand .action-logo { object-fit: contain; image-rendering: auto; }
.voucher-card-denomination { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 0 8px; min-width: 0; }
#voucherCards .voucher-card-denomination strong {
  min-width: 0; color: #227343; font-family: 'Arial Black', 'Microsoft YaHei', Arial, sans-serif; font-weight: 900;
  font-size: clamp(34px, 19cqi, 66px); line-height: 1.15; letter-spacing: -2px;
  text-shadow: none; overflow-wrap: anywhere;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  #voucherCards .voucher-card-denomination strong {
    background: linear-gradient(110deg, #227343 42%, #5ca76c 47%, #dbefba 50%, #5ca76c 53%, #227343 58%) 100% 0 / 300% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: voucher-points-shine 6s ease-in-out infinite;
  }
}
@keyframes voucher-points-shine {
  0%, 65% { background-position: 100% 0; }
  90%, 100% { background-position: 0% 0; }
}
#voucherCards .voucher-card-denomination strong.voucher-card-long-value { font-size: clamp(23px, 9cqi, 34px); letter-spacing: -1px; }
#voucherCards .voucher-card-denomination strong[data-font="pixel"] {
  font-family: 'Workshop Pixel Digits', monospace; letter-spacing: 0;
}
#voucherCards .voucher-card-denomination span { color: #5c3416; font-size: 18px; font-weight: 800; flex: none; }
#voucherCards .voucher-card-title {
  align-self: center; margin: 8px 20px 0; padding: 8px 20px 0; border-top: 1px solid #ce9a58;
  color: #553019; font-size: 16px; font-weight: 800; letter-spacing: 2px;
}
.voucher-product-art .voucher-card-cover { display: block; width: 100%; aspect-ratio: 1.714; height: auto; object-fit: contain; margin: 6px 0 0; mix-blend-mode: multiply; }
.voucher-ticket-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 14px 10px 12px; border-top: 2px dashed #c69050; }
.voucher-ticket-price-group { min-width: 0; }
#voucherCards .voucher-ticket-price-group small { display: block; color: #795330; font-size: 13px; margin-bottom: 4px; text-shadow: none; }
#voucherCards .voucher-product-price { display: block; color: #227343; font-size: clamp(30px, 13cqi, 44px); font-weight: 900; line-height: 1.2; letter-spacing: -1px; overflow-wrap: anywhere; text-shadow: none; }
#voucherCards .voucher-product-price.voucher-price-long { font-size: clamp(22px, 8cqi, 28px); letter-spacing: -.8px; }
#voucherCards .voucher-product-action {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px;
  border: 3px double #c8cf9c; background: #285c36; color: #fff6df; font-size: 15px; font-weight: 800; white-space: nowrap;
  box-shadow: inset 1px 1px #4b8051, inset -1px -1px #173b23, 0 2px #173b23; text-shadow: 0 1px #173b23;
}
#voucherCards .voucher-product:hover .voucher-product-action { background: #347245; }
@media (max-width: 520px) { .voucher-card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .voucher-product { transition: none; }
  .voucher-product:hover { transform: none; }
  #voucherCards .voucher-card-denomination strong { animation: none; background: none; color: #227343; }
}
