/* Nunito (SIL Open Font License, see fonts/OFL.txt), hosted with the site so every visitor sees the same font.
   Each build puts this at the top of the site's stylesheet and copies the fonts/ folder next to it. */
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-cyrillic-ext.woff2) format("woff2");
             unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-cyrillic.woff2) format("woff2");
             unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-vietnamese.woff2) format("woff2");
             unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin-ext.woff2) format("woff2");
             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; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(fonts/nunito-latin.woff2) format("woff2");
             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; }

/* RainyBot website: the colours of RainyBot's pixel avatar (dark plum, silver-white, bright pink, lavender), in the same
   cozy card style as every NekoWorld site. */
:root {
    --bg: #160c10;
    --bg2: #3a1a2e;
    --card: rgba(255, 228, 246, 0.06);
    --card-hover: rgba(255, 228, 246, 0.11);
    --line: rgba(255, 170, 235, 0.2);
    --text: #f8eef6;
    --muted: #cdb5c6;
    --pink: #ff9cf5;
    --magenta: #e05fd0;
    --violet: #8a8fd0;
    --ok: #5fe0a0;
    --radius: 22px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root {
        --bg: #fbf2f8;
        --bg2: #f0dcee;
        --card: rgba(255, 255, 255, 0.75);
        --card-hover: rgba(255, 255, 255, 0.95);
        --line: rgba(120, 40, 100, 0.16);
        --text: #2a1124;
        --muted: #6e4f66;
        --pink: #b8259f;
        --magenta: #b8259f;
        --violet: #5a5fb0;
        --ok: #1f9d63;
        color-scheme: light;
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
    min-height: 100vh;
    color: var(--text);
    font: 16px/1.65 var(--font);
    background: radial-gradient(1100px 650px at 15% -10%, var(--bg2), transparent 70%),
                radial-gradient(900px 600px at 100% 20%, rgba(255, 111, 181, 0.16), transparent 70%), var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
}
a { color: var(--pink); }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; padding: 1px 7px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.muted { color: var(--muted); }

.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sparkle { position: absolute; top: -20px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: drift linear infinite; }
@keyframes drift { to { transform: translate(var(--dx), 110vh); } }
@media (prefers-reduced-motion: reduce) { .sparkles { display: none; } }

.top, .page, .foot { position: relative; z-index: 1; width: min(1180px, 100% - 32px); margin: 0 auto; }
.top { z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 70%); }
.brand b, h1 b { color: var(--pink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.nav a { padding: 7px 14px; border-radius: 11px; color: var(--muted); font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--card-hover); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.nav .nav-cta { color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); }
.menu-toggle { display: none; }

.page { padding-bottom: 30px; }
.hero { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: 20px 40px; align-items: center; padding: 30px 34px; margin-top: 10px;
        border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.hero-logo { width: 100%; height: auto; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.lead { font-size: 1.15rem; margin: 12px 0 18px; }
.live { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.live span { padding: 5px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.9rem; }
.live b { color: var(--pink); font-variant-numeric: tabular-nums; }
.live-dot::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.live-dot.down::before { background: #ff5f7a; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text);
       font: 700 0.95rem var(--font); text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); background: var(--card-hover); }
.btn.primary { background: linear-gradient(135deg, var(--magenta), var(--violet)); color: #fff; border-color: transparent; }

.bot-card { display: flex; flex-direction: column; gap: 6px; }
.bot-card img { width: 64px; height: 64px; }
.bot-card .live-dot { margin-top: 6px; font-weight: 700; font-size: 0.9rem; }
.nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 22px; }
.node h2 { margin: 0 0 10px; font-size: 1.2rem; }
.node dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.node dl div { display: contents; }
.node dt { color: var(--muted); }
.node dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-summary { font-size: 1.1rem; font-weight: 700; }
.credit { font-size: 0.82rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 22px; }
.card { display: block; padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.card:hover { background: var(--card-hover); border-color: var(--pink); }
.card .icon { font-size: 1.8rem; }
.card h2 { font-size: 1.15rem; margin: 6px 0; }
.card p { margin: 0; color: var(--muted); }
.try, .block, .doc-head, .prose { margin-top: 26px; padding: 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.try h2, .block h2 { margin: 0 0 10px; font-size: 1.3rem; }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.examples div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.examples span { color: var(--muted); font-size: 0.9rem; }

.doc-head h1, .prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.count { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.cmds { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.cmds div { padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line); }
.cmds dt { font: 700 0.95rem ui-monospace, Consolas, monospace; color: var(--pink); }
.cmds dt small { color: var(--muted); font-family: var(--font); font-weight: 600; }
.cmds dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.tabs .prose { padding: 4px 0 0; background: none; border: 0; border-radius: 0; }
.tabs .prose p, .tabs .prose li { max-width: 980px; }
.prose h2 { font-size: 1.2rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--text); opacity: 0.92; }
.prose ul { padding-left: 22px; }
.smile { border-radius: 16px; margin: 16px 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.contact-cards .card { display: flex; flex-direction: column; gap: 2px; }
.contact-cards .card span:last-child { color: var(--muted); }
.uwu label { display: block; font-weight: 700; margin: 14px 0 6px; }
.uwu textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 1rem var(--font); resize: vertical; }
.uwu .actions { margin-top: 12px; }

.foot { margin-top: 30px; padding: 22px 0 40px; border-top: 1px solid var(--line); text-align: center; font-size: 0.92rem; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.rings { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-bottom: 8px; }
.rings a { text-decoration: none; }
.nav .stoat { background: linear-gradient(135deg, #b0177c, #e0569b); }
.sound { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.volume { width: 84px; accent-color: var(--pink); cursor: pointer; }
.music { width: 38px; height: 34px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 1rem var(--font); cursor: pointer; }
.music.waiting { animation: hum 1.6s ease-in-out infinite; }
@keyframes hum { 50% { color: var(--pink); } }
.music[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); }

@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 22px 18px; }
    .hero-logo { width: 220px; }
    .live, .actions { justify-content: center; }
    .menu-toggle { display: inline-block; padding: 7px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 700 0.95rem var(--font); }
    .nav { display: none; width: 100%; flex-direction: column; }
    .nav.open { display: flex; }
    .try, .block, .doc-head, .prose { padding: 18px; }
}

.cmd-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; margin-top: 22px; }
.cmd-groups .block { margin-top: 0; }
.cmd-groups h2 small { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

/* Language globe, the same as kori.cat's: far right of the top bar, its flags fan out in an arc */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { position: relative; z-index: 30; flex: none; }
.globe { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
         background: linear-gradient(135deg, var(--magenta), var(--violet)); box-shadow: 0 6px 22px -6px var(--magenta); transition: transform 0.3s; }
.globe svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; }
.globe:hover, .lang.open .globe { transform: rotate(-20deg) scale(1.06); }
.flags { position: absolute; top: 23px; right: 23px; width: 0; height: 0; }
.flags a { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; opacity: 0; pointer-events: none;
           box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.85); transform: translate(0, 0) scale(0.3);
           transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1), opacity 0.25s; transition-delay: calc(var(--i) * 18ms); }
.flags a svg { width: 100%; height: 100%; display: block; }
.flags a[aria-current="page"] { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink); }
.lang.open .flags a { opacity: 1; pointer-events: auto; transform: translate(var(--x), var(--y)) scale(1); }
.flags a:hover, .flags a:focus-visible { transform: translate(var(--x), var(--y)) scale(1.25); z-index: 2; }
.lang-name { position: absolute; right: 58px; top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
             color: var(--text); font-size: 0.85rem; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.lang.open .lang-name.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .flags a, .globe { transition: none; } }

/* Copyright-free notice on the home page */
.free-only { margin-top: 22px; border-color: var(--magenta); }
.free-only h2 { margin-top: 0; }
.sources { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sources li { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sources a { color: var(--text); text-decoration: none; }
.sources span { display: block; color: var(--muted); font-size: 0.9rem; }

/* Player: skip to the next song, and the song playing (hidden on small screens) */
.prev, .skip, .repeat { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 0.85rem var(--font); cursor: pointer; }
.prev:hover, .skip:hover, .repeat:hover { color: var(--text); background: var(--card-hover); }
.np-time { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0.85; }
.np-box { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.2; }

.np-time:empty { display: none; }

.np { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.8rem; color: var(--muted); }
.np:empty { display: none; }


/* Tabs: one section at a time, like kori.cat */
.tab-pane { animation: fadein 0.25s ease; }
.tabs { scroll-margin-top: 16px; margin-top: 22px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.foot-links a[aria-current="page"] { color: var(--text); font-weight: 700; }
.langs a { margin: 0 6px; white-space: nowrap; }
.langs a[aria-current="page"] { font-weight: 800; color: var(--pink); }

/* Header, the same on all our sites: logo and globe on the first line, the bar (tabs, links, player) under them, as wide as the page */
.top { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "nav nav"; align-items: center; gap: 12px 16px; }
.top .brand { grid-area: brand; justify-self: start; }
.top-right { display: contents; }
.top .lang { grid-area: lang; }
.top .nav { grid-area: nav; margin: 0; }


@media (max-width: 760px) {
    .top { grid-template-columns: 1fr auto auto; grid-template-areas: "brand toggle lang" "nav nav nav"; }
    .menu-toggle { grid-area: toggle; }

}

/* The player's song name opens a panel: the song playing, then Up next (newest pops in) */
.sound { position: relative; }
.np-box { border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; padding: 2px 8px; border-radius: 10px; }
.np-box:hover, .np-box[aria-expanded="true"] { background: var(--card-hover); }
.queue { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 10px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
         box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6); z-index: 40; text-align: start; }
[dir="rtl"] .queue { right: auto; left: 0; }
.queue ul { list-style: none; margin: 0; padding: 0; }
.q-head { display: flex; justify-content: space-between; gap: 8px; margin: 6px 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.q-time { font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.queue li { padding: 7px 10px; border-radius: 12px; }
.queue li b { display: block; font-size: 0.9rem; color: var(--text); }
.queue li span { display: block; font-size: 0.78rem; color: var(--muted); }
.q-now li { background: var(--card); }
.q-list li { cursor: pointer; }
.q-list li:hover, .q-list li:focus-visible { background: var(--card-hover); outline: none; }
.q-list li.new { animation: pop 0.45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@media (max-width: 1100px) {
    .np, .np-time { display: none; }
    .np-box::before { content: "\2630"; }
}
@media (max-width: 520px) { .queue { width: min(300px, calc(100vw - 32px)); } }

/* No selecting page text (guard.js), except inside boxes you type in */
.guarded body { -webkit-user-select: none; user-select: none; }
.guarded input, .guarded textarea { -webkit-user-select: text; user-select: text; }

/* The player sits in the middle of the top line, between the logo and the globe (on phones, on its own line) */
.top { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand player lang" "nav nav nav"; }
.top .lang { justify-self: end; }
.top .sound { grid-area: player; justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 760px) {
    .top { grid-template-columns: 1fr auto auto; grid-template-areas: "brand toggle lang" "player player player" "nav nav nav"; }
}
@media (max-width: 520px) { .top .volume { display: none; } }

/* kori.cat's look on every site: Nunito, gradient headings, and the hero: a banner, the logo floating over its edge,
   the name, the tagline, info chips and the buttons. The banner is a glow in the site's colours until there is banner art. */
:root { --accent2: #c9c4ff; --banner: radial-gradient(2px 2px at 8% 22%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 18% 70%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 31% 40%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 15%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 57% 78%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 33%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 79% 58%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 18%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 94% 82%, #fff 50%, transparent 51%), radial-gradient(circle at 22% 35%, rgba(255, 156, 245, 0.45), transparent 45%), radial-gradient(circle at 78% 65%, rgba(138, 143, 208, 0.55), transparent 50%), linear-gradient(135deg, #2b1b1d, #4a1f3d 50%, #241b3a); --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif; }
.hero h1 { letter-spacing: 0.5px; background: linear-gradient(90deg, var(--pink), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 b { color: transparent; }
.hero { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 8px 28px; align-items: start; padding: 0 28px 26px; overflow: hidden; }
.hero::before { content: ""; grid-column: 1 / -1; grid-row: 1; height: clamp(150px, 24vw, 260px); margin: 0 -28px; background: var(--banner); }
.hero-logo { grid-row: 2; width: 100%; margin-top: -120px; position: relative; z-index: 1; }
.hero-text { grid-row: 2; padding-top: 18px; min-width: 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.hero .lead { margin: 6px 0 14px; color: var(--muted); font-weight: 600; font-size: 1rem; }
[data-page="hub"] .doc-head { position: relative; overflow: hidden; padding-top: calc(clamp(110px, 16vw, 180px) + 18px); }
[data-page="hub"] .doc-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(110px, 16vw, 180px); background: var(--banner); }
@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 0 18px 22px; }
    .hero::before { margin: 0 -18px; }
    .hero-logo { grid-row: 2; width: 180px; margin-top: -90px; }
    .hero-text { grid-row: 3; padding-top: 4px; }
}
.repeat[aria-pressed="true"] { color: #fff; background: var(--pink); border-color: transparent; }

/* The player's search box */
.q-search { width: 100%; margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 0.9rem var(--font); }
.q-src { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--muted); }
.q-src a { color: var(--pink); }
.q-free { margin: 0 4px 8px; font-size: 0.74rem; line-height: 1.35; color: var(--muted); }
.q-me a { color: var(--pink); }
.q-face { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; margin-right: 6px; object-fit: cover; }
.q-search:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.q-list li.playing b { color: var(--pink); }

/* Account part of the player's panel */
.q-signin, .q-heart { display: block; width: 100%; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--pink); font: 700 0.88rem var(--font); text-align: center; text-decoration: none; cursor: pointer; }
.q-signin:hover, .q-heart:hover { background: var(--card-hover); }
.q-me { margin: 8px 6px 2px; font-size: 0.8rem; color: var(--muted); }
.q-me button { border: 0; background: none; padding: 0; color: var(--pink); font: inherit; cursor: pointer; text-decoration: underline; }
.queue { max-height: min(70vh, 560px); overflow-y: auto; }

/* The other NekoWorld sites: a small row under the music player, so the main bar holds only this site's own tabs.
   The logo and the globe sit centred beside the player and this row. */
.top { grid-template-areas: "brand player lang" "brand sites lang" "nav nav nav"; }
.top .brand, .top .lang { align-self: center; }
.top .sites { grid-area: sites; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: -6px; padding: 3px;
    border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.top .sites a { padding: 3px 11px; border-radius: 9px; color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.top .sites a:hover { color: var(--text); background: var(--card-hover); }
@media (max-width: 760px) {
    .top { grid-template-areas: "brand toggle lang" "player player player" "sites sites sites" "nav nav nav"; }
    .top .sites { margin-top: 0; }
}

/* RainyBot is pixel art: keep every pixel sharp when it is scaled up. */
.hero-logo, .brand img { image-rendering: pixelated; }
.hero-logo { filter: drop-shadow(0 0 30px rgba(255, 156, 245, 0.45)); }
