/* Item pages and category pages (the pages search engines find) */
.item-page{max-width:900px;margin:0 auto}
.crumbs{font-size:.85rem;color:var(--muted);margin:6px 0 20px}
.crumbs a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.crumbs .sep{margin:0 8px}
.item-top{display:grid;grid-template-columns:240px 1fr;gap:30px;align-items:start}
.item-img{display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(var(--bg-rgb),.62);border:1px solid var(--line);border-radius:8px}
.item-img img{max-width:100%;height:auto;max-height:260px;object-fit:contain}
.item-img img.noimg{opacity:.3;padding:30px}
.item-info h1,.item-page>h1{font-size:1.9rem;line-height:1.2;margin:0 0 12px}
.item-info .c-meta{margin-bottom:14px}
.item-info .c-cat{color:var(--muted);text-decoration:none}
.item-desc{line-height:1.75;margin:0 0 14px;max-width:560px}
.item-price{font-size:1.35rem;font-weight:600;margin:16px 0 4px}
.item-updated{color:var(--muted);font-size:.9rem;margin:0 0 18px}
.item-actions{display:flex;flex-wrap:wrap;gap:8px}
.item-section{margin-top:34px}
.item-section h2{font-size:1.1rem;font-weight:600;margin:0 0 12px}
.link-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.link-list li{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:rgba(var(--bg-rgb),.62);border:1px solid var(--line);border-radius:8px;font-size:.9rem}
.link-list a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.link-list span{color:var(--muted);white-space:nowrap}
.lead-text{color:var(--muted);line-height:1.7;max-width:680px;margin:-4px 0 22px}
.cat-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:10px}
.cat-grid a{display:grid;grid-template-columns:56px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;padding:10px 14px;text-decoration:none;color:inherit;background:rgba(var(--bg-rgb),.62);border:1px solid var(--line);border-radius:8px}
.cat-grid a:hover{background:var(--fill)}
.cat-grid img{grid-row:1/3;width:56px;height:56px;object-fit:contain}
.cat-grid img.noimg{opacity:.3;padding:8px}
.cat-name{font-weight:600}
.cat-price{color:var(--muted);font-size:.85rem}
@media (max-width:700px){.item-top{grid-template-columns:1fr}.item-img{max-width:280px}}
#history .chart-wrap,#history .hist-list{max-width:560px}
#history .hist-list .m-sub{display:none}
/* Dedicated item and category pages */
.item-page{max-width:1200px}.crumbs{margin-bottom:28px;line-height:1.8;overflow-wrap:anywhere}
.item-top{grid-template-columns:minmax(200px,300px) minmax(0,1fr);gap:40px;align-items:start}
.item-img{padding:32px;border-radius:16px;aspect-ratio:1;position:sticky;top:24px}.item-img img{max-height:280px;width:100%;height:100%;object-fit:contain}
.item-info .page-intro{font-size:.9rem;margin-bottom:24px;max-width:65ch}.item-info .c-meta{margin-bottom:24px}
.price-summary{padding:24px;border:1px solid var(--line);background:var(--fill);border-radius:12px;margin:20px 0}
.eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}
.item-price{font-size:clamp(1.6rem,3vw,2.4rem);font-weight:650;letter-spacing:-.03em;margin:6px 0;font-variant-numeric:tabular-nums}
.item-updated{font-size:.85rem;color:var(--muted)}.price-summary .freshness{font-size:.85rem}
.item-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.item-actions .btn:first-child{background:var(--accent);color:var(--accent-text,var(--background))}
.item-section{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}.item-desc{max-width:80ch;line-height:1.8}
.link-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0;list-style:none}.link-list li{display:flex;flex-direction:column;align-items:flex-start;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--fill);gap:8px}.link-list a{font-weight:600;text-underline-offset:4px}.link-list span{font-size:.85rem;color:var(--muted)}
.cat-grid{gap:16px}.cat-grid li a{border-radius:12px;padding:20px;min-height:110px}.cat-name{font-weight:600}
@media(max-width:700px){.item-top{grid-template-columns:1fr;gap:24px}.item-img{position:static;max-width:240px;width:100%;padding:24px}.item-img img{max-height:180px}.link-list{grid-template-columns:1fr}.item-section{margin-top:28px}.price-summary{padding:20px}}
#history .history-widget{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px 24px;align-items:start}
#history .history-widget>.tools,#history .history-widget>.meta{grid-column:1/-1;margin-bottom:0}
#history .chart-wrap,#history .hist-list{max-width:none;min-width:0}
#history .hist-list{margin-top:10px}
@media(max-width:900px){#history .history-widget{display:block}#history .history-widget>.tools{margin-bottom:16px}}

/* Enhanced related items share the browser grid; retain crawlable fallback links. */
#similar-items{margin-top:16px}
#similar-items>.link-list{grid-column:1/-1;margin:0}

/* Downloadable item information image. */
dialog.item-image-preview{max-width:880px;width:calc(100% - 32px);border-radius:12px}
.item-image-preview h2{margin:0 0 12px}.item-image-result{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}
.item-image-preview .m-btns{position:sticky;bottom:0;background:var(--background);padding:12px 0;margin-bottom:0}
#imageStatus{font-size:.85rem;color:var(--muted);margin-top:12px}
@media(max-width:600px){dialog.item-image-preview{padding:16px}.item-image-preview .m-btns .btn{flex:1}}

.item-back{margin-bottom:20px}

/* Keep the graph visible and the complete record list closed until requested. */
#history .history-widget{display:block}
#history .chart-wrap{max-width:840px}
#history .history-records{max-width:none;margin-top:16px;padding-top:8px;border-top:1px solid var(--line)}
.history-records>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:550;color:var(--foreground);line-height:1.6}
.history-records>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.history-records>ul{margin-top:8px}
.item-result-nav .btn{gap:8px}.item-result-nav [aria-hidden=true]{flex:none;line-height:1}

.item-game{font-size:.9rem;line-height:1.7;color:var(--muted);margin:28px 0 0}
