/* ================= dark mode is the Easter egg: the same page, as a neon heads-up display =================
   Every rule is scoped to body.dark, or to the pieces scripts/cyber.js adds while it is on, and the file is
   fetched off the critical path, so the light page never pays for it. */

body.dark {
    --cy-y: #fcee09;
    --cy-c: #00f0ff;
    --cy-m: #ff2a6d;
    --cy-g: #00ff9f;
    --cy-k: #050a0e;
    --cy-grid: 44px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 1v7M12 16v7M1 12h7M16 12h7' stroke='%23050a0e' stroke-width='3.5'/%3E%3Cpath d='M12 1v7M12 16v7M1 12h7M16 12h7' stroke='%23fcee09' stroke-width='1.5'/%3E%3Crect x='10.5' y='10.5' width='3' height='3' fill='%23fcee09' stroke='%23050a0e'/%3E%3C/svg%3E") 12 12, crosshair;
}
body.dark a,
body.dark button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 2.5 21.5 12 12 21.5 2.5 12Z' fill='none' stroke='%23050a0e' stroke-width='3.5'/%3E%3Cpath d='M12 2.5 21.5 12 12 21.5 2.5 12Z' fill='none' stroke='%2300f0ff' stroke-width='1.5'/%3E%3Crect x='10.5' y='10.5' width='3' height='3' fill='%2300f0ff' stroke='%23050a0e'/%3E%3C/svg%3E") 12 12, pointer;
}
html:has(body.dark) { scrollbar-color: #fcee09 #050a0e; scrollbar-width: thin; }
body.dark ::selection { background: var(--cy-y); color: var(--cy-k); }
body.dark :focus-visible { outline-color: var(--cy-y); }

/* ---------- the room: a floor grid with two far lights, scanlines over everything ---------- */

body.dark::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(0, 240, 255, .11), transparent 60%),
        radial-gradient(90% 60% at 100% 112%, rgba(255, 42, 109, .1), transparent 60%),
        linear-gradient(rgba(0, 240, 255, .05) 1px, transparent 1px) 0 0 / var(--cy-grid) var(--cy-grid),
        linear-gradient(90deg, rgba(0, 240, 255, .05) 1px, transparent 1px) 0 0 / var(--cy-grid) var(--cy-grid);
}
body.dark::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .13) 2px 3px),
        radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%);
}

/* the grid lights up around the pointer */
.cy-glow, .cy-hud { display: none; }
body.dark .cy-glow {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle 300px at var(--mx, -999px) var(--my, -999px), rgba(0, 240, 255, .07), transparent),
        linear-gradient(rgba(0, 240, 255, .3) 1px, transparent 1px) 0 0 / var(--cy-grid) var(--cy-grid),
        linear-gradient(90deg, rgba(0, 240, 255, .3) 1px, transparent 1px) 0 0 / var(--cy-grid) var(--cy-grid);
    -webkit-mask-image: radial-gradient(circle 280px at var(--mx, -999px) var(--my, -999px), #000, transparent);
    mask-image: radial-gradient(circle 280px at var(--mx, -999px) var(--my, -999px), #000, transparent);
}

/* ---------- the heads-up frame: corners, a clock, the pointer, how far down the page ---------- */

body.dark .cy-hud {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 44;
    pointer-events: none;
    overflow: hidden;
    font: 400 10px/1 'Play', 'Hind Madurai', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: .16em;
    color: rgba(0, 240, 255, .75);
}
.cy-hud i, .cy-hud div { position: absolute; }
.cy-hud b { font-weight: 400; color: var(--cy-y); }
.cy-k { width: 15px; height: 15px; border: 0 solid var(--cy-y); opacity: .85; }
.cy-k1 { left: 10px; top: 10px; border-width: 1.5px 0 0 1.5px; }
.cy-k2 { right: 10px; top: 10px; border-width: 1.5px 1.5px 0 0; }
.cy-k3 { left: 10px; bottom: 10px; border-width: 0 0 1.5px 1.5px; }
.cy-k4 { right: 10px; bottom: 10px; border-width: 0 1.5px 1.5px 0; }
/* the clock and the pointer's position run up the left margin, clear of the text */
.cy-side {
    left: 11px;
    top: 50%;
    writing-mode: vertical-rl;
    white-space: pre;
    transform: translateY(-50%) rotate(180deg);
}
.cy-rail {
    right: 13px;
    top: 50%;
    width: 7px;
    height: 200px;
    margin-top: -100px;
    background:
        linear-gradient(rgba(0, 240, 255, .4), rgba(0, 240, 255, .4)) 100% 0 / 1px 100% no-repeat,
        repeating-linear-gradient(to bottom, rgba(0, 240, 255, .55) 0 1px, transparent 1px 10px) 0 0 / 5px 100% no-repeat;
}
.cy-rail i {
    right: -3px;
    top: -1px;
    width: 13px;
    height: 3px;
    background: var(--cy-y);
    box-shadow: 0 0 8px var(--cy-y);
    transform: translateY(calc(var(--p, 0) * 200px));
}
.cy-rail span { position: absolute; right: -2px; top: 100%; margin-top: 9px; color: var(--cy-y); }
/* a band of light walks down the screen */
.cy-beam {
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    border-bottom: 1px solid rgba(0, 240, 255, .2);
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, .03) 70%, rgba(0, 240, 255, .1));
    transform: translateY(-160px);
    animation: cy-beam 9s linear infinite;
}
@keyframes cy-beam {
    0% { transform: translateY(-160px); }
    42%, 100% { transform: translateY(100vh); }
}

