/* The approved jelly frames the evidence; original benchmark images stay intact. */
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.hero-actions>a:not(.button) { font-size: 12px; color: #67437a; }
.missingno-stealthmark, .missingno-svg-section {
  position: relative; margin: 28px 0 44px; padding: 38px;
  border: 1px solid #d0b6dc; border-radius: 52px 65px 48px 61px / 45px 52px 62px 48px;
  background: radial-gradient(ellipse at 20% 0, #fffdfade, transparent 55%), #eadbef;
  box-shadow: var(--jelly-gloss);
}
.missingno-stealthmark:after, .missingno-svg-section:after {
  content: ''; position: absolute; bottom: -28px; left: calc(50% - 95px);
  width: 190px; height: 20px; background: var(--jelly-rule) center/contain no-repeat; pointer-events: none;
}
.missingno-stealthmark .stealthmark {
  margin: 28px 0 22px; --sm-ink: #392644; --sm-muted: #715d7b; --sm-accent: #795093;
  --sm-paper: #fbf6fd; --sm-edge: #cfb7dc; --sm-visual: #a978a4; --sm-focus: #66417d;
  --sm-map-accent: #795093; --sm-map-surface: #fcf8fd; --sm-map-ink: #392644;
  --sm-map-muted: #715d7b; --sm-map-line: #d9c7e2; --sm-map-radius: 30px;
}
.missingno-stealthmark .sm-context { padding: 24px 28px; border: 1px solid #d1badd; border-radius: 30px 36px 28px 33px; background: #f7eff9; box-shadow: inset 0 2px 0 #fffc; }
.missingno-stealthmark stealthmark-map { --sm-map-accent: #795093; --sm-map-surface: #fcf8fd; --sm-map-ink: #392644; --sm-map-muted: #715d7b; --sm-map-line: #d9c7e2; --sm-map-radius: 30px; }
.benchmark-jump, .gallery-all-results { display: inline-block; font-size: 12px; color: #67437a; line-height: 1.7; }
.missingno-svg-section { background: radial-gradient(ellipse at 90% 0, #ead8f6bb, transparent 50%), #faf4fc; border-radius: 62px 48px 66px 45px / 48px 60px 52px 57px; }
.gallery-heading { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.gallery-heading .section-heading { max-width: 650px; }
.gallery-jelly-note { display: flex; flex: 0 0 190px; flex-direction: column; align-items: center; text-align: center; }
.gallery-jelly-note img { width: 112px; height: auto; }
.gallery-jelly-note p { margin-top: 2px; padding: 7px 12px; border: 1px solid #d8b6d5; background: #f3e0ed; border-radius: 6px 20px 21px 18px; color: #6a476f; font-size: 11px; }
.missingno-gallery [hidden] { display: none !important; }
.gallery-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 5px 5px 12px; scrollbar-width: thin; scrollbar-color: #b496c6 #f1e7f5; scroll-padding: 5px; }
.gallery-tabs button { display: flex; flex: 1 0 105px; min-width: 0; flex-direction: column; align-items: center; gap: 9px; padding: 10px 7px 11px; border: 1px solid #d3bedf; border-radius: 23px 28px 20px 25px; background: #f0e6f4; box-shadow: inset 0 2px 0 #fffc; color: #765e82; font-size: 11px; line-height: 1.4; }
.gallery-tabs button[aria-selected=true] { color: #fff8ff; border-color: #75508b; background: linear-gradient(150deg, #9773b0, #66427d); box-shadow: inset 0 2px 0 #e8cffa88, inset 0 -3px 0 #40255122; }
.gallery-tab-image { display: flex; align-items: center; justify-content: center; width: 58px; height: 48px; border-radius: 13px 16px 12px 15px; background: #fffbf9; overflow: hidden; }
.gallery-tab-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 5px 17px; }
.gallery-navigation>span { color: #80638f; font: 12px ui-monospace, monospace; }
.gallery-navigation>div { display: flex; gap: 9px; }
.gallery-navigation button { width: 49px; height: 44px; border: 1px solid #bba0cc; border-radius: 42% 49% 35% 42%; color: #573569; background: linear-gradient(145deg, #eadbf2, #d2b8e0); box-shadow: inset 0 2px 0 #fffc, inset 0 -2px 0 #ae8cc233; font-size: 20px; touch-action: manipulation; }
.gallery-navigation button:active { box-shadow: inset 0 3px 0 #a989ba55; background: #d0b3e0; }
.gallery-tabs button:focus-visible, .gallery-navigation button:focus-visible { outline: 3px solid #68437e; outline-offset: 3px; }
.missingno-result { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 30px; align-items: start; padding: 23px; border: 1px solid #d3bddf; border-radius: 35px 43px 31px 40px; background: #eee2f3; box-shadow: inset 0 2px 0 #fffc; scroll-margin-top: 24px; }
.missingno-result+.missingno-result { margin-top: 24px; }
.missingno-gallery[data-enhanced] .missingno-result { margin-top: 0; }
.missingno-result-image { margin: 0; height: 440px; min-width: 0; display: grid; place-items: center; border: 1px solid #d1c0d9; border-radius: 23px 29px 20px 26px; overflow: hidden; background: #fffbf7; }
.missingno-result-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.missingno-result-copy { min-width: 0; padding: 8px 2px 3px 0; }
.missingno-result-copy>.eyebrow { margin-bottom: 12px; font-size: 9px; }
.missingno-result-copy h3 { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 15px; }
.gallery-task { font-size: 13px; line-height: 1.8; color: #705c79; }
.gallery-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; padding: 15px 18px; border: 1px solid #c6a9d7; border-radius: 22px 29px 21px 27px; background: linear-gradient(145deg, #e9d5f2, #ddc4e9); box-shadow: inset 0 2px 0 #fff9; }
.gallery-score>span { font-size: 11px; color: #644675; }
.gallery-score strong { font: 600 28px ui-monospace, monospace; color: #523166; letter-spacing: -.04em; white-space: nowrap; }
.gallery-score small { margin-left: 3px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #795d87; }
.gallery-evaluation { margin-top: 20px; font-size: 12px; color: #6b5277; border-block: 1px solid #d3bedf; }
.gallery-evaluation summary { padding: 12px 0; cursor: pointer; min-height: 44px; }
.gallery-evaluation p { padding: 0 0 16px; font-size: 12px; line-height: 1.8; }
.gallery-result-link { display: inline-block; margin-top: 19px; font-size: 12px; color: #58346d; line-height: 1.7; }
.gallery-all-results { margin: 23px 5px 0; }
@media (max-width: 900px) {
  .guide-nav { flex-wrap: wrap; gap: 9px; }
  .guide-nav>span { flex-basis: 100%; }
  .missingno-result { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 20px; padding: 19px; }
  .missingno-result-image { height: 370px; }
  .gallery-heading { gap: 15px; }
  .gallery-jelly-note { flex-basis: 150px; }
}
@media (max-width: 680px) {
  .missingno-stealthmark, .missingno-svg-section { padding: 29px 20px; border-radius: 34px 42px 32px 40px; }
  .missingno-stealthmark .sm-context { padding: 22px 18px; border-radius: 24px 30px 22px 27px; }
  .gallery-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 21px; }
  .gallery-jelly-note { flex-direction: row; flex-basis: auto; text-align: left; gap: 3px; }
  .gallery-jelly-note img { width: 65px; }
  .gallery-jelly-note p { border-radius: 20px 22px 19px 6px; }
  .gallery-tabs { margin-inline: -5px; }
  .gallery-tabs button { flex-basis: 94px; }
  .missingno-result { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 14px; border-radius: 25px 31px 23px 29px; }
  .missingno-result-image { height: 310px; border-radius: 18px 23px 17px 21px; }
  .missingno-result-copy { padding: 4px 5px 7px; }
  .missingno-result-copy h3 { font-size: 27px; }
  .gallery-score { margin-block: 18px 14px; padding: 13px 14px; }
  .gallery-evaluation { margin-top: 16px; }
}
