/* The Updates page (updates/index.php): the landing page's colours and fonts, a timeline newest first. Releases are cards
   (New / Improved / Fixed, tagged For streamers / For players); a course going live is a small row on its own. */
:root { --bg: #0b0d1c; --ink: #eef0ff; --muted: #9aa1d0; --cyan: #5eeaff; --pink: #ff5cbe; --yellow: #ffd64a; --green: #5af096;
  --line: #262b52; --card: #12152b; --dim: #6f76a8; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; line-height: 1.55; }
main { max-width: 760px; margin: 0 auto; padding-block: 40px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--cyan); }
.back { font-size: 14px; text-decoration: none; }
h1 { font-family: Bungee, Inter, sans-serif; font-weight: 400; font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 16px 0 6px; color: var(--cyan); text-shadow: 0 3px 0 #9b2a73; }
.intro { color: #d6d9f5; margin: 0 0 8px; max-width: 60ch; }
.now { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--muted); margin: 6px 0 22px; }
.now code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--yellow); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button { font: 600 14px Inter, ui-sans-serif, system-ui, sans-serif; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: #1b2042; color: var(--ink); border-color: #3a4180; }
.filters button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.timeline > li { position: relative; min-width: 0; }
.timeline > li::before { content: ""; position: absolute; left: -29px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); }
.timeline > li.course::before { top: 14px; width: 10px; height: 10px; left: -28px; border-color: var(--green); }
.rel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.rel header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ver { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; color: var(--yellow); font-size: 15px; }
.beta { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0b0d1c; background: var(--yellow); border-radius: 999px; padding: 1px 8px; }
.date { color: var(--muted); font-size: 14px; margin-left: auto; }
.rel h2 { margin: 8px 0 4px; font-size: 20px; line-height: 1.25; text-wrap: balance; }
.rel h3 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.rel ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.rel li { color: #d6d9f5; overflow-wrap: anywhere; }
.rel li::marker { color: var(--pink); }
.who { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.who.s { background: rgba(255, 92, 190, .14); color: #ff9ad6; }
.who.p { background: rgba(94, 234, 255, .12); color: var(--cyan); }
.rel code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--yellow); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.rel.old { background: transparent; border-style: dashed; }
.course .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; }
.course .tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #052012; background: var(--green); border-radius: 999px; padding: 1px 8px; }
.course .nm { font-weight: 700; }
.course .date { margin-left: 0; }

footer { border-top: 1px solid var(--line); margin-top: 26px; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer .vfoot { margin-left: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--dim); }
@media (max-width: 520px) { .rel { padding: 16px; } .rel .date { margin-left: 0; width: 100%; } footer .vfoot { margin-left: 0; width: 100%; } }