/* a press leaves a mark */
.cy-spark {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 1.5px solid var(--cy-y);
    transform: rotate(45deg) scale(.2);
    animation: cy-spark .42s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes cy-spark {
    to { transform: rotate(45deg) scale(1.5); border-color: var(--cy-c); opacity: 0; }
}

/* the screen tears when the switch flips */
.cy-burst { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.cy-burst i {
    position: absolute;
    left: -3%;
    width: 106%;
    top: var(--t);
    height: var(--h);
    background: var(--bg);
    -webkit-backdrop-filter: var(--f);
    backdrop-filter: var(--f);
    opacity: 0;
    animation: cy-tear var(--d) steps(1) var(--dl) both;
}
.cy-burst b {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: #00f0ff;
    box-shadow: 0 0 18px 3px rgba(0, 240, 255, .6);
    animation: cy-wipe .5s cubic-bezier(.5, 0, .7, 1) both;
}
@keyframes cy-tear {
    0% { opacity: 1; transform: translateX(var(--x)); }
    40% { opacity: 1; transform: translateX(calc(var(--x) * -.7)) scaleY(.6); }
    75% { opacity: .7; transform: translateX(calc(var(--x) * .3)) scaleY(.25); }
    100% { opacity: 0; }
}
@keyframes cy-wipe {
    from { transform: translateY(-4px); }
    to { transform: translateY(100vh); }
}
/* and the page is knocked sideways for a moment */
body.cy-jolt .site,
body.cy-jolt .feature-inner { animation: cy-jolt .34s steps(1) both; }
@keyframes cy-jolt {
    0% { transform: translateX(-10px); opacity: .7; filter: hue-rotate(50deg) saturate(1.7); }
    22% { transform: translateX(7px); opacity: 1; filter: none; }
    44% { transform: translateX(-3px); opacity: .85; }
    64%, 100% { transform: none; opacity: 1; }
}

/* ---------- the switch itself ---------- */

body.dark .theme-toggle { filter: drop-shadow(0 0 7px rgba(252, 238, 9, .55)); }
body.dark .theme-toggle svg { fill: var(--cy-y); }

/* ---------- the name, and the courses page's title: now and then the picture slips ---------- */

body.dark .name,
body.dark .cs-title,
body.dark .feature-title {
    position: relative;
    text-shadow: 0 0 30px rgba(252, 238, 9, .3);
}
body.dark .name::before,
body.dark .name::after,
body.dark .cs-title::before,
body.dark .cs-title::after,
body.dark .feature-title::before,
body.dark .feature-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
    text-shadow: none;
    clip-path: inset(0 0 100% 0);
}
body.dark .name::before,
body.dark .cs-title::before,
body.dark .feature-title::before { color: var(--cy-c); animation: cy-slip-a 6.4s steps(1) infinite; }
body.dark .name::after,
body.dark .cs-title::after,
body.dark .feature-title::after { color: var(--cy-m); animation: cy-slip-b 6.4s steps(1) infinite; }
@keyframes cy-slip-a {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
    86% { clip-path: inset(8% 0 62% 0); transform: translateX(-6px); }
    88% { clip-path: inset(56% 0 18% 0); transform: translateX(5px); }
    90% { clip-path: inset(30% 0 50% 0); transform: translateX(-3px); }
    92% { clip-path: inset(0 0 100% 0); }
    96% { clip-path: inset(72% 0 6% 0); transform: translateX(7px); }
    97.5% { clip-path: inset(0 0 100% 0); }
}
@keyframes cy-slip-b {
    0%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
    86% { clip-path: inset(44% 0 30% 0); transform: translateX(6px); }
    88% { clip-path: inset(4% 0 78% 0); transform: translateX(-5px); }
    90% { clip-path: inset(66% 0 12% 0); transform: translateX(4px); }
    92% { clip-path: inset(0 0 100% 0); }
    96% { clip-path: inset(18% 0 64% 0); transform: translateX(-7px); }
    97.5% { clip-path: inset(0 0 100% 0); }
}

/* ---------- section headings: a yellow tab with its corner cut, and a ruler running off it ---------- */

body.dark .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font: 700 19px/28px 'BlenderPro', 'Play', 'Hind Madurai', sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--cy-k);
}
body.dark .section-title span {
    flex: none;
    padding: 0 22px 0 11px;
    background: var(--cy-y);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
body.dark .section-title::after {
    content: '';
    flex: 1;
    height: 9px;
    opacity: .6;
    background:
        linear-gradient(var(--cy-y), var(--cy-y)) 0 50% / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, var(--cy-y) 0 2px, transparent 2px 9px) 0 0 / 47px 100% no-repeat;
}

