/* Professor Layton and the Miracle Mask zone — "Monte d'Or case file".
   Night-blue page, wooden trunk bars with gold trim, parchment cards and gold serif headings, after the
   zone homepage mockup. Fonts: the mockup uses Cinzel and Nunito; nothing is loaded from third parties, so
   the stacks fall back to locally installed serif / rounded fonts. Textures, art and icons are taken from the
   game's own files (wood.webp, skyline.webp, hero, sprites, thumbnails), see the zone home template.
   Sections: tokens · chrome (header, nav, footer) · shared parts · hero · intro · sections · responsive */

/* ===== Tokens ===== */
body.zone-professor-layton-and-the-miracle-mask {
  color-scheme: dark;
  --ml-night: #171c3b;
  --ml-night-deep: #0c0f27;
  --ml-gold: #dca744;
  --ml-gold-light: #f6d480;
  --ml-gold-dark: #a76c12;
  --ml-parchment: #f4e6ca;
  --ml-parchment-2: #ecdcb8;
  --ml-ink: #3d281a;
  --ml-ink-2: #705848;
  --ml-wood: #4c311e;
  --ml-wood-deep: #2e1c10;
  --ml-teal: #0d9298;
  --ml-serif: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ml-sans: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shared component tokens (site.css / zone.css): windows on search and article pages are parchment. */
  --bg: var(--ml-night);
  --card: var(--ml-parchment);
  --card-2: var(--ml-parchment-2);
  --line: #d8c08a;
  --bevel: #c9ad72;
  --ink: var(--ml-ink);
  --ink-2: #5a4130;
  --ink-3: var(--ml-ink-2);
  --link: #8a560c;
  --btn-top: #fbf1dc;
  --btn-bot: #f0dfbb;
  --title-top: #fbf1dc;
  --title-bot: #efdcb5;
  --shell: var(--ml-gold);
  --shell-hi: var(--ml-gold-light);
  --shell-lo: var(--ml-gold-dark);
  --shell-ink: #341a07;
  --cursor: var(--ml-gold);
  --cursor-2: var(--ml-gold-light);
  --glow: rgba(220, 167, 68, .35);
  --radius: 10px;
  --z-display: var(--ml-serif);
  --z-nav-bg: transparent;

  background: radial-gradient(ellipse 70% 40% at 50% 0, #2a2f5c 0, transparent 70%), var(--ml-night);
  color: var(--ml-parchment);
  font-family: var(--ml-sans);
}
.zone-professor-layton-and-the-miracle-mask .i { width: 1em; height: 1em; flex: none; }
.zone-professor-layton-and-the-miracle-mask .window,
.zone-professor-layton-and-the-miracle-mask .lr-btn { color: var(--ink); }
.zone-professor-layton-and-the-miracle-mask .crumbs li { color: rgba(244, 230, 202, .7); }
.zone-professor-layton-and-the-miracle-mask .crumbs a[aria-current] { color: var(--ml-gold-light); }
.zone-professor-layton-and-the-miracle-mask .result-count { color: rgba(244, 230, 202, .85); }

/* ===== Chrome: header bar with nav ===== */
.ml-header { position: sticky; top: 0; z-index: 50; padding: 12px 0 0; }
.ml-bar {
  width: min(1180px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border: 2px solid var(--ml-gold); border-radius: 10px;
  background: linear-gradient(180deg, rgba(91, 58, 34, .35), rgba(46, 28, 16, .45)), url("wood.webp") center / 320px auto, var(--ml-wood);
  box-shadow: inset 0 0 0 3px #3a2414, inset 0 0 0 4px rgba(246, 212, 128, .35), 0 10px 24px -12px rgba(0, 0, 0, .7);
}
.ml-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ml-parchment); text-decoration: none; }
.ml-brand-mark { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ml-night-deep); box-shadow: 0 0 0 2px var(--ml-night-deep), 0 2px 8px rgba(0, 0, 0, .5); }
.ml-brand-text { display: grid; line-height: 1.15; }
.ml-brand-text strong { font-family: var(--ml-serif); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ml-gold-light); }
.ml-brand-text small { font-size: .72rem; opacity: .8; }
.zone-professor-layton-and-the-miracle-mask .ml-nav { position: static; flex: 1; min-width: 0; border: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.zone-professor-layton-and-the-miracle-mask .ml-nav .zone-nav-inner { width: auto; height: 44px; justify-content: flex-start; gap: 0; }
.zone-professor-layton-and-the-miracle-mask .ml-nav a { padding: 6px 10px; color: var(--ml-parchment); font-size: .84rem; font-weight: 700; }
.zone-professor-layton-and-the-miracle-mask .ml-nav a:hover { background: rgba(246, 212, 128, .14); color: var(--ml-gold-light); }
.zone-professor-layton-and-the-miracle-mask .ml-nav a[aria-current] { background: var(--ml-gold); color: #341a07; }
.zone-professor-layton-and-the-miracle-mask .ml-nav .zone-nav-search { display: none; }
.ml-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.ml-exit { color: var(--ml-parchment); font-size: .78rem; font-weight: 700; text-decoration: none; opacity: .75; white-space: nowrap; }
.ml-exit:hover { opacity: 1; text-decoration: underline; }
.zone-professor-layton-and-the-miracle-mask .ml-search { width: 190px; height: 36px; background: var(--ml-night-deep); border: 1px solid rgba(246, 212, 128, .55); box-shadow: none; }
.zone-professor-layton-and-the-miracle-mask .ml-search input[type="search"] { color: var(--ml-parchment); font-size: .88rem; }
.zone-professor-layton-and-the-miracle-mask .ml-search input::placeholder { color: rgba(244, 230, 202, .55); }
.zone-professor-layton-and-the-miracle-mask .ml-search button { width: 28px; height: 28px; background: var(--ml-gold); color: #341a07; }
html:has(.zone-professor-layton-and-the-miracle-mask) { scroll-padding-top: 96px; }
.zone-professor-layton-and-the-miracle-mask .toc-col,
.zone-professor-layton-and-the-miracle-mask .side-col { top: 96px; }

/* ===== Footer ===== */
.ml-footer { width: min(1180px, 100% - 32px); margin: 56px auto 28px; overflow: hidden; border: 2px solid var(--ml-gold); border-radius: 10px; background: linear-gradient(180deg, rgba(12, 15, 39, .55), rgba(46, 28, 16, .96) 70%), url("skyline.webp") center top / cover, var(--ml-wood-deep); box-shadow: inset 0 0 0 3px #3a2414, inset 0 0 0 4px rgba(246, 212, 128, .3); }
.ml-footer-inner { padding: 34px 24px 26px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.ml-footer-quote { margin: 0; font-family: var(--ml-serif); font-size: 1.2rem; color: var(--ml-gold-light); }
.ml-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-weight: 800; font-size: .9rem; }
.ml-footer a { color: var(--ml-parchment); text-decoration: none; }
.ml-footer a:hover { color: var(--ml-gold-light); text-decoration: underline; }
.ml-footer-base { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; font-size: .84rem; opacity: .85; }
.ml-footer .linklike { color: var(--ml-parchment); }
.ml-legal { max-width: 640px; margin: 0; font-size: .78rem; opacity: .65; }

/* ===== Shared parts ===== */
.ml-rule { display: block; width: 160px; height: 2px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--ml-gold), transparent); }
.ml-parchment {
  border: 2px solid var(--ml-gold); border-radius: 10px; color: var(--ml-ink);
  background: radial-gradient(ellipse at 20% 0, #fbf3e0 0, transparent 60%), var(--ml-parchment);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 26px rgba(167, 108, 18, .16), 0 10px 24px -14px rgba(0, 0, 0, .7);
}
.ml-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font-weight: 800; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.ml-btn-gold { color: #341a07; background: linear-gradient(180deg, var(--ml-gold-light), var(--ml-gold) 60%, #c08a2a); border: 1px solid var(--ml-gold-dark); box-shadow: 0 3px 0 var(--ml-gold-dark); }
.ml-btn-teal { color: #fbf4e6; background: linear-gradient(180deg, #19b3b8, var(--ml-teal)); border: 1px solid #08686c; box-shadow: 0 3px 0 #08686c; }
.ml-btn:hover { filter: brightness(1.06); }
.ml-btn.is-disabled { opacity: .6; cursor: default; filter: saturate(.6); box-shadow: none; }
.ml-chev { color: var(--ml-ink-2); font-size: 1.1rem; }
.zone-professor-layton-and-the-miracle-mask .count { display: inline-grid; place-items: center; min-width: 1.8em; height: 1.8em; padding: 0 .45em; margin-left: .3em; border-radius: 99px; background: rgba(246, 212, 128, .16); color: var(--ml-gold-light); font-family: var(--ml-sans); font-size: .5em; font-weight: 800; vertical-align: middle; }

/* ===== Hero ===== */
.ml-hero { width: min(1180px, 100% - 32px); margin: 28px auto 0; }
.ml-hero-frame { position: relative; overflow: hidden; aspect-ratio: 5 / 2; min-height: 300px; border: 2px solid var(--ml-gold); border-radius: 10px; padding: 8px; background: var(--ml-wood); box-shadow: inset 0 0 0 3px #3a2414, 0 20px 50px -24px rgba(0, 0, 0, .8); }
.ml-hero-frame { background: url("wood.webp") center / 320px auto, var(--ml-wood); }
.ml-hero .ml-hero-bg { position: absolute; z-index: 0; top: 8px; left: 8px; width: calc(100% - 16px); max-width: none; height: calc(100% - 16px); border-radius: 6px; object-fit: cover; object-position: center 30%; }
.ml-hero-frame::after { content: ""; position: absolute; z-index: 1; inset: 8px; border-radius: 6px; background: linear-gradient(0deg, rgba(12, 15, 39, .92) 0, rgba(12, 15, 39, .35) 45%, transparent 70%); pointer-events: none; }
.ml-hero-cast { position: absolute; z-index: 2; right: clamp(16px, 4vw, 48px); bottom: 8px; display: flex; align-items: flex-end; gap: 0; height: 84%; pointer-events: none; }
.ml-hero-cast img { width: auto; max-width: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.ml-hero-cast .is-layton { height: 100%; margin: 0 -6px; position: relative; z-index: 1; }
.ml-hero-cast .is-emmy { height: 89%; }
.ml-hero-cast .is-luke { height: 70.6%; }
.ml-hero-text { position: absolute; z-index: 3; left: clamp(20px, 4vw, 44px); bottom: clamp(20px, 4vw, 40px); right: 38%; }
.ml-hero .ml-hero-logo { display: block; width: min(100%, 440px); height: auto; margin: 0 0 12px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.ml-kicker { margin: 0 0 6px; font-family: var(--ml-serif); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ml-gold); }
.ml-hero h1 { margin: 0; font-family: var(--ml-serif); font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.08; color: var(--ml-gold-light); text-shadow: 0 3px 14px rgba(0, 0, 0, .6); }
.ml-hero-sub { margin: 10px 0 0; font-size: clamp(.95rem, 1.6vw, 1.15rem); color: rgba(244, 230, 202, .85); }

/* ===== Page + intro ===== */
.ml-page { width: min(1180px, 100% - 32px); margin: 0 auto; }
.ml-intro { margin-top: 18px; padding: 22px 26px; }
.ml-intro-top { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; }
.ml-intro-portrait { flex: none; width: 88px; height: 88px; border: 3px solid var(--ml-gold); border-radius: 12px; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.ml-intro-copy { flex: 1; min-width: 0; }
.ml-badge { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border: 1px solid var(--ml-gold); border-radius: 6px; background: var(--ml-wood); color: var(--ml-gold-light); font-family: var(--ml-serif); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.ml-intro-text { margin: 0; max-width: 62ch; font-size: 1.02rem; line-height: 1.7; }
.ml-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.ml-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed rgba(167, 108, 18, .55); }
.ml-stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 10px; border-radius: 8px; background: rgba(167, 108, 18, .1); }
.ml-stats dt { font-size: .78rem; color: var(--ml-ink-2); }
.ml-stats dd.ml-stat-sub { order: -1; font-family: inherit; font-size: .72rem; font-weight: 400; color: var(--ml-ink-2); text-align: center; }
.ml-stats dd { margin: 0; font-family: var(--ml-serif); font-size: 1.5rem; font-weight: 700; color: var(--ml-ink); }

/* ===== Sections ===== */
.ml-section { margin-top: 64px; scroll-margin-top: 48px; }
.ml-section-head { max-width: 680px; margin: 0 auto 26px; text-align: center; }
.ml-eyebrow { margin: 0; font-family: var(--ml-serif); font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ml-gold); }
.ml-section-head h2 { margin: 6px 0 12px; font-family: var(--ml-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ml-gold-light); }
.ml-section-head > p:last-child { margin: 12px 0 0; color: rgba(244, 230, 202, .78); }
.ml-section-head > p:last-child:empty { display: none; }
.ml-panel { padding: 18px; }
.ml-panel-foot { margin: 18px 0 0; text-align: center; }
.ml-panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(167, 108, 18, .55); font-family: var(--ml-serif); font-weight: 700; }
.ml-empty { margin: 0; color: var(--ml-ink-2); }

/* Puzzle index */
.ml-puzzles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ml-puzzle { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border: 1px solid #d8c08a; border-radius: 8px; background: rgba(255, 250, 238, .7); color: var(--ml-ink); text-decoration: none; }
a.ml-puzzle:hover { border-color: var(--ml-gold); background: #fffaf0; }
.ml-puzzle.is-soon { opacity: .78; }
.ml-no { flex: none; padding: 3px 8px; border: 1px solid var(--ml-gold); border-radius: 4px; background: var(--ml-wood); color: var(--ml-gold-light); font-family: var(--ml-serif); font-size: .82rem; }
.ml-puzzle-text { display: grid; flex: 1; min-width: 0; }
.ml-puzzle-text strong { font-size: .95rem; }
.ml-puzzles-preview .ml-puzzle { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.ml-puzzles-preview .ml-puzzle.is-soon { opacity: 1; }
.ml-puzzle-thumb { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border-bottom: 2px solid var(--ml-gold); }
.ml-puzzle-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.ml-puzzle-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ml-picarats { font-family: var(--ml-serif); font-size: .8rem; font-weight: 700; color: var(--ml-gold-dark); }
.ml-puzzle-body strong { font-family: var(--ml-serif); font-size: 1.02rem; }
.ml-puzzle-body small { display: flex; align-items: center; gap: 4px; color: var(--ml-ink-2); font-size: .82rem; }
.ml-soon { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; color: var(--ml-ink-2); font-size: .78rem; font-weight: 800; }
.ml-puzzle-text small, .ml-row small, .ml-mystery small, .ml-game small { color: var(--ml-ink-2); font-size: .82rem; }

/* Journal */
.ml-journal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ml-entry { display: grid; gap: 6px; padding: 16px 18px; color: var(--ml-ink); text-decoration: none; }
a.ml-entry:hover { border-color: var(--ml-gold-light); }
.ml-entry strong { font-family: var(--ml-serif); font-size: 1.1rem; }
.ml-entry p { margin: 0; color: var(--ml-ink-2); }
.ml-entry-tag { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border: 1px solid var(--ml-gold); border-radius: 5px; background: var(--ml-wood); color: var(--ml-gold-light); font-size: .74rem; font-weight: 800; }
.ml-chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ml-entry.is-soon { padding: 14px; }
.ml-entry.is-soon strong { font-size: 1rem; line-height: 1.25; }
.ml-entry.is-soon p { display: flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; }

/* Mysteries */
.ml-wood { padding: 16px; border: 2px solid var(--ml-gold); border-radius: 10px; background: linear-gradient(180deg, rgba(76, 49, 30, .3), rgba(46, 28, 16, .55)), url("wood.webp") center / 320px auto, var(--ml-wood); box-shadow: inset 0 0 0 3px #3a2414, inset 0 0 0 4px rgba(246, 212, 128, .3); }
.ml-mysteries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ml-mystery { display: flex; align-items: flex-start; gap: 12px; padding: 14px; color: var(--ml-ink); text-decoration: none; }
.ml-mystery > span:last-child { display: grid; gap: 2px; }
.ml-mystery-stage { display: flex; align-items: center; justify-content: center; gap: 24px; }
.ml-mystery-stage > ul { flex: 1; min-width: 0; }
.ml-gentleman { flex: none; width: auto; height: 190px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.ml-mystery.is-soon { max-width: 520px; margin: 0; }
.ml-mystery-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--ml-gold); border-radius: 50%; background: var(--ml-wood); color: var(--ml-gold-light); font-size: 20px; }

/* Collection + minigames */
.ml-duo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.ml-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ml-todo li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ml-todo .i { font-size: 1.15rem; color: var(--ml-gold-dark); }
.ml-coin { width: 24px; height: 24px; flex: none; image-rendering: pixelated; }
.ml-collectibles { display: block; width: 100%; height: auto; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(167, 108, 18, .55); image-rendering: pixelated; }
.ml-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ml-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--ml-ink); text-decoration: none; }
.ml-row > span { display: grid; }
.ml-row:hover { background: rgba(167, 108, 18, .1); }
.ml-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ml-game { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ml-game-shot { flex: none; width: 112px; height: auto; aspect-ratio: 214 / 162; border: 2px solid var(--ml-gold); border-radius: 6px; background: var(--ml-wood); }
.ml-game-text { display: grid; flex: 1; min-width: 0; }
.ml-game-text strong { font-family: var(--ml-serif); font-size: 1.05rem; }
.ml-ticket { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ml-gold); border-radius: 5px; background: var(--ml-wood); color: var(--ml-gold-light); font-size: .76rem; font-weight: 800; }

/* ===== Reveal: <details><summary> in article prose (hints first, answer last) ===== */
.zone-professor-layton-and-the-miracle-mask .prose details { margin: 14px 0; border: 2px solid var(--ml-gold); border-radius: var(--radius); background: var(--ml-parchment-2); overflow: hidden; }
.zone-professor-layton-and-the-miracle-mask .prose details > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; list-style: none; cursor: pointer; background: linear-gradient(var(--ml-wood), var(--ml-wood-deep)); color: var(--ml-gold-light); font-family: var(--ml-serif); font-size: 1.05rem; font-weight: 700; line-height: 1.3; -webkit-tap-highlight-color: transparent; user-select: none; }
.zone-professor-layton-and-the-miracle-mask .prose details > summary::-webkit-details-marker { display: none; }
.zone-professor-layton-and-the-miracle-mask .prose details > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin: 0 4px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.zone-professor-layton-and-the-miracle-mask .prose details > summary::after { content: "Tap to reveal"; flex: none; margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--ml-gold); color: var(--shell-ink); font-family: var(--ml-sans); font-size: .78rem; font-weight: 800; }
.zone-professor-layton-and-the-miracle-mask .prose details[open] > summary::before { transform: rotate(45deg); }
.zone-professor-layton-and-the-miracle-mask .prose details[open] > summary::after { content: "Hide"; background: var(--ml-parchment); }
.zone-professor-layton-and-the-miracle-mask .prose details > summary:hover { color: #fff; }
.zone-professor-layton-and-the-miracle-mask .prose details > summary:focus-visible { outline: 3px solid var(--ml-gold-light); outline-offset: -5px; }
.zone-professor-layton-and-the-miracle-mask .prose details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.zone-professor-layton-and-the-miracle-mask .prose details > :nth-child(2) { margin-top: 14px; }
.zone-professor-layton-and-the-miracle-mask .prose details > :last-child:not(summary) { margin-bottom: 16px; }
.zone-professor-layton-and-the-miracle-mask .prose details:last-of-type { border-color: var(--ml-teal); }
.zone-professor-layton-and-the-miracle-mask .prose details:last-of-type > summary { background: linear-gradient(#0f7f85, #0a5458); color: #fff; }
@media print { .zone-professor-layton-and-the-miracle-mask .prose details > summary::after { content: none; } }
@media (max-width: 640px) {
  .zone-professor-layton-and-the-miracle-mask .prose details > summary { gap: 8px; padding: 10px 12px; font-size: 1rem; }
  .zone-professor-layton-and-the-miracle-mask .prose details > summary::after { content: "Reveal"; padding: 3px 9px; font-size: .72rem; }
  .zone-professor-layton-and-the-miracle-mask .prose details > :not(summary) { margin-left: 12px; margin-right: 12px; }
}

/* ===== Responsive ===== */
@media (max-width: 1160px) {
  .zone-professor-layton-and-the-miracle-mask .ml-search { width: 160px; }
  .ml-exit { display: none; }
}
@media (max-width: 900px) {
  .ml-bar { flex-wrap: wrap; }
  .zone-professor-layton-and-the-miracle-mask .ml-nav { order: 3; flex-basis: 100%; }
  .zone-professor-layton-and-the-miracle-mask .ml-nav .zone-nav-inner { justify-content: flex-start; }
  .ml-tools { margin-left: auto; }
  .ml-puzzles, .ml-mysteries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ml-intro-top { flex-wrap: wrap; align-items: flex-start; }
  .ml-intro-actions { flex-basis: 100%; }
  .ml-chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ml-hero-text { right: 34%; }
}
@media (max-width: 640px) {
  .ml-header { position: static; }
  .zone-professor-layton-and-the-miracle-mask .ml-search { display: none; }
  .ml-hero-frame { aspect-ratio: auto; min-height: 400px; }
  .ml-hero-text { right: 20px; }
  .ml-hero-cast { right: 50%; transform: translateX(50%); top: 18px; bottom: auto; height: 46%; }
  .ml-intro-portrait { width: 64px; height: 64px; }
  .ml-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-mystery-stage { flex-direction: column; }
  .ml-gentleman { height: 140px; }
  .ml-stats { grid-template-columns: repeat(2, 1fr); }
  .ml-puzzles, .ml-mysteries, .ml-journal:not(.ml-chapters) { grid-template-columns: minmax(0, 1fr); }
  .ml-puzzles-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ml-puzzle-top { flex-wrap: wrap; gap: 2px 8px; }
  .ml-puzzle-body { padding: 8px 10px 10px; }
  .ml-puzzle-body strong { font-size: .95rem; }
  .ml-game { flex-wrap: wrap; }
}

/* Illustrated puzzle cards, shared by the overview and complete index. */
.ml-puzzle-gallery .ml-puzzle-thumb { aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: #171b30; }
.ml-puzzle-gallery .ml-puzzle-body { gap: 12px; padding: 14px; }
.ml-card-link { color: var(--ml-ink-2); font-size: .73rem; }
.ml-puzzle-gallery a.ml-puzzle { transition: transform .15s ease, box-shadow .15s ease; }
.ml-puzzle-gallery a.ml-puzzle:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #30200d26; }
.ml-puzzle-gallery a.ml-puzzle:focus-visible { outline: 3px solid var(--ml-teal); outline-offset: 3px; }
.ml-index-page { padding-bottom: 36px; }
.ml-index-page h1 { margin: 6px 0 12px; font-family: var(--ml-serif); font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--ml-gold-light); }
@media (prefers-reduced-motion: reduce) { .ml-puzzle-gallery a.ml-puzzle { transition: none; } }
