/* Marine anomaly records: paper case files, photographic evidence, oxide-red ink.
   Loaded after the game sheets. The body prefix also beats journal.js's late styles. */
:root {
  color-scheme: light;
  --d-desk: #d9d6ce;
  --d-sheet: #f3f0e8;
  --d-panel: #eae6dd;
  --d-ink: #26282b;
  --d-muted: #62615c;
  --d-line: #bcb8ae;
  --d-faint: #d6d1c6;
  --d-red: #8d3933;
  --d-red-dark: #6e2824;
  --d-red-wash: #eee0d9;
  --d-photo: #202429;
  --d-photo-light: #e2dfd5;
  --bg: var(--d-desk);
  --panel: var(--d-sheet);
  --paper: var(--d-ink);
  --mint: var(--d-red);
  --muted: var(--d-muted);
  --line: var(--d-line);
  --softline: var(--d-faint);
  --gold: var(--d-red);
}
body {
  color: var(--d-ink);
  background: linear-gradient(90deg, #bfbab133 1px, transparent 1px) center / 72px 100%,
    linear-gradient(#ffffff30, #ffffff00 380px), var(--d-desk);
}
body::before { opacity: .035; mix-blend-mode: multiply; }
body ::selection { background: #b95c4d40; color: #18191a; }
body :is(button, a, summary, textarea):focus-visible {
  outline: 2px solid var(--d-red);
  outline-offset: 4px;
}
body button:disabled { cursor: default; }
body .wrap { padding-inline: clamp(18px, 3.4vw, 52px); background: var(--d-sheet); border-inline: 1px solid #c4bfb3; }
body .mast { background: #e9e5dc; border-bottom: 1px solid #858078; box-shadow: 0 3px 0 #c6c1b6; }
body .mast-inner { min-height: 82px; gap: clamp(22px, 4vw, 60px); }
body .brand strong { color: #28292b; letter-spacing: .08em; }
body .brand small { color: #65615b; letter-spacing: .12em; }
body .mast nav { gap: 0; align-items: end; }
body .nav-item {
  min-height: 45px;
  padding: 13px 17px 12px;
  color: #5e5c57;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
}
body .nav-item:hover { color: #232528; background: #f4f0e7; }
body .nav-item.is-current { color: var(--d-red); border-color: #c3bdb1; background: var(--d-sheet); }
body .nav-item.is-current::after { height: 3px; top: -1px; bottom: auto; background: var(--d-red); }
body .head-tools { gap: 12px; }
body .tool-button { color: #595a57; }
body .help { border-radius: 0; border-color: #9c978d; color: #4e4e4a; }
body .molt-language { border-color: #aaa598; background: #ddd8ce; border-radius: 0; padding: 2px; }
body .molt-language button { color: #555650; border-radius: 0; }
body .molt-language [aria-pressed=true] { color: #f8f4eb; background: #373a3d; }
body .hero { gap: clamp(28px, 4vw, 60px); padding-block: clamp(32px, 4.5vw, 64px); }
body .hero::before {
  inset: 24px 48% 24px 0;
  opacity: .22;
  background: repeating-linear-gradient(0deg, transparent 0 35px, #aca69a55 35px 36px);
}
body .hero-copy { padding-left: 18px; border-left: 3px solid #8d3933; }
body .eyebrow { color: var(--d-red); font-size: 11px; letter-spacing: .1em; line-height: 1.6; }
body .eyebrow .bar { width: 23px; height: 4px; background: var(--d-red); }
body .hero h1 { color: #24272a; font-size: clamp(56px, 6.1vw, 92px); text-shadow: none; letter-spacing: -.04em; }
body .hero-en { color: #555854; font-family: var(--sans); font-size: clamp(19px, 2vw, 28px); font-style: normal; line-height: 1.5; letter-spacing: .01em; }
body .hero-description { color: #545651; }
body .hero-stats { color: #65625c; flex-wrap: wrap; gap: 9px 15px; line-height: 1.6; }
body .hero-stats i { background: #b6afa1; }
body .primary {
  background: var(--d-red);
  color: #fff8ef;
  border: 1px solid var(--d-red-dark);
  border-radius: 0;
  box-shadow: 3px 3px 0 #b5aaa044;
  letter-spacing: .025em;
}
body .primary:hover { background: var(--d-red-dark); transform: translateY(-1px); }
body .primary:disabled { background: #77736b; border-color: #77736b; color: #fff8ef; }
body :is(.text-btn, .browse) { color: #5e423b; }
body :is(.text-btn, .browse):hover { color: var(--d-red-dark); text-decoration: underline; text-underline-offset: 4px; }
body .secondary { border-color: #8f8a80; color: #343633; background: #f7f3e9; border-radius: 0; }
body .secondary:hover { border-color: var(--d-red); color: var(--d-red-dark); background: #eee1d8; }
body .section-heading .en, body .micro { color: #68635a; }
body .section-heading h2 { font-size: 24px; }
body .atlas-teaser { border-top: 2px solid #7b7972; padding-top: 20px; padding-bottom: 10px; }
body .organ-row { gap: 12px; }
body .organ-card { background: #e9e5dc; color: var(--d-ink); border: 1px solid #c0b9ac; padding: 12px; min-height: 112px; }
body .organ-card:hover { background: #f8f4ea; border-color: var(--d-red); }
body .organ-card h3 { font-size: 19px; letter-spacing: .025em; }
body .organ-card p { color: #5e605b; }
body :is(.organ-code, .eyecode) { color: #69625a; }
body .organ-card .small-arrow { color: var(--d-red); }
body :is(.organ-draw, .choice-art, .v-organ-ink) { background: #25292d; border: 1px solid #4d5053; }
body .organ-draw { padding: 3px; }
body .catalog-question { display: grid; place-items: center; color: #eee9df; font: 500 38px/1 Georgia, serif; min-height: 48px; letter-spacing: 0; }
body .organ-card-locked .organ-draw { display: grid; place-items: center; min-height: 64px; }
body .organ-card-locked h3, body .organ-card-locked p { overflow-wrap: anywhere; }
body .foot { color: #625e56; border-top-color: #b1aa9d; padding-inline: clamp(18px, 3.4vw, 52px); background: #dfd9cf; }
body .foot-mark { color: var(--d-red); }
body .foot-slash { color: #90897c; }
body .dot { background: var(--d-red); box-shadow: none; border-radius: 0; }

/* Evidence plates have a paper mount and a dark, unobstructed image area. */
body .plate {
  border: 9px solid #e4ded2;
  outline: 1px solid #b4ada0;
  background: var(--d-photo);
  box-shadow: 5px 7px 0 #cfc8bb66, 0 10px 24px #3f39351a;
}
body .plate::after { inset: 0; border-color: #8c89804d; }
body .corner { width: 11px; height: 11px; border-color: #c8c4ba; }
body .plate-image { background: #202429; }
body .plate-image::before { background: radial-gradient(ellipse at 52% 45%, #5b5a6044, transparent 70%); }
body .plate-image::after { background: repeating-linear-gradient(0deg, #cbc7bd99 0 1px, transparent 1px 12px); }
body .egg-image { mix-blend-mode: normal; }
body .plate-head { color: #e8e1d6; text-shadow: 0 1px 3px #000; }
body .plate-head b { padding: 3px 6px; color: #f1e7dc; background: #6e302bd9; border: 1px solid #ac6e60; }
body .plate-id { color: #d2cdc3; }
body .callout { color: #d8d0c3; background: #20242999; padding: 2px 3px; }
body .callout::before { background: #d4c2ad99; }
body .plate-foot { background: #e8e1d5; color: #5c5d57; border-top: 1px solid #b8ae9e; padding: 12px 13px; }
body .plate-foot strong { color: #2d3030; font-family: var(--sans); font-weight: 600; letter-spacing: .025em; }
body .plate-foot .plate-status { color: #74433b; }
body .play-plate { background: var(--d-photo); }
body .ending-grid .play-plate { max-height: none; }
body .chip { border-color: #bcb4a7; background: #e9e3d7; color: #504f48; }
body .stepbar i { background: #cec7ba; }
body .stepbar i.on { background: #636660; }
body .stepbar i.now { background: var(--d-red); }
body :is(.origin-intro, .scene-body) { color: #53544e; }
body .origin-intro { border-color: var(--d-red); }
body .choice { border-color: #b8b0a1; background: #eae5da; }
body .choice:hover { border-color: var(--d-red); background: #f8f3e8; }
body .choice-info small { color: var(--d-red); }
body .choice-info span { color: #595c55; }
body .reaction { border-color: var(--d-red); }
body .reaction b { color: #793b32; }
body .reaction p { color: #59584f; }
body .turn-note, body .journey ol { color: #686257; }
body .journey summary { color: #474b46; }
body .journey b { color: #272b28; }
body .news-head { border-block: 1px solid #8d8274; background: #e8e0d3; padding-inline: 12px; }
body .record-label { color: #646159; }
body #toast { color: #fff8ec; background: #333638; border-left: 4px solid #c47662; box-shadow: 0 5px 20px #221b1738; }

/* Case-file headings and annotations; these hooks also work without added markup. */
body .case-tag { display: inline-flex; gap: 8px; align-items: center; padding: 5px 8px; border: 1px solid #ae8b7d; color: var(--d-red); background: #ece2d6; font: 11px/1.5 var(--mono); letter-spacing: .06em; }
body .case-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 10px 0; border-block: 1px solid #bfb6a7; color: #676053; font: 11px/1.6 var(--mono); letter-spacing: .07em; }
body .evidence-stamp { display: inline-block; padding: 5px 9px; border: 2px solid currentColor; color: #985044; font: 700 11px/1.3 var(--mono); letter-spacing: .08em; transform: rotate(-4deg); text-transform: uppercase; }
body .dossier-intro:not(.hero) { margin: 18px 0; padding: 10px 0 10px 13px; border-left: 2px solid var(--d-red); color: #666154; font: 12px/1.75 var(--mono); }
body .evidence-plate>.case-strip {
  height: auto;
  min-height: 0;
  display: flex;
  padding: 10px 13px;
  background: #e5ded1;
  border-color: #b7ad9d;
  color: #6c5c49;
  font-size: 10px;
  align-items: center;
}
body .v-simple .evidence-plate>div.case-strip,
body .v-simple-ended .evidence-plate>div.case-strip,
body .v-ended .evidence-plate>div.case-strip { height: auto; min-height: 0; padding: 10px 13px; }
body .evidence-plate .evidence-stamp { font-size: 10px; color: #8b4537; }

/* The active record uses paper forms around the central evidence photograph. */
body .voyage { --v-amber: var(--d-red); }
body .v-heading { border-bottom: 2px solid #73736c; padding-block: 26px 19px; }
body .v-heading>div>p { color: var(--d-red); }
body .v-heading h1 { color: #262a2b; }
body .v-progress { padding-left: 17px; border-left: 1px solid #bcb6aa; }
body .v-progress strong { color: var(--d-red); font-family: var(--mono); font-size: 35px; }
body .v-first-note { color: #5e6059; }
body .v-specimen {
  background: var(--d-photo);
  border: 1px solid #9c9589;
  border-radius: 0;
  box-shadow: 4px 5px 0 #cbc5b966;
}
body .v-specimen>div { background: radial-gradient(ellipse at 50% 40%, #42464c, #202429 78%); }
body .v-specimen figcaption { color: #52544f; background: #e4dfd4; border-top-color: #9e978a; }
body .v-specimen strong { color: #2f3231; font-family: var(--sans); font-weight: 600; }
body .v-specimen figcaption>span { color: #645e55; }
body :is(.v-status, .v-innate-line, .v-innate-line>span) { color: #615f55; }
body .v-status b { color: var(--d-red); font-weight: 600; }
body .v-simple-encounter { padding-top: 2px; }
body .v-location { color: var(--d-red); }
body .v-route-reason { color: #65675d; }
body .v-story { color: #414641; }
body .v-simple-detail { border-color: #c4beb1; }
body .v-simple-detail>summary { color: #5a584f; }
body .v-simple-detail>summary:hover, body .v-simple-detail[open]>summary { color: var(--d-red); }
body .v-simple-detail>p { color: #565b52; }
body .v-simple-library { border-top: 2px solid #8b877e; }
body .v-simple-library>.v-simple-detail, body .v-simple-library>.v-journey { border-color: #c4beb1; }
body .v-simple-library>.v-simple-detail:nth-child(-n+2) { border-top: 0; }
body .v-last-molt { background: #e9e2d5; border-left: 3px solid #87796b; }
body .v-last-molt>p { color: #5a594e; }
body .v-last-molt>p:first-child>span { color: #8a483a; }
body .v-last-molt strong { color: #30352f; }
body .v-innate-line { padding: 9px 0; border-bottom: 1px dashed #b6afa2; }
body :is(.v-destination, .v-slot, .v-offer, .v-approach, .v-goal-choice, .v-talent, .v-pursuit, .v-replacement-summary, .v-guide-combos article) {
  color: var(--d-ink);
  background: #eae5da;
  border-color: #bdb4a5;
  border-radius: 0;
}
body :is(.v-offer, .v-approach, .v-goal-choice) { transition: background .15s, border-color .15s; }
body :is(.v-offer, .v-approach, .v-goal-choice):hover { background: #f8f4ea; border-color: #98534a; }
body .v-offer.is-selected { background: #f4e7df; border-color: var(--d-red); box-shadow: inset 3px 0 0 var(--d-red); }
body .v-approach.is-selected { background: #f4e7df; border-color: var(--d-red); box-shadow: inset 0 3px 0 var(--d-red); }
body .v-slot.is-selectable { border-color: #97634d; }
body .v-slot.is-selectable:hover, body .v-slot.is-selected { background: #f0e1d7; border-color: var(--d-red); }
body .v-slot.is-selected::after { color: var(--d-red); }
body .v-slot.is-empty { color: #67645d; background: #ece8de; }
body .v-simple-offer { position: relative; border-top: 3px solid #aaa193; }
body .v-simple-offer.is-selected { border-top-color: var(--d-red); }
body :is(.v-offer small, .v-slot small, .v-approach>span, .v-goal-choice>span, .v-destination>p, .v-organ-detail p, .v-talent p, .v-pursuit p, .v-replacement-summary>p) { color: #575b51; }
body :is(.v-approach strong, .v-goal-choice strong, .v-talent h2, .v-pursuit h3, .v-replacement-summary>p:first-child) { color: #2c3330; }
body :is(.v-approach small, .v-goal-choice small, .v-card-replace, .v-current-pursuit, .v-place-tag, .v-organ-detail .v-tradeoff, .v-simple-choice-note .v-tradeoff, .v-shed) { color: #8a473b; }
body .v-simple-choice-note p { color: #4e534a; }
/* Ruleset 4 annotations retain their layout on the paper record. */
body .v-strategy-gain { color: #365b4a; }
body .v-strategy-cost { color: #8a473b; }
body .v-strategy-alternative { color: #62615c; border-top-color: #bdb4a5; }
body .v-memory-scene { background: #e9e2d5; border-left-color: var(--d-red); }
body .v-memory-scene .v-memory-source { color: #864336; }
body .v-memory-scene h3 { color: #30352f; }
body .v-memory-scene>p { color: #53584e; }
body .v-memory-effect>span { color: #365b4a; }
body .v-memory-effect>span:last-child { color: #864336; }
body .v-memory-result { color: #645341 !important; }
body .v-specimen figcaption .v-body-stage { color: #7c5140; }
body .v-milestone-note { color: #53584e !important; border-top-color: #bdb4a5; }
body .v-milestone-note strong { color: #793b32; }
body :is(.v-growth-direction, .v-visible-cost, .v-pair-hint, .v-destination .v-offers-note, .v-destination p.v-talent-opportunity) { color: #4a625f; }
body .v-approach.is-unavailable { background: #dedbd2; border-color: #b6b1a5; }
body .v-approach.is-unavailable strong, body .v-approach.is-unavailable>span { color: #706f66; }
body .v-approach.is-unavailable small { color: #776558; }
body .v-talent { border-left: 3px solid #626d67; }
body .v-pursuit { border-left: 3px solid #9c6551; background: #ece2d7; }
body .v-pursuit.is-near { border-color: #a05b47; background: #efdfd5; }
body :is(.v-talent-top, .v-pursuit-top, .v-pursuit-top>span:last-child) { color: #744c40; }
body .v-talent p.v-talent-effect { color: #414b42; border-color: #bdb8aa; }
body :is(.v-pursuit p.v-pursuit-effect, .v-pursuit p.v-gear-name) { color: #8b4134; }
body .v-talent details, body .v-pursuit details { border-color: #c0b7a8; }
body .v-talent summary, body .v-pursuit summary { color: #684d3f; }
body .v-talent .v-talent-waters { color: #626b5e; }
body .v-stats { background: #e8e3d7; border-block: 1px solid #b9b0a1; padding-block: 12px; }
body .v-stats dt { color: #646154; }
body .v-stats dd { color: #2a302e; font-family: var(--mono); }
body .gain { color: #295e70 !important; }
body .loss { color: #953d32 !important; }
body .v-check { background: #e2e6df; border-color: #9da99c; border-radius: 0; color: #414d43; }
body .v-check>strong { color: #314c44; }
body .v-check small { color: #586556; }
body .v-check.is-risk { background: #f1e3d8; border-color: #b58b74; color: #7f4835; }
body .v-check.is-risk strong { color: #8a3f30; }
body .v-check-note { color: #62685d !important; }
body .v-instruction { color: #5c6456 !important; }
body .v-action-cost { color: #864336; border-color: #9c5b46; background: #eee1d5; }
body .v-unreachable { color: #884939 !important; }
body .v-combo-empty { color: #6b6b60; }
body .v-combos>div { background: #e4e5da; border-left-color: #758279; }
body .v-combo-glyph, body .v-combos strong { color: #3d534c; }
body .v-combos p, body .v-bonuses { color: #566850; }
body .v-action-result { background: #e1e5db; border-color: #637e65; }
body .v-action-result strong { color: #355644; }
body .v-action-result p { color: #515f4d; }
body .v-journey>summary { color: #574d42; }
body .v-journey li { border-color: #c6beb1; }
body .v-log-step { color: #9a5948; }
body .v-journey p { color: #5b6256; }
body .v-journey strong { color: #353b32; }
body .v-journey small { color: #696b5c; }
body .v-newshead { border-block: 1px solid #9c8c7c; background: #e7e0d4; padding-inline: 14px; }
body .v-newshead>span:first-child { color: #2d3330; }
body .v-newshead>span:last-child { color: #75604b; }
body .v-epithet { color: #8b4c3a; }
body .v-hunt-ending>div>span { color: #836044; }
body .v-hunt-ending p, body .v-guide p { color: #565e50; }

/* Survey map is an annotated survey sheet, not a luminous green radar. */
body .v-chart-wrap { background: #e6e2d7; border-color: #aea99c; border-radius: 0; }
body .v-chart { background: radial-gradient(ellipse at 50% 60%, #b9c2bd55, transparent 70%), #ebe8de; }
body .v-chart::before { opacity: .38; background-image: linear-gradient(#9f9c8e 1px, transparent 1px), linear-gradient(90deg, #9f9c8e 1px, transparent 1px); }
body .v-map-links line { stroke: #8a8d7f; }
body .v-map-trace { stroke: #873d35; }
body .v-map-links .v-final-link { stroke: #996044; }
body .v-map-node { color: #606654; }
body .v-map-node strong { background: #eee9dded; }
body .v-map-node small { background: #eee9dd; color: #6b6253; }
body .v-node-dot { background: #e4dfd0; border-color: #8e8e7d; }
body .v-map-node.is-goal, body .is-goal .v-node-dot { color: #905238; }
body .v-map-node.is-reachable { color: #303f36; }
body .is-reachable .v-node-dot { background: #f1eee1; border-color: #6f7560; box-shadow: 0 0 0 4px #858d6d25; }
body .v-map-node:hover strong, body .v-map-node.is-picked strong { color: #fff8ed; background: #743d32; border-radius: 0; }
body .is-picked .v-node-dot { outline-color: #8d3933; }
body .is-current .v-node-dot { color: #fff7e9; background: #8d3933; border-color: #8d3933; }
body .v-key { border-color: #737968; }
body .v-key.available { background: #6c7c70; }
body .v-key.trace { background: #873d35; }
body .v-key.hunted { border-color: #a7573f; background: #b4654d; }
body .v-map-node.is-hunted .v-node-dot { border-color: #9b523d; box-shadow: 0 0 0 4px #a46a4328; }
body .v-map-node.is-hunted.is-current .v-node-dot { background: #8d3933; }
body .v-simple-detail .v-map-node:disabled:hover strong { color: inherit; background: #eee9dded; }

/* Finished records, invitations and comparisons use the same paper mount. */
body .v-specimen.collection-plate { border: 8px solid #e5ded1; border-image: none; outline: 1px solid #a99f90; background: #e5ded1; border-radius: 0; }
body .v-specimen.collection-plate>.collection-plate-head { background: #e5ded1; color: #8c4435; border-bottom-color: #b1a593; }
body .collection-plate-head>span:last-child { color: #6d6456; }
body .collection-plate .collection-portrait { background: #202429; }
body .collection-plate .collection-portrait::after { inset: 9px; border: 1px solid #d7d0c327; border-radius: 0; transform: none; }
body .v-specimen.collection-plate figcaption { background: #e5ded1; border-color: #bfb2a0; }
body .v-specimen.collection-plate figcaption strong { color: #30352f; }
body .v-specimen.collection-plate figcaption>span { color: #7c5140; }
body .collection-places { border-color: #bfb2a0; }
body .collection-places dt { color: #645b4e; }
body .collection-places dd { color: #3c4239; }
body .simple-share>summary { color: #564334; background: #eee6d8; border-color: #9e8c76; border-radius: 0; }
body .simple-share[open]>summary { background: #e6d7c5; }
body .simple-ending-more>summary { color: #6d5441; }
body .edition-fork { background: #e8e1d5; border-inline-start-color: var(--d-red); }
body .edition-fork p, body .edition-share p, body .edition-summary { color: #636255; }
body .edition-card { background: #e5dfd2; color: #30372e; border: 1px solid #b3a996; border-top: 3px solid #8e5540; box-shadow: 3px 4px 0 #bfb29e33; }
body .edition-byline { border-bottom: 1px solid #a59a87; }
body .edition-byline span, body .edition-fate, body .edition-turn small { color: #6d614e; }
body .edition-art, body .edition-invite-art { background: radial-gradient(ellipse at center, #42464c, #202429 78%); }
body .edition-invite-art { border: 8px solid #e1d9cc; outline: 1px solid #b1a695; box-shadow: 4px 5px 0 #b4a7923a; }
body .edition-invite-art figcaption { background: #e1d9cc; color: #655b4a; border-top-color: #ac9d87; }
body .edition-turn { border-top-color: #b9ac95; }
body .edition-memory { border-color: var(--d-red); color: #805140; }
body .egg-entry .text-btn { color: #78604d; }
body .egg-code-dialog { background: var(--d-sheet); color: var(--d-ink); border-top: 4px solid var(--d-red); box-shadow: 0 20px 80px #1a181766; }
body .egg-code-dialog::backdrop { background: #1e2021bc; }
body .egg-code-dialog textarea { color: #2b332a; background: #e9e4d8; border-color: #a49b88; }
body .egg-code-dialog [role=status] { color: #973d2e; }

/* journal.js installs its own stylesheet on demand; these selectors outrank it. */
body .mj-dialog { color-scheme: light; background: #f0ece2; border: 1px solid #a89c8c; border-top: 4px solid var(--d-red); border-radius: 0; scrollbar-color: #aaa18e #e4ddcf; box-shadow: 0 24px 80px #18191b66; }
body .mj-dialog::backdrop, body .mj-fallback { background: #1e2021bc; }
body .mj-inner { padding: 26px 30px 28px; }
body .mj-header { border-bottom: 2px solid #a39581; }
body .mj-kicker, body .mj-meta { color: #8d4837; }
body .mj-header h2, body .mj-dialog h3 { color: #30372e; }
body .mj-dialog p { color: #5f6457; }
body .mj-close { border-radius: 0; color: #6a5542; background: #e7dfd0; border-color: #ac9d86; }
body .mj-close:hover, body .mj-archive-btn:hover { color: #fff7e8; background: #7b4434; }
body .mj-family { color: #5d6253; background: #e8e2d5; border-radius: 0; border-color: #b7ad99; padding-top: 6px; gap: 5px; }
body .mj-family[aria-pressed=true], body .mj-family:hover { color: #763c2d; background: #f3e4d9; border-color: #a15b42; }
body .mj-family .mj-art { background: #262b2b; }
body .mj-family .mj-art .catalog-question { font-size: 36px; width: 100%; height: 100%; min-height: 0; }
body .mj-species-locked > .catalog-question, body .mj-sheet-locked > .catalog-question { background: #262b2b; border-color: #8e8b81; }
body .mj-species-locked strong { color: #363c35; }
body .mj-species-locked p { overflow-wrap: anywhere; }
body .mj-portrait:not([hidden]) { background: #24282d; border: 5px solid #d6cebd; }
body .mj-birth-talent { background: #e5dfcf; border-color: #965c40; }
body .mj-entry { border-color: #bdb19b; }
body .mj-archive-btn { color: #8a4e36; border-color: #a99478; border-radius: 0; }
body .mj-waters summary { color: #434b3a; }
body .mj-waters summary small, body .mj-species-row small { color: #6b6d5c; }
body .mj-waters summary::before, body .mj-species-row .mj-known { color: #8c4d36; }
body .mj-build-record summary, body .mj-switch, body .mj-figure-btn { color: #92503a; }
body .mj-hunt-record strong, body .mj-discoveries strong { color: #363f30; }
body .mj-birth-talent small { color: #636652; }

/* Molting reads as a recorded change under laboratory light. */
body .molt-fx, body .molt-fx.is-mature { --molt-ink: #d9d4ca; --molt-gold: #c39b86; }
body .molt-fx-haze { background: radial-gradient(ellipse at 50% 52%, #ddd8cf33, transparent 65%); }
body .molt-fx-membrane { box-shadow: inset 0 0 22px #d8cfc418; }
body .molt-fx-wave { background-image: none; }
body .molt-fx-grain { background: radial-gradient(circle, currentColor, transparent 70%); filter: none; }
body .molt-fx-grain.is-bubble { background: transparent; }

/* Long English names and narrow screens retain the same file hierarchy. */
html[lang="en"] body .hero h1 { font-size: clamp(53px, 5.7vw, 86px); }
html[lang="en"] body .hero-en { font-size: clamp(18px, 1.8vw, 24px); }
html[lang="en"] body .brand strong { letter-spacing: .015em; }
html[lang="en"] body .mast nav { gap: 0; }
body :is(.v-slot>span, .v-offer>span, .v-innate-line, .v-specimen figcaption, .collection-plate-head) { min-width: 0; overflow-wrap: anywhere; }
body .collection-plate-head { flex-wrap: wrap; gap: 4px 12px; }
body .v-specimen figcaption { flex-wrap: wrap; }
@media (max-width: 1050px) {
  body .wrap { padding-inline: 24px; }
  body .mast-inner { gap: 20px; }
  body .nav-item { padding-inline: 12px; }
  body .hero-copy { padding-left: 13px; }
  body .hero { gap: 24px; }
}
@media (max-width: 820px) {
  body .mast-inner { height: auto; flex-wrap: wrap; padding-block: 10px 0; }
  body .head-tools { order: 1; }
  body .mast nav { order: 2; width: 100%; height: auto; justify-content: flex-start; }
  body .nav-item { min-height: 40px; padding-block: 9px; }
  body .v-simple-creature { position: static; }
  body .hero { grid-template-columns: 1fr; }
  body .hero-copy { padding-left: 16px; }
  body .hero h1 { font-size: 68px; }
  body .hero-actions { flex-direction: row; align-items: center; }
  body .hero .plate { width: 100%; }
  body .hero .plate-image { min-height: 260px; aspect-ratio: 1.65; }
}
@media (max-width: 560px) {
  body .wrap, body .mast-inner, body .foot { width: calc(100% - 20px); }
  body .wrap { padding-inline: 14px; }
  body .foot { padding-inline: 14px; flex-wrap: wrap; gap: 10px 18px; line-height: 1.6; }
  body .mast-inner { gap: 8px; }
  body .brand strong { font-size: 16px; }
  body .brand img { width: 30px; height: 34px; }
  body .head-tools { gap: 7px; }
  body .molt-language button { min-height: 30px; padding-inline: 6px; }
  body .mast nav { width: 100%; gap: 0; }
  body .nav-item { flex: 1; font-size: 12px; padding-inline: 8px; }
  body .hero { padding-block: 26px; gap: 23px; }
  body .hero-copy { padding-left: 12px; }
  body .hero h1 { font-size: clamp(48px, 13vw, 66px); }
  body .hero-en { font-size: 19px; }
  body .hero-description { font-size: 14px; }
  body .hero-actions { gap: 13px; }
  body .hero .plate-image { min-height: 190px; aspect-ratio: 1.5; }
  body .plate { border-width: 6px; }
  body .plate-foot { padding: 10px; flex-wrap: wrap; }
  body .plate-head { left: 12px; right: 12px; }
  body .callout { font-size: 9px; }
  body .v-heading { padding-top: 20px; }
  body .v-progress { padding-left: 10px; }
  body .v-progress strong { font-size: 29px; }
  body .v-simple-library>.v-simple-detail:nth-child(2) { border-top: 1px solid #c4beb1; }
  body .v-newshead { padding-inline: 10px; }
  body .v-newshead>span:first-child { font-size: 23px; }
  body .v-specimen.collection-plate { border-width: 6px; }
  body .collection-places { gap: 12px; }
  body .v-simple .v-stats dt { font-size: 12px; }
  body .v-simple .v-stats dd { font-size: 22px; }
  body .v-simple .v-stats dd small { font-size: 12px; }
  body .v-simple-detail .v-map-node { width: 75px; }
  body .v-simple-detail .v-map-node strong { font-size: 12px; }
  body .v-simple-detail .v-map-node small { font-size: 10px; }
  body .mj-inner { padding: 20px 15px; }
  body .mj-entry { flex-wrap: wrap; gap: 10px; }
  body .mj-waters summary { flex-wrap: wrap; gap: 7px; }
  body .mj-waters summary small { margin-left: 0; }
  body .mj-family span:not(.mj-art) { font-size: 11px; }
  body .mj-grid { gap: 5px; }
  html[lang="en"] body .hero h1 { font-size: clamp(48px, 13vw, 68px); }
  html[lang="en"] body .v-simple-offer strong { font-size: 19px; }
  html[lang="en"] body .v-simple-offer small, html[lang="en"] body .v-growth-direction { font-size: 13px; }
}
@media (max-width: 370px) {
  body .v-simple-featured { grid-template-columns: 1fr; }
  body .v-simple-offer, body .v-simple-detail .v-simple-offer { min-height: 112px; flex-direction: column; align-items: flex-start; gap: 10px; }
  body .v-slots { grid-template-columns: 1fr; }
  body .section-heading { flex-wrap: wrap; }
  body .browse { margin-left: 0; }
  body .brand small { letter-spacing: .04em; }
  body .mj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body .molt-fx { display: none !important; }
}
@media print {
  body { background: white; }
  body .wrap { width: 100%; border: 0; box-shadow: none; }
  body::before { display: none; }
  body .mast, body .foot { box-shadow: none; }
}