/* ---------- running text ---------- */

body.dark .news { list-style: none; padding-left: 0; }
body.dark .news li { position: relative; padding-left: 20px; }
body.dark .news li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: .5em;
    width: 7px;
    height: 8px;
    background: var(--cy-y);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* a link under the pointer turns into a yellow label */
body.dark .intro-text p a,
body.dark .news a,
body.dark .cs-rec a,
body.dark .paper_links,
body.dark .cs-home { transition: none; }
body.dark .intro-text p a:hover,
body.dark .intro-text .uni:hover a,
body.dark .news a:hover,
body.dark .news a.highlight-link:hover,
body.dark .news a.highlight-link2:hover,
body.dark .cs-rec a:hover,
body.dark .paper_links:hover,
body.dark .feature .paper_links:hover,
body.dark .cs-home:hover {
    color: var(--cy-k);
    background: var(--cy-y);
    box-shadow: -3px 0 0 var(--cy-y), 3px 0 0 var(--cy-y);
}

/* the three profiles: outlined keys with a cut corner */
body.dark .contact { align-items: center; gap: 8px 10px; }
body.dark .contact-links,
body.dark .feature .paper_links {
    position: relative;
    z-index: 0;
    padding: 5px 15px 4px 11px;
    background: var(--cy-c);
    color: var(--cy-c);
    font: 700 11.5px/1.3 'Play', 'Hind Madurai', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    transition: none;
}
body.dark .contact-links::before,
body.dark .feature .paper_links::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    background: #06141b;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7.4px), calc(100% - 7.4px) 100%, 0 100%);
}
body.dark .contact-links:hover { background: var(--cy-y); color: var(--cy-k); }
body.dark .contact-links:hover::before,
body.dark .feature .paper_links:hover::before { background: var(--cy-y); }
body.dark .contact-mail { font-size: 13px; letter-spacing: .03em; }
body.dark .contact-mail:first-of-type { margin-left: 12px; }

