/* Self-hosted fonts (SIL OFL) — the CSP allows font-src 'self' only, so these must stay local. */
@font-face {
    font-family: "Press Start 2P";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/press-start-2p-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;
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url("fonts/jetbrains-mono-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;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-0.woff2") format("woff2");
    unicode-range: U+3028-303f, U+3094-3096, U+309f-30a0, U+30ee, U+30f7-30fa, U+30ff, U+3105-312f, U+3131-3163, U+3165-318e, U+3190-31bb, U+31c0-31c7;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-1.woff2") format("woff2");
    unicode-range: U+a8, U+2032, U+2261, U+2282, U+3090, U+30f1, U+339c, U+535c, U+53d9, U+56a2, U+56c1, U+5806, U+589f, U+59d0, U+5a7f, U+60e0, U+639f, U+65af, U+68fa, U+69ae, U+6d1b, U+6ef2, U+71fb, U+725d, U+7262, U+75bc, U+7768, U+7940, U+79bf, U+7bed, U+7d68, U+7dfb, U+814b, U+8207, U+83e9, U+8494, U+8526, U+8568, U+85ea, U+86d9, U+87ba, U+8861, U+887f, U+8fe6, U+9059, U+9061, U+916a, U+976d, U+97ad, U+9ece;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-2.woff2") format("woff2");
    unicode-range: U+25b3, U+30f5, U+4eae, U+4f46, U+4f51, U+5203, U+52ff, U+55a7, U+564c, U+565b, U+57f9, U+5805, U+5b64, U+5e06, U+5f70, U+5f90, U+60e8, U+6182, U+62f3, U+62fe, U+63aa, U+64a4, U+65d7, U+673a, U+6851, U+68cb, U+68df, U+6d1e, U+6e58, U+6e9d, U+77b3, U+7832, U+7c3f, U+7db4, U+7f70, U+80aa, U+80c6, U+8105, U+819d, U+8276, U+8679, U+8986, U+8c9d, U+8fc5, U+916c, U+9665, U+9699, U+96c0, U+9a19, U+ff8b;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-3.woff2") format("woff2");
    unicode-range: U+30f6, U+50ac, U+5178, U+51e6, U+5224, U+52dd, U+5883, U+5897, U+590f, U+5a5a, U+5bb3, U+5c65, U+5e03, U+5e2b, U+5e30, U+5eb7, U+6271, U+63f4, U+64ae, U+6574, U+672b, U+679a, U+6a29-6a2a, U+6ca2, U+6cc1, U+6d0b, U+713c, U+74b0, U+7981, U+7a0b, U+7bc0, U+7d1a, U+7d61, U+7fd2, U+822c, U+8996, U+89aa, U+8cac, U+8cbb, U+8d77, U+8def, U+9020, U+9152, U+9244, U+9662, U+967a, U+96e3, U+9759, U+ff16;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-4.woff2") format("woff2");
    unicode-range: U+a9, U+3010-3011, U+30e2, U+4e0b, U+4eca, U+4ed6, U+4ed8, U+4f53, U+4f5c, U+4f7f, U+53d6, U+540d, U+54c1, U+5730, U+5916, U+5b50, U+5c0f, U+5f8c, U+624b, U+6570, U+6587, U+6599, U+691c, U+696d, U+6cd5, U+7269, U+7279, U+7406, U+767a-767b, U+77e5, U+7d04, U+7d22, U+8005, U+80fd, U+81ea, U+8868, U+8981, U+89a7, U+901a, U+9023, U+90e8, U+91d1, U+9332, U+958b, U+96c6, U+9ad8, U+ff1a, U+ff1f;
}
@font-face {
    font-family: "DotGothic16";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/dotgothic16-kana-5.woff2") format("woff2");
    unicode-range: U+20, U+2027, U+3001-3002, U+3041-307f, U+3081-308f, U+3091-3093, U+3099-309a, U+309d-309e, U+30a1-30e1, U+30e3-30ed, U+30ef-30f0, U+30f2-30f4, U+30fb-30fe, U+ff0c, U+ff0e;
}

html {
    overflow-x: hidden;
}

/* NEBSKI glitch (glitch.js): a letter shows the 4-bit nibble of its own byte
   (.nb, NEB's cyan), and a transit crosses the title, dimming the glyphs under
   its disc (.ts-1 at the rim, .ts-2 at the centre), the way a planet dims its
   star in a Kepler light curve. Colour, glow and opacity only: the monospaced
   pixel font keeps every glyph in place. The title ends in a blinking block
   cursor, NEB's terminal prompt. */
.nb {
    color: #69d6ff;
}
.title .nb {
    text-shadow: 0 0 8px rgba(105, 214, 255, 0.6), 0 0 22px rgba(105, 214, 255, 0.25);
}
.ts-1 {
    opacity: 0.5;
}
.ts-2 {
    opacity: 0.18;
    text-shadow: none;
}
.title::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.8em;
    margin-left: 0.05em;
    vertical-align: -0.02em;
    background: var(--accent-color, #87ff87);
    box-shadow: 0 0 10px var(--glow-color, rgba(135, 255, 135, 0.4));
    animation: neb-cursor 1.1s steps(1, end) infinite;
}
@keyframes neb-cursor {
    50% { opacity: 0; }
}
/* NEB's wordmark is green: the title reads in the accent with its glow, and the
   BY JETSKI line under it in NEB's cyan */
