body { display: flex; flex-direction: column; }
main { flex: 1; }

.player-chip { max-width: 220px; }
.player-chip .avatar { width: 32px; height: 32px; border: 2px solid #000; }
.chip-text { display: flex; flex-direction: column; min-width: 0; }
.chip-text .nav-small, .chip-text .nav-big { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-chip.empty svg { color: var(--highlight); }

.search { flex: 1 1 auto; display: flex; min-width: 0; height: 44px; border: 2px solid #000; }
.search:focus-within { outline: 3px solid var(--highlight); outline-offset: 1px; }
.search input, .search input:focus-visible {
  flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0 12px;
  background: #f0f0f0; color: #111; border: none; outline: none;
  box-shadow: inset 2px 2px 0 #8b8b8b;
}
.search input::placeholder { color: #6b6b6b; }
.search-button {
  flex-shrink: 0; width: 52px; display: grid; place-items: center; cursor: pointer;
  background: #e8b923; color: #2a1d00; border: none; border-left: 2px solid #000;
  box-shadow: inset 2px 2px 0 #ffe27a, inset -2px -2px 0 #9c7a10;
}
.search-button:hover { background: #f2c935; }
.search-icon { display: inline-flex; }

.duty-pill {
  display: none; align-items: center; gap: 8px; padding: 6px 10px;
  font-size: 0.8rem; font-weight: 700; border: 2px solid; flex-shrink: 0;
}
.duty-pill::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.duty-pill.on { color: #7ddf55; background: rgba(93, 155, 58, 0.18); border-color: #5d9b3a; }
.duty-pill.on::before { animation: blink 1.2s steps(2, jump-none) infinite; }
.duty-pill.off { color: #ffb547; background: rgba(255, 170, 0, 0.12); border-color: #a86f00; }
@keyframes blink { 50% { opacity: 0.25; } }
@media (min-width: 1100px) { .duty-pill:not([hidden]) { display: inline-flex; } }

.cart-button { gap: 4px; align-items: flex-end; }
.cart-icon { position: relative; display: inline-flex; padding-top: 10px; }
.cart-icon svg { width: 30px; height: 30px; }
.cart-icon .badge {
  position: absolute; top: -2px; left: 50%; transform: translateX(-35%);
  min-width: 22px; height: 20px; padding: 0 4px;
  background: none; color: var(--gold); font-size: 1rem; font-weight: 700; text-shadow: 2px 2px 0 #000;
}
.cart-label { padding-bottom: 3px; }
.badge.bump { animation: bump 0.3s steps(3); }
@keyframes bump { 50% { transform: translateX(-35%) scale(1.35); } }

@media (max-width: 1180px) { .nav-special { display: none; } }
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
  .search { order: 10; flex-basis: 100%; }
  .nav-orders, .nav-special { display: none; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.1rem; }
  .player-chip .chip-text { display: none; }
  .cart-label { display: none; }
}

.subnav-tagline { margin: 0; font-size: 0.85rem; color: #d6d6d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
@media (max-width: 860px) { .subnav-tagline { display: none; } }

.search .search-scope, .search .search-scope:focus-visible {
  flex: 0 0 auto; width: auto; max-width: 150px; height: 100%; min-height: 0; padding: 0 6px 0 10px;
  background: #e3e3e3; color: #222; border: none; border-right: 2px solid #000; outline: none;
  font-size: 0.85rem; cursor: pointer; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #9a9a9a;
}
.search .search-scope:hover { background: #d2d2d2; }
@media (max-width: 520px) { .search .search-scope { display: none; } }

.shop-main .banner { margin: 16px 0 0; }

.hero {
  position: relative; overflow: hidden; margin: 0 -16px; min-height: 360px;
  background: linear-gradient(#5f9ff5 0 22%, #6eaaf8 22% 44%, #7fb6fa 44% 66%, #92c2fc 66%);
}
@media (min-width: 720px) { .hero { margin: 0 -20px; } }
.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.hero-scene::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background:
    repeating-linear-gradient(90deg, #6aad3d 0 12px, #559230 12px 24px, #7bbf48 24px 32px, #4f8a30 32px 40px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #866043 0 16px, #6e4d34 16px 28px, #93694a 28px 44px, #5a3e29 44px 52px) 0 14px / 100% 100% no-repeat;
}
.hero-scene::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 156px;
  background: linear-gradient(transparent 0 15%, color-mix(in srgb, var(--page) 35%, transparent) 15% 35%,
    color-mix(in srgb, var(--page) 70%, transparent) 35% 55%, var(--page) 55%);
}
:root[data-theme="dark"] .hero { background: linear-gradient(#0d1430 0 22%, #121b3d 22% 44%, #18234b 44% 66%, #1e2b58 66%); }
:root[data-theme="dark"] .hero-sun { background: #e9e4c8; border-color: #b9b39a; box-shadow: inset -14px -10px 0 #c9c3a6, 0 0 0 8px rgba(233, 228, 200, 0.12); }
:root[data-theme="dark"] .hero-cloud, :root[data-theme="dark"] .hero-cloud::before { background: #3a4466; }
:root[data-theme="dark"] .hero-cloud { box-shadow: 0 6px 0 #2c3452; }
.hero-sun {
  position: absolute; top: 34px; right: 9%; width: 64px; height: 64px;
  background: #fff7a8; border: 4px solid #f2d23c; box-shadow: 0 0 0 8px rgba(255, 247, 168, 0.35);
}
.hero-cloud { position: absolute; height: 24px; background: #fff; box-shadow: 0 6px 0 #e2ecf7; }
.hero-cloud::before { content: ""; position: absolute; left: 25%; top: -16px; width: 45%; height: 16px; background: #fff; }
.hero-cloud-1 { top: 60px; left: 52%; width: 150px; animation: cloud-drift 90s steps(90) infinite; }
.hero-cloud-2 { top: 128px; left: 74%; width: 96px; animation: cloud-drift 70s steps(70) infinite reverse; }
@keyframes cloud-drift { 50% { transform: translateX(-120px); } }
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 40px 28px 170px; }
.hero-kicker { margin: 0 0 2px; color: #ffe066; font-weight: 700; text-shadow: 2px 2px 0 #1d3b6b; }
.hero-title {
  margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); color: #fff;
  text-shadow: 3px 3px 0 #1d3b6b; overflow-wrap: anywhere;
}
.hero-text { margin: 0 0 18px; font-size: 1.1rem; color: #fff; text-shadow: 2px 2px 0 #1d3b6b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #fff; font-size: 0.92rem; text-shadow: 2px 2px 0 #1d3b6b; }
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; background: #7ddf55; border: 2px solid #1d3b6b; }
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero-content { padding: 28px 18px 120px; }
  .hero-sun { width: 44px; height: 44px; top: 20px; }
  .hero-cloud-1 { left: 60%; width: 100px; }
  .hero-cloud-2 { display: none; }
}

.home-cards {
  position: relative; z-index: 1; display: grid; gap: 16px; margin: 16px 0 20px;
  grid-template-columns: 1fr;
}
.hero + .home-cards { margin-top: -130px; }
@media (max-width: 720px) { .hero + .home-cards { margin-top: -80px; } }
@media (min-width: 560px) { .home-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .home-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .home-cards { grid-template-columns: repeat(4, 1fr); } }
.home-card {
  display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 14px;
  background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow);
}
.home-card-title { margin: 0 0 12px; font-size: 1.25rem; color: var(--ink); overflow-wrap: anywhere; }
.home-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.home-tile, .light-area a.home-tile {
  min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 0;
  background: none; border: none; color: var(--ink-2); font: inherit; text-align: left; text-decoration: none;
}
.home-tile-slot {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 16%;
  background: var(--slot); box-shadow: var(--slot-bevel);
}
.home-tile-slot .item-icon, .home-tile-slot .icon-placeholder { filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3)); }
.home-tile-slot .model3d { overflow: visible; }
.home-tile:hover .home-tile-slot { background: #a5a5a5; }
.home-tile:hover .home-tile-name { color: var(--link-hover); text-decoration: underline; }
.home-tile-name { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tile-deal {
  position: absolute; left: 4px; bottom: 4px; padding: 0 4px; font-size: 0.72rem; font-weight: 700;
  background: #b3261e; color: #fff; border: 2px solid #000;
}
.home-card-link {
  margin-top: auto; padding: 14px 0 0; align-self: flex-start;
  background: none; border: none; color: var(--link); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.home-card-link:hover { color: var(--link-hover); text-decoration: underline; }

.shelf { margin: 0 0 20px; padding: 14px 18px 8px; background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; font-size: 1.3rem; color: var(--ink); }
.shelf-sub { font-size: 0.9rem; color: var(--ink-3); }
.shelf-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-color: #8b8b8b #e4e4e4; }
.shelf-item, .light-area a.shelf-item {
  position: relative; flex: 0 0 160px; display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: none; border: 2px solid transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none;
}
.shelf-item:hover { border-color: #000; }
.shelf-item:hover .shelf-name { color: var(--link-hover); text-decoration: underline; }
.rank-badge {
  position: absolute; top: 6px; left: 6px; z-index: 1; padding: 1px 6px; font-size: 0.8rem; font-weight: 700;
  background: #e8740c; color: #fff; border: 2px solid #000; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}
.shelf-slot { display: grid; place-items: center; aspect-ratio: 1; padding: 20%; background: var(--slot); box-shadow: var(--slot-bevel); }
.shelf-name { font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-item .price-whole { font-size: 1.3rem; }
.shelf-sold { font-size: 0.78rem; color: var(--ink-3); }

.results-layout { display: grid; gap: 14px; margin-top: 16px; scroll-margin-top: 130px; }
@media (min-width: 900px) { .results-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 18px; } }
.results-main { min-width: 0; }

.filter-sidebar { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group { display: contents; }
.filter-title, .filter-group-categories { display: none; }
.filter-toggle {
  height: 34px; padding: 0 10px; font: inherit; font-size: 0.88rem; cursor: pointer;
  background: var(--box-2); color: var(--ink); border: 2px solid #000; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #a0a0a0;
}
.filter-toggle:hover { background: var(--box); }
.filter-toggle[aria-pressed="true"] { background: #e8b923; color: #2a1d00; box-shadow: inset 2px 2px 0 #ffe27a, inset -2px -2px 0 #9c7a10; }

@media (min-width: 900px) {
  .filter-sidebar { display: block; padding: 14px 16px; background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow); }
  .filter-group { display: block; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
  .filter-group:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
  .filter-title { display: block; margin: 0 0 6px; font-size: 0.98rem; color: var(--ink); }
  .filter-group-categories { display: block; }
  .filter-sidebar .filter-toggle {
    display: flex; align-items: center; gap: 8px; width: 100%; height: auto; padding: 3px 0;
    background: none; border: none; box-shadow: none; color: var(--ink-2); text-align: left; font-size: 0.9rem;
  }
  .filter-sidebar .filter-toggle::before {
    content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0;
    font-size: 0.8rem; line-height: 1; color: transparent;
    background: var(--box); border: 2px solid #000; box-shadow: inset 2px 2px 0 #c4c4c4;
  }
  .filter-sidebar .filter-toggle:hover { color: var(--link-hover); }
  .filter-sidebar .filter-toggle[aria-pressed="true"] { background: none; box-shadow: none; color: var(--ink); font-weight: 700; }
  .filter-sidebar .filter-toggle[aria-pressed="true"]::before { color: #2a1d00; background: #e8b923; box-shadow: inset 2px 2px 0 #ffe27a, inset -2px -2px 0 #9c7a10; }
}
.filter-links { display: grid; }
.filter-link {
  display: block; width: 100%; padding: 3px 0; background: none; border: none;
  color: var(--ink-2); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer;
}
.filter-link:hover { color: var(--link-hover); text-decoration: underline; }
.filter-link[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.filter-link[aria-pressed="true"]::before { content: "› "; color: #e8740c; }

.results-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 14px; padding: 10px 14px; background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow);
}
.result-info { margin: 0; min-height: 1.3em; font-size: 0.98rem; color: var(--ink); }
.result-query { color: var(--link-hover); }
.sort-box { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; font-weight: 400; color: var(--ink-2); }
.sort-box select { width: auto; min-height: 34px; padding: 2px 8px; }

.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); padding-bottom: 40px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.product-grid > .empty-state { grid-column: 1 / -1; }

.product-card {
  min-width: 0; display: flex; flex-direction: column; color: var(--ink);
  background: var(--box); border: 2px solid #000;
  box-shadow: var(--panel-shadow);
}
.product-card:hover { outline: 3px solid #e8b923; outline-offset: 0; }
.media-link { display: grid; place-items: center; width: 100%; height: 100%; }
.product-card .product-name a:not(.btn) { color: #3478d4; text-decoration: none; }
.product-card .product-name a:not(.btn):hover { color: #e8740c; text-decoration: underline; }
.product-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  margin: 10px 10px 0; padding: 16px;
  background: var(--slot); box-shadow: var(--slot-bevel);
}
.product-media .item-icon, .product-media .icon-placeholder { width: 80px; height: 80px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3)); }
.product-media .model3d { width: 120px; height: 120px; max-width: 100%; max-height: 100%; }
.product-media .icon-placeholder { color: #5a5a5a; }
.product-card:hover .product-media .item-icon { transform: translateY(-3px); }
.media-tags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bestseller-badge {
  padding: 2px 8px; font-size: 0.78rem; font-weight: 700;
  background: #e8740c; color: #fff; border: 2px solid #000; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}
.product-body { padding: 10px 12px 4px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 2px; }
.product-name { font-size: 1.08rem; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; color: var(--ink); }
.product-desc { font-size: 0.85rem; color: var(--ink-3); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sold-count { margin: 0 0 6px; font-size: 0.8rem; color: var(--ink-3); }
.price-block { margin-top: auto; }
.deal-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.deal-badge { padding: 0 6px; font-size: 0.85rem; font-weight: 700; background: #b3261e; color: #fff; border: 2px solid #000; }
.deal-label { font-size: 0.85rem; font-weight: 700; color: var(--bad-ink); }
.market-badge { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; font-size: 0.85rem; font-weight: 700; color: var(--ok-ink); }
.market-badge-pct { padding: 0 6px; background: #2d7a12; color: #fff; border: 2px solid #000; }
.market-compare { margin: 10px 0 0; padding: 8px 10px; border: 2px solid #000; background: rgba(45, 122, 18, 0.08); }
.market-compare-title { margin: 0 0 6px; font-weight: 700; }
.market-compare dl { margin: 0; display: grid; gap: 2px; }
.market-compare dl > div { display: flex; justify-content: space-between; gap: 12px; }
.market-compare dt, .market-compare dd { margin: 0; }
.market-compare-save { color: var(--ok-ink); font-weight: 700; }
.product-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-coin { display: inline-flex; flex-shrink: 0; }
.product-price .price-coin .coin-icon { width: 22px; height: 22px; }
.product-price .price-cur, .pdp-price .price-cur { display: none; }
.price { display: inline-flex; align-items: flex-start; font-weight: 700; line-height: 1; color: var(--price-ink); font-variant-numeric: tabular-nums; }
.price-whole { font-size: 1.6rem; }
.price-frac { font-size: 0.95rem; margin-top: 0.1em; }
.price-cur { display: inline-flex; align-items: center; align-self: center; margin: 0 0 0 4px; }
.price-cur .coin-icon { width: 1.1em; height: 1.1em; }
.pdp-info .price-cur .coin-icon, .pdp-buybox .price-cur .coin-icon { width: 1.3em; height: 1.3em; }
.money { display: inline-flex; align-items: center; gap: 0.25em; white-space: nowrap; }
.coin-icon { width: 1em; height: 1em; image-rendering: pixelated; flex-shrink: 0; vertical-align: -0.15em; }
.product-actions .unit-picker { margin-bottom: 2px; }
.product-actions .unit-picker { padding: 8px; }
.product-actions .unit-summary { font-size: 0.8rem; }
.per-unit { font-size: 0.8rem; color: var(--ink-3); }
.delivery { margin: 6px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--info-ink); }
.stock { margin: 4px 0 0; font-size: 0.85rem; color: var(--ok-ink); display: flex; align-items: center; gap: 6px; font-weight: 700; }
.stock::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; background: currentColor; }
.stock-count { font-weight: 400; color: var(--ink-3); }
.stock.low { color: var(--bad-ink); }
.in-cart-hint { font-size: 0.82rem; color: var(--info-ink); margin: 4px 0 0; font-weight: 700; }

.product-actions { display: grid; gap: 8px; padding: 10px 12px 12px; }
.qty-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--gui-muted); }
.qty-field .qty-input { width: 84px; min-height: 36px; padding: 4px 6px; text-align: center; }
.product-actions .btn { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; white-space: normal; line-height: 1.15; }
.product-actions .btn:disabled { --btn-bg: #9a9a9a; --btn-fg: #3a3a3a; }
.product-card .tag-custom { background: #e5d6fb; color: #4b1f8f; border: 2px solid #4b1f8f; }
@media (max-width: 520px) {
  .product-media .item-icon, .product-media .icon-placeholder { width: 56px; height: 56px; }
  .qty-field .qty-input { width: 64px; }
}

.wish-btn {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1; cursor: pointer; color: #5a5a5a;
  background: var(--gui); border: 2px solid #000; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 var(--gui-dark);
}
.wish-btn:hover { color: #b3261e; }
.wish-btn.on { color: #d32f2f; }
.soldout-ribbon {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  padding: 4px 0; background: rgba(0, 0, 0, 0.72); color: #fff; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.product-card.sold-out .product-media .item-icon, .product-card.sold-out .product-media .icon-placeholder { filter: grayscale(1) opacity(0.6); }
.old-price { color: var(--ink-3); font-size: 0.85rem; }
.sale-ends { margin: 2px 0 0; font-size: 0.78rem; color: var(--bad-ink); font-weight: 700; }
.stock.out { color: #6b6b6b; }
.product-card .tag-bundle { background: #d6e9fb; color: #164a7a; border: 2px solid #164a7a; }
.bundle-contents { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 3px; font-size: 0.85rem; color: #2f2f2f; }
.bundle-contents li { display: flex; align-items: center; gap: 6px; }
.bundle-contents .mini-icon { width: 22px; height: 22px; padding: 2px; background: var(--slot); box-shadow: inset 1px 1px 0 var(--slot-dark), inset -1px -1px 0 #fff; }

.stack-buttons { display: flex; gap: 6px; }
.stack-btn {
  flex: 1; height: 30px; font: inherit; font-size: 0.82rem; cursor: pointer;
  background: var(--slot); color: #fff; border: 2px solid #000; text-shadow: 1px 1px 0 #000;
  box-shadow: inset 2px 2px 0 #b5b5b5, inset -2px -2px 0 #555;
}
.stack-btn:hover { border-color: #fff; }
.stack-hint { margin: 0; min-height: 1.1em; font-size: 0.8rem; color: var(--info-ink); font-weight: 700; }
.stack-hint:empty { display: none; }

.skeleton-card { height: 380px; border: 2px solid #000; }

.btn-now { --btn-bg: #e8740c; --btn-fg: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); box-shadow: inset 2px 2px 0 #ffa95e, inset -2px -2px 0 #9a4a05; }
.btn-now:hover:not(:disabled) { --btn-bg: #f5821a; }

.product-page { padding: 14px 0 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; font-size: 0.88rem; color: var(--ink-3); }
.breadcrumb [aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.pdp-skeleton { height: 520px; border: 2px solid #000; }
.pdp-missing { margin: 40px 0; }
.pdp-missing .btn { margin-top: 8px; }

.pdp { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 760px) { .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .pdp-buybox { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .pdp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(250px, 3fr); align-items: start; } .pdp-buybox { grid-column: auto; } }

.pdp-gallery { min-width: 0; }
.pdp-image {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 18%;
  background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel), var(--panel-shadow);
}
.pdp-image .item-icon, .pdp-image .icon-placeholder { filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.3)); }
.pdp-image .model3d { position: absolute; inset: 0; }
.model3d.draggable { cursor: grab; user-select: none; touch-action: pan-y; }
.model3d.draggable.grabbing { cursor: grabbing; }
.pdp-image .model-rot { --size: 46cqmin; }
.pdp-image .model-rot.sprite { --size: 64cqmin; --depth: 5cqmin; }
.pdp-image.sold-out .model3d, .product-card.sold-out .model3d { filter: grayscale(1) opacity(0.6); }
.pdp-image.sold-out .item-icon { filter: grayscale(1) opacity(0.6); }
.pdp-image .wish-btn { width: 44px; height: 44px; font-size: 1.6rem; top: 10px; right: 10px; }
.pdp-image .media-tags { top: 12px; left: 12px; }
.pdp-image .deal-badge { font-size: 1rem; padding: 2px 8px; }
.pdp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pdp-thumb { width: 54px; height: 54px; padding: 8px; display: grid; place-items: center; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); }

.pdp-info { min-width: 0; }
.pdp-title { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.pdp-store { font-size: 0.9rem; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 0.9rem; color: var(--ink-3); }
.pdp-rating { text-decoration: none; }
.pdp-rating .stars { color: #c27c00; }
.pdp-rule { border: none; border-top: 2px solid var(--line-2); margin: 14px 0; }
.pdp-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdp-price .price-coin .coin-icon { width: 30px; height: 30px; }
.pdp-info .price-whole { font-size: 2.4rem; }
.pdp-info .price-frac { font-size: 1.2rem; }
.pdp-info .price-cur { font-size: 1rem; }
.pdp-info .deal-badge, .pdp-info .deal-label { font-size: 1rem; }
.pdp-info .old-price, .pdp-info .sale-ends { margin: 6px 0 0; }
.light-area .pdp-subtitle { font-size: 1.15rem; margin: 0 0 8px; color: var(--ink); }
.pdp-bullets { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.pdp-bullets li { position: relative; padding-left: 18px; overflow-wrap: anywhere; }
.pdp-bullets li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: #5d9b3a; border: 2px solid #2d5a12; }

.pdp-buybox { padding: 16px; background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow); display: grid; gap: 8px; align-content: start; }
.pdp-buybox p { margin: 0; }
.pdp-buybox .price-whole { font-size: 1.9rem; }
.pdp-buybox .delivery { margin: 0; }
.buybox-player { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 0.88rem; color: var(--ink-2); }
.buybox-player svg { color: var(--ink-3); }
.buybox-stock { font-size: 1.15rem; font-weight: 700; color: var(--ok-ink); }
.buybox-stock.low { color: var(--bad-ink); }
.buybox-stock.out { color: #6b6b6b; }
.buybox-paused { font-size: 0.85rem; padding: 6px 8px; background: #fff3cd; border: 2px solid #a86f00; color: #3d2a00; }
.buybox-actions { display: grid; gap: 8px; margin-top: 4px; }
.buybox-actions .qty-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.buybox-actions .qty-field label { margin: 0; font-size: 0.9rem; }
.buybox-actions .qty-input { width: 110px; min-height: 38px; text-align: center; }
.buybox-actions .btn { min-height: 42px; }

.unit-picker {
  display: grid; gap: 10px; width: 100%; min-width: 0; padding: 10px; box-sizing: border-box;
  background: #c6c6c6; color: #111; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555;
}
.unit-row { display: grid; gap: 4px; }
.unit-count-box { display: grid; gap: 6px; width: 100%; min-width: 0; }
.unit-picker label { margin: 0; font-size: 0.85rem; font-weight: 700; color: #3f3f3f; }
.unit-picker .unit-select, .unit-picker .unit-stepper .unit-count {
  background: #dadada; color: #111; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8b8b8b;
}
.unit-select { width: 100%; min-height: 40px; padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.unit-select option { background: #dadada; color: #111; }
.unit-picker .unit-summary { color: #2a2a2a; }
.unit-picker .unit-summary .faint { color: #555; }
.unit-picker .unit-price { color: #3d2800; }
.unit-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; width: 100%; }
.unit-picker .unit-stepper .unit-count { width: 100%; min-width: 0; min-height: 40px; padding: 4px 6px; text-align: center; font-size: 1.1rem; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.unit-stepper .unit-count::-webkit-inner-spin-button, .unit-stepper .unit-count::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
  height: 40px; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
  background: var(--slot); color: #fff; border: 2px solid #000; text-shadow: 1px 1px 0 #000;
  box-shadow: inset 2px 2px 0 #b5b5b5, inset -2px -2px 0 #555;
}
.step-btn:hover:not(:disabled) { border-color: #fff; }
.step-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.unit-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0; font-size: 0.85rem; color: var(--ink-2); }
.unit-price { font-size: 1.05rem; color: var(--price-ink); font-variant-numeric: tabular-nums; }
.buybox-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: 0.85rem; }
.buybox-facts dt { color: var(--ink-3); }
.buybox-facts dd { margin: 0; overflow-wrap: anywhere; }
.buybox-wish { margin-top: 4px; }

.pdp-details { padding: 16px 18px; margin-bottom: 20px; }
.pdp-details h2 { margin: 0 0 10px; font-size: 1.25rem; color: var(--ink); }
.details-table { width: auto; min-width: min(100%, 420px); border: 2px solid #000; border-collapse: separate; border-spacing: 0; }
.details-table tr:last-child :is(th, td) { border-bottom: none; }
.light-area .details-table th { width: 180px; background: var(--box-2); font-size: 0.9rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.details-table td { font-size: 0.92rem; }

.reviews-section { margin: 28px 0 32px; }
.reviews-section h2 { color: var(--ink); }
.reviews-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews-layout { grid-template-columns: 280px 1fr; align-items: start; } }
.reviews-summary { background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow); padding: 18px; text-align: center; }
.reviews-summary .stars { color: #c27c00; }
.reviews-average { font-size: 3rem; font-weight: 700; line-height: 1; text-shadow: 3px 3px 0 var(--line); }
.stars.big { font-size: 1.5rem; }
.rating-bars { display: grid; gap: 4px; margin-top: 12px; text-align: left; }
.rating-row { display: grid; grid-template-columns: 40px 1fr 32px; gap: 8px; align-items: center; font-size: 0.85rem; }
.rating-track { height: 12px; background: var(--box-2); border: 2px solid #000; }
.rating-fill { display: block; height: 100%; background: var(--gold); }
.reviews-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.review-card { background: var(--gui); color: var(--gui-text); border: 2px solid #000; box-shadow: var(--gui-bevel), var(--shadow); padding: 12px 14px; }
.review-card .faint { color: var(--gui-muted); }
.review-card .stars { color: #a86f00; margin-left: auto; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-head .avatar { width: 28px; height: 28px; border: 2px solid #000; }
.review-text { margin: 0 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

.review-box { margin: 0 0 16px; padding: 16px; background: var(--surface-2); border: 2px solid var(--highlight); box-shadow: var(--bevel-dark); }
.review-box.done { border-color: var(--border-strong); }
.review-box h3 { margin-bottom: 4px; text-shadow: 2px 2px 0 #000; }
.star-row { display: flex; gap: 6px; margin: 8px 0 12px; }
.star-btn {
  width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; cursor: pointer;
  background: var(--surface-3); color: #6b6b6b; border: 2px solid #000; box-shadow: var(--bevel-dark);
}
.star-btn.on { color: var(--gold); }
.star-row.preview .star-btn { color: #6b6b6b; }
.star-row.preview .star-btn.lit { color: var(--gold); }
.review-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.review-dialog { width: min(480px, calc(100vw - 32px)); border-top: 6px solid #5d9b3a; }
.review-dialog h3 { margin: 16px 0 0; text-shadow: 2px 2px 0 #000; }
.review-dialog.rejected { border-top-color: #b3261e; }
.review-dialog .banner { margin: 12px 0 0; }
.review-order {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--gui); color: var(--gui-text); border: 2px solid #000; box-shadow: var(--gui-bevel);
}
.review-order-icons { display: flex; gap: 4px; flex-shrink: 0; }
.review-order .mini-icon { width: 32px; height: 32px; padding: 3px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-dark), inset -2px -2px 0 #fff; }
.review-order strong { color: #5c3c00; }
.star-btn.on { background: rgba(255, 170, 0, 0.15); }

dialog.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100vw);
  border-width: 0 0 0 2px; display: none; flex-direction: column;
}
dialog.drawer[open] { display: flex; animation: drawer-in 0.2s steps(4); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--belt); border-bottom: 2px solid #000; }
.drawer-header h2 { margin: 0; font-size: 1.3rem; text-shadow: 2px 2px 0 #000; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.drawer-footer { padding: 16px 20px 20px; border-top: 2px solid #000; background: var(--surface-2); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06); }
.drawer-footer .banner { margin: 0 0 12px; }

.cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--border); align-items: start; }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb { width: 52px; height: 52px; padding: 8px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-dark), inset -2px -2px 0 var(--gui-light); }
.cart-line-name { font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
.cart-line-unit { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 8px; }
.cart-line-total { font-weight: 700; color: var(--gold); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; text-shadow: 2px 2px 0 #000; }
.cart-line.invalid .cart-line-name { color: var(--text-muted); }
.cart-line-stacks { margin: -4px 0 8px; font-size: 0.8rem; color: var(--highlight); }
.line-warning { font-size: 0.82rem; color: var(--warning); margin: 6px 0 0; }
.stepper { display: inline-flex; align-items: center; border: 2px solid #000; }
.stepper button { width: 34px; height: 34px; border: none; background: #6f6f6f; color: #fff; font: inherit; font-size: 1.1rem; cursor: pointer; box-shadow: var(--bevel); }
.stepper button:hover:not(:disabled) { background: #808080; }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper input, .stepper input:focus-visible { width: 60px; min-height: 34px; height: 34px; border: none; text-align: center; padding: 0 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-controls { display: flex; align-items: center; gap: 8px; }
.remove-btn { background: none; border: 2px solid transparent; color: var(--text-faint); cursor: pointer; padding: 5px; display: inline-flex; }
.remove-btn:hover { color: #ff6b6b; border-color: #ff6b6b; }

.total-row { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 6px; font-size: 1.05rem; }
.total-row strong { font-size: 1.5rem; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 2px 2px 0 #000; }
.hint { margin: 0 0 12px; }
.cart-player { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; }
.cart-player .avatar { border: 2px solid #000; }
.cart-player .link-btn { margin-left: auto; }

.name-preview { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface-2); border: 2px solid #000; box-shadow: var(--bevel-dark); margin-bottom: 16px; min-height: 66px; }
.name-preview .avatar { width: 42px; height: 42px; font-size: 1.1rem; border: 2px solid #000; }
.order-code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; margin: 6px 0 16px;
  background: var(--accent-soft); border: 2px solid var(--accent);
}
.order-code .code { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.order-items { list-style: none; padding: 0; margin: 0 0 12px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--border); font-size: 0.92rem; }
.order-items li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.order-total span:last-child { color: var(--gold); }

.announcements { display: grid; gap: 10px; margin: 16px 0 0; }
.announcement {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 18px; color: #3d2a00;
  background: linear-gradient(90deg, #ffc928, #ffe680 50%, #ffc928);
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #fff4b8, inset -3px -3px 0 #b97c00, 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.announcement::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: announcement-shine 4s ease-in-out infinite;
}
@keyframes announcement-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .announcement::after { animation: none; display: none; } }
.announcement-icon::before { content: "📣"; font-size: 1.9rem; line-height: 1; }
.announcement-body { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.announcement-text { font-size: 1.2rem; line-height: 1.3; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6); }
.announcement-ends { font-size: 0.85rem; font-weight: 700; color: #7a4b00; }
.announcement-ends .countdown { color: inherit; }
.announcement-code {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer;
  font: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.08em; color: #ffd23f;
  background: #1b1c1f; border: 2px dashed #ffd23f; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}
.announcement-code:hover { background: #2a2b30; }
.announcement-copy { font-size: 0.75rem; letter-spacing: 0; color: #fff; text-transform: uppercase; }
@media (max-width: 520px) {
  .announcement { padding: 12px; }
  .announcement-text { font-size: 1.05rem; }
  .announcement-code { width: 100%; justify-content: center; }
}

.rules-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rules-list li {
  position: relative; padding: 10px 14px 10px 52px; background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow);
}
.rules-list li::before {
  content: attr(data-n); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; color: #3d2a00;
  background: #ffc928; border: 2px solid #000; box-shadow: inset 2px 2px 0 #fff4b8, inset -2px -2px 0 #b97c00;
}
.delivery-field { border: none; padding: 0; margin: 0 0 14px; min-width: 0; }
.delivery-field legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; padding: 0; }
.delivery-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.delivery-option { position: relative; margin: 0; cursor: pointer; }
.delivery-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.delivery-option span {
  display: block; padding: 9px 6px; text-align: center; font-weight: 700; font-size: 0.9rem;
  background: var(--surface-2); border: 2px solid #000; box-shadow: var(--bevel); user-select: none;
}
.delivery-option:hover span { border-color: #fff; }
.delivery-option input:checked + span { background: var(--accent); color: var(--accent-contrast); }
.delivery-option input:focus-visible + span { outline: 3px solid var(--highlight, #ffff55); outline-offset: 1px; }
.delivery-input[hidden] { display: none; }

.cart-rules { margin: 0 0 12px; font-size: 0.9rem; align-items: flex-start; }
.cart-rules[hidden] { display: none; }
.cart-rules input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.cart-rules a { color: inherit; font-weight: 700; text-decoration: underline; }

.notfound-page { display: grid; place-items: center; min-height: 60vh; padding: 40px 0; }
.notfound-box {
  width: min(480px, 100%); display: grid; justify-items: center; gap: 6px; padding: 32px 28px; text-align: center;
  color: var(--ink); background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow);
}
.notfound-box h1 { margin: 0; font-size: 1.6rem; }
.notfound-box p { margin: 0; color: var(--ink-2); }
.notfound-icon { font-size: 3rem; line-height: 1; }
.notfound-code { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-3); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.legal-page { padding: 14px 0 40px; }
.legal { max-width: 780px; color: var(--ink); line-height: 1.6; }
.legal h1 { margin: 0; font-size: 1.8rem; }
.legal h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--link); }
.legal-meta { color: var(--ink-3); font-size: 0.9rem; }
.legal-summary { margin: 16px 0 8px; padding: 4px 16px 8px; border: 2px solid var(--line-2); border-left: 6px solid var(--highlight); }
.legal-summary h2 { margin-top: 12px; }
.legal-missing { color: var(--bad-ink); font-weight: 700; }
.footer-bottom a { color: #d6d6d6; font-weight: 400; text-shadow: none; text-decoration: none; margin-left: 8px; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

.status-layout { display: grid; gap: 24px; padding: 32px 0 48px; }
@media (min-width: 900px) { .status-layout { grid-template-columns: 380px 1fr; align-items: start; } }
.nav-link[aria-current="page"] { border-color: transparent; box-shadow: inset 0 -3px 0 var(--highlight); }
.subnav-link[aria-current="page"] { color: var(--highlight); }
.orders-page { padding: 14px 0 40px; }
.orders-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.orders-head h1 { margin: 0; font-size: 1.8rem; color: var(--ink); }
.order-search { display: flex; flex-wrap: wrap; gap: 8px; }
.order-search input { width: 190px; min-height: 40px; }
.order-search .btn { min-height: 40px; }
@media (max-width: 600px) { .order-search, .order-search input, .order-search .btn { width: 100%; } }

.order-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line-2); margin-bottom: 10px; }
.order-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin-bottom: -2px;
  background: none; border: none; border-bottom: 4px solid transparent; color: var(--link); font: inherit; font-size: 0.95rem; cursor: pointer;
}
.order-tab:hover { color: var(--link-hover); }
.order-tab[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: #e8740c; }
.order-tab-count { padding: 0 6px; font-size: 0.8rem; background: var(--box-2); border: 2px solid var(--line-2); color: var(--ink-2); }
.orders-count { margin: 0 0 12px; font-size: 0.9rem; color: var(--ink-3); }
.order-boxes { display: grid; gap: 16px; }

.order-box { background: var(--box); border: 2px solid #000; box-shadow: var(--panel-shadow); }
.order-box-head {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 10px 16px;
  background: var(--box-2); border-bottom: 2px solid #000; font-size: 0.88rem; color: var(--ink-2);
}
.order-box-head > div { display: flex; flex-direction: column; min-width: 0; }
.ob-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.ob-right { margin-left: auto; text-align: right; align-items: flex-end; }
.ob-right .link-btn { padding: 0; font-size: 0.88rem; }
@media (max-width: 600px) { .ob-right { margin-left: 0; text-align: left; align-items: flex-start; } }
.order-box-body { display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 14px 16px; }
.ob-main { flex: 1 1 320px; min-width: 0; }
.ob-status { margin: 0 0 10px; font-size: 1.15rem; color: var(--ink); }
.status-text-open { color: var(--warn-ink); }
.status-text-completed { color: var(--ok-ink); }
.status-text-rejected { color: var(--bad-ink); }
.ob-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-items li { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.ob-slot { width: 44px; height: 44px; padding: 6px; flex-shrink: 0; display: grid; place-items: center; background: var(--slot); box-shadow: var(--slot-bevel); }
.ob-slot.big { width: 72px; height: 72px; padding: 10px; }
.ob-qty { color: var(--ink-3); }
.ob-more { color: var(--ink-3); font-size: 0.88rem; }
.ob-actions { flex: 0 0 220px; display: grid; gap: 8px; align-content: start; }
@media (max-width: 600px) { .ob-actions { flex-basis: 100%; } }

.order-detail { display: block; }
.back-link { padding: 0; margin-bottom: 10px; font-size: 0.92rem; }
.detail-title { margin: 0; font-size: 1.6rem; color: var(--ink); }
.detail-sub { margin: 4px 0 14px; color: var(--ink-3); font-size: 0.92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.detail-sub .link-btn { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; }
.detail-summary { display: grid; gap: 16px 24px; padding: 16px 18px; margin-bottom: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.detail-summary h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.detail-summary p { margin: 0; }
.detail-player { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.detail-player .avatar { border: 2px solid #000; }
.detail-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 0.92rem; }
.detail-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.detail-totals .grand { font-weight: 700; font-size: 1.05rem; padding-top: 6px; border-top: 2px solid var(--line); }
.detail-box { padding: 16px 18px; display: grid; gap: 14px; }
.detail-box .banner, .detail-box .review-box { margin: 0; }
.detail-status .ob-status { margin: 0 0 2px; }
.detail-status p { margin: 0; }

.tracker { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tracker.steps-2 { grid-template-columns: repeat(2, 1fr); }
.tracker.steps-3 { grid-template-columns: repeat(3, 1fr); }
.tracker.steps-4 { grid-template-columns: repeat(4, 1fr); }
.tracker li { position: relative; padding-top: 26px; font-size: 0.88rem; font-weight: 700; color: #777; text-align: center; }
.tracker li::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 10px;
  background: var(--line); border-top: 2px solid #000; border-bottom: 2px solid #000;
}
.tracker li:first-child::before { border-left: 2px solid #000; }
.tracker li:last-child::before { border-right: 2px solid #000; }
.tracker li::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 22px; transform: translateX(-50%);
  background: var(--box); border: 2px solid #000;
}
.tracker li.done { color: var(--ok-ink); }
.tracker li.done::before { background: #5d9b3a; box-shadow: inset 0 2px 0 #7bbf48; }
.tracker li.done::after { background: #7bbf48; box-shadow: inset -3px -3px 0 #4f8a30; }
.tracker li.bad { color: var(--bad-ink); }
.tracker li.bad::before { background: #c0392b; }
.tracker li.bad::after { background: #e05a4a; box-shadow: inset -3px -3px 0 #8e1b14; }

.detail-items { list-style: none; margin: 0; padding: 0; display: grid; }
.detail-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 2px solid var(--line); }
.detail-item-main { min-width: 0; }
.detail-item-main p { margin: 0 0 4px; }
.detail-item-name { font-weight: 700; overflow-wrap: anywhere; }
.detail-item-main .btn { margin-top: 4px; }
.detail-item-total { font-weight: 700; color: var(--price-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-note { margin: 0; padding: 8px 10px; background: var(--box-3); border-left: 4px solid #8f8f8f; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-actions { display: flex; justify-content: flex-end; }
.light-area .review-box { background: #fffbea; border-color: #c99a1a; box-shadow: none; }
.light-area .review-box.done { background: var(--box-3); border-color: var(--line-2); }
.light-area .review-box h3 { text-shadow: none; color: var(--ink); }
.light-area .star-btn { background: var(--box-2); color: #9a9a9a; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #a0a0a0; }
.light-area .star-btn.on { color: #d18a00; }
.light-area .star-row.preview .star-btn { color: #9a9a9a; }
.light-area .star-row.preview .star-btn.lit { color: #d18a00; }

.pdp-price .per-unit, .buybox-actions .qty-field { color: var(--ink-3); }
:root[data-theme="dark"] .buybox-paused { background: rgba(255, 181, 71, 0.13); color: #ffe2b5; }
:root[data-theme="dark"] .light-area .review-box { background: var(--box-2); border-color: #a86f00; }


.search { position: relative; }
.search-suggest {
  position: absolute; top: calc(100% + 2px); left: -2px; right: -2px; z-index: 70;
  background: #fff; color: #111; border: 2px solid #000; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  max-height: min(70vh, 460px); overflow-y: auto;
}
.suggest-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: #111; text-decoration: none;
  border-bottom: 2px solid #ececec; font-size: 0.92rem;
}
.suggest-row:last-child { border-bottom: none; }
.suggest-row:hover, .suggest-row.active { background: #fff4d6; color: #111; box-shadow: inset 4px 0 0 #e8b923; }
.suggest-search { color: #333; }
.suggest-icon { display: grid; place-items: center; width: 32px; color: #555; }
.suggest-slot { width: 32px; height: 32px; padding: 4px; flex-shrink: 0; display: grid; place-items: center; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-dark), inset -2px -2px 0 #fff; }
.suggest-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-name mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: #e8b923; text-decoration-thickness: 2px; }
.suggest-cat { font-size: 0.75rem; color: #666; }
.suggest-price { font-weight: 700; color: #3d2800; white-space: nowrap; font-variant-numeric: tabular-nums; }

.card-rating { margin: 0 0 4px; font-size: 0.82rem; color: var(--ink-3); }
.card-rating .stars { color: #b87400; }
.sale-label { font-weight: 700; }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.soon { color: #c0392b; }
.hero-promo {
  display: inline-block; margin: 0 0 12px; padding: 4px 10px; font-size: 0.95rem;
  background: #b3261e; color: #fff; border: 2px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}
.hero-promo .countdown.soon { color: #ffe066; }

.coupon-box { margin-bottom: 12px; }
.coupon-label { font-size: 0.85rem; margin-bottom: 4px; }
.coupon-row { display: flex; gap: 6px; }
.coupon-row input { flex: 1; min-width: 0; min-height: 36px; text-transform: uppercase; font-family: var(--font-mono); }
.coupon-row .btn { min-height: 36px; }
.coupon-error { margin: 6px 0 0; font-size: 0.85rem; color: #ff8a80; }
.coupon-applied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: rgba(93, 155, 58, 0.18); border: 2px dashed #5d9b3a; }
.coupon-applied.inactive { background: rgba(255, 181, 71, 0.12); border-color: #a86f00; }
.coupon-tag { font-family: var(--font-mono); font-weight: 800; letter-spacing: 0.05em; color: #7ddf55; }
.coupon-applied.inactive .coupon-tag { color: var(--warning); }
.coupon-desc { font-size: 0.85rem; flex: 1; }
.coupon-hint { margin: 4px 0 0; font-size: 0.82rem; color: var(--warning); }
.total-lines { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0 0 4px; font-size: 0.9rem; color: var(--text-muted); }
.total-lines:empty { display: none; }
.total-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.minus { color: #7ddf55; font-weight: 700; }
.light-area .minus { color: var(--ok-ink); }
.order-discount { display: flex; justify-content: space-between; font-size: 0.92rem; color: #7ddf55; margin-bottom: 4px; }

.fbt { padding: 16px 18px; margin-bottom: 20px; }
.fbt h2, .item-reviews h2 { margin: 0 0 12px; font-size: 1.25rem; color: var(--ink); }
.fbt-body { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.fbt-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fbt-slot { width: 84px; height: 84px; padding: 14px; display: grid; place-items: center; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); }
.fbt-slot:hover { background: #a5a5a5; }
.fbt-plus { font-size: 1.6rem; font-weight: 700; color: var(--ink-3); }
.fbt-buy { display: grid; gap: 8px; }
.fbt-buy p { margin: 0; }
.fbt-total .price-whole { font-size: 1.4rem; }
.fbt-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.fbt-list li { display: flex; align-items: center; gap: 8px; }
.fbt-list label { margin: 0; font-weight: 400; cursor: pointer; }
.fbt-price { color: var(--price-ink); font-weight: 700; }
.item-reviews { margin: 0 0 24px; }
.item-reviews .reviews-summary { text-align: center; }

.item-ratings { margin: 0 0 12px; padding: 10px 12px; background: rgba(0, 0, 0, 0.12); border: 2px solid var(--border); }
.item-ratings-title { margin: 0 0 8px; font-weight: 700; }
.item-ratings ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item-ratings li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-ratings-name { flex: 1; min-width: 120px; font-size: 0.9rem; overflow-wrap: anywhere; }
.item-ratings .star-row { margin: 0; gap: 4px; }
.star-btn.small { width: 32px; height: 32px; font-size: 1.1rem; }

.hero-deco { display: none; position: absolute; z-index: 0; }

:root[data-season="winter"] .hero-scene::before {
  background:
    repeating-linear-gradient(90deg, #ffffff 0 12px, #e8f1fb 12px 24px, #ffffff 24px 32px, #d6e6f7 32px 40px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #866043 0 16px, #6e4d34 16px 28px, #93694a 28px 44px, #5a3e29 44px 52px) 0 14px / 100% 100% no-repeat;
}
:root[data-season="winter"] .hero::before {
  content: ""; position: absolute; z-index: 0; top: -220px; left: 0; width: 4px; height: 4px; pointer-events: none;
  box-shadow:
    40px 20px #fff, 140px 90px #fff, 260px 40px #fff, 380px 150px #fff, 520px 60px #fff, 640px 180px #fff, 760px 30px #fff,
    880px 120px #fff, 1000px 70px #fff, 1120px 160px #fff, 1240px 10px #fff, 1360px 110px #fff, 90px 170px #fff, 330px 200px #fff,
    590px 130px #fff, 830px 210px #fff, 1080px 190px #fff, 1300px 200px #fff,
    40px 240px #fff, 140px 310px #fff, 260px 260px #fff, 380px 370px #fff, 520px 280px #fff, 640px 400px #fff, 760px 250px #fff,
    880px 340px #fff, 1000px 290px #fff, 1120px 380px #fff, 1240px 230px #fff, 1360px 330px #fff, 90px 390px #fff, 330px 420px #fff,
    590px 350px #fff, 830px 430px #fff, 1080px 410px #fff, 1300px 420px #fff;
  animation: snowfall 14s steps(110) infinite;
}
@keyframes snowfall { to { transform: translateY(220px); } }
:root[data-season="winter"] .subnav::after {
  background:
    repeating-linear-gradient(90deg, #ffffff 0 6px, #e8f1fb 6px 12px, #ffffff 12px 16px, #d6e6f7 16px 20px) top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #866043 0 8px, #6e4d34 8px 14px, #93694a 14px 22px, #5a3e29 22px 26px) bottom / 100% 4px no-repeat;
}

:root[data-season="halloween"] .hero { background: linear-gradient(#2a1240 0 22%, #4a1d4f 22% 44%, #7a2e4a 44% 66%, #c4552d 66%); }
:root[data-season="halloween"] .hero-sun { width: 76px; height: 76px; background: #ffb347; border-color: #d9780f; box-shadow: inset -12px -10px 0 #f09426, 0 0 0 10px rgba(255, 179, 71, 0.18); }
:root[data-season="halloween"] .hero-cloud, :root[data-season="halloween"] .hero-cloud::before { background: #5b3a6b; }
:root[data-season="halloween"] .hero-cloud { box-shadow: 0 6px 0 #452b52; }
:root[data-season="halloween"] .hero-scene::before {
  background:
    repeating-linear-gradient(90deg, #4f7a2d 0 12px, #3f6623 12px 24px, #5b8a33 24px 32px, #36591e 32px 40px) top / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #6e4d34 0 16px, #5a3e29 16px 28px, #7a5539 28px 44px, #4a3221 44px 52px) 0 14px / 100% 100% no-repeat;
}
:root[data-season="halloween"] .hero-deco {
  display: block; bottom: 158px; width: 40px; height: 34px;
  background:
    linear-gradient(#3f7a1f 0 0) 17px 0 / 6px 8px no-repeat,
    linear-gradient(#1a0d00 0 0) 9px 15px / 6px 6px no-repeat,
    linear-gradient(#1a0d00 0 0) 25px 15px / 6px 6px no-repeat,
    linear-gradient(#1a0d00 0 0) 11px 25px / 18px 4px no-repeat,
    repeating-linear-gradient(90deg, #e8740c 0 8px, #c95f05 8px 10px) 0 8px / 40px 26px no-repeat;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.35));
}
:root[data-season="halloween"] .hero-deco-1 { left: 58%; }
:root[data-season="halloween"] .hero-deco-2 { left: 70%; transform: scale(0.75); transform-origin: bottom; }
:root[data-season="halloween"] .hero-deco-3 { left: 86%; transform: scale(1.15); transform-origin: bottom; }
@media (max-width: 720px) {
  :root[data-season="halloween"] .hero-deco { bottom: 108px; }
  :root[data-season="halloween"] .hero-deco-1 { left: 62%; }
  :root[data-season="halloween"] .hero-deco-3 { display: none; }
}
:root[data-season="halloween"] .subnav::after {
  background:
    repeating-linear-gradient(90deg, #e8740c 0 6px, #c95f05 6px 12px, #4f7a2d 12px 16px, #36591e 16px 20px) top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #6e4d34 0 8px, #5a3e29 8px 14px, #7a5539 14px 22px, #4a3221 22px 26px) bottom / 100% 4px no-repeat;
}

.sell-steps { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); font-size: 0.92rem; }
.sell-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .sell-layout { grid-template-columns: 1fr 360px; } }
.sell-list-box, .sell-box { padding: 14px 16px; }
.sell-box { display: grid; gap: 4px; }
@media (min-width: 900px) { .sell-box { position: sticky; top: 12px; } }
.sell-box h2, .sell-list-head h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); }
.sell-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.sell-list-head input { width: 220px; min-height: 38px; }
@media (max-width: 600px) { .sell-list-head input { width: 100%; } }
.sell-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 2px solid var(--line); }
.sell-row-main { min-width: 0; }
.sell-row-main p { margin: 0; }
.sell-row-name { font-weight: 700; overflow-wrap: anywhere; }
.sell-price { color: var(--ok-ink); font-variant-numeric: tabular-nums; }
.sell-row-qty { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 280px; }
.sell-row-qty .sell-qty { width: 96px; min-height: 36px; }
@media (max-width: 600px) {
  .sell-row { grid-template-columns: auto 1fr; }
  .sell-row-qty { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}
.sell-line-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.sell-line-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; font-size: 0.9rem; }
.sell-line-list .mini-icon { width: 28px; height: 28px; padding: 3px; background: var(--slot); box-shadow: inset 2px 2px 0 var(--slot-dark), inset -2px -2px 0 #fff; }
.sell-line-name { min-width: 0; overflow-wrap: anywhere; }
.sell-line-total { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sell-history { margin-top: 28px; }
.sell-history h2 { font-size: 1.3rem; color: var(--ink); margin: 0 0 12px; }

.delivery-estimate { margin: 0; font-size: 0.92rem; color: var(--ink-2); }

.cart-page { margin: 16px 0 24px; }
.cart-layout { display: grid; gap: 18px; align-items: start; margin-bottom: 20px; }
@media (min-width: 960px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .cart-side { position: sticky; top: 12px; }
}
.cart-main { padding: 16px 20px 14px; min-width: 0; }
.cart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line-2); }
.cart-head h1 { margin: 0 0 2px; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--ink); }
.cart-clear { padding: 2px 0; font-size: 0.88rem; }
.cart-price-head { font-size: 0.88rem; color: var(--ink-3); }
.cart-lines { display: grid; }
.cart-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.cart-item-slot { display: grid; place-items: center; width: 110px; aspect-ratio: 1; padding: 22px; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); }
.cart-item-slot .item-icon, .cart-item-slot .icon-placeholder { filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3)); }
.cart-item-slot .icon-placeholder { color: #5a5a5a; }
.cart-item-slot:hover .item-icon { transform: translateY(-3px); }
.cart-item-info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.cart-item-info p { margin: 0; }
.cart-item-name { margin: 0; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; color: var(--ink); }
.light-area .cart-item-name a { color: var(--ink); text-decoration: none; }
.light-area .cart-item-name a:hover { color: var(--link-hover); text-decoration: underline; }
.cart-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cart-item-tags:empty { display: none; }
.cart-item .stock, .cart-item .delivery { margin: 0; }
.cart-item-unit { font-size: 0.85rem; color: var(--ink-3); }
.cart-item-stacks { font-size: 0.82rem; color: var(--highlight); }
.cart-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 0.88rem; }
.cart-item-actions .link-btn { font-size: 0.88rem; padding: 2px 0; }
.cart-sep { color: var(--line-2); }
.cart-item-price { text-align: right; }
.cart-item-price .price-whole { font-size: 1.45rem; }
.cart-item.invalid .cart-item-name { color: var(--ink-3); }
.cart-subtotal { margin: 12px 0 0; text-align: right; font-size: 1.15rem; color: var(--ink); }
.cart-subtotal strong, .cart-box-subtotal strong { color: var(--price-ink); }
.cart-skeleton { height: 140px; margin: 14px 0 0; border: 2px solid #000; }
.cart-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px 0 10px; }
.cart-empty-slot { display: grid; place-items: center; width: 120px; height: 120px; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); color: #3a3a3a; }
.cart-empty h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--ink); }
.cart-empty p { margin: 0 0 12px; max-width: 46ch; }
.cart-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.cart-side { display: grid; gap: 18px; min-width: 0; }
.cart-box { padding: 16px; }
.cart-pay-note { margin: 0 0 8px; font-size: 0.88rem; font-weight: 700; color: var(--ok-ink); }
.cart-box-subtotal { margin: 0 0 12px; font-size: 1.1rem; color: var(--ink); }
.cart-box-subtotal:empty { display: none; }
.cart-box .banner { margin: 0 0 12px; }
.cart-box .total-row strong { color: var(--price-ink); text-shadow: none; }
.cart-box .coupon-tag { color: var(--ok-ink); }
.cart-box .coupon-error { color: var(--bad-ink); }
.cart-box .cart-rules a { color: var(--link); }
.cart-box .delivery-option:hover span { border-color: var(--link-hover); }
.cart-box .btn-lg { min-height: 48px; }
.cart-reserve-note { margin: 8px 0 0; text-align: center; }
.cart-side-title { margin: 0 0 10px; font-size: 1.05rem; color: var(--ink); }
.cart-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-pick { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.cart-pick-slot { display: grid; place-items: center; width: 64px; height: 64px; padding: 12px; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); }
.cart-pick-info { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cart-pick-name { font-size: 0.9rem; overflow-wrap: anywhere; }
.cart-pick .price-whole { font-size: 1.15rem; }

@media (max-width: 600px) {
  .cart-main { padding: 12px 12px 10px; }
  .cart-price-head { display: none; }
  .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .cart-item-slot { width: 76px; padding: 12px; }
  .cart-item-price { grid-column: 2; text-align: left; }
}

.coin-tip {
  position: fixed; z-index: 1000; max-width: 280px; padding: 6px 9px; pointer-events: none;
  font-size: 0.9rem; line-height: 1.3; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; white-space: pre-line;
  background: rgba(16, 0, 16, 0.94); border: 2px solid #100010;
  box-shadow: inset 0 0 0 2px #5000ff, inset 0 0 0 4px rgba(40, 0, 127, 0.9);
}
.coin-tip[hidden] { display: none; }
.currency-text, .coin-icon { cursor: help; }

.preorder-dialog { width: min(480px, calc(100vw - 24px)); }
.preorder-body { display: grid; gap: 12px; }
.preorder-body p { margin: 0; }
.preorder-item { display: flex; align-items: center; gap: 12px; }
.preorder-slot { width: 64px; height: 64px; padding: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--slot); border: 2px solid #000; box-shadow: var(--slot-bevel); }
.preorder-name { font-size: 1.1rem; overflow-wrap: anywhere; }
.preorder-totals { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 0.92rem; }
.preorder-totals dd { margin: 0; text-align: right; }
.preorder-totals .grand { font-size: 1.1rem; font-weight: 700; padding-top: 4px; border-top: 2px solid var(--border); }
.preorder-totals dd.grand { color: var(--gold); }
.preorder-body .cart-player, .preorder-body .delivery-field, .preorder-body .cart-rules { margin: 0; }
.preorder-hint { margin: 0; text-align: center; }
.preorder-info { margin: 0; font-size: 0.88rem; }
.handover-box { padding: 14px 16px; display: grid; gap: 10px; border-color: #5d9b3a; box-shadow: inset 0 4px 0 #5d9b3a, var(--panel-shadow); }
.handover-box h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.handover-box p { margin: 0; }
.handover-box .field, .handover-box .delivery-field { margin: 0; }
.handover-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.handover-dl dt { font-weight: 700; color: var(--ink-3); }
.handover-dl dd { margin: 0; overflow-wrap: anywhere; }
.handover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.verify-dialog { width: min(460px, calc(100vw - 24px)); border-top: 6px solid #e8b923; }
.verify-body { display: grid; gap: 12px; }
.verify-body > p, .verify-body .field { margin: 0; }
.verify-online { margin: 0; font-size: 0.9rem; }
.verify-status { margin: 0; padding: 8px 10px; font-size: 0.92rem; font-weight: 700; border: 2px solid #000; background: var(--surface-2); }
.verify-status.ok { color: #7ddf55; border-color: #5d9b3a; background: rgba(93, 155, 58, 0.15); }
.verify-status.warn { color: #ffb547; border-color: #a86f00; background: rgba(255, 181, 71, 0.12); }
#verify-code { font-family: var(--font-mono, monospace); font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; max-width: 240px; }
.verify-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.player-menu { position: fixed; z-index: 80; min-width: 220px; padding: 6px; display: grid; gap: 4px; background: var(--belt, #16171a); color: #fff; border: 2px solid #000; box-shadow: var(--shadow-lg); }
.player-menu-head { margin: 0; padding: 6px 8px 8px; font-size: 0.85rem; color: #cfcfcf; border-bottom: 2px solid var(--belt-2, #2e3035); }
.player-menu-head strong { color: #fff; }
.player-menu-item { display: block; width: 100%; padding: 8px 10px; text-align: left; font: inherit; font-weight: 700; color: #fff; background: none; border: 2px solid transparent; cursor: pointer; }
.player-menu-item:hover, .player-menu-item:focus-visible { background: var(--belt-2, #2e3035); border-color: var(--highlight, #ffd75e); outline: none; }
.player-menu-item.danger { color: #ff8a80; }
.egg-penguin { position: absolute; z-index: 90; width: 56px; height: 56px; pointer-events: none; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); animation: egg-pop 0.45s steps(5) both; }
.egg-penguin svg { width: 100%; height: 100%; display: block; }
.egg-penguin .egg-eye { transform-box: fill-box; transform-origin: center; animation: egg-wink 0.5s steps(2) 0.8s 2; }
.egg-penguin.leaving { animation: egg-leave 0.35s steps(4) forwards; }
@keyframes egg-pop { from { transform: translateY(24px) scale(0.4); opacity: 0; } 60% { transform: translateY(-6px) scale(1.08); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes egg-wink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.15); } }
@keyframes egg-leave { to { transform: translateY(20px) scale(0.5); opacity: 0; } }
.egg-dialog { width: min(440px, calc(100vw - 24px)); border-top: 6px solid #5fb4ff; }
.egg-body { display: grid; gap: 12px; }
.egg-body p { margin: 0; }
.egg-coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: rgba(95, 180, 255, 0.12); border: 2px dashed #5fb4ff; }
.egg-code { font-family: var(--font-mono, monospace); font-size: 1.3rem; font-weight: 800; letter-spacing: 0.06em; color: #8ccaff; }
.egg-reward { flex-basis: 100%; font-size: 0.9rem; font-weight: 700; color: var(--gold, #ffaa00); }
.footer-bottom .brand-mark { user-select: none; -webkit-tap-highlight-color: transparent; }
.egg-creeper { position: absolute; z-index: 90; width: 64px; height: 64px; pointer-events: none; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); animation: egg-pop 0.45s steps(5) both, egg-swell 0.25s steps(2) 0.6s 4 alternate; }
.egg-creeper svg { width: 100%; height: 100%; display: block; }
.egg-creeper.leaving { animation: egg-leave 0.35s steps(4) forwards; }
@keyframes egg-swell { from { transform: scale(1); filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); } to { transform: scale(1.15); filter: brightness(2.2) drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); } }
body.egg-shake { animation: egg-shake 0.45s steps(6) both; }
@keyframes egg-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(4px, 3px); } }
.egg-logo-wiggle { animation: egg-wiggle 0.3s steps(4) 3; }
@keyframes egg-wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
.egg-dialog[data-egg="logo-halloween"] { border-top-color: #e38a1d; }
.egg-dialog[data-egg="logo-halloween"] .egg-coupon { background: rgba(227, 138, 29, 0.14); border-color: #e38a1d; }
.egg-dialog[data-egg="logo-halloween"] .egg-code { color: #ffb45c; }
.egg-dialog[data-egg="logo-christmas"] { border-top-color: #d0342c; }
.egg-dialog[data-egg="logo-christmas"] .egg-coupon { background: rgba(208, 52, 44, 0.14); border-color: #d0342c; }
.egg-dialog[data-egg="logo-christmas"] .egg-code { color: #ff8a80; }
.egg-dialog[data-egg="creeper"] { border-top-color: #5ea93f; }
.egg-dialog[data-egg="creeper"] .egg-coupon { background: rgba(94, 169, 63, 0.14); border-color: #5ea93f; }
.egg-dialog[data-egg="creeper"] .egg-code { color: #9be07a; }
@media (prefers-reduced-motion: reduce) { .egg-penguin, .egg-penguin .egg-eye, .egg-penguin.leaving, .egg-creeper, .egg-creeper.leaving, body.egg-shake, .egg-logo-wiggle { animation: none; } }

.special-lead { margin: -4px 0 12px; color: var(--ink-2); font-size: 1rem; }
.special-search input { width: 100%; min-height: 46px; font-size: 1.05rem; }
.special-search { margin-bottom: 4px; }
.special-hint { display: flex; align-items: center; gap: 14px; padding: 18px 4px; color: var(--ink-2); }
.special-hint p { margin: 0; }
.special-hint-icon { font-size: 1.8rem; width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; background: var(--slot); box-shadow: var(--slot-bevel); }
.special-hint-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.special-row.in-shop { opacity: 0.85; }
.special-row.in-shop .btn { white-space: nowrap; }
.special-line-list li { grid-template-columns: auto 1fr auto; }
.special-price { font-weight: 700; color: var(--price-ink); font-variant-numeric: tabular-nums; }
.special-body .ob-main { display: grid; gap: 10px; align-content: start; }
.special-body .ob-status, .special-status-line { margin: 0; }
.special-message { padding: 8px 12px; background: var(--slot); border-left: 4px solid var(--gold); box-shadow: var(--slot-bevel); }
.special-message p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.special-item-text { min-width: 0; overflow-wrap: anywhere; }
.special-handover { flex: 1 1 300px; align-self: start; }
.special-box.status-deliverable { border-color: #5d9b3a; }
.special-cta { margin-top: 16px; display: grid; justify-items: center; gap: 10px; }
.special-cta p { margin: 0; max-width: 460px; }
.special-teaser { margin-top: 24px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; border-color: #000; box-shadow: inset 0 4px 0 var(--gold), var(--panel-shadow); }
.special-teaser-icon { font-size: 1.8rem; width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; background: var(--slot); box-shadow: var(--slot-bevel); }
.special-teaser-text { flex: 1 1 280px; min-width: 0; }
.special-teaser-text h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--ink); }
.special-teaser-text p { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .special-teaser .btn { width: 100%; } }
.special-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.special-cancel p { margin: 0; }
.archive-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 12px; font-size: 0.9rem; }
.archive-bar:empty { display: none; }
.sell-subtitle { margin: 14px 0 0; font-size: 1rem; color: var(--ink-2); }
.sell-line-list li.has-proposal { grid-template-columns: auto 1fr auto auto; }
.sell-proposal-row { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; }
.sell-proposal { width: 110px; min-height: 32px; }
.sell-proposal[aria-invalid] { border-color: var(--bad-ink); }
.sell-bonus { display: inline-block; margin-left: 6px; padding: 0 5px; font-weight: 700; background: #2d7a12; color: #fff; border: 2px solid #000; }
.order-box.offer-countered { border-color: #e8b923; box-shadow: inset 0 4px 0 #e8b923, var(--panel-shadow); }
.special-price-row span:last-child { color: var(--ink-2); }
.duty-pill.maintenance { color: #ffd27a; border-color: rgba(246, 196, 83, 0.55); }

.product-card .tag-pricedrop { background: #dff3e4; color: #1d6b34; border: 2px solid #1d6b34; }

.drop-info { margin: 8px 0 0; padding: 8px 10px; background: #fff4d6; border: 2px solid #000; color: #3d2a00; font-size: 0.82rem; }
.drop-info p { margin: 0; }
.drop-info .drop-line { margin-top: 4px; }
.drop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.drop-badge { padding: 0 6px; font-weight: 700; background: #7a3cc4; color: #fff; border: 2px solid #000; }
.drop-info .countdown { font-weight: 700; color: #8a4b00; }
.drop-bar { height: 10px; margin-top: 6px; background: #d8cba6; border: 2px solid #000; }
.drop-bar span { display: block; height: 100%; background: #e8740c; }
.drop-info.soldout .drop-bar span { background: #8b8b8b; }
.drop-info.large { margin: 10px 0; font-size: 0.95rem; }
.product-card.is-drop { outline: 3px solid #7a3cc4; outline-offset: -3px; }

.home-drops { grid-column: 1 / -1; }
.drop-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .drop-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .drop-list { grid-template-columns: repeat(4, 1fr); } }
.drop-tile, .light-area a.drop-tile { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; color: var(--ink-2); text-decoration: none; }
.drop-tile .home-tile-slot { padding: 12%; }
.drop-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-tile-price { font-weight: 700; color: var(--ink); }
.drop-tile .drop-info { margin-top: 4px; }
.drop-tile:hover .home-tile-name { color: var(--link-hover); text-decoration: underline; }

.gift-box { margin: 0 0 12px; padding: 10px 12px; border: 2px dashed var(--gui-dark, #555); }
.gift-box .checkbox { font-weight: 700; }
.gift-fields { margin-top: 10px; display: grid; gap: 8px; }
.gift-fields .field { margin: 0; }
.gift-preview { margin: 0; }
.gift-preview:empty { display: none; }
.gift-note { padding: 8px 10px; background: #fff4d6; border: 2px solid #000; color: #3d2a00; }

.tracker.steps-5 { grid-template-columns: repeat(5, 1fr); }
.elite-hero { display: grid; gap: 18px; padding: 18px 20px; margin-bottom: 18px; border-color: #000; box-shadow: inset 0 4px 0 var(--gold), var(--panel-shadow); }
@media (min-width: 900px) { .elite-hero { grid-template-columns: 1fr 340px; align-items: start; } }
.elite-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--ink-2); }
.elite-hero h1 { margin: 2px 0 4px; }
.elite-lead { margin: 0 0 12px; color: var(--ink-2); font-size: 1.05rem; }
.elite-perks { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.elite-card { display: grid; gap: 10px; align-content: start; padding: 14px 16px; background: var(--slot); box-shadow: var(--slot-bevel); }
.elite-card p { margin: 0; }
.elite-card .btn { justify-self: start; }
.elite-card .btn-block { justify-self: stretch; }
.elite-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.elite-price-value { font-size: 1.6rem; font-weight: 700; color: var(--price-ink); }
.elite-price-sub { color: var(--ink-2); }
.elite-badge { justify-self: start; padding: 4px 10px; font-weight: 700; background: var(--gold); color: #1b1c1f; box-shadow: 2px 2px 0 #000; }
.elite-pending { display: grid; gap: 4px; padding: 10px 12px; border-left: 4px solid var(--gold); background: var(--gold-soft, rgba(246, 196, 83, 0.14)); }
.elite-book { display: grid; gap: 8px; }
.elite-builder { margin-bottom: 8px; }
.elite-builder > h2 { font-size: 1.3rem; color: var(--ink); margin: 0 0 12px; }
.elite-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.elite-tab { padding: 8px 14px; font: inherit; font-weight: 700; background: var(--slot); border: 0; box-shadow: var(--slot-bevel); cursor: pointer; color: var(--ink-2); }
.elite-tab[aria-selected="true"] { background: var(--gold); color: #1b1c1f; box-shadow: 2px 2px 0 #000; }
.elite-panel { display: grid; gap: 10px; }
.elite-panel[hidden] { display: none; }
.elite-panel p { margin: 0; }
.elite-panel textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.85rem; }
.elite-file { justify-self: start; cursor: pointer; }
.elite-mode { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.elite-mode legend { padding: 0; margin-bottom: 4px; font-weight: 700; }
.elite-panel > .btn-primary { justify-self: start; }
.elite-list-summary { display: grid; gap: 4px; padding: 10px 12px; background: var(--slot); box-shadow: var(--slot-bevel); }
.elite-list-summary p { margin: 0; }
.elite-unknown { margin: 6px 0 0; padding-left: 18px; columns: 2 180px; }
.elite-lines { max-height: 460px; overflow-y: auto; }
.elite-line-list li { grid-template-columns: auto 1fr auto auto; }
.elite-line-qty { width: 92px; min-height: 32px; }
.elite-more summary { cursor: pointer; font-weight: 700; margin: 4px 0; }
.elite-decision { display: grid; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--gold); }
.elite-decision h4 { margin: 0; font-size: 1.05rem; }
.elite-decision p { margin: 0; }
.elite-decision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.elite-counter-wrap { max-height: 360px; overflow: auto; }
.elite-counter-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.elite-counter-table th, .elite-counter-table td { padding: 6px 8px; border-bottom: 2px solid var(--line); text-align: left; }
.elite-counter-table .num { text-align: right; white-space: nowrap; }
.elite-cell-item { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.elite-cell-item .mini-icon { width: 24px; height: 24px; flex-shrink: 0; }
.elite-price-input { width: 96px; min-height: 32px; text-align: right; }
.elite-counter-total { margin: 0; }
.elite-box.status-quoted { border-color: var(--gold); }
@media (max-width: 600px) {
  .elite-decision-actions .btn { width: 100%; }
  .elite-price-input { width: 76px; }
}
.hero-actions .hero-prime { --btn-bg: var(--gold); --btn-fg: #2a1d00; text-shadow: none; border-color: #000; }
.hero-actions .hero-prime:hover { filter: brightness(1.08); }