/* ---------- a paper: its picture in a cut frame that lights up under the pointer ---------- */

body.dark .frame { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
body.dark .teaser,
body.dark .paper:hover .teaser { box-shadow: none; }
body.dark .frame::before {
    --f: var(--rule-2);
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px var(--f);
    background:
        linear-gradient(to bottom right, transparent calc(50% - 1.3px), var(--f) calc(50% - 1.3px), var(--f) 50%, transparent 50%) 100% 100% / 16px 16px no-repeat,
        linear-gradient(var(--cy-y), var(--cy-y)) 0 0 / 22px 2px no-repeat,
        linear-gradient(var(--cy-y), var(--cy-y)) 0 0 / 2px 22px no-repeat;
}
body.dark .paper:hover .frame::before {
    --f: var(--cy-c);
    box-shadow: inset 0 0 0 1px var(--f), inset 0 0 28px rgba(0, 240, 255, .18);
    animation: cy-lock .22s steps(1) 1;
}
@keyframes cy-lock {
    0% { opacity: .2; }
    35% { opacity: 1; }
    55% { opacity: .45; }
    75% { opacity: 1; }
}

body.dark .tldr {
    border-left: 3px solid var(--cy-y);
    box-shadow: none;
    background:
        repeating-linear-gradient(-45deg, rgba(252, 238, 9, .09) 0 6px, transparent 6px 12px) 0 100% / 100% 9px no-repeat,
        #060d12;
}
body.dark .tldr-btn {
    padding: 6px 9px 5px 12px;
    border: 0;
    background: var(--cy-y);
    color: var(--cy-k);
    font: 700 10.5px/1 'Play', 'Hind Madurai', sans-serif;
    letter-spacing: .1em;
    clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
body.dark .tldr-btn:hover { background: #fff; }
body.dark .paper.tldr-on .tldr-btn { background: var(--cy-c); color: var(--cy-k); }
body.dark .scrub-bar { background: var(--cy-y); box-shadow: 0 0 8px var(--cy-y); }

body.dark .papertitle { transition: none; }
body.dark .papertitle-highlight { color: var(--cy-y); }
body.dark .papertitle:hover,
body.dark .feature-title:hover {
    color: #fff;
    text-shadow: -2px 0 var(--cy-m), 2px 0 var(--cy-c);
}
/* the venue is a yellow tag; the links beside it give up the width it takes, so the row stays on one line */
body.dark .conference {
    padding: 0 5px;
    background: var(--cy-y);
    color: var(--cy-k);
}
body.dark .meta { gap: 8px; }
body.dark .plinks { font-size: 12.5px; }
body.dark .plinks .sep { margin: 0 4px; color: var(--rule-2); }
body.dark .paper_links { color: var(--cy-c); }

/* ---------- Scientist World: the planet is a projection, standing over a floor that keeps coming ---------- */

/* the section is fenced off, top and bottom */
body.dark .feature-pin::before,
body.dark .feature-pin::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    height: 5px;
    pointer-events: none;
    background: repeating-linear-gradient(-45deg, var(--cy-y) 0 9px, transparent 9px 18px) 0 0 / 25.456px 100%;
    opacity: .85;
    animation: cy-belt 1.1s linear infinite;
}
body.dark .feature-pin::before { top: 0; }
body.dark .feature-pin::after { bottom: 0; }

/* the floor: a grid laid flat, sliding one cell toward the viewer over and over. The script that draws the
   planet says where it is (--lx, --py) and how big (--pr); the horizon sits a little under its middle */
body.dark .feature-inner::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -25%;
    right: -25%;
    top: calc(var(--py, 50%) + var(--pr, 20vh) * .55);
    height: calc(var(--ph) * .36);
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 240, 255, .6) 1.5px, transparent 1.5px) 50% 0 / 52px 52px,
        linear-gradient(90deg, rgba(0, 240, 255, .6) 1.5px, transparent 1.5px) 50% 0 / 52px 52px;
    transform-origin: 50% 0;
    transform: perspective(calc(var(--ph) * .5)) rotateX(62deg);
    animation: cy-floor 1.7s linear infinite;
}
@keyframes cy-floor {
    from { transform: perspective(calc(var(--ph) * .5)) rotateX(62deg) translateY(0); }
    to { transform: perspective(calc(var(--ph) * .5)) rotateX(62deg) translateY(52px); }
}
/* over the floor: the ring the projection stands on and the light rising from it, the line of the horizon,
   and the far floor lost in the dark */
