/* Monster Examine, after Dominic Fike's "CASTING CALL".
   Paper: a sun-bleached call sheet. Ink: the printed slate. Red: the tank top on the
   album cover, used once per view for the thing that needs you. Water: the jug poured
   over his face, used for links. Every state pairs its colour with a shape and a word,
   so nothing depends on hue. The skipping-disc stutter of the song's ending lives only
   in the wordmark. */
@font-face { font-family: Allo; src: url(/assets/fonts/AlloVariable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
/* Credits only: Fraunces (SIL OFL, site/fonts/Fraunces-OFL.txt). Everything else is Allo. */
@font-face { font-family: Fraunces; src: url(/assets/fonts/Fraunces-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Fraunces; src: url(/assets/fonts/Fraunces-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --paper: #f4eee4; --paper-2: #ebe3d5; --card: #fbf8f2;
  --ink: #1c1814; --ink-2: #463e36; --muted: #665c52; --line: #d3c8b8;
  --red: #b0241c; --red-soft: #f3d9d2; --water: #1b5a73; --water-soft: #dbe9ee;
  --slate: #1c1814; --slate-text: #f4eee4; --slate-muted: #c9bfb1;
  --radius: 10px; --wide: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110e; --paper-2: #1e1915; --card: #1a1612;
    --ink: #f2eadd; --ink-2: #d2c7b7; --muted: #a69b8c; --line: #3a322a;
    --red: #ff7d6a; --red-soft: #3a1a15; --water: #8ac6de; --water-soft: #15303a;
    --slate: #f2eadd; --slate-text: #14110e; --slate-muted: #4c443b;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Allo, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; z-index: 9; }
.skip:focus { top: 12px; }
.count { font-weight: 500; color: var(--muted); font-size: 0.8em; margin-left: 0.4em; }
.kicker { margin: 0 0 8px; font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--ink-2); max-width: 72ch; margin: 12px 0 0; }

/* Masthead: the clapper's stripes, the stuttering wordmark. */
.masthead { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: var(--wide); margin: 0 auto; padding: 26px 16px 18px; }
.masthead::before { content: ''; position: absolute; inset: 0 16px auto; height: 7px; background: repeating-linear-gradient(-55deg, var(--ink) 0 11px, transparent 11px 22px); opacity: .9; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.wm-b { position: relative; display: inline-block; color: transparent; }
/* The skip: the lower slice of "Examine" jumps sideways, like a disc catching. */
.wm-b::before, .wm-b::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--ink); clip-path: inset(0 0 38% 0); }
.wm-b::after { left: 0.09em; clip-path: inset(62% 0 0 0); }
@media (forced-colors: active) { .wm-b { color: inherit; } .wm-b::before, .wm-b::after { content: none; } }
.topnav { display: flex; flex-wrap: wrap; gap: 4px; }
.topnav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.topnav a:hover { background: var(--paper-2); }
.topnav a[aria-current] { background: var(--ink); color: var(--paper); }
main { max-width: var(--wide); margin: 0 auto; padding: 12px 16px 48px; }
.sitefoot { max-width: var(--wide); margin: 0 auto; padding: 22px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sitefoot p { margin: 6px 0; max-width: 90ch; }

/* Marks: shape first, then the word. */
.mark { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.mark-shape { font-size: 0.95em; line-height: 1; width: 1.1em; text-align: center; }
.mark--hosted { color: var(--ink); background: var(--card); }
.mark--linked { color: var(--water); }
.mark--none { color: var(--muted); border-style: dashed; }
.mark .sub { font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* Home: two doors, one per game. */
.home h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.doors { list-style: none; padding: 0; margin: 32px 0 20px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.door { position: relative; display: grid; gap: 10px; padding: 30px 26px 24px; border-radius: 16px; background: var(--slate); color: var(--slate-text); text-decoration: none; min-height: 210px; overflow: hidden; }
.door-slate { position: absolute; inset: 0 0 auto; height: 14px; background: repeating-linear-gradient(-55deg, var(--slate-text) 0 16px, transparent 16px 32px); opacity: .85; }
.door-name { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 18px; }
.door-facts { color: var(--slate-muted); font-size: 15px; }
.door-go { margin-top: auto; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.door:hover .door-go, .door:focus-visible .door-go { text-decoration: underline; text-underline-offset: 4px; }
.door--rs3 { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.door--rs3 .door-slate { background: repeating-linear-gradient(-55deg, var(--ink) 0 16px, transparent 16px 32px); }
.door--rs3 .door-facts { color: var(--muted); }
.home-note { color: var(--ink-2); max-width: 70ch; }

/* The log. */
.log-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.tally { display: grid; grid-template-columns: repeat(4, auto); gap: 1px; background: var(--line); margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; }
.tally div { padding: 10px 16px; background: var(--paper); }
.tally dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.tally dd { margin: 2px 0 0; font-size: 20px; font-weight: 750; }
.log { margin-top: 28px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 6px 6px 10px; border-bottom: 2px solid var(--ink); }
.tab { flex: none; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 8px 8px 0 0; border: 1px solid var(--line); border-bottom: 0; min-height: 44px; display: inline-flex; align-items: center; background: var(--card); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab[aria-selected="true"] .count { color: inherit; opacity: .75; }
.panel { padding-top: 18px; }
.log:not(.is-live) .panel + .panel { margin-top: 36px; border-top: 2px solid var(--ink); }
.panel-title { font-size: 24px; font-weight: 800; }
.log.is-live .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-note { color: var(--ink-2); margin: 0 0 14px; max-width: 75ch; font-size: 15px; }
.panel-body { display: grid; gap: 18px; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 2px 10px; }
.entry { display: flex; align-items: center; gap: 9px; padding: 8px 10px; min-height: 44px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 560; }
.entry:hover { background: var(--paper-2); }
.entry[aria-current="true"] { background: var(--ink); color: var(--paper); }
.entry[aria-current="true"] .mark-shape, .entry[aria-current="true"] .count { color: inherit; }
.entry--linked .mark-shape { color: var(--water); }
.entry--none { color: var(--muted); }
.entry-name { flex: 1; min-width: 0; }
.pane { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; outline: none; scroll-margin-top: 12px; }
.log:not(.is-live) .pane + .pane { margin-top: 14px; }
.pane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.pane-head h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.025em; flex: 1 1 100%; order: 2; }
.pane-head .mark { order: 3; }
.pane-slate { order: 1; flex: 1 1 100%; display: flex; gap: 0; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pane-slate span { border: 1px solid var(--ink); padding: 3px 9px; }
.pane-slate span + span { border-left: 0; }
.pane section { padding-top: 16px; }
.pane h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.pane-empty { color: var(--muted); }
.pane-back { display: none; margin: 18px 0 0; font-size: 14px; }
@media (max-width: 759px) { .log.is-live .pane-back { display: block; } }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.card-title { font-weight: 750; font-size: 17px; color: var(--ink); text-decoration-color: var(--line); }
.card-credit { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.card-by { font-weight: 750; color: var(--ink); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); }
.chip > span { font-weight: 800; }
.chip--reworded, .chip--edited { color: var(--water); border-color: currentColor; }
.chip--changed-upstream, .chip--removed-upstream { color: var(--red); border: 2px solid currentColor; background: var(--red-soft); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.links .mark { font-size: 11px; padding: 1px 7px 1px 5px; }
.link-note { flex: 1 1 100%; color: var(--muted); font-size: 14px; }
.tools { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
.tools h2 { font-size: 20px; margin-bottom: 14px; }
@media (min-width: 760px) {
  .log.is-live .panel-body { grid-template-columns: minmax(230px, 300px) 1fr; align-items: start; }
  .log.is-live .entries { grid-template-columns: 1fr; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding-right: 4px; }
}

/* The update badge, after pvme.sanji3.dev's. */
.guide-update-age { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--slate); color: var(--slate-text); width: fit-content; max-width: 100%; }
.guide-age-icon { grid-row: span 2; font-size: 20px; line-height: 1; width: 1.2em; text-align: center; }
.guide-update-age strong { font-size: 15px; font-weight: 750; }
.guide-update-age small { font-size: 12px; color: var(--slate-muted); }
.guide-update-age--older .guide-age-icon { color: color-mix(in srgb, var(--red) 70%, var(--slate-text)); }
.card .guide-update-age { padding: 8px 12px; border-radius: 9px; }
.card .guide-update-age strong { font-size: 13px; }
.card .guide-update-age small { font-size: 11px; }

/* Guide pages: billing first. */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.guide { max-width: 880px; margin: 0 auto; }
.guide-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -0.03em; }
.billing { margin: 24px 0 18px; padding: 26px 24px 22px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); text-align: center; position: relative; }
.billing::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; border-radius: 13px 13px 0 0; background: repeating-linear-gradient(-55deg, var(--ink) 0 12px, transparent 12px 24px); }
.billing-kicker { margin: 4px 0 6px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.billing-org { font-size: clamp(30px, 5vw, 44px); font-weight: 850; letter-spacing: -0.03em; }
.billing-with { margin: 6px 0 0; color: var(--ink-2); }
.billing-lead { margin: 18px auto 8px; font-size: 13px; color: var(--muted); max-width: 60ch; }
.billing-names { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; max-width: 70ch; font-size: 16px; font-weight: 700; line-height: 1.7; }
.billing-names .count { font-weight: 500; font-size: 12px; }
.billing-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.billing-facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.billing-facts dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.guide-checks { display: grid; gap: 12px; margin-bottom: 28px; }
.status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.status-shape { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; border: 2px solid currentColor; }
.status strong { display: block; }
.status p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.status--note .status-shape { color: var(--water); }
.status--note { border-color: var(--water); }
.status--warn { border: 2px solid var(--red); background: var(--red-soft); }
.status--warn .status-shape { color: var(--red); }
.guide-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* Guide text, as PvME and the wikis write it. Presentation only. */
.guide-content { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; min-width: 0; color: var(--ink); }
.guide-content p { margin: 12px 0; }
.guide-content h1 { font-size: 30px; margin: 28px 0 14px; }
.guide-content h2 { font-size: 25px; margin: 34px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.guide-content h3 { font-size: 20px; margin: 26px 0 12px; }
.guide-content h4 { font-size: 17px; margin: 22px 0 10px; }
.guide-content ins { text-decoration: none; }
.guide-content strong { font-weight: 750; }
.guide-content img { max-width: 100%; height: auto; vertical-align: middle; }
.guide-content img.d-emoji, .guide-content img.emoji, .guide-content img.twemoji, .guide-content img.ability-icon { width: auto; height: 1.55em; max-width: 2em; object-fit: contain; display: inline-block; margin: 0 2px; }
.guide-content img.media { display: block; max-height: 640px; object-fit: contain; margin: 22px auto; border-radius: 8px; }
.guide-content iframe { width: 100%; aspect-ratio: 16/9; min-height: 170px; border: 0; border-radius: 8px; background: var(--paper-2); display: block; }
.guide-content video { display: block; max-width: 100%; max-height: 500px; margin: auto; }
.guide-content figure { margin: 20px 0; }
.guide-content figcaption, .guide-content .media-caption, .guide-content .unavailable-reference { font-size: 13px; color: var(--muted); }
.guide-content table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; font-size: 14px; }
.guide-content td, .guide-content th { padding: 8px 12px; border: 1px solid var(--line); min-width: 70px; }
.guide-content th { background: var(--paper-2); text-align: left; }
.guide-content pre { max-width: 100%; overflow: auto; font-size: 13px; background: var(--paper-2); padding: 14px; border-radius: 8px; }
.guide-content ul, .guide-content ol { padding-left: 24px; }
.guide-content .embed-rich, .guide-content details, .guide-content .admonition, .guide-content .tabbed-set { border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 8px; padding: 14px 18px; background: var(--card); margin: 20px 0; }
.guide-content .embed-field { margin-bottom: 16px; }
.guide-content .embed-field-name, .guide-content .embed-title { font-weight: 750; margin: 5px 0 8px; }
.guide-content .embed-description, .guide-content .embed-field-value { white-space: pre-line; }
.guide-content .source-tab-label, .guide-content .tabbed-labels label { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; font-weight: 700; }
.guide-content details > summary { font-weight: 700; cursor: pointer; }
.guide-content .tabbed-labels { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-content .tabbed-block { padding: 12px 0; }
.guide-content .md-typeset__scrollwrap { max-width: 100%; overflow: auto; }

/* Plain pages. */
.prose { max-width: 960px; }
.prose h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose p { max-width: 72ch; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.table-wrap tbody th { min-width: 150px; }
.permissions { list-style: none; padding: 0; display: grid; gap: 12px; }
.permissions li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.permissions h2 { margin: 0 0 6px; font-size: 18px; }
.permissions p { margin: 0; color: var(--ink-2); }
.keylist { list-style: none; padding: 0; display: grid; gap: 10px; }
.keylist .chip { margin-right: 8px; }

@media (max-width: 520px) {
  .masthead { padding-top: 22px; }
  .wordmark { font-size: 22px; }
  .topnav a { padding: 6px 10px; font-size: 14px; }
  .pane { padding: 18px 14px 16px; }
  .billing { padding: 22px 14px 18px; }
  .tally { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .tally div { padding: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Credits are set in the serif: billing, card credit lines, link notes, guide footers,
   permissions and the sources table's credit column. Small caps labels stay in Allo. */
:root { --serif: Fraunces, Georgia, 'Times New Roman', serif; }
.billing-org, .billing-with, .billing-lead, .billing-names, .billing-facts dd,
.card-credit, .link-note, .guide-foot, .permissions p, .credit-cell, .site-foot .credit-line {
  font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.billing-org { font-weight: 700; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; }
.billing-names { font-weight: 600; }
.billing-names .count, .billing-facts dt, .billing-kicker { font-family: Allo, system-ui, sans-serif; }
