/* «Blood Moon» skin (27 Nov 2026, owner's AK47 Blood Lord art). Same classes as before: news.js and the
   panel's preview are unchanged. Target: the game's CEF 109 (Chromium 109) and any current browser.
   No web fonts (the game window may be offline and the panel preview's CSP blocks them): system serif fonts.
   No data: URIs (the preview's CSP has img-src 'self'): the ornaments are inline SVG symbols in index.html. */
:root {
  color-scheme: dark;
  --bg: #0b0406; --bg2: #14070b; --panel: #170a0f; --panel2: #1f0c13; --line: #3a1520; --line2: #5a1f2b;
  --text: #f4e8e6; --muted: #c8a8aa; --dim: #8e6c71;
  --accent: #e3283c; --accent2: #8e0f1f; --accent-soft: rgba(227, 40, 60, .14);
  --gold: #d8b26c; --gold-soft: rgba(216, 178, 108, .28);
  --fix: #3f62c4; --fix-text: #a3b9ff; --upcoming: #e2a840;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Constantia, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Arial, sans-serif;
  --condensed: var(--serif);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; background: var(--bg); }
body {
  position: relative; margin: 0; min-height: 100%; color: var(--text); font-family: var(--sans); font-size: 14px;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(190, 20, 40, .30), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(110, 10, 30, .22), transparent 70%),
    linear-gradient(180deg, #120509 0%, var(--bg) 40%, #070204 100%);
  background-attachment: fixed;
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .55; }
::selection { background: var(--accent); color: #fff; }
.accent { color: var(--accent); }
.eyebrow { margin: 0; font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.eyebrow.accent { color: var(--gold); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0e0407; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7a0f1e, #4a0812); border: 2px solid #0e0407; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #a3172b; }

/* ornaments (inline SVG symbols from index.html) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.night { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.night-moon { position: absolute; top: -140px; right: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(255, 90, 90, .22), rgba(200, 25, 45, .14) 45%, rgba(120, 10, 25, 0) 70%); }
.night-bats { position: absolute; top: 60px; right: 0; width: 70%; height: 340px; fill: #050102; opacity: .55; }
.header, .main, .footer { position: relative; z-index: 1; }

/* header */
.header { position: sticky; top: 0; z-index: 5; min-height: 68px; padding: 12px 4%; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(26, 6, 11, .97), rgba(14, 4, 7, .95)); border-bottom: 1px solid #4b111c; }
.header::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.drips { position: absolute; left: 0; right: 0; top: 100%; width: 100%; height: 14px; fill: #3d0811; pointer-events: none; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { display: block; height: 36px; width: auto; max-width: 60vw; filter: drop-shadow(0 0 10px rgba(227, 40, 60, .35)); }
.brand-mark { margin-right: 16px; padding-right: 16px; border-right: 1px solid var(--line2); font-family: var(--serif); font-size: 32px; font-weight: 700; white-space: nowrap; }
.brand-mark span { color: var(--accent); margin-left: 2px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.brand-caption { color: var(--dim); font-size: 9px; letter-spacing: 2px; margin-top: 3px; }
.header-right { display: flex; align-items: center; }
.button { border: 1px solid var(--line2); border-radius: 2px; background: linear-gradient(180deg, #2a0d15, #1a070c); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:hover { background: linear-gradient(180deg, #4a0f1c, #2a0910); border-color: var(--gold); box-shadow: 0 0 12px rgba(227, 40, 60, .3); }
.refresh { padding: 8px 13px; margin-left: 12px; font-family: var(--serif); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.refresh > span { font-size: 17px; vertical-align: -1px; margin-right: 4px; }
.bugs-link { color: var(--accent); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; padding: 8px 12px; border: 1px solid rgba(227, 40, 60, .35); border-radius: 2px; }
.bugs-link:hover { background: var(--accent-soft); }

.main { max-width: 1400px; margin: 0 auto; padding: 30px 4% 90px; }

/* hero: the owner's Blood Moon art + latest news */
.hero { position: relative; display: flex; min-height: 400px; overflow: hidden;
  background: radial-gradient(600px 400px at 70% 30%, rgba(150, 15, 35, .35), transparent 70%), linear-gradient(120deg, #24070e 0%, #12040a 60%, #0c0306 100%);
  border: 1px solid #5c1a26; box-shadow: 0 0 0 1px #000, 0 18px 50px rgba(0, 0, 0, .6), inset 0 0 80px rgba(0, 0, 0, .55); }
.hero::before { content: ""; position: absolute; top: 8px; right: 8px; bottom: 8px; left: 8px; z-index: 2; pointer-events: none; border: 1px solid var(--gold-soft); }
.hero::after { content: "BLOOD MOON"; position: absolute; left: 55%; bottom: -14px; z-index: 1; pointer-events: none; font-family: var(--serif); font-weight: 700; font-size: 56px; letter-spacing: 8px;
  color: transparent; -webkit-text-stroke: 1px rgba(216, 178, 108, .10); white-space: nowrap; }
.hero-art { flex: 0 0 54%; max-width: 700px; position: relative; }
.hero-art img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-art::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10, 2, 4, 0) 70%, rgba(10, 2, 4, .55)); }
.hero-art::after { content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 140px; background: linear-gradient(90deg, rgba(18, 4, 9, 0), #14050a 92%); }
.hero-body { position: relative; z-index: 3; flex: 1; padding: 40px 48px 36px 22px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-body h1 { margin: 14px 0 14px; font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: .5px; overflow-wrap: break-word;
  color: #fbeeea; text-shadow: 0 0 22px rgba(227, 40, 60, .55), 0 2px 0 #3a0610; }
.hero-body p { margin: 0; color: #dcc3c3; font-size: 14px; line-height: 1.8; white-space: pre-line; max-width: 560px; }
.hero-line { display: flex; align-items: center; margin-top: 26px; color: var(--gold); font-family: var(--serif); font-size: 11px; letter-spacing: 4px; }
.hero-line::before { content: ""; width: 54px; height: 1px; margin-right: 12px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-line::after { content: ""; width: 7px; height: 7px; margin-left: 12px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 8px var(--accent); }
.hero-bats { position: absolute; z-index: 2; top: 10px; right: 10px; width: 360px; height: 180px; fill: #120205; opacity: .8; pointer-events: none; }
.hero-rose { position: absolute; z-index: 2; right: 18px; bottom: 14px; width: 86px; height: 86px; opacity: .9; pointer-events: none; filter: drop-shadow(0 0 10px rgba(227, 40, 60, .35)); }
.corner { position: absolute; z-index: 4; width: 46px; height: 46px; pointer-events: none; }
.corner.tl { top: 4px; left: 4px; } .corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); } .corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

.metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; }
.tag { display: inline-flex; align-items: center; padding: 4px 14px 4px 10px; background: linear-gradient(90deg, #b3142a, #7d0b1b); color: #fff; font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); box-shadow: inset 0 0 0 1px rgba(255, 200, 200, .15); }
.date { color: var(--muted); font-family: Consolas, monospace; }

.feedback { min-height: 18px; margin: 4px 0 16px; color: var(--dim); font-size: 11px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.content { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-heading h2, .bugs-top h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.count { color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }

/* more news */
.news { margin-bottom: 30px; }
.item { position: relative; padding: 20px 22px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); overflow-wrap: break-word; }
.item h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.item p { margin: 0; color: #d6bfc0; font-size: 13px; line-height: 1.8; white-space: pre-line; }
.filters { display: flex; flex-wrap: wrap; margin: 0 0 14px; }
.filter { margin: 0 6px 6px 0; padding: 6px 16px; border: 1px solid var(--line2); background: rgba(20, 6, 10, .6); color: var(--muted); font-family: var(--serif); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
.filter:hover { color: var(--text); border-color: var(--gold); }
.filter[aria-pressed="true"] { background: linear-gradient(180deg, #c4182f, #7f0b1c); border-color: var(--accent); color: #fff; font-weight: 700; }

/* bug checklist, planned, bug hunters: a framed panel */
.known-bugs { padding: 26px; background: linear-gradient(160deg, #1f0910, #10050a 70%); border: 1px solid var(--line2); position: relative; box-shadow: inset 0 0 60px rgba(0, 0, 0, .45); }
.known-bugs::before { content: ""; position: absolute; top: 6px; right: 6px; bottom: 6px; left: 6px; pointer-events: none; border: 1px solid rgba(216, 178, 108, .14); }
.known-bugs::after { content: ""; position: absolute; top: -1px; left: 50%; width: 160px; height: 2px; margin-left: -80px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.bugs-top { position: relative; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.bugs-top h2 { margin-top: 4px; font-size: 34px; text-shadow: 0 0 18px rgba(227, 40, 60, .4); }
.progress-box { min-width: 220px; }
.progress-text { text-align: right; margin-bottom: 6px; color: var(--muted); font-family: var(--serif); font-size: 14px; letter-spacing: 2px; }
.progress-text strong { color: var(--accent); font-size: 22px; }
.progress { height: 7px; background: #1e070d; border: 1px solid var(--line2); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 10px rgba(227, 40, 60, .6); transition: width .4s; }

.category { margin-top: 16px; position: relative; }
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: linear-gradient(90deg, #2a0b13, #170609); border-left: 3px solid var(--accent); cursor: pointer; list-style: none; user-select: none; transition: background .15s; }
.category-head::-webkit-details-marker { display: none; }
.category-head:hover { background: linear-gradient(90deg, #3a0f1a, #1d070c); }
.category-head h3 { display: flex; align-items: center; gap: 10px; }
.category-head h3::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.category[open] > .category-head h3::before { transform: rotate(45deg); border-color: var(--gold); }
.category[open] > .category-head { margin-bottom: 4px; }
.category-head h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 1.5px; }
.category-head span { color: var(--muted); font-family: Consolas, monospace; font-size: 11px; }
.bug { display: flex; align-items: flex-start; padding: 12px 12px 12px 10px; border-bottom: 1px solid #2a0d14; }
.bug:last-child { border-bottom: 0; }
.check { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 12px 0 0; border: 2px solid var(--line2); background: #0e0306; position: relative; transform: rotate(45deg) scale(.82); }
.fixed .check { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 8px rgba(227, 40, 60, .5); }
.fixed .check::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(-45deg) translate(-1px, 1px); }
.bug-body { min-width: 0; flex: 1; }
.bug-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bug-title h4 { margin: 0; font-size: 15px; font-weight: 600; }
.bug-mode { padding: 2px 7px; border: 1px solid var(--line2); color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.bug-fixed { padding: 2px 7px; background: var(--accent-soft); color: #ff8a96; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
/* who reported the bug ("reportado"), blue like the FIX label */
.change-link { margin-left: 8px; color: var(--gold, #e0b04f); font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.change-link:hover { color: #fff; }
.bug-reporter { padding: 2px 7px; background: rgba(63, 98, 196, .2); color: var(--fix-text); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.bug-body p { margin: 5px 0 0; color: #ccb2b4; font-size: 13px; line-height: 1.65; }
.bug-weapons { columns: 2; column-gap: 24px; padding-left: 16px; margin: 8px 0 0; color: #dcc6c7; font-size: 12px; line-height: 1.7; }
.fixed h4, .fixed .bug-body p, .fixed .bug-weapons, .strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.fixed h4 { color: var(--muted); }
.fixed .bug-body p, .fixed .bug-weapons { color: var(--dim); }
.empty { padding: 18px 12px; color: var(--muted); }

/* tabs */
.tabs { display: flex; justify-content: center; margin-top: 26px; border-bottom: 1px solid var(--line2); }
.tab { position: relative; padding: 12px 26px 11px; background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; transition: color .15s, text-shadow .15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: #fff; text-shadow: 0 0 14px rgba(227, 40, 60, .75); background: radial-gradient(120px 40px at 50% 100%, rgba(227, 40, 60, .22), transparent 75%); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 8px var(--accent); }
.tab-count { margin-left: 6px; padding: 1px 7px; background: var(--accent-soft); color: #ff8a96; font-family: Consolas, monospace; font-size: 11px; letter-spacing: 0; vertical-align: 3px; text-shadow: none; }
.divider { display: block; width: 300px; max-width: 70%; height: 20px; margin: 8px auto 0; }

/* versions (patch notes) */
.version { position: relative; margin-bottom: 12px; background: linear-gradient(160deg, rgba(31, 10, 17, .92), rgba(16, 5, 9, .92)); border: 1px solid var(--line); }
.version::before, .version::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: solid var(--gold-soft); }
.version::before { top: 4px; right: 4px; border-width: 1px 1px 0 0; }
.version::after { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }
.version[open] { border-color: var(--line2); background: linear-gradient(160deg, #250b13, #120509 70%); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.version[open]::before, .version[open]::after { border-color: var(--gold); }
.version-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; cursor: pointer; list-style: none; user-select: none; }
.version-head::-webkit-details-marker { display: none; }
.version-head::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.version[open] > .version-head::before { transform: rotate(45deg); border-color: var(--gold); }
.version-head:hover .version-name { color: #ff6b7a; }
.version-name { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: 1px; transition: color .15s; }
.version-badge { padding: 2px 9px; background: linear-gradient(180deg, #c4182f, #7f0b1c); color: #fff; font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: 2px; box-shadow: 0 0 10px rgba(227, 40, 60, .4); }
.version-date { color: var(--muted); font-family: Consolas, monospace; font-size: 12px; }
/* NEW / FIX / CHANGE before the version: what that version mostly was (news.js versionKinds) */
.version-kinds { display: inline-flex; gap: 4px; }
.version-kinds .kind { min-width: 46px; margin-right: 0; padding: 2px 6px; }
.version-count { margin-left: auto; color: var(--dim); font-family: var(--serif); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.version.latest { border-left: 3px solid var(--accent); }
.version.upcoming { border-left: 3px solid var(--upcoming); }
.version-badge.upcoming { background: linear-gradient(180deg, #f0c060, #c48a24); color: #1a0d00; box-shadow: 0 0 10px rgba(226, 168, 64, .35); }
.upcoming-line { color: var(--upcoming); font-weight: 600; }
.changes { list-style: none; margin: 0; padding: 4px 20px 18px 46px; }
/* li.change, not .change: the CHANGE badge is span.kind.change and would turn into a flex row too
   (its text went to the left and it got the 1px top border) */
li.change { display: flex; align-items: baseline; padding: 8px 0; border-top: 1px solid #2a0d14; color: #e2d0d0; font-size: 14px; line-height: 1.6; }
.kind { flex: 0 0 auto; min-width: 62px; margin-right: 12px; padding: 1px 0; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.kind.new { background: linear-gradient(180deg, #d0203a, #8e0f1f); color: #fff; }
.kind.fix { background: var(--fix); color: #fff; }
.kind.change { background: #4a2832; color: #f1dfe0; }
/* groups inside a version ("grupo" / "grupo_es", news.js changeGroups): one folding sub-section per
   topic, open by default, styled like the bug categories; a version without groups keeps .changes */
.change-groups { padding: 4px 20px 18px 46px; }
.change-group + .change-group { margin-top: 8px; }
.change-group-head { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: linear-gradient(90deg, #2a0b13, #170609); border-left: 3px solid var(--accent); cursor: pointer; list-style: none; user-select: none; transition: background .15s; }
.change-group-head::-webkit-details-marker { display: none; }
.change-group-head:hover { background: linear-gradient(90deg, #3a0f1a, #1d070c); }
.change-group-head h3 { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.25; overflow-wrap: anywhere; }
.change-group-head h3::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.change-group[open] > .change-group-head h3::before { transform: rotate(45deg); border-color: var(--gold); }
.change-group-count { flex: 0 0 auto; margin-left: auto; min-width: 26px; padding: 1px 7px; background: var(--accent-soft); color: #ff8a96; font-family: Consolas, monospace; font-size: 11px; text-align: center; }
.change-group.group-other > .change-group-head { border-left-color: var(--line2); }
.change-group.group-bugs > .change-group-head { border-left-color: var(--fix); }
.change-group.group-bugs .change-group-count { background: rgba(63, 98, 196, .2); color: var(--fix-text); }
.group-changes { list-style: none; margin: 0; padding: 0 0 2px 15px; }
.group-changes > li.change:first-child { border-top: 0; }
/* highlights of a version: images to the right of its changes */
.version-body { display: flex; align-items: flex-start; gap: 6px; }
.version-body > .changes, .version-body > .change-groups { flex: 1 1 auto; min-width: 0; }
.version-images { flex: 0 0 230px; display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 18px 0; }
.version-image { margin: 0; padding: 10px; background: radial-gradient(circle at 50% 40%, #3a0e18, #12040a 75%); border: 1px solid var(--line2); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35), inset 0 0 0 4px rgba(216, 178, 108, .12); text-align: center; }
.version-image img { display: block; max-width: 100%; max-height: 120px; margin: 0 auto; cursor: zoom-in; transition: transform .2s, filter .2s; }
.version-image img:hover { transform: scale(1.03); filter: drop-shadow(0 0 10px rgba(227, 40, 60, .45)); }
.version-image figcaption { margin-top: 6px; color: var(--muted); font-family: var(--serif); font-size: 12px; font-style: italic; letter-spacing: .3px; }
/* image layout from noticias.json (tamano / posicion / foco); without them, the side column above */
.version-images.wide { flex-basis: 330px; }
.version-image.size-small img { max-height: 70px; }
.version-image.size-large img { max-height: 220px; }
.version-image.size-full img { max-height: 300px; }
.version-below { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 18px 46px; }
.version-below .version-image { flex: 0 1 260px; }
.version-below .version-image.size-small { flex-basis: 160px; }
.version-below .version-image.size-large { flex-basis: 420px; }
.version-below .version-image.size-full { flex: 1 1 100%; }
.version-below .version-image img { max-height: 200px; }
.version-below .version-image.size-small img { max-height: 110px; }
.version-below .version-image.size-large img { max-height: 320px; }
.version-below .version-image.size-full img { max-height: 480px; }
.version-gallery { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px 46px; }
.version-gallery .version-image { flex: 1 1 150px; padding: 6px; }
.version-gallery .version-image.size-small { flex-basis: 100px; }
.version-gallery .version-image.size-large { flex-basis: 240px; }
.version-gallery .version-image.size-full { flex-basis: 100%; }
.version-gallery .version-image img { width: 100%; height: 130px; max-height: none; object-fit: cover; object-position: 50% 50%; }
.version-gallery .version-image.size-small img { height: 90px; }
.version-gallery .version-image.size-large img { height: 190px; }
.version-gallery .version-image.size-full img { height: 260px; }
.version-gallery .version-image.focus-top img { object-position: 50% 0; }
.version-gallery .version-image.focus-bottom img { object-position: 50% 100%; }

/* sidebar */
.panel { padding: 18px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.panel::before { content: ""; position: absolute; top: -1px; left: -1px; width: 50px; height: 2px; background: var(--accent); }
.panel-title { margin: 0 0 12px; font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.details { margin: 0; }
.details > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-family: Consolas, monospace; }
.small-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.legend li { display: flex; align-items: center; padding: 6px 0; }
.legend .check { margin-top: 0; }
.legend .kind { min-width: 54px; margin-right: 10px; }
.panel-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.message { padding: 18px; color: var(--muted); }

.footer { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 9px 4%;
  background: linear-gradient(180deg, rgba(20, 5, 9, .96), rgba(10, 2, 5, .98)); border-top: 1px solid #4b111c; }
.footer::before { content: ""; position: absolute; left: 4%; right: 4%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.footer-label { display: flex; align-items: center; color: var(--muted); font-family: var(--serif); font-size: 12px; letter-spacing: 3px; }
.footer-rose { width: 22px; height: 22px; margin-right: 8px; }
.footer-divider { margin: 0 6px; color: var(--accent); }
.close { padding: 7px 14px; font-family: var(--serif); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
kbd { margin-left: 6px; padding: 1px 5px; border: 1px solid var(--line2); color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }

@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .panel { margin-bottom: 0; } }
@media (max-width: 900px) { .hero-body h1 { font-size: 34px; } .hero::after { display: none; } .hero-bats { width: 260px; height: 130px; } }
@media (max-width: 760px) {
  .version-body { flex-direction: column; }
  .version-images { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 0 18px 16px 44px; box-sizing: border-box; }
  .version-image { flex: 1 1 160px; }
  .version-below, .version-gallery { padding-left: 18px; }
  .version-below .version-image { flex-basis: 100%; }
  .change-groups { padding: 4px 12px 14px 14px; }
  .group-changes { padding-left: 4px; }
  .hero { flex-direction: column; } .hero-art { max-width: none; height: 260px; flex: 0 0 auto; } .hero-art::after { display: none; }
  .hero-body { padding: 22px 26px 30px; } .hero-body h1 { font-size: 30px; } .hero::after { display: none; } .hero-rose { width: 60px; height: 60px; }
  .sidebar { grid-template-columns: 1fr; } .bug-weapons { columns: 1; } .brand-caption { display: none; }
  .tabs { justify-content: flex-start; }
  .night-bats { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* language switch */
.lang { display: flex; margin-right: 4px; border: 1px solid var(--line2); }
.lang button { padding: 7px 10px; background: transparent; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: linear-gradient(180deg, #c4182f, #7f0b1c); color: #fff; }

/* planned (roadmap) */
.plan-intro { position: relative; margin: -4px 0 16px; color: var(--muted); font-family: var(--serif); font-size: 14px; font-style: italic; }
.plan { position: relative; margin-bottom: 10px; padding: 16px 18px 16px 24px; background: rgba(22, 7, 12, .9); border: 1px solid var(--line); }
.plan::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line2); }
.plan.st-progress::before { background: var(--upcoming); }
.plan.st-done::before { background: var(--accent); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-head h4 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.plan p { margin: 6px 0 0; color: #ccb2b4; font-size: 13px; line-height: 1.6; }
.plan-state { flex: 0 0 auto; padding: 3px 10px; border: 1px solid var(--line2); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.plan.st-progress .plan-state { border-color: var(--upcoming); color: var(--upcoming); }
.plan.st-done .plan-state { background: var(--accent); border-color: var(--accent); color: #fff; }
.plan.st-done h4 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
/* the side column (Server briefing / Legend) is hidden: the content uses the full width */
.sidebar { display: none !important; }
.change-who { margin-left: 8px; white-space: nowrap; }
/* bug hunters tab */
.hunter { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 10px; background: rgba(23, 8, 13, .92); border: 1px solid var(--line); border-left: 3px solid var(--accent); transition: border-color .15s, transform .15s; }
.hunter:hover { border-color: var(--line2); transform: translateX(2px); }
.hunter-rank { flex: 0 0 auto; min-width: 54px; text-align: center; padding: 6px 8px; border: 1px solid var(--line2); color: var(--muted); font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.hunter-body { flex: 1 1 auto; min-width: 0; }
.hunter-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.hunter-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--text); overflow-wrap: anywhere; }
.hunter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hunter-chip { padding: 3px 9px; border: 1px solid var(--line2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.hunter-chip.fixed { background: linear-gradient(180deg, #c4182f, #7f0b1c); border-color: var(--accent); color: #fff; }
.hunter-bar { height: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.hunter-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 8px rgba(227, 40, 60, .55); }
.hunter-top { background: linear-gradient(100deg, rgba(227, 40, 60, .12), rgba(23, 8, 13, .92) 45%); }
.hunter-1 { border-left-color: #f2c94c; }
.hunter-1 .hunter-rank { color: #1a1300; background: linear-gradient(135deg, #f7d978, #e0a82e); border-color: #f2c94c; box-shadow: 0 0 14px rgba(242, 201, 76, .35); }
.hunter-2 { border-left-color: #c9d3d8; }
.hunter-2 .hunter-rank { color: #121619; background: linear-gradient(135deg, #e6edf0, #9fadb4); border-color: #c9d3d8; }
.hunter-3 { border-left-color: #d08a52; }
.hunter-3 .hunter-rank { color: #1a0d03; background: linear-gradient(135deg, #e8a874, #b0662f); border-color: #d08a52; }
@media (max-width: 560px) { .hunter { gap: 12px; padding: 14px; } .hunter-rank { min-width: 44px; font-size: 16px; } .hunter-name { font-size: 17px; } }
/* phone width: no horizontal scroll (tabs and version heads wrap, the "Reported by" chip goes under its line) */
@media (max-width: 560px) {
  .header-right { flex: 0 0 auto; }
  .brand-mark { margin-right: 10px; padding-right: 10px; font-size: 26px; }
  .brand-logo { height: 28px; }
  .brand-name { font-size: 15px; }
  .refresh { margin-left: 8px; padding: 7px 9px; font-size: 11px; }
  .tabs { flex-wrap: wrap; }
  .tab { padding: 10px 12px 9px; font-size: 16px; }
  .version-head { flex-wrap: wrap; gap: 6px 10px; padding: 12px; }
  .changes { padding: 4px 12px 14px 14px; }
  li.change { flex-wrap: wrap; }
  .change-text { flex: 1 1 calc(100% - 74px); min-width: 0; overflow-wrap: break-word; }
  .change-who { margin: 4px 0 0 74px; white-space: normal; }
  .hero-bats { display: none; }
}
/* very narrow: the refresh button keeps only its icon (the word stays for screen readers) */
@media (max-width: 420px) {
  .refresh [data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .refresh > span { margin-right: 0; }
}

/* enlarged image (click on a version image) */
.image-viewer { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; background: radial-gradient(circle at 50% 45%, rgba(60, 6, 16, .9), rgba(6, 1, 3, .95) 70%); cursor: zoom-out;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.image-viewer.open { display: flex; }
.image-viewer.full { overflow: auto; justify-content: flex-start; }
.image-viewer.full img { max-width: 96vw; max-height: none; flex: 0 0 auto; cursor: zoom-in; }
.image-viewer.full.real { align-items: flex-start; }
.image-viewer.full.real img { max-width: none; cursor: zoom-out; }
.image-viewer img { max-width: 92vw; max-height: 82vh; border: 1px solid var(--gold-soft); box-shadow: 0 0 0 4px rgba(0, 0, 0, .5), 0 10px 50px rgba(150, 10, 30, .5); }
.image-viewer-caption { color: var(--muted); font-family: var(--serif); font-size: 14px; font-style: italic; letter-spacing: .5px; text-align: center; }
.zoom-hint { color: var(--dim); font-family: var(--serif); font-size: 12px; font-style: italic; letter-spacing: .3px; text-align: center; }
.zoom-hint-row { padding: 6px 20px 0; text-align: left; }
/* an image next to the line that mentions it ("imagen": N on the change) */
li.change.has-image { flex-wrap: wrap; }
.version-image.change-image { flex: 0 0 210px; margin: 0 0 0 auto; padding: 6px; }
.version-image.change-image img { max-height: 130px; }
@media (max-width: 720px) { .version-image.change-image { flex-basis: 100%; margin: 8px 0 0; } }