body.dark .feature-inner::after {
    --hz: calc(var(--py, 50%) + var(--pr, 20vh) * .55);
    --fy: calc(var(--py, 50%) + var(--pr, 20vh) * 1.2);
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse calc(var(--pr, 20vh) * 1.25) calc(var(--pr, 20vh) * .2) at var(--lx, 66%) var(--fy), transparent 79%, rgba(0, 240, 255, .95) 83%, rgba(0, 240, 255, .95) 87%, transparent 92%),
        radial-gradient(ellipse calc(var(--pr, 20vh) * 1.7) calc(var(--pr, 20vh) * .34) at var(--lx, 66%) var(--fy), rgba(0, 240, 255, .3), transparent 70%),
        radial-gradient(ellipse calc(var(--pr, 20vh) * 1.15) calc(var(--pr, 20vh) * 1.7) at var(--lx, 66%) var(--fy), rgba(0, 240, 255, .1), transparent 70%),
        linear-gradient(to bottom, transparent calc(var(--hz) - 1px), rgba(255, 42, 109, .95) calc(var(--hz) - 1px), rgba(255, 42, 109, .95) calc(var(--hz) + 1px), transparent calc(var(--hz) + 1px)),
        linear-gradient(to bottom, transparent calc(var(--hz) - 46px), rgba(255, 42, 109, .2) var(--hz), transparent calc(var(--hz) + 46px)),
        linear-gradient(to bottom, #000 var(--hz), rgba(0, 0, 0, 0) calc(var(--hz) + var(--ph) * .17));
}

/* on a wide screen the words stand on the horizon */
@media (min-width: 721px) {
    body.dark .feature-copy {
        top: calc(var(--py, 50%) + var(--pr, 20vh) * .55 - 34px);
        transform: translateY(-100%);
    }
}
body.dark .feature-title {
    font-size: clamp(46px, 5vw, 70px);
    line-height: .92;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--cy-y);
    transition: none;
}
body.dark .feature-sub {
    margin-top: 16px;
    padding-left: 10px;
    border-left: 3px solid var(--cy-y);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cy-c);
}
body.dark .feature-authors { margin-top: 20px; }
body.dark .feature-links { display: flex; gap: 10px; margin-top: 16px; }
body.dark .feature .sep { display: none; }
/* the line under the planet is typed at a prompt */
body.dark .feature-line {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cy-y);
    text-shadow: 0 0 12px rgba(252, 238, 9, .45);
}
body.dark .feature-line span:first-child::after {
    content: '';
    display: inline-block;
    width: .6em;
    height: 1em;
    margin-left: .25em;
    vertical-align: -.12em;
    background: var(--cy-y);
    animation: cy-caret .9s steps(1) infinite;
}
@keyframes cy-caret {
    50% { opacity: 0; }
}

