/* A sample counter and wooden display shelves in the existing town palette. */
.home-equipment{--he-paper:#fffaf0;--he-cream:#fff2ce;--he-wood:#966849;--he-ink:#503e31;--he-leaf:#718760;color:var(--he-ink);max-width:1220px;margin:0 auto}
.home-equipment-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:23px 25px;background:var(--he-cream);border:1px solid #96684955;border-bottom:3px solid var(--he-wood);border-radius:12px 12px 2px 2px}
.home-equipment-heading small{font-size:10px;letter-spacing:2px;color:var(--he-wood)}.home-equipment-heading h1{font:700 clamp(22px,2.4vw,32px)/1.4 'STKaiti','KaiTi','Microsoft YaHei',serif;margin:7px 0}.home-equipment-heading p{font-size:12px;line-height:1.7;color:#766451}.home-equipment-wallet{flex:none;text-align:right;display:grid;gap:4px}.home-equipment-wallet>span{font-size:10px;color:var(--he-wood)}.home-equipment-wallet>b{font:700 25px/1.2 'Courier New',monospace}.home-equipment-wallet>.btn{margin-top:7px}
.home-equipment-rules{display:flex;flex-wrap:wrap;gap:5px 25px;padding:13px 18px;background:#fffaf0;border:1px solid #96684933;border-top:0;font-size:11px;line-height:1.8}.home-equipment-rules b{color:#503e31}.home-equipment-rules small{width:100%;font-size:10px;color:#766451}
.home-equipment-preview{margin-top:14px;padding:16px;background:#f4ead2;border:1px solid #96684966;border-radius:10px;box-shadow:0 4px 0 #503e3110}.home-equipment-preview>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.home-equipment-preview header small{font-size:9px;letter-spacing:1.5px;color:#966849}.home-equipment-preview h2{font:700 20px/1.4 'STKaiti','KaiTi','Microsoft YaHei',serif;margin:4px 0}.home-equipment-preview p{font-size:11px;color:#766451;margin:0}.home-equipment-preview-stage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:13px;padding:12px;background:linear-gradient(#dce3c7,#d4d6b7);border:2px solid #8a6043;border-radius:7px;min-height:170px;align-items:end}.home-equipment-preview-piece{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px}.home-equipment-preview-piece>div{width:100%;height:115px;display:flex;align-items:flex-end;justify-content:center}.home-equipment-preview-piece>div>*{width:100%!important;height:100%!important;object-fit:contain}.home-equipment-preview-piece>b{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-equipment-preview-piece>.btn{font-size:9px;padding:4px 7px}.home-equipment-preview-piece:nth-child(4n+1){transform:translateY(2px)}.home-equipment-preview-piece:nth-child(4n+2){transform:translateY(-8px)}.home-equipment-preview-piece:nth-child(4n+3){transform:translateY(6px)}.home-equipment-preview-piece:nth-child(4n){transform:translateY(-3px)}
.home-equipment-tabs{display:flex;gap:3px;padding:20px 0 0;border-bottom:2px solid var(--he-wood);scroll-margin-top:15px}.home-equipment-tabs button{border:1px solid #96684955;border-bottom:0;border-radius:8px 8px 0 0;background:#f3e2ba;color:#76553d;padding:11px 22px;font-size:13px}.home-equipment-tabs button span{font-size:9px;display:block;margin-top:3px}.home-equipment-tabs button.active{background:var(--he-wood);border-color:var(--he-wood);color:#fffaf0}.home-equipment-tabs button:focus-visible,.home-equipment .btn:focus-visible,.home-equipment input:focus-visible,.home-equipment select:focus-visible{outline:3px solid var(--he-leaf);outline-offset:3px}
.home-equipment-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:17px 0 20px}.home-equipment-filters label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#76553d}.home-equipment-filters select,.home-equipment-filters input{font:inherit;font-size:12px;min-height:35px;background:var(--he-paper);border:1px solid #96684966;border-radius:5px;box-shadow:none;padding:6px 9px;color:var(--he-ink);max-width:100%;width:auto}.home-equipment-search{flex:1;min-width:150px;max-width:340px}.home-equipment-filters>span{margin-left:auto;font-size:10px;color:#766451;align-self:flex-end;line-height:35px}.home-equipment-error:empty{display:none}.home-equipment-error{margin-bottom:12px}
.home-equipment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 15px}.home-equipment-card{background:var(--he-paper);border:1px solid #96684944;border-bottom:5px solid var(--he-wood);border-radius:8px 8px 3px 3px;min-width:0;box-shadow:0 4px 0 #503e3110;display:flex;flex-direction:column;overflow:hidden}.home-equipment-art{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.3;background:linear-gradient(0deg,#96684918,transparent 36%),#fff2ce66;padding:12px 18px 4px;overflow:hidden}.home-equipment-art>img,.home-equipment-art>.sprite,.home-equipment-art>.home-equipment-sprite{width:100%!important;height:100%!important;max-height:180px;max-width:none;object-fit:contain;margin:0!important}.home-equipment-sprite{width:100%;height:100%;display:block;pointer-events:none;overflow:hidden}.home-equipment-owned{position:absolute;top:9px;left:9px;background:var(--he-leaf);color:#fffaf0;font-size:9px;border-radius:3px;padding:3px 6px}.home-equipment-copy{padding:13px 13px 8px;flex:1}.home-equipment-copy>small{font-size:9px;letter-spacing:1px;color:var(--he-wood)}.home-equipment-copy h2{font:700 13px/1.55 inherit;margin:3px 0 9px;overflow-wrap:anywhere}.home-equipment-price{display:flex;align-items:baseline;justify-content:space-between;gap:5px}.home-equipment-price>b{font-size:17px}.home-equipment-price>b small{font-size:10px;font-weight:400}.home-equipment-price>span{font-size:10px;color:#766451}.home-equipment-card-actions{padding:4px 13px 13px;display:flex;flex-wrap:wrap;gap:6px}.home-equipment-card-actions>.btn:first-of-type{flex:1}.home-equipment-card-actions>.btn{font-size:11px;padding:6px 10px}.home-equipment-confirm{width:100%;font-size:10px;color:#76553d;margin:0 0 2px}.home-equipment-samples .home-equipment-art{padding:15px;background:#f3e2ba;aspect-ratio:1.12}.home-equipment-samples .home-equipment-art>.home-equipment-sprite{box-shadow:0 2px 5px #503e3133;border:4px solid #fffaf0;max-height:210px;transform:rotate(-1deg)}.home-equipment-samples .home-equipment-card:nth-child(even) .home-equipment-art>.home-equipment-sprite{transform:rotate(1deg)}.home-equipment-samples .home-equipment-card{border-bottom-width:2px}
.home-equipment-empty{grid-column:1/-1;text-align:center;border:1px dashed #96684977;padding:45px 20px;background:var(--he-paper);border-radius:8px}.home-equipment-empty h2{font-size:17px;margin-bottom:8px}.home-equipment-empty p{font-size:12px;color:#766451}.home-equipment-pages{display:flex;align-items:center;justify-content:center;gap:18px;padding:27px 0}.home-equipment-pages span{font-size:11px;color:#76553d}
@media(max-width:1000px){.home-equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-equipment-heading{padding:20px}}
@media(max-width:620px){.home-equipment-heading{padding:17px 13px;gap:10px;align-items:flex-start}.home-equipment-heading h1{font-size:22px;max-width:210px}.home-equipment-heading p{font-size:10px}.home-equipment-heading small{font-size:9px;letter-spacing:1px}.home-equipment-wallet>b{font-size:21px}.home-equipment-wallet>.btn{font-size:10px;padding:6px;white-space:nowrap}.home-equipment-rules{padding:10px 12px;gap:3px 12px;font-size:10px}.home-equipment-rules small{font-size:9px}.home-equipment-preview{padding:11px}.home-equipment-preview>header{display:block}.home-equipment-preview h2{font-size:17px}.home-equipment-preview header .flex{margin-top:8px}.home-equipment-preview-stage{grid-template-columns:repeat(2,minmax(0,1fr));min-height:210px;padding:9px}.home-equipment-preview-piece>div{height:100px}.home-equipment-tabs button{padding:10px 4px;flex:1;font-size:12px;min-width:0}.home-equipment-tabs button span{font-size:8px}.home-equipment-filters{gap:8px;padding:13px 0}.home-equipment-filters>span{width:100%;line-height:1.3}.home-equipment-filters label{font-size:9px}.home-equipment-filters select{max-width:115px}.home-equipment-search{min-width:90px}.home-equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 9px}.home-equipment-art{padding:9px 8px 3px;aspect-ratio:1.05}.home-equipment-copy{padding:9px 9px 5px}.home-equipment-copy h2{font-size:11px;margin-bottom:7px}.home-equipment-copy>small{font-size:8px}.home-equipment-price>b{font-size:15px}.home-equipment-price>span{font-size:8px}.home-equipment-card-actions{padding:5px 8px 10px;gap:4px}.home-equipment-card-actions>.btn{font-size:9px;padding:6px}.home-equipment-samples .home-equipment-art{padding:11px}.home-equipment-owned{top:6px;left:6px;font-size:8px}.home-equipment-pages{padding:22px 0}}
@media(prefers-reduced-motion:reduce){.home-equipment *{animation:none!important;transition:none!important}}
