.smb3-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin:16px 0}.smb3-card{border:1px solid #ffd56b40;border-radius:6px;background:var(--surface);overflow:hidden}.smb3-card>a{display:block;background:#e9e4dc}.smb3-card img{display:block;width:100%;height:145px;object-fit:contain}.smb3-card>div{padding:12px}.smb3-card h2{font-size:17px;line-height:1.2;margin:6px 0}.smb3-card p{font-size:13px;line-height:1.45;margin:0}.smb3-card small{color:var(--accent);font-size:10px}.smb3-card[hidden]{display:none}.smb3-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px;background:var(--surface);border-radius:6px}.smb3-controls label{display:grid;gap:5px;font-size:12px;flex:1 1 180px}.smb3-controls input,.smb3-controls select{width:100%;min-width:0;padding:10px;border:1px solid #ffd56b60;border-radius:4px;background:var(--bg);color:var(--text,#fff);font:inherit;font-size:14px}.smb3-controls p{font-size:12px;margin:10px 0}.smb3-basics{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.smb3-basics section{padding:16px;background:var(--surface);border:1px solid #ffd56b40;border-radius:6px}.smb3-basics h2{font-size:19px;margin:0 0 8px}.smb3-basics p{font-size:14px;line-height:1.55;margin:0}.smb3-home .mp4-topic{border-color:#ffd56b40}.smb3-home .mp4-topic>img{object-fit:contain}.smb3-directory input:focus-visible,.smb3-directory select:focus-visible,.smb3-card>a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(max-width:600px){.smb3-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.smb3-card img{height:120px}.smb3-card>div{padding:10px}.smb3-card h2{font-size:16px}.smb3-card p{font-size:12px}.smb3-controls label{flex-basis:100%}}

.smb3-grid.suits{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.smb3-grid.suits img{height:210px}.smb3-note{font-size:12px;opacity:.8}.smb3-tips{font-size:14px;line-height:1.6;padding:0 16px}.smb3-card>a{background:#28241f}.smb3-grid.worlds img{object-fit:cover}.smb3-controls select option{background:#211d18;color:#fff}


.smb3-grid.items img{image-rendering:pixelated;object-fit:contain;padding:25px}.smb3-grid.worlds img{object-fit:contain;image-rendering:pixelated;background:#171d2b}.smb3-card>a{background:#e9e0c7}.smb3-home .mp4-topic>img{image-rendering:auto}.smb3-home .mp4-topic[href$="/items/"]>img{image-rendering:pixelated;padding:15px}

/* Long-form world routes retain legible maps in the compact wiki layout. */
body .smb3-world-guide{min-width:0}
body .smb3-world-guide .lead{max-width:75ch;line-height:1.65}
body .smb3-related-guides{padding:12px 14px;background:var(--surface);border:1px solid #ffd56b40;border-radius:6px;line-height:1.7}
body .smb3-world-guide>section{margin:28px 0}
body .smb3-table-wrap{overflow-x:auto;max-width:100%;border:1px solid #ffd56b40;border-radius:6px;margin:14px 0}
body .smb3-world-table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.5}
body .smb3-world-table caption{text-align:left;padding:10px 12px;color:var(--muted);font-size:12px}
body .smb3-world-table th,body .smb3-world-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid #ffd56b25}
body .smb3-world-table thead{background:var(--surface)}
body .smb3-world-table tbody tr:last-child>*{border-bottom:0}
body .smb3-world-sections{display:grid;gap:24px;margin:28px 0}
body .smb3-world-guide .smb3-card{border-radius:8px;scroll-margin-top:85px;min-width:0}
body .smb3-world-guide .smb3-card>div{padding:18px 20px}
body .smb3-world-guide .smb3-card .smb3-world-heading h2{font-size:26px;line-height:1.25;margin:8px 0 12px}
body .smb3-world-guide .smb3-card p,body .smb3-world-guide .smb3-card dd{font-size:14px;line-height:1.7;margin:8px 0}
body .smb3-world-guide .smb3-card .smb3-world-facts{font-size:12px;color:var(--muted)}
body .smb3-world-guide .smb3-card .smb3-world-media{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(100px,1fr);gap:14px;padding:0 20px 16px;align-items:start}
body .smb3-guide-picture{margin:16px 0;min-width:0}
body .smb3-guide-picture>a{display:flex;align-items:center;justify-content:center;background:#171d2b;border:1px solid #ffd56b40;border-radius:6px;overflow:hidden}
body .smb3-guide-picture img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain}
body .smb3-guide-picture figcaption{font-size:12px;line-height:1.5;padding:8px 2px;color:var(--muted)}
body .smb3-world-guide .smb3-world-media .smb3-guide-picture{margin:0}
body .smb3-world-guide .smb3-card .smb3-map-picture img{height:auto;min-height:175px;max-height:360px;object-fit:contain;padding:10px;image-rendering:pixelated}
body .smb3-world-guide .smb3-card .smb3-boss-picture img{height:185px;padding:10px;object-fit:contain}
body .smb3-guide-picture.smb3-boss-picture>a{background:#e9e0c7}
body .smb3-guide-picture.smb3-boss-picture{max-width:280px}
body .smb3-guide-picture.smb3-boss-picture img{height:240px;padding:12px;object-fit:contain}
body .smb3-guide-picture.smb3-item-picture{max-width:150px}
body .smb3-guide-picture.smb3-item-picture img{height:120px;padding:30px;image-rendering:pixelated}
body .smb3-world-guide .smb3-card h3{font-size:17px;line-height:1.35;margin:21px 0 7px}
body .smb3-world-guide .smb3-card h3:first-child{margin-top:0}
body .smb3-course-notes{margin:12px 0}
body .smb3-course-notes>div{padding:11px 0;border-bottom:1px solid #ffd56b25}
body .smb3-course-notes dt{font-size:14px;font-weight:700;color:var(--text)}
body .smb3-course-notes dd{margin:5px 0 0}
body .smb3-reference-line{font-size:12px!important;line-height:1.7!important;margin-top:18px!important}
body .smb3-inventory-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .smb3-inventory-notes>div{padding:14px;background:var(--surface);border:1px solid #ffd56b40;border-radius:6px}
body .smb3-inventory-notes img{float:right;width:48px;height:48px;object-fit:contain;padding:8px;image-rendering:pixelated}
body .smb3-inventory-notes h3{font-size:16px;margin:6px 0 10px}
body .smb3-inventory-notes p{font-size:13px;line-height:1.65;clear:both}
body .smb3-world-faq h3{font-size:17px;margin-top:20px}
body .smb3-world-sources p{font-size:12px;line-height:1.7}
body .smb3-route-steps{padding:14px 14px 14px 36px;background:var(--surface);border:1px solid #ffd56b40;border-radius:6px;font-size:14px;line-height:1.7}
body .smb3-route-steps li{padding:3px 0}
body .smb3-world-table a:focus-visible,body .smb3-guide-picture>a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media(max-width:600px){
 body .smb3-world-table{font-size:12px}
 body .smb3-world-table th,body .smb3-world-table td{padding:8px}
 body .smb3-world-guide .smb3-card>div{padding:14px}
 body .smb3-world-guide .smb3-card .smb3-world-heading h2{font-size:23px}
 body .smb3-world-guide .smb3-card .smb3-world-media{grid-template-columns:minmax(0,1fr);padding:0 14px 10px;gap:10px}
 body .smb3-world-guide .smb3-card .smb3-map-picture img{min-height:0;padding:5px;max-height:none}
 body .smb3-world-guide .smb3-card .smb3-boss-picture{max-width:180px}
 body .smb3-world-guide .smb3-card .smb3-boss-picture img{height:150px}
 body .smb3-inventory-notes{grid-template-columns:minmax(0,1fr)}
}