/* the page ends at a hazard belt */
body.dark .foot::before {
    content: '';
    align-self: stretch;
    height: 7px;
    margin-bottom: 14px;
    background: repeating-linear-gradient(-45deg, var(--cy-y) 0 9px, transparent 9px 18px) 0 0 / 25.456px 100%;
    opacity: .85;
    animation: cy-belt 1.1s linear infinite;
}
@keyframes cy-belt {
    to { background-position: 25.456px 0; }
}
body.dark .footer-text {
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------- the courses page ---------- */

body.dark .cs-home {
    font-size: 12.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cy-c);
}
body.dark .cs-title { letter-spacing: .04em; text-transform: uppercase; }
body.dark .cs-keys button {
    font: 700 11.5px/1.2 'Play', 'Hind Madurai', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
body.dark .cs-keys button::before {
    width: 14px;
    height: 9px;
    transform: skewX(-20deg);
    box-shadow: inset 0 0 0 1.5px var(--c), 0 0 9px color-mix(in srgb, var(--c) 60%, transparent);
}

/* each year under a yellow plate */
body.dark .yr {
    border-right-color: var(--cy-k);
    border-bottom-color: var(--cy-y);
    background: var(--cy-y);
    color: var(--cy-k);
    font-size: 17.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
}
body.dark .yr span { font-weight: 700; letter-spacing: .08em; color: rgba(5, 10, 14, .72); }
body.dark .tl { letter-spacing: .15em; color: var(--cy-c); }
body.dark .tl span { color: var(--ink-2); }

body.dark .c > a,
body.dark .c > div { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
body.dark .c > a:hover .t,
body.dark .c > a:focus-visible .t {
    color: var(--c);
    text-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent);
}
body.dark .c .n { letter-spacing: .09em; }
body.dark .c .role { border-color: var(--c); background: var(--c); color: var(--cy-k); }

/* the semester that is gone: a bad sector */
body.dark .cs-note {
    width: fit-content;
    font: 700 12.5px/1.4 'Play', 'Hind Madurai', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cy-m);
    animation: cy-lost 3.6s steps(1) infinite;
}
@keyframes cy-lost {
    0%, 100% { opacity: 1; text-shadow: none; transform: none; }
    62% { opacity: .3; }
    63% { opacity: 1; text-shadow: -3px 0 var(--cy-c), 3px 0 var(--cy-y); transform: translateX(3px) skewX(-10deg); }
    65% { text-shadow: none; transform: none; }
    84% { opacity: .45; transform: translateX(-2px); }
    85% { opacity: 1; text-shadow: 2px 0 var(--cy-c); transform: none; }
    87% { text-shadow: none; }
}

/* ---------- small screens: the page keeps its neon, the readouts step aside ---------- */

@media (max-width: 720px) {
    body.dark .cy-side, body.dark .cy-rail { display: none; }
    .cy-k1, .cy-k2 { top: 6px; }
    .cy-k3, .cy-k4 { bottom: 6px; }
    .cy-k1, .cy-k3 { left: 6px; }
    .cy-k2, .cy-k4 { right: 6px; }
    body.dark .section-title { font-size: 17px; line-height: 26px; }
    body.dark .contact-mail:first-of-type { margin-left: 0; }
    body.dark .yr { margin-top: 30px; padding: 6px 10px 4px; font-size: 18px; }
    body.dark .feature-title { font-size: 40px; }
    body.dark .feature-sub { margin-top: 10px; font-size: 10.5px; letter-spacing: .12em; }
    body.dark .feature-authors { margin-top: 12px; }
    body.dark .feature-links { margin-top: 12px; }
    body.dark .feature-line { font-size: 10.5px; letter-spacing: .14em; }
}

@media (max-width: 360px) {
    body.dark .conference { padding: 0 4px; }
    body.dark .meta { gap: 6px; }
    body.dark .plinks { font-size: 11.5px; }
    body.dark .plinks .sep { margin: 0 3px; }
}

@media (prefers-reduced-motion: reduce) {
    body.dark .name::before, body.dark .name::after,
    body.dark .cs-title::before, body.dark .cs-title::after,
    body.dark .feature-title::before, body.dark .feature-title::after,
    body.dark .feature-pin::before, body.dark .feature-pin::after,
    body.dark .feature-inner::before, body.dark .feature-line span:first-child::after,
    body.dark .cs-note,
    body.dark .paper:hover .frame::before, body.dark .foot::before { animation: none; }
    .cy-beam { display: none; }
}
