    /* Same "dark toon" recipe as the game: ink outline, colored hard offset shadow, cel gloss,
       asymmetric corners with a slight tilt, chunky Baloo 2 + cursive Caveat headings, halftone dots. */
    :root {
      --bg:#141210; --panel:#1d1a26; --text:#ece8f4; --muted:#b1a9c4;
      --ink:#06060c; --lav:#c68bff; --rose:#ff7eb6; --teal:#5fd6c8;
      --sh1:#2f2150; --sh2:#4a1f38; --sh3:#1d3a42; --sh4:#43331a;
    }
    * { box-sizing:border-box; }
    /* The page background lives on body, which only ever grows to its own content height. On a
       short page (a notice page, an error page) that left a hard seam partway down the screen —
       the browser's own default background showing through below the styled part. min-height
       (dvh, not vh, so mobile's address-bar-collapsing chrome doesn't leave a gap either) makes
       body always at least fill the viewport regardless of how little content is on the page. */
    html { scroll-behavior:smooth; background:var(--bg); }
    body {
      margin:0; min-height:100vh; min-height:100dvh; color:var(--text);
      font:17px/1.65 "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      background:
        radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px) 0 0 / 16px 16px,
        radial-gradient(900px 500px at 50% -10%, #2a1d44 0%, transparent 70%),
        var(--bg);
    }
    a { color:var(--lav); }
    .wrap { max-width:1000px; margin:0 auto; padding:0 16px 8px; }

    header.hero { max-width:1000px; margin:16px auto 0; padding:0 16px; }
    header.hero img {
      width:100%; height:auto; display:block;
      border:3px solid var(--ink); border-radius:22px 10px 22px 10px;
      box-shadow:7px 7px 0 var(--sh1), inset 0 2px 0 rgba(255,255,255,.25);
    }

    h1 {
      font-size:clamp(1.9rem,5.2vw,2.9rem); line-height:1.12; font-weight:800; margin:30px 0 10px;
      -webkit-text-stroke:3px var(--ink); paint-order:stroke fill; text-shadow:4px 4px 0 var(--sh1);
    }
    h2 {
      font-family:"Caveat","Baloo 2",cursive; font-weight:700;
      font-size:clamp(1.9rem,5vw,2.6rem); line-height:1.1; margin:48px 0 14px; color:var(--rose);
      -webkit-text-stroke:2px var(--ink); paint-order:stroke fill; text-shadow:3px 3px 0 var(--sh2);
    }
    h3 { font-weight:700; font-size:1.15rem; margin:0 0 6px; }
    p { margin:0 0 14px; }
    .lede { font-size:1.18rem; color:var(--muted); }

    .cta { display:flex; flex-wrap:wrap; gap:14px; margin:26px 0; }
    .btn {
      display:inline-block; padding:13px 26px; font-weight:800; font-size:1.05rem; text-decoration:none;
      border:3px solid var(--ink); border-radius:14px 8px 14px 8px; color:var(--text);
      transition:transform .12s ease, box-shadow .12s ease;
    }
    .btn-primary {
      color:#1a1024; background:linear-gradient(135deg,var(--lav),var(--rose));
      box-shadow:0 6px 0 #6b3d8f, inset 0 2px 0 rgba(255,255,255,.5);
    }
    .btn-ghost { background:var(--panel); box-shadow:0 6px 0 var(--sh1), inset 0 2px 0 rgba(255,255,255,.14); }
    .btn:hover { transform:translateY(-3px) rotate(-1deg); }
    .btn:active { transform:translateY(5px); box-shadow:0 1px 0 var(--ink); }

    .notice, .card, details {
      background:var(--panel); border:3px solid var(--ink);
      box-shadow:6px 6px 0 var(--sh1), inset 0 2px 0 rgba(255,255,255,.12);
    }
    .notice { border-radius:20px 9px 20px 9px; padding:16px 20px; margin:20px 0; box-shadow:6px 6px 0 var(--sh2), inset 0 2px 0 rgba(255,255,255,.12); }
    .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; }
    .card { border-radius:20px 9px 20px 9px; padding:16px 20px; transform:rotate(-1deg); transition:transform .15s ease; }
    .card:nth-child(4n+2) { border-radius:9px 20px 9px 20px; transform:rotate(1.2deg); box-shadow:6px 6px 0 var(--sh2), inset 0 2px 0 rgba(255,255,255,.12); }
    .card:nth-child(4n+3) { transform:rotate(.8deg); box-shadow:6px 6px 0 var(--sh3), inset 0 2px 0 rgba(255,255,255,.12); }
    .card:nth-child(4n+4) { border-radius:9px 20px 9px 20px; transform:rotate(-1.2deg); box-shadow:6px 6px 0 var(--sh4), inset 0 2px 0 rgba(255,255,255,.12); }
    .card:hover { transform:rotate(0) translateY(-4px) scale(1.02); }
    .card h3 { color:var(--teal); }
    .card p { margin:0; color:var(--muted); }

    ul.plain { padding-left:22px; }
    ul.plain li { margin-bottom:8px; }

    details { border-radius:16px 8px 16px 8px; padding:12px 18px; margin:14px 0; }
    details:nth-of-type(even) { box-shadow:6px 6px 0 var(--sh3), inset 0 2px 0 rgba(255,255,255,.12); }
    summary { cursor:pointer; font-weight:800; font-size:1.05rem; }
    details p { margin:10px 0 2px; color:var(--muted); }

    footer { margin:64px auto 40px; color:var(--muted); font-size:.95rem; padding-top:22px; }
    footer p { margin-bottom:8px; }

    /* Inline brand marks (Patreon, Discord) next to their links — currentColor so each one
       follows the link/button's own color and hover state instead of a fixed brand color. */
    .ico { width:1em; height:1em; vertical-align:-.15em; margin-right:6px; flex-shrink:0; }

    @media (prefers-reduced-motion: reduce) {
      .card, .card:nth-child(n), .btn { transition:none; }
      .card:hover, .btn:hover { transform:none; }
    }
  

    /* shared nav + prose pages */
    nav.top { max-width:1000px; margin:0 auto; padding:14px 16px 0; display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; }
    nav.top a { font-weight:800; text-decoration:none; color:var(--text); }
    nav.top a:hover { color:var(--rose); }
    nav.top .brand { font-family:"Caveat","Baloo 2",cursive; font-size:1.7rem; color:var(--lav); margin-right:auto; -webkit-text-stroke:2px var(--ink); paint-order:stroke fill; }

    /* The one nav link that's actually a call to action — a pill badge instead of a plain link,
       with a slow pulse so it catches the eye without being obnoxious about it. */
    nav.top a.nav-patron {
      display:inline-flex; align-items:center; padding:6px 14px 6px 12px;
      background:linear-gradient(135deg,var(--lav),var(--rose));
      color:#1a1024 !important; border:2px solid var(--ink); border-radius:14px 6px 14px 6px;
      box-shadow:0 3px 0 #6b3d8f, inset 0 1px 0 rgba(255,255,255,.45);
      animation:navPatronPulse 2.6s ease-in-out infinite;
      transition:transform .12s ease;
    }
    nav.top a.nav-patron:hover { transform:translateY(-2px) rotate(-1deg); }
    nav.top a.nav-patron:active { transform:translateY(2px); box-shadow:0 1px 0 var(--ink); }
    @keyframes navPatronPulse {
      0%,100% { box-shadow:0 3px 0 #6b3d8f, inset 0 1px 0 rgba(255,255,255,.45); }
      50%     { box-shadow:0 3px 0 #6b3d8f, inset 0 1px 0 rgba(255,255,255,.45), 0 0 16px 3px rgba(198,139,255,.65); }
    }
    @media (prefers-reduced-motion: reduce) { nav.top a.nav-patron { animation:none; } }
    .prose h2 { margin-top:38px; }
    .prose ul { padding-left:22px; } .prose li { margin-bottom:8px; }
    .crumbs { color:var(--muted); font-size:.92rem; margin:22px 0 0; }
    .crumbs a { color:var(--muted); }
    .tags { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 0; padding:0; list-style:none; }
    .tags li { border:2px solid var(--ink); background:var(--panel); border-radius:12px 6px 12px 6px; padding:4px 14px; font-weight:700; box-shadow:3px 3px 0 var(--sh2); }


    /* ---- Comics ---- */
    nav.top a[aria-current="page"] { color:var(--rose); }
    .muted { color:var(--muted); }
    .who { margin:0 0 18px; color:var(--muted); }
    .comics { display:grid; gap:34px; margin-top:24px; }
    .comic {
      display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:22px; padding:18px;
      background:var(--panel); border:3px solid var(--ink); border-radius:22px 10px 22px 10px;
      box-shadow:7px 7px 0 var(--sh1), inset 0 2px 0 rgba(255,255,255,.12);
    }
    .comic:nth-child(even) { border-radius:10px 22px 10px 22px; box-shadow:7px 7px 0 var(--sh2), inset 0 2px 0 rgba(255,255,255,.12); }
    .comic .thumb { position:relative; align-self:start; }
    .comic .thumb img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; border:3px solid var(--ink); border-radius:14px 7px 14px 7px; }
    .comic.locked .thumb img { filter:saturate(.55) brightness(.7); }
    .comic .lock {
      position:absolute; top:10px; left:10px; padding:2px 12px; font-weight:800; font-size:.9rem;
      background:var(--ink); color:var(--text); border-radius:10px 4px 10px 4px;
    }
    .comic .sub { margin:0 0 2px; color:var(--muted); font-size:.95rem; }
    .comic h2 { margin:0 0 12px; font-size:clamp(1.7rem,4vw,2.2rem); }
    .pill { background:var(--ink); color:var(--rose); padding:1px 10px; border-radius:8px 3px 8px 3px; font-weight:800; font-size:.85rem; }
    .sched { list-style:none; margin:0 0 14px; padding:0; display:grid; gap:4px; }
    .sched li { display:flex; justify-content:space-between; gap:12px; padding:4px 12px; border-radius:8px 3px 8px 3px; background:rgba(255,255,255,.04); color:var(--muted); }
    .sched li b { color:var(--text); white-space:nowrap; }
    .sched li.out b { color:var(--teal); }
    .sched li.mine { outline:2px solid var(--lav); }
    .comic .act { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
    .comic .eta { font-weight:800; color:var(--teal); }
    .reader { max-width:860px; margin:24px auto 0; }
    .reader img { display:block; width:100%; height:auto; background:var(--panel); }
    @media (max-width:720px) { .comic { grid-template-columns:1fr; } }

    /* ---- Comics: themed cards + spotlight ---- */
    .comic { --accent:var(--lav); --sh:var(--sh1); position:relative; margin-top:6px;
      background:linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--panel)) 0%, var(--panel) 62%);
      box-shadow:8px 8px 0 var(--sh), inset 0 2px 0 rgba(255,255,255,.16); transform:rotate(-.6deg); }
    .comic:nth-child(4n+2) { --accent:var(--rose); --sh:var(--sh2); transform:rotate(.6deg); }
    .comic:nth-child(4n+3) { --accent:var(--teal); --sh:var(--sh3); transform:rotate(-.4deg); }
    .comic:nth-child(4n+4) { --accent:#ffc857; --sh:var(--sh4); transform:rotate(.5deg); }
    .comic h2 { color:var(--accent); }
    .comic .thumb img { border-color:var(--accent); box-shadow:4px 4px 0 var(--ink); }
    .comic .sched li.mine { outline-color:var(--accent); }
    @media (max-width:720px) { .comic, .comic:nth-child(n) { transform:none; } }

    /* Nav "Comics" link: a normal nav link; only the NEW sticker moves. */
    nav.top a.nav-comics { position:relative; margin-right:14px; }
    nav.top a.nav-comics i {
      position:absolute; top:-12px; right:-26px; font-style:normal; font-size:.72rem; font-weight:800;
      letter-spacing:.06em; padding:1px 7px; color:#fff; background:#e5195e; border:2px solid var(--ink);
      border-radius:8px 3px 8px 3px; box-shadow:2px 2px 0 var(--ink); transform:rotate(10deg);
      animation:navComicsSticker 1.2s ease-in-out infinite;
    }
    @keyframes navComicsSticker { 0%,100% { transform:rotate(10deg) scale(1); } 50% { transform:rotate(-6deg) scale(1.18); } }
    @media (prefers-reduced-motion: reduce) { nav.top a.nav-comics i { animation:none; } }

    /* ---- Comics card innards: toon sticker style (ink outline + hard offset shadow) ---- */
    .comic .sub { font-weight:700; }
    .comic .pill {
      display:inline-block; padding:2px 12px; font-weight:800; font-size:.82rem; letter-spacing:.03em;
      color:#1a1024; background:#ffc857; border:2px solid var(--ink);
      border-radius:9px 3px 9px 3px; box-shadow:2px 2px 0 var(--ink); transform:rotate(-3deg);
    }
    .comic .sched { gap:8px; }
    .comic .sched li {
      padding:6px 14px; font-weight:700; color:var(--text);
      background:color-mix(in srgb, var(--accent) 14%, #14111d); border:2px solid var(--ink);
      border-radius:12px 5px 12px 5px; box-shadow:3px 3px 0 var(--ink), inset 0 1px 0 rgba(255,255,255,.12);
    }
    .comic .sched li:nth-child(even) { border-radius:5px 12px 5px 12px; transform:rotate(.4deg); }
    .comic .sched li:nth-child(odd) { transform:rotate(-.4deg); }
    .comic .sched li b {
      padding:1px 10px; color:#1a1024; background:var(--accent); border:2px solid var(--ink);
      border-radius:8px 3px 8px 3px; box-shadow:2px 2px 0 var(--ink);
    }
    .comic .sched li.out b { background:var(--teal); }
    .comic .sched li.out b::before { content:"\2713 "; }
    .comic .sched li.mine { outline:none; border-color:#ffd76a; box-shadow:3px 3px 0 #ffd76a, 0 0 0 2px var(--ink); }
    .comic .lock {
      color:#1a1024; background:#ffd76a; border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink); transform:rotate(-4deg);
    }
    .comic .lock { display:inline-flex; align-items:center; gap:6px; line-height:1.2; }
    .comic .eta {
      padding:5px 14px; color:#1a1024; background:var(--teal); border:2px solid var(--ink);
      border-radius:10px 4px 10px 4px; box-shadow:3px 3px 0 var(--ink);
    }
    .comic .btn { box-shadow:0 5px 0 var(--ink); }
    .comic .btn-primary { box-shadow:0 5px 0 #6b3d8f; }
    @media (prefers-reduced-motion: reduce) { .comic .sched li, .comic .pill, .comic .lock { transform:none; } }

    /* ---- Comic reader tools ---- */
    #progress { position:fixed; top:0; left:0; height:5px; width:0; background:var(--rose); z-index:60; border-bottom:2px solid var(--ink); }
    .reader.narrow { max-width:620px; }
    .reader.wide { max-width:1100px; }
    .rbar {
      position:fixed; left:50%; bottom:14px; transform:translateX(-50%); z-index:50; display:flex; align-items:center; gap:8px;
      padding:8px 12px; background:var(--panel); border:3px solid var(--ink); border-radius:16px 7px 16px 7px;
      box-shadow:5px 5px 0 var(--sh1), inset 0 2px 0 rgba(255,255,255,.14); max-width:calc(100vw - 20px);
    }
    .rbar button, .rbar select {
      font:inherit; font-weight:800; color:var(--text); background:#14111d; border:2px solid var(--ink);
      border-radius:9px 4px 9px 4px; padding:4px 12px; cursor:pointer; box-shadow:2px 2px 0 var(--ink);
    }
    .rbar button:hover { color:var(--rose); }
    .rbar button:active { transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
    .rbar .hint { color:var(--muted); font-size:.8rem; white-space:nowrap; }
    body.has-rbar { padding-bottom:84px; }
    @media (max-width:640px) { .rbar .hint, .rbar .hide-sm { display:none; } }

    /* No text selection / blue highlight / image dragging anywhere on the site (form fields still work). */
    html { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent; }
    input, textarea, select { -webkit-user-select:text; user-select:text; }
    img { -webkit-user-drag:none; user-drag:none; }
    .rbar-show {
      position:fixed; right:14px; bottom:14px; z-index:50; font:inherit; font-weight:800; color:var(--text);
      background:var(--panel); border:3px solid var(--ink); border-radius:12px 5px 12px 5px; padding:5px 14px;
      box-shadow:4px 4px 0 var(--sh1); cursor:pointer;
    }
    .rbar-show:hover { color:var(--rose); }
    body.rbar-off { padding-bottom:0 !important; }

    /* author display rules (flex etc.) otherwise beat the [hidden] attribute */
    [hidden] { display:none !important; }

    /* Reader bar: every control gets its own colour + shape so they read at a glance */
    .rbar .sep { width:3px; align-self:stretch; background:var(--ink); border-radius:2px; margin:0 2px; }
    .rbar .rb { display:inline-flex; align-items:center; justify-content:center; gap:6px; color:#1a1024; border:3px solid var(--ink); }
    .rbar .rb:hover { color:#1a1024; filter:brightness(1.12); }
    .rbar .rb-prev, .rbar .rb-next { width:44px; height:44px; padding:0; border-radius:50%; background:var(--lav); box-shadow:0 4px 0 #6b3d8f; }
    .rbar .rb-next { background:var(--rose); box-shadow:0 4px 0 #8f3d5f; }
    .rbar .rb-jump { color:var(--text); background:#14111d; border:3px solid var(--teal); border-radius:999px; padding:8px 14px; box-shadow:0 4px 0 var(--ink); }
    .rbar .rb-width { background:#ffc857; border-radius:6px 16px 6px 16px; padding:6px 14px; box-shadow:0 4px 0 #8a6a1c; font-weight:800; }
    .rbar .rb-top { width:40px; height:40px; padding:0; background:var(--teal); border-radius:10px 10px 4px 4px; box-shadow:0 4px 0 #1f6e66; }
    .rbar .rb-hide { width:32px; height:32px; padding:0; background:transparent; color:var(--muted); border:2px dashed var(--muted); border-radius:50%; box-shadow:none; }
    .rbar .rb-hide:hover { color:var(--rose); border-color:var(--rose); filter:none; }
    .rbar .rb:active { transform:translateY(3px); }
    .rbar .rb-hide:active { transform:none; }

    /* Custom page picker (replaces the native select so the options can be styled) */
    .rbar .jump { position:relative; }
    .rbar button.rb-jump { color:var(--text); background:#14111d; border:3px solid var(--teal); border-radius:999px; padding:8px 16px; box-shadow:0 4px 0 var(--ink); font-weight:800; white-space:nowrap; }
    .rbar button.rb-jump:hover { color:var(--teal); }
    .jumplist {
      position:absolute; bottom:calc(100% + 14px); left:50%; transform:translateX(-50%); z-index:70;
      display:grid; grid-template-columns:repeat(5,44px); gap:8px; padding:12px; max-height:50vh; overflow:auto;
      background:var(--panel); border:3px solid var(--ink); border-radius:16px 7px 16px 7px;
      box-shadow:5px 5px 0 var(--sh2), inset 0 2px 0 rgba(255,255,255,.14);
    }
    .jumplist .chip {
      height:44px; padding:0; font:inherit; font-weight:800; color:var(--text); background:#14111d; cursor:pointer;
      border:2px solid var(--ink); border-radius:10px 4px 10px 4px; box-shadow:2px 2px 0 var(--ink);
    }
    .jumplist .chip:nth-child(even) { border-radius:4px 10px 4px 10px; }
    .jumplist .chip:hover { color:var(--rose); }
    .jumplist .chip.on { color:#1a1024; background:var(--teal); }
    .jumplist .chip:active { transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }

    /* ---- Phones / small screens ---- */
    .rbar { bottom:calc(14px + env(safe-area-inset-bottom, 0px)); }
    .rbar-show { bottom:calc(14px + env(safe-area-inset-bottom, 0px)); }
    @media (max-width:640px) {
      .rbar { width:calc(100vw - 16px); justify-content:space-between; gap:6px; padding:7px 8px; }
      .rbar .sep { display:none; }
      .rbar .rb-prev, .rbar .rb-next { width:44px; height:44px; flex:none; }
      .rbar .rb-top { width:42px; height:42px; flex:none; }
      .rbar .rb-hide { width:36px; height:36px; flex:none; }
      .rbar button.rb-jump { flex:1 1 auto; min-width:0; padding:8px 8px; font-size:.95rem; }
      .rbar .jump { flex:1 1 auto; min-width:0; display:flex; position:static; }
      /* the picker becomes a sheet pinned above the bar, full width, never wider than the screen */
      .jumplist {
        position:fixed; left:8px; right:8px; bottom:calc(86px + env(safe-area-inset-bottom, 0px)); transform:none;
        grid-template-columns:repeat(auto-fill, minmax(48px, 1fr)); max-height:45vh;
      }
      .jumplist .chip { height:48px; }
      body.has-rbar { padding-bottom:100px; }
      nav.top a.nav-comics i { right:-22px; }
      nav.top { gap:8px 14px; }
      .wrap { padding-left:14px; padding-right:14px; }
      .comic { padding:14px; gap:16px; }
      .comic .act { gap:10px; }
      .comic .act .btn { flex:1 1 auto; text-align:center; }
      .sched li { flex-wrap:wrap; gap:4px 10px; }
      .reader.narrow, .reader.wide { max-width:100%; }
    }
    @media (max-width:380px) {
      body { font-size:16px; }
      .rbar .rb-prev, .rbar .rb-next { width:40px; height:40px; }
      .rbar .rb-top { width:38px; height:38px; }
      .rbar .rb-hide { width:32px; height:32px; }
      .comic h2 { font-size:1.6rem; }
    }

    /* page label must never spill out of its button: shrink, clip, and drop the word "Page" on phones */
    .rbar button.rb-jump { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    @media (max-width:640px) {
      .rbar .pgw { display:none; }
      .rbar button.rb-jump { padding:8px 6px; min-width:64px; text-align:center; }
    }

    /* Card colours belong to the comic, not its position in the list (Tyler and Kai swapped). */
    .comic[data-comic="linda-1"] { --accent:var(--lav);  --sh:var(--sh1); }
    .comic[data-comic="tyler-1"] { --accent:var(--teal); --sh:var(--sh3); }
    .comic[data-comic="kai-1"]   { --accent:var(--rose); --sh:var(--sh2); }
    .comic[data-comic="mei-1"]   { --accent:#ffc857;     --sh:var(--sh4); }

    /* Phones: keep the nav on ONE row. The secondary links (Mobile / Themes / Updates) are all in
       the footer too, so they drop out of the top bar and Play / Comics / Patron Login stay. */
    @media (max-width:640px) {
      nav.top { flex-wrap:nowrap; gap:0 12px; padding:16px 12px 0; font-size:.95rem; }
      nav.top a { flex:none; white-space:nowrap; }
      nav.top a[href="/mobile/"], nav.top a[href="/themes/"], nav.top a[href="/changelog/"] { display:none; }
      nav.top .brand { font-size:1.45rem; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:clip; }
      nav.top a.nav-patron { padding:5px 10px 5px 9px; font-size:.88rem; }
      nav.top a.nav-comics { margin-right:20px; }
    }
    @media (max-width:360px) {
      nav.top { gap:0 9px; font-size:.88rem; }
      nav.top .brand { font-size:1.25rem; }
      nav.top a.nav-patron { padding:4px 8px; font-size:.8rem; }
    }
