/* KPL meme archive: scoped styles for stories, search and source links. */
body[data-page="memes"] main { max-width: 1580px; padding: 34px 38px 52px; }
.meme-origins { --mo-gold: #edcc8d; --mo-text: #f0eee8; --mo-muted: #a7adb6; --mo-line: #33383f; color: var(--mo-text); }
/* The arena theme hides generic paragraphs; story copy is part of this module. */
#main .meme-origins p { display: block !important; }
#main .meme-origins [hidden] { display: none !important; }
.meme-origins svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.meme-origins a, .meme-origins button { transition: color .18s, background .18s, border-color .18s; }
.mo-kicker { color: var(--mo-gold); font-size: 10px; letter-spacing: .18em; line-height: 1.8; }
.mo-kicker > span { color: #a3aab4; margin-left: 10px; letter-spacing: .1em; }
.mo-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; }
.mo-heading h1 { margin: 12px 0 12px; font-size: clamp(34px, 3.8vw, 48px); letter-spacing: .025em; line-height: 1.25; }
.mo-heading-dot { color: var(--mo-gold); margin-left: 6px; }
.mo-heading p { color: var(--mo-muted); font-size: 13px; margin: 0; letter-spacing: .04em; line-height: 1.8; }
.mo-heading-stamp { display: flex; flex-direction: column; align-items: flex-end; padding-left: 20px; border-left: 1px solid #726348; }
.mo-heading-stamp strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 36px; line-height: 1.2; color: var(--mo-gold); font-weight: 500; }
.mo-heading-stamp > span { margin-top: 6px; color: #acb0b7; font-size: 10px; letter-spacing: .05em; white-space: nowrap; }
.mo-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 346px; padding: 34px 36px 65px; gap: 28px; border: 1px solid #b69c6547; background: radial-gradient(ellipse at 78% 45%, #e2b65f0e, transparent 65%), #14171c; overflow: hidden; isolation: isolate; }
.mo-feature::before { content: ""; position: absolute; left: 0; top: 0; width: 80px; height: 3px; background: var(--mo-gold); }
.mo-feature::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 100px, #dfc38c09 101px, transparent 102px); pointer-events: none; z-index: -1; }
.mo-feature-kicker { display: flex; gap: 9px; align-items: center; color: var(--mo-gold); font-size: 10px; letter-spacing: .14em; }
.mo-feature-kicker > span { width: 5px; height: 5px; background: var(--mo-gold); transform: rotate(45deg); }
.mo-feature h2 { color: #f6f2e9; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; letter-spacing: .03em; margin: 17px 0 14px; }
.mo-feature-copy p { color: #c0bcb4; font-size: 12px; line-height: 1.95; max-width: 40em; margin: 0 0 20px; }
.mo-feature-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; background: var(--mo-gold); color: #181710; padding: 11px 17px; font-size: 12px; font-weight: 700; border: 1px solid var(--mo-gold); }
.mo-feature-link:hover { background: #ffe2a9; border-color: #ffe2a9; color: #181710; }
.mo-feature-art { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; }
.mo-art-label { font-size: 9px; color: #b4a88f; letter-spacing: .2em; text-align: center; }
.mo-feature-art > strong { color: var(--mo-gold); font-family: Impact, "Arial Narrow", ui-monospace, monospace; font-size: clamp(72px, 9.5vw, 146px); line-height: 1.25; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; text-shadow: 0 6px 40px #ecc47f18; white-space: nowrap; }
.mo-feature-art > strong > span { display: inline-block; color: #9e8355; transform: translateY(-.035em); padding-inline: .02em; }
.mo-art-rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #ddbd7d80, transparent); margin: 0 0 20px; }
.mo-art-match { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; color: #d8d6d0; font-size: 12px; }
.mo-art-match b { color: var(--mo-gold); font-family: ui-monospace, monospace; font-size: 20px; white-space: nowrap; }
.mo-art-foot { font-size: 10px; letter-spacing: .02em; color: #a9a69e; margin-top: 13px; text-align: center; line-height: 1.8; }
.mo-feature-edge { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 35px; padding: 8px 20px; border-top: 1px solid #b69c652a; color: #b5a88f; font-size: 9px; letter-spacing: .08em; background: #0002; }
.mo-feature-edge > span:last-child { font-family: ui-monospace, monospace; color: #c7b185; }
.mo-library { margin-top: 32px; }
.mo-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mo-section-title > span { color: var(--mo-gold); font-size: 10px; border-right: 1px solid #665a45; padding-right: 12px; letter-spacing: .1em; }
.mo-section-title h2 { color: var(--mo-text); font-size: 19px; margin: 0; }
.mo-section-title > a { margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 12px; color: var(--mo-gold); }
.mo-text-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: transparent; color: #c6c2b8; font-size: 12px; padding: 8px 0 8px 12px; }
.mo-section-title .mo-text-button { margin-left: auto; }
.mo-text-button:hover { color: var(--mo-gold); }
.mo-search-row { display: flex; gap: 10px; }
.mo-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.mo-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #a7adb8; pointer-events: none; }
.mo-search input { width: 100%; min-width: 0; padding: 13px 14px 13px 43px; border: 1px solid #475360; background: #101821; border-radius: 0; font-size: 13px; }
.mo-reset { min-width: 65px; border: 1px solid #475360; background: transparent; color: #bac4cf; font-size: 12px; }
.mo-reset:hover { color: var(--mo-gold); border-color: var(--mo-gold); }
.mo-library-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 20px; }
.mo-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mo-filters button { min-height: 38px; color: #aeb7c2; font-size: 12px; background: transparent; padding: 8px 14px; border: 1px solid transparent; }
.mo-filters button:hover { color: var(--mo-gold); background: #d7b36a08; }
.mo-filters button[aria-pressed="true"] { color: var(--mo-gold); border-color: #d7b36a64; background: #d7b36a0c; }
.mo-result-count { color: #9ca6b3; font-size: 11px; }
.mo-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mo-card { min-width: 0; display: flex; flex-direction: column; padding: 23px 23px 0; border: 1px solid #33404c; background: linear-gradient(135deg, #151e28, #0e151d); }
.mo-card:hover { border-color: #d7b36a80; background: linear-gradient(135deg, #24241e, #101720); }
.mo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mo-category { color: var(--mo-gold); font-size: 10px; letter-spacing: .05em; }
.mo-card-number { font-size: 11px; color: #8b97a5; font-family: ui-monospace, monospace; }
.mo-card h3 { margin: 20px 0 9px; color: #f1eee6; font-size: 25px; line-height: 1.3; letter-spacing: .015em; overflow-wrap: anywhere; }
.mo-card-caption { color: #cbc3b1; font-size: 12px; line-height: 1.7; }
.mo-card p { color: #a7b2bf; font-size: 12px; line-height: 1.9; margin: 14px 0 18px; }
.mo-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-bottom: 20px; }
.mo-tags > span { font-size: 10px; color: #b7c0cb; border: 1px solid #3a4551; padding: 4px 7px; line-height: 1.4; }
.mo-card-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #34404b; padding: 15px 0; color: #a6b0bc; font-size: 10px; }
.mo-card-bottom > span:last-child { color: var(--mo-gold); display: flex; align-items: center; gap: 7px; }
.mo-card-bottom svg { width: 15px; height: 15px; }
.mo-no-results { grid-column: 1 / -1; text-align: center; padding: 42px 20px; border: 1px dashed #475360; }
.mo-no-results > span { color: var(--mo-gold); font-size: 40px; }
.mo-no-results h3 { margin: 12px 0; font-size: 19px; }
.mo-no-results p { color: var(--mo-muted); font-size: 13px; line-height: 1.8; }
.mo-no-results button { margin-top: 12px; }
.mo-directory-foot { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding-top: 26px; color: #9fa9b4; font-size: 10px; line-height: 1.8; }
.mo-directory-foot > span:first-child { color: #b3a081; letter-spacing: .1em; }
.mo-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.mo-back { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #bdc5ce; font-size: 12px; }
.mo-back:hover { color: var(--mo-gold); }
.mo-detail-head { border-top: 1px solid #9c835440; border-bottom: 1px solid #9c835440; background: linear-gradient(110deg, #d7b36a09, transparent 70%); padding: 28px 26px 25px; }
.mo-detail-head h1 { color: #f4e7ca; font-size: clamp(35px, 4.3vw, 60px); margin: 17px 0 12px; letter-spacing: .01em; overflow-wrap: anywhere; }
.mo-detail-head h1:focus { outline: none; }
.mo-detail-caption { color: #d5c5a6; font-size: 17px; line-height: 1.7; }
.mo-detail-summary { color: #b9c0c9; font-size: 14px; line-height: 1.9; max-width: 70em; margin: 15px 0 21px; }
.mo-detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.mo-detail-tags > span { color: #c2c5c8; border: 1px solid #5f5748; font-size: 11px; line-height: 1.5; padding: 4px 9px; }
.mo-detail-tags button { background: transparent; color: var(--mo-gold); font-size: 11px; min-height: 36px; padding: 6px 0 6px 10px; margin-left: auto; }
.mo-detail-tags button > span { margin-left: 8px; }
.mo-copy-status { font-size: 12px; color: var(--mo-gold); line-height: 1.8; }
.mo-copy-status:not(:empty) { margin-top: 12px; }
.mo-copy-fallback { display: flex; flex-direction: column; gap: 8px; color: #aeb9c7; font-size: 11px; margin-top: 12px; }
.mo-copy-fallback input { width: 100%; padding: 10px; font-size: 13px; }
.mo-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .43fr); gap: 40px; padding: 34px 0; align-items: start; }
.mo-story-step { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 16px; padding-bottom: 25px; }
.mo-step-index { font-family: ui-monospace, monospace; color: var(--mo-gold); font-size: 13px; margin-top: 4px; }
.mo-story-step h2 { font-size: 20px; margin: 0 0 14px; color: #ece8df; }
.mo-story-step p { font-size: 14px; color: #b8c2ce; line-height: 2; margin: 0 0 12px; }
.mo-story-step p:last-child { margin-bottom: 0; }
.mo-clarify { border-left: 2px solid #c6a365; padding: 17px 20px; background: #d7b36a08; margin-left: 49px; }
.mo-clarify-label { color: var(--mo-gold); font-size: 12px; font-weight: 650; }
.mo-clarify p { font-size: 12px; line-height: 1.95; color: #c1b7a6; margin: 9px 0 0; }
.mo-context { border: 1px solid #a68e5c50; background: #14191f; padding: 21px 23px; }
.mo-context-head { display: flex; justify-content: space-between; gap: 10px; color: var(--mo-gold); font-size: 10px; letter-spacing: .1em; }
.mo-context h2 { font-size: 19px; color: #f0e1c1; margin: 15px 0 20px; line-height: 1.6; }
.mo-context dl { margin: 0; }
.mo-context dl > div { border-top: 1px solid #36383b; padding: 13px 0; }
.mo-context dt { color: #9fa8b4; font-size: 11px; margin-bottom: 6px; }
.mo-context dd { margin: 0; font-size: 13px; line-height: 1.8; color: #e1e0dc; overflow-wrap: anywhere; }
.mo-context-foot { border-top: 1px solid #574b36; color: #c2ad85; font-size: 11px; padding-top: 15px; line-height: 1.85; }
.mo-sources { padding-top: 26px; border-top: 1px solid var(--mo-line); }
.mo-source-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.mo-source-list a { display: grid; grid-template-columns: 25px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid #303944; }
.mo-source-list a:hover strong { color: var(--mo-gold); }
.mo-source-number { color: #b49b6f; font-family: ui-monospace, monospace; font-size: 11px; }
.mo-source-kind { color: #b9a780; font-size: 10px; display: block; margin-bottom: 5px; }
.mo-source-list strong { color: #dddcd7; font-size: 13px; line-height: 1.8; font-weight: 600; display: block; }
.mo-source-description { color: #a5aeb9; font-size: 11px; line-height: 1.85; margin-top: 4px; display: block; }
.mo-source-list a > span:last-child { color: var(--mo-gold); }
.mo-source-note { color: #a2acb9; font-size: 11px; line-height: 1.9; margin: 16px 0 0; }
.mo-related { margin-top: 38px; }
.mo-not-found { padding: 45px 0; }
.mo-not-found h1 { font-size: 30px; margin: 20px 0; }
.mo-not-found p { color: var(--mo-muted); font-size: 14px; line-height: 1.9; margin-bottom: 25px; }
.mo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 651px) { .sidebar { overflow-y: auto; } .sidebar .brand { flex-shrink: 0; } }
@media (max-width: 1180px) {
  body[data-page="memes"] main { padding: 28px 26px 44px; }
  .mo-feature { gap: 22px; padding-inline: 28px; }
  .mo-feature-art > strong { font-size: clamp(70px, 9vw, 115px); }
  .mo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-detail-layout { gap: 25px; grid-template-columns: minmax(0, 1fr) 245px; }
  .mo-card { padding-inline: 20px; }
}
@media (max-width: 930px) {
  .mo-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mo-feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: end; }
  .mo-feature-kicker, .mo-feature-copy p { grid-column: 1 / -1; }
  .mo-feature h2 { margin: 10px 0 0; font-size: 30px; }
  .mo-feature-copy p { margin-bottom: 0; grid-row: 3; }
  .mo-feature-link { align-self: end; }
  .mo-feature-art { padding-top: 0; }
  .mo-feature-art > strong { font-size: 118px; line-height: 1.15; }
  .mo-art-rule { max-width: 400px; margin-bottom: 15px; }
  .mo-art-label { font-size: 9px; }
  .mo-detail-layout { display: flex; flex-direction: column; }
  .mo-context { order: -1; width: 100%; }
  .mo-context dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .mo-related .mo-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  body[data-page="memes"] main { padding: 25px 16px 35px; }
  .mo-heading { padding-bottom: 24px; gap: 12px; }
  .mo-heading h1 { font-size: 34px; margin-top: 12px; }
  .mo-kicker { font-size: 9px; letter-spacing: .13em; }
  .mo-kicker > span { display: block; margin-left: 0; margin-top: 3px; }
  .mo-heading p { font-size: 12px; max-width: 18em; }
  .mo-heading-stamp { padding-left: 13px; }
  .mo-heading-stamp strong { font-size: 30px; }
  .mo-heading-stamp > span { font-size: 9px; }
  .mo-feature { padding: 26px 22px 55px; gap: 25px; }
  .mo-feature-copy { display: block; }
  .mo-feature h2 { font-size: 29px; margin: 15px 0 12px; }
  .mo-feature h2 br { display: none; }
  .mo-feature-copy p { margin-bottom: 18px; }
  .mo-feature-art > strong { font-size: clamp(85px, 25vw, 125px); }
  .mo-feature-art { padding-block: 0 3px; }
  .mo-feature-edge { font-size: 8px; padding-inline: 15px; letter-spacing: 0; }
  .mo-feature-edge > span:last-child { font-size: 8px; }
  .mo-art-match { font-size: 11px; gap: 12px; }
  .mo-art-match b { font-size: 18px; }
  .mo-art-label { font-size: 8px; }
  .mo-library { margin-top: 25px; }
  .mo-section-title { gap: 9px; margin-bottom: 14px; }
  .mo-section-title h2 { font-size: 17px; }
  .mo-section-title > span { font-size: 9px; padding-right: 9px; }
  .mo-text-button { font-size: 11px; gap: 7px; padding-left: 3px; }
  .mo-search input { font-size: 16px; padding-left: 38px; }
  .mo-search input::placeholder { font-size: 12px; }
  .mo-search > svg { left: 12px; width: 16px; }
  .mo-reset { min-width: 51px; }
  .mo-library-toolbar { margin-top: 12px; }
  .mo-filters { gap: 3px; }
  .mo-filters button { font-size: 11px; padding-inline: 10px; min-height: 42px; }
  .mo-card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mo-card h3 { font-size: 26px; }
  .mo-card p { font-size: 13px; }
  .mo-card-bottom { padding-block: 16px; font-size: 11px; }
  .mo-detail-nav { margin-bottom: 18px; }
  .mo-detail-head { padding: 23px 17px; }
  .mo-detail-head h1 { font-size: 38px; line-height: 1.35; }
  .mo-detail-caption { font-size: 16px; }
  .mo-detail-summary { font-size: 13px; }
  .mo-detail-tags { gap: 8px; }
  .mo-detail-tags button { padding-left: 0; margin-left: 0; }
  .mo-detail-layout { padding-block: 25px; gap: 28px; }
  .mo-context { padding: 20px; }
  .mo-context h2 { font-size: 18px; }
  .mo-context dl { gap: 0 15px; }
  .mo-context dd { font-size: 12px; }
  .mo-story-step { grid-template-columns: 24px minmax(0, 1fr); gap: 11px; }
  .mo-story-step h2 { font-size: 19px; }
  .mo-story-step p { font-size: 13px; }
  .mo-clarify { margin-left: 0; padding: 16px 17px; }
  .mo-source-list a { gap: 8px; grid-template-columns: 20px minmax(0, 1fr) 15px; }
  .mo-copy-fallback input { font-size: 16px; }
  .mo-directory-foot { font-size: 9px; }
}
@media (max-width: 360px) {
  body[data-page="memes"] main { padding-inline: 12px; }
  .mo-heading h1 { font-size: 30px; }
  .mo-heading-stamp { padding-left: 10px; }
  .mo-feature { padding-inline: 18px; }
  .mo-feature h2 { font-size: 26px; }
  .mo-feature-edge > span:last-child { display: none; }
  .mo-filters button { padding-inline: 8px; }
  .mo-context dl { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .meme-origins *, .meme-origins *::before, .meme-origins *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .mo-feature, .mo-card, .mo-context, .mo-feature-link, .mo-filters button[aria-pressed="true"] { border-color: CanvasText; } }
/* Expanded catalogue and player origins. */
.mo-nickname-entry { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; padding:23px 26px; margin-bottom:20px; border:1px solid var(--mo-line); border-left:3px solid var(--mo-gold); color:var(--mo-text); text-decoration:none; background:#181b20; }
.mo-nickname-entry > div { min-width:0; }
.mo-nickname-entry > div > span { font-size:10px; color:var(--mo-gold); letter-spacing:.08em; }
.mo-nickname-entry h2 { font-size:21px; line-height:1.5; margin:9px 0; }
.mo-nickname-entry p { margin:0; font-size:12px; line-height:1.8; color:var(--mo-muted); }
.mo-nickname-entry > span { display:flex; align-items:center; gap:12px; color:var(--mo-gold); font-size:12px; }
.mo-nickname-entry:hover { border-color:var(--mo-gold); }
.mo-evidence { font-size:10px; line-height:1.6; color:var(--mo-muted); margin-left:auto; text-align:right; }
.mo-card-top { gap:8px; flex-wrap:wrap; }
.mo-aliases { color:var(--mo-muted); font-size:11px; line-height:1.8; overflow-wrap:anywhere; margin:0 0 8px; }
.mo-filters button { display:inline-flex; align-items:center; gap:6px; }
.mo-filters button > span { font-size:10px; opacity:.7; font-variant-numeric:tabular-nums; }
.mo-player-filter { display:grid; grid-template-columns:auto minmax(0,260px) minmax(0,1fr); align-items:center; gap:12px; border-block:1px solid var(--mo-line); padding:16px 0; margin-bottom:20px; }
.mo-player-filter label { color:var(--mo-text); font-size:12px; }
.mo-player-filter select { width:100%; min-width:0; min-height:44px; background:#181b20; color:var(--mo-text); border:1px solid var(--mo-line); border-radius:0; padding:8px 10px; font:inherit; font-size:13px; }
.mo-player-filter p { color:var(--mo-muted); font-size:11px; line-height:1.8; margin:0; }
.mo-nickname-entry:focus-visible,.mo-player-filter select:focus-visible { outline:2px solid var(--mo-gold); outline-offset:4px; }
.mo-detail-status { display:inline-block; border:1px solid var(--mo-line); color:var(--mo-muted); padding:5px 9px; font-size:11px; margin-top:12px; }
@media(max-width:900px) { .mo-player-filter { grid-template-columns:auto minmax(0,1fr); } .mo-player-filter p { grid-column:1 / -1; } }
@media(max-width:600px) { .mo-nickname-entry { padding:18px; } .mo-nickname-entry h2 { font-size:19px; } .mo-player-filter { grid-template-columns:minmax(0,1fr); } .mo-player-filter select { font-size:16px; } .mo-section-title { flex-wrap:wrap; } .mo-library .mo-section-title h2 { font-size:16px; } .mo-library .mo-section-title > .mo-text-button { margin-left:auto; } .mo-directory-foot { flex-wrap:wrap; gap:8px; } }