.title {
    color: var(--accent-color, #87ff87);
}
.subtitle {
    color: #69d6ff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

.container {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.container > *,
.stats-grid > * {
    min-width: 0;
}

.retro-table-container,
.table-container {
    max-width: 100%;
    overflow-x: auto;
}

.fact-value,
.stat-card-body,
.stat-value {
    overflow-wrap: anywhere;
}

.retro-footer {
    position: static;
    inset: auto;
    box-sizing: border-box;
    flex: none;
}

/* SITE: POOL CHAT — floating widget (chat.js), collapsed launcher bottom-left.
   Served same-origin from the chat sidecar via /api/chat; styles live here so
   the CSP style hashes in the six pages, _headers, and both pool Nginx
   configs stay frozen. */
.chat-launcher {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    color: var(--gold, #bfffbf);
    border: 1px solid var(--border-color, #2a2a2a);
    font-family: inherit;
    font-size: 0.55em;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.chat-launcher:hover {
    color: #fff;
    border-color: var(--accent-color, #87ff87);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(135, 255, 135, 0.25);
}
.chat-launcher:focus-visible {
    outline: 1px solid var(--accent-color, #87ff87);
    outline-offset: 3px;
}
.chat-launcher-open {
    display: none;
}
.chat-launcher-gem {
    display: flex;
    align-items: center;
    color: var(--accent-color, #87ff87);
    animation: chat-gem-pulse 3.2s ease-in-out infinite;
}
/* letter-spacing adds a phantom space after the final glyph — cancel it so
   the icon + label sit optically dead-center in the launcher */
.chat-launcher-label {
    margin-right: -2px;
}
@keyframes chat-gem-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color, #87ff87);
    color: var(--main-bg, #0a0a0a);
    border: 2px solid var(--main-bg, #0a0a0a);
    font-size: 0.8em;
    line-height: 1;
    letter-spacing: 0;
}
.chat-badge[hidden] {
    display: none !important;
}

.chat-panel {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    width: min(340px, calc(100vw - 78px));
    height: min(430px, 72vh);
    background: var(--main-bg, #0a0a0a);
    border: 2px solid var(--border-color, #2a2a2a);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}
.chat-panel[hidden] {
    display: none !important;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--border-color, #2a2a2a);
}
/* The title keeps its size and stays on one line; a long nickname
   truncates instead of squeezing it */
.chat-title {
    flex: 1 0 auto;
    white-space: nowrap;
    color: var(--accent-color, #87ff87);
    font-size: 0.6em;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--glow-color, rgba(135, 255, 135, 0.25));
}
.chat-nick,
.chat-snd,
.chat-x {
    background: none;
    border: 1px solid var(--border-color, #2a2a2a);
    color: var(--muted, #9a9a9a);
    font-family: inherit;
    font-size: 0.52em;
    padding: 4px 7px;
    cursor: pointer;
}
.chat-nick {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 4px 5px;
    white-space: nowrap;
}
.chat-nick-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-snd,
.chat-x {
    flex: none;
}
.chat-nick:hover,
.chat-snd:hover,
.chat-x:hover {
    color: var(--gold, #bfffbf);
    border-color: var(--accent-color, #87ff87);
}
.chat-snd-on {
    color: var(--gold, #bfffbf);
    border-color: var(--accent-color, #87ff87);
}

.chat-msgs-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.chat-msgs {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px 10px 14px;
    background: rgba(0, 0, 0, 0.18);
}
.chat-msg {
    padding: 6px 10px;
    font-size: 0.55em;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.chat-time {
    color: var(--muted, #9a9a9a);
    opacity: 0.75;
    margin-right: 7px;
    font-size: 0.9em;
}
.chat-name {
    font-weight: bold;
    margin-right: 7px;
}
.chat-body {
    color: var(--text-color, #ededed);
}
/* SYSTEM's line for blocks found, edge to edge */
.chat-msg-system {
    flex: none;
    margin: 2px -10px;
    background: rgba(135, 255, 135, 0.07);
    transform-origin: 0 100%;
}
.chat-name-system {
    color: var(--gold, #bfffbf);
    text-shadow: 0 0 5px var(--glow-color, rgba(135, 255, 135, 0.25));
}
.chat-msg-system .chat-body {
    color: var(--gold-soft, #87ff87);
}
.chat-c0 { color: #bfffbf; }
.chat-c1 { color: #5ad67d; }
.chat-c2 { color: #ff9aa5; }
.chat-c3 { color: #69d6ff; }
.chat-c4 { color: #c3a6ff; }
.chat-c5 { color: #ffc66d; }
.chat-c6 { color: #9be4ff; }
.chat-c7 { color: #ff8fb1; }

.chat-status {
    padding: 6px 10px;
    font-size: 0.5em;
    letter-spacing: 1px;
    color: var(--red-soft, #ff9aa5);
    border-top: 1px solid var(--border-color, #2a2a2a);
}
.chat-status[hidden] {
    display: none !important;
}

.chat-inputrow {
    display: flex;
    border-top: 1px solid var(--border-color, #2a2a2a);
}
.chat-input {
    flex: 1;
    min-width: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 0;
    padding: 11px 10px;
    color: var(--text-color, #ededed);
    font-family: inherit;
    font-size: 0.55em;
}
.chat-input:focus {
    outline: 1px solid var(--accent-color, #87ff87);
    outline-offset: -1px;
}
.chat-send {
    background: none;
    border: 0;
    border-left: 1px solid var(--border-color, #2a2a2a);
    color: var(--gold, #bfffbf);
    font-family: inherit;
    font-size: 0.55em;
    letter-spacing: 1px;
    padding: 0 14px;
    cursor: pointer;
}
.chat-send:hover {
    background: rgba(135, 255, 135, 0.12);
}
.chat-send:disabled {
    color: var(--muted, #9a9a9a);
    cursor: default;
}

/* POOL CHAT: the name bar (click your name), the emoji grid and the @ list
   (strips above the input row), and the @mentions and emoji in messages */
.chat-namebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color, #2a2a2a);
    background: rgba(135, 255, 135, 0.06);
}
.chat-namebar[hidden] {
    display: none !important;
}
.chat-namebar-label {
    flex: none;
    font-size: 0.45em;
    letter-spacing: 1px;
    color: var(--muted, #9a9a9a);
}
.chat-name-input {
    flex: 1;
    min-width: 0;
    padding: 6px 7px;
    font-family: inherit;
    font-size: 0.52em;
    color: var(--text-color, #ededed);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color, #2a2a2a);
}
.chat-name-input:focus {
    outline: 1px solid var(--accent-color, #87ff87);
    outline-offset: -1px;
}
.chat-namebar-btn {
    flex: none;
    padding: 5px 7px;
    font-family: inherit;
    font-size: 0.52em;
    color: var(--muted, #9a9a9a);
    background: none;
    border: 1px solid var(--border-color, #2a2a2a);
    cursor: pointer;
}
.chat-namebar-btn:hover,
.chat-namebar-btn:focus-visible {
    color: var(--gold, #bfffbf);
    border-color: var(--accent-color, #87ff87);
    outline: none;
}
.chat-namebar-save {
    color: var(--gold, #bfffbf);
}
.chat-pop {
    border-top: 1px solid var(--border-color, #2a2a2a);
    background: rgba(0, 0, 0, 0.3);
}
.chat-pop[hidden] {
    display: none !important;
}
.chat-emojis {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding: 5px 6px;
}
/* Emoji in the system's colour emoji font: the pixel font has none */
.chat-emoji-pick,
.chat-emoji-btn,
.chat-react-emoji,
.chat-emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
}
.chat-emoji-pick {
    padding: 5px 0;
    font-size: 17px;
    background: none;
    border: 0;
    cursor: pointer;
}
.chat-emoji-pick:hover,
.chat-emoji-pick:focus-visible {
    background: rgba(135, 255, 135, 0.16);
    outline: none;
}
.chat-emoji-btn {
    flex: none;
    padding: 0 10px;
    font-size: 15px;
    background: none;
    border: 0;
    border-right: 1px solid var(--border-color, #2a2a2a);
    cursor: pointer;
    filter: grayscale(0.5);
}
.chat-emoji-btn:hover,
.chat-emoji-btn[aria-expanded="true"] {
    background: rgba(135, 255, 135, 0.12);
    filter: none;
}
.chat-mentions {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}
.chat-mention-pick {
    padding: 6px 10px;
    font-family: inherit;
    font-size: 0.52em;
    text-align: left;
    color: var(--text-color, #ededed);
    background: none;
    border: 0;
    cursor: pointer;
}
.chat-mention-pick.is-active,
.chat-mention-pick:hover {
    color: var(--gold, #bfffbf);
    background: rgba(135, 255, 135, 0.16);
}
.chat-emoji {
    font-size: 1.5em;
    vertical-align: -0.15em;
}
.chat-mention {
    color: var(--gold, #bfffbf);
}
/* You, mentioned: your name filled in the accent */
.chat-mention-me {
    padding: 0 3px;
    color: var(--main-bg, #0a0a0a);
    background: var(--accent-color, #87ff87);
}
/* Messages, after beui.dev's message component (chat.js): a sender's
   messages within three minutes stack under one name and time, your own sit
   on the right, a message that mentions you is edged in the accent, and a
   NEW divider marks what arrived since your last look */
.chat-group {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 86%;
    transform-origin: 0 100%;
}
.chat-group-mine {
    align-self: flex-end;
    align-items: flex-end;
    transform-origin: 100% 100%;
}
.chat-group-head {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 0 1px 2px;
    font-size: 0.5em;
    line-height: 1.6;
}
.chat-group-head .chat-name,
.chat-group-head .chat-time {
    margin-right: 0;
}
.chat-bubble {
    padding: 5px 8px;
    font-size: 0.55em;
    line-height: 1.75;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid transparent;
    overflow-wrap: anywhere;
    transform-origin: inherit;
    transition: opacity 0.2s ease;
}
.chat-group-mine .chat-bubble {
    background: rgba(135, 255, 135, 0.14);
    border-color: rgba(135, 255, 135, 0.35);
}
.chat-bubble-mention {
    background: rgba(135, 255, 135, 0.1);
    border-color: var(--accent-color, #87ff87);
}
/* Your message, shown before the server has it */
.chat-bubble-sending {
    opacity: 0.5;
}
/* REACTIONS: the six fixed emoji anyone can add to a message (chat.js
   REACTIONS), counted in square chips under it, yours lit; a pixel smiley shows
   on hover and opens all six. A bubble's invisible side strip keeps the hover
   while the pointer crosses to its smiley. */
.chat-bubble,
.chat-msg-system {
    position: relative;
}
.chat-bubble::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 34px;
}
.chat-group-mine .chat-bubble::after {
    left: auto;
    right: 100%;
}
.chat-react-add {
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    padding: 0;
    color: var(--muted, #9a9a9a);
    background: var(--main-bg, #0a0a0a);
    border: 1px solid var(--border-color, #2a2a2a);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chat-group-mine .chat-react-add {
    left: auto;
    right: calc(100% + 6px);
}
.chat-msg-system .chat-react-add {
    top: 3px;
    left: auto;
    right: 8px;
    margin-top: 0;
}
.chat-bubble:hover > .chat-react-add,
.chat-msg-system:hover > .chat-react-add,
.chat-react-add:focus-visible,
.chat-react-add[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
}
.chat-react-add:hover,
.chat-react-add:focus-visible,
.chat-react-add[aria-expanded="true"] {
    color: var(--accent-color, #87ff87);
    border-color: var(--accent-color, #87ff87);
    outline: none;
}
.chat-reacts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.5em;
}
.chat-reacts[hidden] {
    display: none !important;
}
.chat-group-mine .chat-reacts {
    justify-content: flex-end;
}
.chat-msg-system .chat-reacts {
    margin-top: 6px;
    font-size: 0.91em;
}
.chat-react {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 7px;
    font-family: inherit;
    font-size: 1em;
    line-height: 1;
    color: var(--muted, #9a9a9a);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color, #2a2a2a);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.chat-react:hover,
.chat-react:focus-visible {
    color: var(--text-color, #ededed);
    border-color: var(--accent-color, #87ff87);
    outline: none;
}
.chat-react-mine {
    color: var(--accent-color, #87ff87);
    background: rgba(135, 255, 135, 0.16);
    border-color: rgba(135, 255, 135, 0.6);
}
.chat-react-emoji {
    font-size: 1.75em;
}
/* The open tray also offers the reactions a message doesn't carry yet */
.chat-react-offer {
    opacity: 0.55;
}
.chat-react-offer:hover,
.chat-react-offer:focus-visible {
    opacity: 1;
}
/* A reaction that arrives while you watch springs in */
@keyframes chat-react-pop {
    0% { transform: scale(0.45); }
    55% { transform: scale(1.22); }
    100% { transform: scale(1); }
}
.chat-react-pop {
    animation: chat-react-pop 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-unread {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.45em;
    letter-spacing: 2px;
    color: var(--accent-color, #87ff87);
}
.chat-unread::before,
.chat-unread::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(135, 255, 135, 0.45);
}
/* NEW MESSAGES: shown while you read further up and more arrive below */
.chat-jump {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 7px 10px;
    font-family: inherit;
    font-size: 0.48em;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--main-bg, #0a0a0a);
    background: var(--accent-color, #87ff87);
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
/* A message that mentions you while the chat is closed, above the launcher */
.chat-peek {
    position: fixed;
    right: 14px;
    bottom: 66px;
    z-index: 10001;
    box-sizing: border-box;
    max-width: min(320px, calc(100vw - 28px));
    padding: 7px 9px;
    font-family: inherit;
    font-size: 0.5em;
    line-height: 1.7;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color, #ededed);
    background: var(--main-bg, #0a0a0a);
    border: 1px solid var(--accent-color, #87ff87);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    transform-origin: 100% 100%;
    cursor: pointer;
}
.chat-peek .chat-name {
    margin-right: 6px;
}
/* Motion, only for what arrives while you watch (chat.js adds the classes):
   a new group rises 8 px and grows out of its sender's corner, a further
   message pops its own box, SYSTEM's line and a message to you flash once.
   The springs are beui.dev's (stiffness 480 / damping 32 / mass 0.62, and
   520 / 27 / 0.52) written as linear() easings, after a plain ease-out for
   browsers without linear() */
@keyframes chat-rise {
    from { transform: translateY(8px) scale(0.95); }
}
@keyframes chat-pop {
    from { transform: scale(0.92); }
}
@keyframes chat-badge-pop {
    from { transform: scale(0.6); }
}
@keyframes chat-fade-in {
    from { opacity: 0; }
}
@keyframes chat-flash {
    from { background-color: rgba(135, 255, 135, 0.32); }
}
@keyframes chat-fade-out {
    to { opacity: 0; transform: translateY(4px); }
}
.chat-rise {
    animation: chat-rise 0.28s cubic-bezier(0.16, 1, 0.3, 1), chat-fade-in 0.12s ease-out;
    animation: chat-rise 0.28s linear(0, 0.018, 0.062, 0.123, 0.188, 0.262, 0.338, 0.411, 0.481, 0.546, 0.602, 0.656, 0.705, 0.748, 0.786, 0.82, 0.848, 0.872, 0.893, 0.912, 0.927, 0.94, 0.951, 0.961, 0.968, 0.974, 0.979, 0.984, 0.987, 0.99, 0.992, 0.994, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 1, 1, 1), chat-fade-in 0.12s ease-out;
}
.chat-pop {
    animation: chat-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1), chat-fade-in 0.12s ease-out;
    animation: chat-pop 0.3s linear(0, 0.027, 0.09, 0.169, 0.265, 0.364, 0.461, 0.545, 0.628, 0.701, 0.764, 0.818, 0.86, 0.897, 0.927, 0.95, 0.967, 0.981, 0.992, 0.999, 1.004, 1.007, 1.009, 1.01, 1.01, 1.01, 1.009, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1), chat-fade-in 0.12s ease-out;
}
.chat-flash {
    animation: chat-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-rise-flash {
    animation: chat-rise 0.28s cubic-bezier(0.16, 1, 0.3, 1), chat-fade-in 0.12s ease-out, chat-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: chat-rise 0.28s linear(0, 0.018, 0.062, 0.123, 0.188, 0.262, 0.338, 0.411, 0.481, 0.546, 0.602, 0.656, 0.705, 0.748, 0.786, 0.82, 0.848, 0.872, 0.893, 0.912, 0.927, 0.94, 0.951, 0.961, 0.968, 0.974, 0.979, 0.984, 0.987, 0.99, 0.992, 0.994, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 1, 1, 1), chat-fade-in 0.12s ease-out, chat-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-pop-flash {
    animation: chat-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1), chat-fade-in 0.12s ease-out, chat-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: chat-pop 0.3s linear(0, 0.027, 0.09, 0.169, 0.265, 0.364, 0.461, 0.545, 0.628, 0.701, 0.764, 0.818, 0.86, 0.897, 0.927, 0.95, 0.967, 0.981, 0.992, 0.999, 1.004, 1.007, 1.009, 1.01, 1.01, 1.01, 1.009, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1), chat-fade-in 0.12s ease-out, chat-flash 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-badge-pop {
    animation: chat-badge-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: chat-badge-pop 0.3s linear(0, 0.027, 0.09, 0.169, 0.265, 0.364, 0.461, 0.545, 0.628, 0.701, 0.764, 0.818, 0.86, 0.897, 0.927, 0.95, 0.967, 0.981, 0.992, 0.999, 1.004, 1.007, 1.009, 1.01, 1.01, 1.01, 1.009, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1);
}
.chat-peek.chat-peek-out {
    animation: chat-fade-out 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Opening, opened or closed by hand (chat.js): the panel unfolds out of
   the launcher like an 8-bit window, a bar running along the bottom and then
   the window stepping up in four frames, and folds back into it in three
   while the launcher pops back */
@keyframes chat-unfold {
    0% { clip-path: inset(calc(100% - 4px) 0 0 100%); }
    40% { clip-path: inset(calc(100% - 4px) 0 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
@keyframes chat-fold {
    0% { clip-path: inset(0 0 0 0); }
    60% { clip-path: inset(calc(100% - 4px) 0 0 0); }
    100% { clip-path: inset(calc(100% - 4px) 0 0 100%); }
}
@keyframes chat-launcher-back {
    from { opacity: 0; transform: scale(0.85); }
}
.chat-panel.chat-opening {
    animation: chat-unfold 0.32s steps(4, end);
}
.chat-panel.chat-closing {
    animation: chat-fold 0.24s steps(3, end) forwards;
}
.chat-launcher.chat-launcher-back {
    animation: chat-launcher-back 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: chat-launcher-back 0.3s linear(0, 0.027, 0.09, 0.169, 0.265, 0.364, 0.461, 0.545, 0.628, 0.701, 0.764, 0.818, 0.86, 0.897, 0.927, 0.95, 0.967, 0.981, 0.992, 0.999, 1.004, 1.007, 1.009, 1.01, 1.01, 1.01, 1.009, 1.008, 1.007, 1.006, 1.005, 1.004, 1.003, 1.003, 1.002, 1.002, 1.001, 1.001, 1.001, 1, 1);
}
/* "@2" on the launcher while unread messages mention you */
.chat-badge.chat-badge-mention {
    box-shadow: 0 0 10px var(--accent-color, #87ff87);
}

/* CLEAN on the OFFLINE band puts the offline workers away in this browser
   (poolscript.js) and SHOW, in the band under the table, brings them back:
   outlined buttons in the band's colours, CLEAN at the band's right end. */
.worker-table td.wg-actions {
    text-align: right;
}
.worker-table .wg-clean,
.worker-table .wg-unclean {
    margin-left: 14px;
    padding: 2px 9px;
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}
.worker-table .wg-clean:hover,
.worker-table .wg-clean:focus-visible,
.worker-table .wg-unclean:hover,
.worker-table .wg-unclean:focus-visible {
    opacity: 0.7;
    outline: none;
}

/* SITE: WORKERS TABLE — row cap controls (poolscript.js renders at most
   WORKER_ROW_CAP rows per group until SHOW ALL is clicked). */
.worker-table .wg-more {
    text-align: center;
}
.worker-table .wg-showall,
.worker-table .wg-showless {
    background: none;
    border: 1px solid var(--border-color, #2a2a2a);
    color: var(--muted, #9a9a9a);
    font: inherit;
    letter-spacing: 1px;
    padding: 5px 16px;
    margin: 2px 0;
    cursor: pointer;
}
/* Worker group bars: the calculated total keeps the rows' windows grid
   (.w-windows) and their inline padding, so it sits over the 10M values */
.worker-table td.worker-group.w-calc {
    padding-inline: 0.55rem;
}
/* The label and the REPORTED total give up their right padding (the next
   cell keeps its own), so the bars fit the column widths the rows set */
.worker-table td.worker-group.wg-label,
.worker-table td.worker-group.wg-reported {
    padding-right: 0;
}
/* Bar totals read like the column values beneath them: number, then a
   smaller unit, in the bar's dark-on-gold colours */
.worker-table .wg-total b {
    letter-spacing: 1px;
}
.worker-table .wg-total i {
    font-style: normal;
    font-size: 0.8em;
    margin-left: 5px;
    letter-spacing: 1px;
}
.worker-table .wg-showall:hover,
.worker-table .wg-showless:hover {
    color: var(--text-color, #ededed);
    border-color: var(--accent-color, #87ff87);
}

/* SITE: BACKGROUND FX TOGGLE — nav-rail button injected by navrail.js,
   cycling neural-bg.js between FULL / LITE / OFF. Pinned to the rail bottom
   above the live stats block, and — like that block — invisible until the
   rail expands on hover (pointer-events off so the collapsed strip can't be
   clicked blind). Hidden on phones, where the rail never expands. */
.nav-rail-fx {
    margin-top: 0; /* the spacer below (.nav-rail::after) pins it */
    background: none;
    border: none;
    border-top: 1px solid var(--border-color, #2a2a2a);
    color: var(--muted, #9a9a9a);
    font: inherit;
    font-size: 0.6em;
    text-align: left;
    width: 100%;
    padding: 12px 14px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.1s, color 0.2s ease;
}
.nav-rail:hover .nav-rail-fx {
    opacity: 1;
    pointer-events: auto;
}
.nav-rail-fx:hover {
    color: var(--hover-color, #bfffbf);
}
.nav-rail .nav-rail-stats {
    margin-top: 0;
}
/* Slide-out rail: OTHER POOLS group (sister pools with their coin marks
   drawn inline in currentColor like every other rail icon). The heading
   reveals with the labels. */
.nav-rail-heading {
    padding: 6px 14px 2px;
    font-size: 0.5em;
    letter-spacing: 0.14em;
    color: var(--muted, #9a9a9a);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s;
}
.nav-rail:hover .nav-rail-heading {
    opacity: 1;
}
/* Socials are the last thing in the rail, under the live stats. The bottom
   group (FX toggle, stats, socials) stays compact and the rail scrolls
   instead of clipping so the icons never fall off short windows. */
.nav-rail {
    box-sizing: border-box; /* height:100% now includes the rail padding, so the last icon is never clipped */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.nav-rail::-webkit-scrollbar {
    display: none;
}
.nav-rail .nav-rail-stats {
    margin-bottom: 0;
    padding: 8px 14px;
    gap: 6px;
}
.nav-rail-fx {
    padding: 8px 14px;
}
.nav-rail-social .nav-rail-divider {
    margin-block: 4px;
}
/* While the rail is collapsed the FX toggle and the stats block are
   invisible anyway, so they take no space either: the social icons then sit
   at the visible foot of the strip on any window height. On hover they
   return above the socials. Phones never expand, so this also covers them. */
.nav-rail:not(:hover) .nav-rail-fx,
.nav-rail:not(:hover) .nav-rail-stats {
    display: none;
}
/* They still fade in and out with the labels (0.2s after a 0.1s pause), as on
   quantuski: an animation can start from display: none where a transition
   cannot, and `display` (allow-discrete) waits for the fade-out to finish */
.nav-rail:hover .nav-rail-fx,
.nav-rail:hover .nav-rail-stats {
    animation: nav-rail-reveal 0.2s ease 0.1s both;
}
.nav-rail:not(:hover) .nav-rail-fx,
.nav-rail:not(:hover) .nav-rail-stats {
    animation: nav-rail-hide 0.2s ease 0.1s both;
}
.nav-rail-stats {
    transition: opacity 0.2s ease 0.1s, display 0.3s allow-discrete;
}
.nav-rail-fx {
    transition: opacity 0.2s ease 0.1s, color 0.2s ease, display 0.3s allow-discrete;
}
@keyframes nav-rail-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes nav-rail-hide {
    from { opacity: 1; }
    to { opacity: 0; }
}
/* The rail's free space sits in one empty flex item between the page links
   and the bottom group (FX toggle, stats, socials), so that group stays at the
   foot whether or not the toggle and the stats are shown: they fade out in
   place when the rail closes instead of jumping up first, and the socials
   never move */
.nav-rail::after {
    content: "";
    margin-top: auto;
}
.nav-rail-fx,
.nav-rail-stats,
.nav-rail-social {
    order: 1;
}

/* JETSKI POOLS, the way back to the hub (pool.jetskipool.ai): the grid icon,
   and JETSKI slanted with the hub wordmark's orange/blue split, POOLS quiet
   after it; a faint accent line in place of the grey divider under it. It
   never takes the current page's bar and shade. */
.nav-rail .nav-rail-index .nav-rail-label {
    display: flex;
    align-items: baseline;
    gap: 0.9em;
    white-space: nowrap;
}
.nav-rail-wordmark {
    display: inline-block;
    font-size: 1.25em;
    color: #f2f2f2;
    transform: skewX(-12deg);
    text-shadow: -1px 0 #ff8a3d, 1px 0 #3db5ff;
}
.nav-rail-pools {
    font-size: 0.8em;
    letter-spacing: 1.5px;
    color: var(--muted, #9a9a9a);
}
.nav-rail .nav-rail-index + .nav-rail-divider {
    background: rgba(135, 255, 135, 0.35);
}

/* === CRT power-off outro ===
   Played by navrail.js before hopping to another jetskipool.ai site
   (.nav-rail-index / .nav-rail-pool). It mirrors the crt-on intro each page
   keeps in its inline <style>: the screen collapses into the bright centre
   line, which then shrinks to a dot and goes dark, leaving the plain
   background the next site's power-on starts from. Lives here rather than
   inline so the CSP-hashed <style> blocks stay untouched. */
.page-overlay.crt-off {
    animation: crtPowerOff 0.5s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}
.page-overlay.crt-off::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #d7ffd7;
    box-shadow: 0 0 24px 6px var(--accent-color), 0 0 90px 24px rgba(135, 255, 135, 0.5);
    animation: crtLineOff 0.5s cubic-bezier(0.55, 0, 0.1, 1) forwards;
}
@keyframes crtPowerOff {
    0% { opacity: 0; }
    40%, 100% { opacity: 1; }
}
@keyframes crtLineOff {
    0% { transform: translateY(-50%) scaleX(1) scaleY(70); opacity: 0; }
    40% { transform: translateY(-50%) scaleX(1) scaleY(1); opacity: 1; }
    75% { transform: translateY(-50%) scaleX(0.03) scaleY(1); opacity: 1; }
    100% { transform: translateY(-50%) scaleX(0) scaleY(1); opacity: 0; }
}

/* Separator bar between inline items ("HASHRATE | 5M"): the pixel font's "|"
   in a muted tone with a small even gap, instead of " · ", whose spaces are a
   whole cell each in this monospace font. Margins are in em so the gap scales
   with each label; the left one is smaller to offset the letter-spacing that
   trails the word before it. Built by separated() / SEP_HTML in config.js. */
.sep {
    margin: 0 0.75em 0 0.5em;
    letter-spacing: 0;
    opacity: 0.5;
}

/* Workers summary: the wallet's reject rate ("0.4% STALE") in the accent
   colour, beside the green ACTIVE and red OFFLINE; past 2% it is b.warn (red) */
/* The summary sits in the pixel font's native 8px so ACTIVE / OFFLINE and both
   stale windows stay on the WORKERS row at 1280px beside the search box and
   the ALERTS toggle, even for a wallet with 1,000+ workers */
.workers-head .workers-summary {
    font-size: 0.5em;
}
.workers-summary b.stale {
    color: var(--accent-color);
}

/* ALERTS menu switches: a vanilla port of beui.dev's motion Switch
   (beui.dev/components/motion/switch, by Saurabh). The checkbox stays the
   real control, hidden but focusable; the track and thumb follow its state.
   The thumb travels on the component's spring (stiffness 800, damping 80,
   mass 4: about 4% overshoot, settled in 0.65 s) written as a linear()
   easing, squishes toward its destination while pressed, and shakes when a
   switch that is off limits is pressed (poolscript.js adds is-shaking). */
.alert-menu-item .switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.switch {
    --switch-x: 0px;
    --switch-lean: 2px;
    flex: none;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: 24px;
    height: 14px;
    padding: 0 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted, #9a9a9a) 60%, transparent);
    transition: background-color 0.2s ease;
}
.switch-input:checked + .switch {
    --switch-x: 10px;
    --switch-lean: -2px;
    background: var(--accent-color, #87ff87);
}
.switch-input:focus-visible + .switch {
    outline: 2px solid var(--accent-color, #87ff87);
    outline-offset: 2px;
}
.switch-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-bg, #0a0a0a);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transform: translateX(var(--switch-x));
    transition: transform 0.65s cubic-bezier(0.3, 1.35, 0.5, 1);
    transition: transform 0.65s linear(0, 0.053, 0.177, 0.332, 0.492, 0.638, 0.762, 0.86, 0.933, 0.984, 1.017, 1.035, 1.042, 1.043, 1.039, 1.033, 1.026, 1.019, 1.013, 1.008, 1.005, 1.002, 1, 0.999, 0.998, 0.998, 1);
}
.alert-menu-item:not(.off):active .switch-thumb {
    transform: translateX(calc(var(--switch-x) + var(--switch-lean))) scale(0.9);
}
.switch-thumb.is-shaking {
    animation: switch-shake 0.6s 0.2s;
}
@keyframes switch-shake {
    0%, 100% { translate: 0; }
    25% { translate: -2px; }
    50% { translate: 2px; }
    75% { translate: -1px; }
}

/* Number ticker (ticker.js): a vanilla port of beui.dev's motion
   NumberTicker. Each digit is a column clipped to its line (plus room for a
   glow) over an invisible in-flow digit that keeps the text baseline; its
   0-9 strip rolls to the position its tick-N class names. */
.tick-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.tick-row {
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
    user-select: none;
}
.tick-char {
    white-space: pre;
}
.tick-digit {
    --tick-g: 0px;
    --tick-step: calc(1lh + 2 * var(--tick-g));
    position: relative;
    display: inline-block;
    clip-path: inset(calc(-1 * var(--tick-g)) -0.6em);
}
/* Faces sit one step apart and the strip moves by whole steps, the step
   rounded up to whole pixels, a multiple of 4 so it stays whole on 125%, 150%
   and 200% screens: at a fractional step (1lh is 23.52px on the tiles) each
   digit was drawn on its own pixel row, up to a pixel off its neighbours */
@supports (height: round(up, 1lh, 4px)) {
    .tick-digit {
        --tick-step: round(up, 1lh + 2 * var(--tick-g), 4px);
    }
}
.tick-ghost {
    visibility: hidden;
}
.tick-strip {
    position: absolute;
    top: calc(-1 * var(--tick-g));
    left: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.tick-strip > span {
    box-sizing: border-box;
    height: var(--tick-step);
    padding-block: var(--tick-g);
}
.tick-1 { transform: translateY(calc(-1 * var(--tick-step))); }
.tick-2 { transform: translateY(calc(-2 * var(--tick-step))); }
.tick-3 { transform: translateY(calc(-3 * var(--tick-step))); }
.tick-4 { transform: translateY(calc(-4 * var(--tick-step))); }
.tick-5 { transform: translateY(calc(-5 * var(--tick-step))); }
.tick-6 { transform: translateY(calc(-6 * var(--tick-step))); }
.tick-7 { transform: translateY(calc(-7 * var(--tick-step))); }
.tick-8 { transform: translateY(calc(-8 * var(--tick-step))); }
.tick-9 { transform: translateY(calc(-9 * var(--tick-step))); }
/* TOTAL DUE and ALREADY PAID glow: their columns clip further out */
#totaldue .tick-digit,
#paid .tick-digit {
    --tick-g: 0.45lh;
}

/* FX OFF (the nav rail switch; config.js stamps html[data-fx] before the
   first paint) also drops the CRT scanlines. The CRT opening (the power-on
   intro on every fresh load, each page's inline transition script) and
   power-off (the outro before hopping to another pool, navrail.js) play at
   every FX level, for every visitor */
html[data-fx="off"] body::before {
    content: none;
}

/* FX switch in the nav rail (navrail.js): OFF | LITE | FULL in one pill, the
   highlight sliding to the active mode on the ALERTS switches' spring. Click a
   mode, drag across, or use the arrow keys on the hidden radios. */
.nav-rail-fx {
    box-sizing: border-box;   /* a div, unlike the button it replaced: keep the padding inside the rail */
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}
.nav-rail-fx-label {
    flex: none;
    font-size: 0.8em;   /* the size of the stat labels below (HASHRATE | 5M) */
    color: var(--muted, #9a9a9a);
}
.fx-switch {
    position: relative;
    flex: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color, #2a2a2a);
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}
.fx-switch.is-dragging {
    cursor: grabbing;
}
.fx-switch-thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc((100% - 4px) / 3);
    border-radius: 999px;
    background: var(--accent-color, #87ff87);
    transition: transform 0.65s cubic-bezier(0.3, 1.35, 0.5, 1);
    transition: transform 0.65s linear(0, 0.053, 0.177, 0.332, 0.492, 0.638, 0.762, 0.86, 0.933, 0.984, 1.017, 1.035, 1.042, 1.043, 1.039, 1.033, 1.026, 1.019, 1.013, 1.008, 1.005, 1.002, 1, 0.999, 0.998, 0.998, 1);
}
.fx-switch[data-mode="lite"] .fx-switch-thumb {
    transform: translateX(100%);
}
.fx-switch[data-mode="full"] .fx-switch-thumb {
    transform: translateX(200%);
}
.fx-switch-option {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 3px 5px;
    color: var(--muted, #9a9a9a);
    cursor: inherit;
    transition: color 0.2s ease;
}
.fx-switch-option:hover {
    color: var(--text-color, #ededed);
}
.fx-switch[data-mode="off"] .fx-switch-option:nth-of-type(1),
.fx-switch[data-mode="lite"] .fx-switch-option:nth-of-type(2),
.fx-switch[data-mode="full"] .fx-switch-option:nth-of-type(3) {
    color: var(--main-bg, #0a0a0a);
}
.fx-switch-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.fx-switch:has(input:focus-visible) {
    outline: 2px solid var(--accent-color, #87ff87);
    outline-offset: 2px;
}

/* Side menu motion (navrail.js), after beui.dev's shared-layout-bg and
   bounce-sidebar: one hover highlight glides between the rows, and the gold
   marker of the current page hops to the page you pick. Both move with the
   Web Animations API, never inline styles. */
.nav-rail-glide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: 46px;
    background: color-mix(in srgb, var(--text-color, #ededed) 6%, transparent);
    opacity: 0;
    pointer-events: none;
}
.nav-rail-marker {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 3px;
    height: 22px;
    background: var(--accent-color, #87ff87);
    pointer-events: none;
}
.nav-rail-link.active .nav-rail-label {
    color: var(--accent-color, #87ff87);
}

/* Copy buttons (copy-button.js), after uiarc.dev's copy-button: the copy icon
   and word crossfade into a check that draws itself and COPIED, the word cell
   eases to the new width, and a press scales the button a touch */
.cb {
    gap: 0.6em;
}
.cb:active:not(:disabled) {
    transform: scale(0.97);
    transition-duration: 0s;
}
.cb-icon {
    position: relative;
    display: grid;
    flex: none;
    width: 1.5em;
    height: 1.5em;
}
.cb-glyph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.cb-glyph svg {
    width: 100%;
    height: 100%;
}
.cb-glyph[data-state="copied"] {
    color: var(--green, #5ad67d);
}
.cb-glyph[data-state="error"] {
    color: var(--red, #ff6b7a);
}
.cb-check {
    stroke-dasharray: 1;
}
.cb-label {
    position: relative;
    display: grid;
    justify-items: center;
    white-space: nowrap;
}
.cb-text {
    grid-area: 1 / 1;
}
.cb-measure {
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
}
.cb-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.cb-clip {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== Pixel corners =====
   The big frames (the hashrate charts, the wallet box and section, the
   tables, each page's main panels, the GET STARTED cards, the chat window,
   the ALERTS menu and the block toast), the saved-wallet chips, the TXID
   chips of the TRANSACTION columns (RECENT PAYOUTS, PAYOUTS) and the BLOCKS
   tables' hash chips (NOCK's too) get stepped 8-bit corners: each corner is cut by two
   steps as wide as the element's own border. Tiles and other controls stay
   square. The
   border keeps its width, so the layout does not move, but it is painted transparent; the frame is
   drawn instead as background rectangles: four edges that stop short of the
   corners and one step pixel inside each corner, the background colour
   staying inside the frame so the cut corners show what lies behind. The
   frame's colour and width come from --px-line and --u, which the rules at
   the end of this file (and of each page stylesheet) copy from every border
   colour, width and transition the site gives these frames, so hover and
   focus recolour the frame as they recoloured the border. --px-line-top,
   when set, gives the top edge its own colour. */
@property --px-line {
    syntax: "<color>";
    inherits: true;
    initial-value: transparent;
}
:where(
    .pool-chart-panel, .wallet-input, .payout-section, .retro-table-container, .calc-panel,
    .hr-panel, .pay-panel, .info-section, .gs-panel, .chat-panel, .alert-menu, .block-notice,
    .wallet-chip, .payout-table .txhash, .txid-link, .retro-table .txhash
) {
    --u: 0px;
    --px-line: transparent;
    --px-line-top: initial;
}
:is(
    .pool-chart-panel, .wallet-input, .payout-section, .retro-table-container, .calc-panel,
    .hr-panel, .pay-panel, .info-section, .gs-panel, .chat-panel, .alert-menu, .block-notice,
    .wallet-chip, .payout-table .txhash, .txid-link, .retro-table .txhash
) {
    border-color: transparent !important;
    background-image:
        linear-gradient(var(--px-line-top, var(--px-line)) 0 0), linear-gradient(var(--px-line) 0 0),
        linear-gradient(var(--px-line) 0 0), linear-gradient(var(--px-line) 0 0),
        linear-gradient(var(--px-line) 0 0), linear-gradient(var(--px-line) 0 0),
        linear-gradient(var(--px-line) 0 0), linear-gradient(var(--px-line) 0 0),
        linear-gradient(transparent 0 0) !important;
    background-position:
        50% 0, 50% 100%, 0 50%, 100% 50%,
        var(--u) var(--u), calc(100% - var(--u)) var(--u),
        var(--u) calc(100% - var(--u)), calc(100% - var(--u)) calc(100% - var(--u)),
        0 0 !important;
    background-size:
        calc(100% - 4 * var(--u)) var(--u), calc(100% - 4 * var(--u)) var(--u),
        var(--u) calc(100% - 4 * var(--u)), var(--u) calc(100% - 4 * var(--u)),
        var(--u) var(--u), var(--u) var(--u), var(--u) var(--u), var(--u) var(--u),
        100% 100% !important;
    background-repeat: no-repeat !important;
    background-origin: border-box, border-box, border-box, border-box,
        border-box, border-box, border-box, border-box, padding-box !important;
    background-clip: border-box, border-box, border-box, border-box,
        border-box, border-box, border-box, border-box, padding-box !important;
}

/* copied from index.html <style> */
.wallet-input {
    --u: 4px;
    --px-line: var(--border-color);
    transition: all 0.3s ease, --px-line 0.3s ease;
}
.wallet-input:focus {
    --px-line: var(--accent-color);
}
.payout-section {
    --u: 4px;
    --px-line: var(--border-color);
}
.alert-menu {
    --u: 1px;
    --px-line: var(--accent-color);
}
.pool-chart-panel {
    --u: 2px;
    --px-line: var(--border-color);
}
.block-notice {
    --u: 1px;
    --px-line: rgba(90, 214, 125, 0.5);
}
.block-notice.worker-alert-off {
    --px-line: rgba(255, 107, 122, 0.55);
}
/* copied from benchmark.html <style> */
.info-section {
    --u: 2px;
    --px-line: var(--border-color);
}
/* copied from responsive.css */
.chat-panel {
    --u: 2px;
    --px-line: var(--border-color, #2a2a2a);
}

/* No more diagonal cuts: the TXID chips of RECENT PAYOUTS, the BLOCKS
   tables' hash chips (NOCK's too), the saved wallets and the block toast take
   the stepped corners, the NOCK copy buttons stay square; the shadows the
   cuts used to hide stay hidden */
.payout-table .txhash,
a.txhash:hover,
.block-notice,
.block-notice.worker-alert-off,
.wallet-chip,
.wallet-chip:hover,
.wallet-chip.active {
    clip-path: none;
    box-shadow: none;
}

/* The saved-wallet chips' frame colour, width and transition (copied from
   index.html <style>) */
.wallet-chip {
    --u: 2px;
    --px-line: var(--border-color);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, --px-line 0.18s ease;
}
.wallet-chip:hover {
    --px-line: var(--gold);
}
.wallet-chip.active {
    --px-line: var(--gold);
}

/* The RECENT PAYOUTS TXID chips' frame colour, width and transition */
/* copied from index.html <style> */
.payout-table .txhash {
    --u: 1px;
    --px-line: rgba(90, 214, 125, 0.35);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, --px-line 0.2s ease;
}
a.txhash:hover {
    --px-line: var(--gold);
}
