/* PIXELPUNK site — the site's look, "Neo".
 *
 * Loaded on top of style.css. The original look is kept as an alternative at
 * ?skin=classic (see the inline script in index.html's <head>), which turns this off. Punk cut-outs, Akira red and katakana, Tron light lines on black,
 * Cyberpunk HUD chrome. Every rule is scoped to [data-skin="neo"].
 *
 * Two house rules: nothing is numbered (sections are labelled by name in katakana, the
 * "Fig" numbers are hidden), and no container is marked with a left border; emphasis
 * comes from full hairline frames, cut corners, corner ticks, fills and type. */

[data-skin="neo"] {
    --void: #050608;
    --bone: #efe9dd;
    --red: #ff2a1f;
    --tron: #00e5ff;
    --hud: #f3e600;

    /* The shared tokens, re-pointed. Hot pink is gone: its slot carries HUD yellow,
       which only the Network Map's message colours still use. */
    --ink: var(--void);
    --ink-2: #0a0d12;
    --ink-3: #10161d;
    --line: #1c2a33;
    --paper: var(--bone);
    --paper-ink: #0b0b0c;
    --text: #e6ecee;
    --dim: #7d8a90;
    --acid: var(--red);
    --hot: var(--hud);
    --cyan: var(--tron);
    --blood: var(--red);
    --mint: var(--bone);

    --f-logo: 'Big Shoulders Stencil Display', 'Big Shoulders Display', Impact, sans-serif;
    --f-head: 'Big Shoulders Display', 'Anton', Impact, sans-serif;
    --f-hud: 'Chakra Petch', 'Space Mono', ui-monospace, monospace;
    --f-kana: 'Dela Gothic One', 'Yu Gothic', 'Hiragino Sans', 'Noto Sans JP', sans-serif;

    /* Size of the 2077-style cut corners; see "Cut-corner frames" below. Not --cut:
       the before/after slider already uses that name for its handle position. */
    --notch: 12px;
}

/* ------------------------------------------------------------------ cut-corner frames */

/* Two corners cut off, top right and bottom left. clip-path cuts the border away along
   with the corner, so the diagonal edges are drawn back on an overlay in the frame's
   own colour (--frame-c): a 2px band centred on the cut line, of which the inner half
   survives the clip, matching the 1px border. On an overlay rather than the background
   so images and title bars inside cannot cover it. */
[data-skin="neo"] :is(.btn, .key-row, .compare, .shot-frame, .fx-note, .note, .term, .netmap, .lb-btn, .nav-toggle) {
    --frame-c: var(--line);
    position: relative;
    clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
[data-skin="neo"] :is(.btn, .key-row, .compare, .shot-frame, .fx-note, .note, .term, .netmap, .lb-btn, .nav-toggle)::after {
    content: '';
    position: absolute;
    /* The border box: the overlay of a positioned element starts inside its border. */
    inset: -1px;
    width: auto;
    height: auto;
    border: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), var(--frame-c) calc(50% - 1px), var(--frame-c) calc(50% + 1px), transparent calc(50% + 1px)) top right / var(--notch) var(--notch) no-repeat,
        linear-gradient(to top right, transparent calc(50% - 1px), var(--frame-c) calc(50% - 1px), var(--frame-c) calc(50% + 1px), transparent calc(50% + 1px)) bottom left / var(--notch) var(--notch) no-repeat;
}

[data-skin="neo"] body { background: var(--void); }
[data-skin="neo"] body::before { opacity: .05; }
[data-skin="neo"] ::selection { background: var(--red); color: var(--void); }
[data-skin="neo"] :focus-visible { outline-color: var(--tron); }

[data-skin="neo"] h1,
[data-skin="neo"] h2,
[data-skin="neo"] h3,
[data-skin="neo"] h4 {
    font-weight: 900;
    line-height: .86;
    letter-spacing: .005em;
}
[data-skin="neo"] h3 { font-weight: 800; }

[data-skin="neo"] .hl-acid { color: var(--red); }
[data-skin="neo"] .hl-hot { color: var(--tron); }

[data-skin="neo"] code,
[data-skin="neo"] .code { color: var(--tron); background: var(--ink-3); border-color: var(--line); }

/* The hover glitch (js/fx.js) in this look's colours: Akira red and Tron cyan. Buttons
   and links also get a thin scan line passing across them. */
[data-skin="neo"] .gl-layer.gl-a { color: var(--red); }
[data-skin="neo"] .gl-layer.gl-b { color: var(--tron); }

[data-skin="neo"] .btn,
[data-skin="neo"] .filter,
[data-skin="neo"] .nav-links a,
[data-skin="neo"] .lb-btn,
[data-skin="neo"] .nav-cta {
    background-image: linear-gradient(100deg, transparent 42%, rgba(0, 229, 255, .32) 50%, transparent 58%);
    background-size: 260% 100%;
    background-position: 130% 0;
    background-repeat: no-repeat;
    transition: background-position .55s cubic-bezier(.3, .6, .2, 1), color .15s, background-color .15s, border-color .15s;
}
[data-skin="neo"] .btn:hover,
[data-skin="neo"] .filter:hover,
[data-skin="neo"] .nav-links a:hover,
[data-skin="neo"] .lb-btn:hover,
[data-skin="neo"] .nav-cta:hover { background-position: -30% 0; }

/* ------------------------------------------------------------------ nav */

[data-skin="neo"] .nav {
    background: rgba(5, 6, 8, .92);
    border-bottom: 1px solid rgba(0, 229, 255, .45);
    backdrop-filter: blur(6px);
}
[data-skin="neo"] .nav-logo { font-size: 28px; letter-spacing: .02em; text-transform: uppercase; }
[data-skin="neo"] .nav-logo:hover { color: var(--red); }
[data-skin="neo"] .nav-links a {
    font-family: var(--f-hud);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .12em;
}
[data-skin="neo"] .nav-links a.on { background-color: var(--red); color: var(--void); }
[data-skin="neo"] .nav-cta {
    font-family: var(--f-hud);
    background-color: var(--hud);
    border: 0;
    color: var(--void);
    clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 9px) 100%, 0 100%);
}
[data-skin="neo"] .nav-cta:hover { background-color: var(--red); color: var(--void); }
[data-skin="neo"] .progress { background: var(--red); }
[data-skin="neo"] .nav-toggle {
    font-family: var(--f-hud);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tron);
    border: 1px solid var(--tron);
    background: transparent;
    --frame-c: var(--tron);
}
@media (max-width: 1460px) {
    [data-skin="neo"] .nav-links { background: var(--void); border-bottom: 1px solid rgba(0, 229, 255, .45); }
    [data-skin="neo"] .nav-links a { border-bottom-color: var(--line); }
}

/* Language switch and hint: cut-corner pieces like the frames above, each with its own
   hairline and the two diagonals drawn back on in the same colour. */
[data-skin="neo"] .lang-switch { border: 0; padding: 0; gap: 4px; }
[data-skin="neo"] :is(.lang-opt, .lang-hint) {
    --frame-c: rgba(0, 229, 255, .45);
    border: 1px solid var(--frame-c);
    clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
/* The hint is position: fixed already, which anchors its overlay just the same. */
[data-skin="neo"] .lang-opt { position: relative; --notch: 7px; padding: 4px 9px; font-family: var(--f-hud); font-weight: 700; letter-spacing: .14em; }
[data-skin="neo"] :is(.lang-opt, .lang-hint)::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), var(--frame-c) calc(50% - 1px), var(--frame-c) calc(50% + 1px), transparent calc(50% + 1px)) top right / var(--notch) var(--notch) no-repeat,
        linear-gradient(to top right, transparent calc(50% - 1px), var(--frame-c) calc(50% - 1px), var(--frame-c) calc(50% + 1px), transparent calc(50% + 1px)) bottom left / var(--notch) var(--notch) no-repeat;
}
[data-skin="neo"] .lang-opt:hover { color: var(--tron); background: transparent; --frame-c: var(--tron); }
[data-skin="neo"] .lang-opt[aria-current] { color: var(--void); background: var(--red); --frame-c: var(--red); }

[data-skin="neo"] .lang-hint {
    --frame-c: var(--tron);
    padding: 14px 18px;
    background: var(--void);
    box-shadow: none;
    font-family: var(--f-hud);
    font-weight: 500;
    letter-spacing: .04em;
}
[data-skin="neo"] .lang-hint-go { color: var(--red); font-family: var(--f-hud); letter-spacing: .12em; }
[data-skin="neo"] .lang-hint-close { border-color: var(--line); }
[data-skin="neo"] .lang-hint-close:hover { color: var(--tron); border-color: var(--tron); }

/* ------------------------------------------------------------------ hero */

[data-skin="neo"] .hero { border-bottom: 0; }
[data-skin="neo"] .hero-media img { filter: saturate(1.05) contrast(1.12); }
[data-skin="neo"] .hero-media::after {
    background-color: rgba(5, 6, 8, .66);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='3' height='3'><rect width='3' height='1' fill='black' fill-opacity='.45'/></svg>");
}

/* The grid floor: still, faint, receding toward the horizon. */
[data-skin="neo"] .hero::after {
    content: '';
    position: absolute;
    left: -30%;
    right: -30%;
    bottom: 0;
    height: 46%;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, rgba(0, 229, 255, .5) 0 1px, transparent 1px 90px),
        repeating-linear-gradient(0deg, rgba(0, 229, 255, .5) 0 1px, transparent 1px 64px);
    transform: perspective(520px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
    mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
[data-skin="neo"] .hero-inner { z-index: 1; }

/* Neo's hero is the mark, the line and the call to action, nothing else. */
[data-skin="neo"] .hero-meta,
[data-skin="neo"] .hero .stats { display: none; }

/* With the meta line and the stats gone, the title is the hero's only row: centred in a
   hero that fits the window under the nav (58px), with the ticker (48px) still in view. */
[data-skin="neo"] .hero-inner {
    grid-template-rows: 1fr;
    align-items: center;
    min-height: min(calc(100vh - 106px), 820px);
    min-height: min(calc(100svh - 106px), 820px);
}

/* The real <h1> stays for screen readers; the stencil mark is what is seen. */
[data-skin="neo"] .logo-big {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin: 0;
}

[data-skin="neo"] .neo-mark {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: end;
    column-gap: clamp(8px, 1.4vw, 20px);
    margin: 0 auto 26px;
    text-align: left;
    /* Sized here, in the horizontal flow: a container unit inside the vertical katakana
       would be measured along the wrong axis. Parts size in em from this. */
    font-size: min(calc(100cqi / 5.4), 210px);
}
[data-skin="neo"] .neo-word {
    position: relative;
    font-family: var(--f-logo);
    font-weight: 900;
    font-size: 1em;
    line-height: .8;
    color: var(--bone);
    letter-spacing: -.005em;
    white-space: nowrap;
}
[data-skin="neo"] .neo-kana {
    font-family: var(--f-kana);
    writing-mode: vertical-rl;
    font-size: .135em;
    line-height: 1;
    letter-spacing: .06em;
    color: var(--red);
    padding-bottom: .1em;
}
/* Too small to stand beside the word on a phone: it becomes a line under the bar. */
@media (max-width: 600px) {
    [data-skin="neo"] .neo-mark { grid-template-columns: auto; }
    [data-skin="neo"] .neo-kana {
        order: 1;
        writing-mode: horizontal-tb;
        justify-self: start;
        margin-top: 10px;
        font-size: 15px;
        letter-spacing: .45em;
    }
}
[data-skin="neo"] .neo-bar {
    grid-column: 1 / -1;
    justify-self: start;
    width: 64%;
    height: clamp(5px, .8vw, 9px);
    margin-top: clamp(10px, 1.4vw, 18px);
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    transform-origin: 0 50%;
}

/* One-shot reveal: a light-cycle edge runs across and uncovers the stencil, leaving a
   trail on the baseline; the red bar shoots out after it, the katakana switches on with
   one flicker, then everything holds still. */
[data-skin="neo"] .neo-word::before,
[data-skin="neo"] .neo-word::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0;
}
[data-skin="neo"] .neo-word::after {
    top: -6%;
    bottom: -6%;
    left: 0;
    width: 3px;
    background: var(--tron);
    box-shadow: 0 0 12px rgba(0, 229, 255, .55);
}
[data-skin="neo"] .neo-word::before {
    left: 0;
    bottom: -7px;
    height: 2px;
    width: 0;
    background: var(--tron);
}

[data-skin="neo"].hero-armed .hero:not(.play) .neo-mark { opacity: 0; }

[data-skin="neo"] .hero.play .neo-word { animation: neo-wipe .9s cubic-bezier(.75, 0, .25, 1) both; }
[data-skin="neo"] .hero.play .neo-word::after { animation: neo-edge .9s cubic-bezier(.75, 0, .25, 1) both; }
[data-skin="neo"] .hero.play .neo-word::before { animation: neo-trail 1.3s cubic-bezier(.75, 0, .25, 1) both; }
[data-skin="neo"] .hero.play .neo-bar { animation: neo-bar .45s .85s cubic-bezier(.2, .8, .2, 1) both; }
[data-skin="neo"] .hero.play .neo-kana { animation: neo-flicker .4s 1.15s steps(1, end) both; }
[data-skin="neo"] .hero.play .hero-tag { animation-delay: 1.3s; }
[data-skin="neo"] .hero.play .hero-sub { animation-delay: 1.45s; }
[data-skin="neo"] .hero.play .hero-title .btn-row { animation-delay: 1.6s; }

@keyframes neo-wipe {
    from { clip-path: inset(-12% 100% -12% 0); }
    to { clip-path: inset(-12% -3% -12% 0); }
}
@keyframes neo-edge {
    0% { left: 0; opacity: 1; }
    88% { left: 100%; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@keyframes neo-trail {
    0% { width: 0; opacity: 1; }
    70% { width: 100%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}
@keyframes neo-bar { from { transform: scaleX(0); } }
@keyframes neo-flicker {
    0% { opacity: 0; }
    30% { opacity: 1; }
    45% { opacity: .15; }
    60% { opacity: 1; }
    100% { opacity: 1; }
}

[data-skin="neo"] .hero-tag {
    font-weight: 900;
    font-size: clamp(30px, 4.4vw, 62px);
    line-height: .9;
    letter-spacing: .02em;
}
[data-skin="neo"] .hero-tag mark { background: none; color: var(--red); padding: 0; }
[data-skin="neo"] .hero-sub { color: #c9d2d5; }

/* ------------------------------------------------------------------ buttons */

[data-skin="neo"] .btn {
    font-family: var(--f-hud);
    font-weight: 700;
    letter-spacing: .16em;
    border: 1px solid var(--tron);
    background-color: rgba(5, 6, 8, .7);
    color: var(--tron);
    box-shadow: none;
    --frame-c: var(--tron);
}
[data-skin="neo"] .btn:hover,
[data-skin="neo"] .btn:active { transform: none; box-shadow: none; color: var(--bone); }
[data-skin="neo"] .btn-acid {
    background-color: var(--hud);
    border-color: var(--hud);
    color: var(--void);
    --frame-c: var(--hud);
}
[data-skin="neo"] .btn-acid:hover { background-color: var(--red); border-color: var(--red); color: var(--void); --frame-c: var(--red); }

/* ------------------------------------------------------------------ ticker */

[data-skin="neo"] .ticker {
    background: var(--red);
    color: var(--void);
    border-bottom: 0;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: .04em;
}
[data-skin="neo"] .ticker-track span::after {
    content: '//';
    font-family: var(--f-hud);
    font-weight: 700;
    font-size: .6em;
    margin-left: 34px;
}

/* ------------------------------------------------------------------ sections */

/* The divider between sections: a red light trail, bright at its head, like a bike
   tearing across the frame. */
[data-skin="neo"] .sec { border-bottom: 0; }
[data-skin="neo"] .sec::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, rgba(255, 42, 31, .3) 40%, var(--red) 76%, #ffd6cf 79%, transparent 79.6%);
    pointer-events: none;
}

/* Light sections: a bone-white photocopy with a little toner noise. */
[data-skin="neo"] .sec-paper {
    background-color: var(--bone);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='x'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.35'/></filter><rect width='100%' height='100%' filter='url(%23x)' opacity='.16'/></svg>");
}
[data-skin="neo"] .sec-paper .dim { color: #55534d; }

/* Labelled by name, never by number: the katakana sits on a hairline across the top. */
[data-skin="neo"] .sec-num { display: none; }
[data-skin="neo"] .sec-head {
    position: relative;
    grid-template-columns: 1fr;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
[data-skin="neo"] .sec-paper .sec-head { border-top-color: rgba(11, 11, 12, .35); }
[data-skin="neo"] .sec-head::before {
    content: attr(data-kana);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-55%);
    padding-right: 16px;
    background: var(--void);
    font-family: var(--f-kana);
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: .14em;
    line-height: 1;
    color: var(--red);
}
[data-skin="neo"] .sec-paper .sec-head::before { background: var(--bone); }
[data-skin="neo"] .sec-head .lead { grid-column: 1; }

[data-skin="neo"] .sec-head h2::after {
    content: '';
    display: block;
    width: min(240px, 42%);
    height: 7px;
    margin-top: 20px;
    background: var(--red);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* Kickers as cut-out tape, ransom-note style: hard edges, barely tilted. */
[data-skin="neo"] .kicker {
    justify-self: start;
    font-family: var(--f-hud);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2em;
    background: var(--bone);
    color: var(--void);
    padding: 5px 12px 4px;
    transform: rotate(-1deg);
    clip-path: polygon(0 6%, 4% 0, 52% 4%, 96% 0, 100% 8%, 99% 94%, 100% 100%, 48% 96%, 3% 100%, 0 92%);
}
[data-skin="neo"] .sec-paper .kicker { background: var(--paper-ink); color: var(--bone); }

[data-skin="neo"] .sub-head { border-top: 1px solid currentColor; }
[data-skin="neo"] .sub-head .tag { font-family: var(--f-hud); font-weight: 600; letter-spacing: .16em; opacity: .75; }

[data-skin="neo"] .spec { border-top-color: currentColor; }
[data-skin="neo"] .spec li { border-bottom: 1px solid rgba(127, 140, 146, .28); }
[data-skin="neo"] .spec li > b { font-family: var(--f-hud); font-weight: 700; letter-spacing: .1em; }
[data-skin="neo"] .sec:not(.sec-paper) .spec li > b { color: var(--tron); }
[data-skin="neo"] .sec-paper .spec li > b { color: #c21a10; }

[data-skin="neo"] .chips li,
[data-skin="neo"] .chip { font-family: var(--f-hud); font-weight: 600; border-color: rgba(127, 140, 146, .6); }

/* ------------------------------------------------------------------ figures */

[data-skin="neo"] .shot-frame {
    border: 1px solid rgba(0, 229, 255, .5);
    background: var(--ink-2);
    box-shadow: none;
    transition: border-color .2s;
    --notch: 18px;
    --frame-c: rgba(0, 229, 255, .5);
}
[data-skin="neo"] .sec-paper .shot-frame { border-color: var(--paper-ink); --frame-c: var(--paper-ink); }
[data-skin="neo"] .shot-frame:hover { transform: none; box-shadow: none; border-color: var(--tron); --frame-c: var(--tron); }
[data-skin="neo"] .sec-paper .shot-frame:hover { border-color: var(--red); --frame-c: var(--red); }

/* Both corner ticks from one pseudo-element; ::after draws the cut edges. */
[data-skin="neo"] .shot-frame::before {
    inset: 6px;
    width: auto;
    height: auto;
    border: 0;
    background:
        linear-gradient(var(--red), var(--red)) top left / 16px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) top left / 2px 16px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom right / 16px 2px no-repeat,
        linear-gradient(var(--red), var(--red)) bottom right / 2px 16px no-repeat;
}
[data-skin="neo"] .zoom-hint { font-family: var(--f-hud); color: var(--tron); border-color: var(--tron); background: var(--void); }

[data-skin="neo"] .shot figcaption .fig {
    font-family: var(--f-hud);
    font-weight: 700;
    letter-spacing: .14em;
    background: none;
    color: var(--tron);
    padding: 0;
    margin-right: 10px;
}
[data-skin="neo"] .sec-paper .shot figcaption .fig { background: none; color: #c21a10; }
[data-skin="neo"] .shot figcaption .fig.fig-num { display: none; }

/* Tape labels: cut paper stuck across a corner. */
[data-skin="neo"] .tape {
    font-family: var(--f-hud);
    font-weight: 700;
    letter-spacing: .16em;
    background: var(--bone);
    color: var(--void);
    border: 0;
    transform: rotate(-1.5deg);
    clip-path: polygon(0 8%, 6% 0, 94% 4%, 100% 0, 98% 92%, 100% 100%, 5% 96%, 0 100%);
}
[data-skin="neo"] .tape.r { background: var(--hud); transform: rotate(1.2deg); }
[data-skin="neo"] .tape.h { background: var(--red); }

/* ------------------------------------------------------------------ annotated console */

/* Markers instead of numbers, matched to the legend by hover and touch. */
[data-skin="neo"] .pin {
    font-size: 0;
    width: 16px;
    height: 16px;
    background: var(--tron);
    border: 3px solid var(--void);
    box-shadow: 0 0 0 1px var(--tron);
}
[data-skin="neo"] .pin:hover,
[data-skin="neo"] .pin.on { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
[data-skin="neo"] .legend li { grid-template-columns: 14px 1fr; }
[data-skin="neo"] .legend li::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-top: 7px;
    background: var(--tron);
}
[data-skin="neo"] .legend li.on::before { background: var(--red); }
[data-skin="neo"] .legend li.on { background: var(--ink-3); }
[data-skin="neo"] .legend b { font-family: var(--f-hud); font-weight: 700; letter-spacing: .1em; }

[data-skin="neo"] kbd { background: var(--bone); border: 1px solid var(--void); box-shadow: 0 3px 0 var(--red); font-family: var(--f-hud); }
[data-skin="neo"] .key-row { border-color: var(--line); background: var(--ink-2); }

/* ------------------------------------------------------------------ galleries */

[data-skin="neo"] .filter {
    font-family: var(--f-hud);
    font-weight: 600;
    letter-spacing: .12em;
    border-width: 1px;
}
[data-skin="neo"] .filter.on { background-color: var(--red); color: var(--void); border-color: var(--red); }
[data-skin="neo"] .sec-paper .filter:hover { background-color: rgba(11, 11, 12, .08); }
[data-skin="neo"] .sec-paper .filter.on { background-color: var(--paper-ink); color: var(--bone); border-color: var(--paper-ink); }

[data-skin="neo"] .tile { border-width: 1px; border-color: var(--line); }
[data-skin="neo"] .sec-paper .tile { border-color: var(--paper-ink); }
[data-skin="neo"] .tile:hover,
[data-skin="neo"] .tile:focus-visible { transform: none; box-shadow: none; border-color: var(--tron); }
[data-skin="neo"] .sec-paper .tile:hover,
[data-skin="neo"] .sec-paper .tile:focus-visible { box-shadow: none; border-color: var(--red); }
[data-skin="neo"] .tile figcaption { font-family: var(--f-hud); font-weight: 600; letter-spacing: .06em; border-top-width: 1px; }
[data-skin="neo"] .tile:hover figcaption { background: var(--tron); color: var(--void); }
[data-skin="neo"] .tile .badge { font-family: var(--f-hud); font-weight: 700; background: var(--hud); color: var(--void); }

[data-skin="neo"] .lib-search input { font-family: var(--f-hud); border: 1px solid var(--tron); background: var(--ink-2); }
[data-skin="neo"] .lib-search input:focus { border-color: var(--red); box-shadow: none; }
[data-skin="neo"] .sec-paper .lib-search input { color: var(--paper-ink); background: rgba(255, 255, 255, .5); border-color: var(--paper-ink); }

[data-skin="neo"] .compare {
    border: 1px solid rgba(0, 229, 255, .5);
    box-shadow: none;
    --notch: 18px;
    --frame-c: rgba(0, 229, 255, .5);
}
[data-skin="neo"] .sec-paper .compare { border-color: var(--paper-ink); box-shadow: none; --frame-c: var(--paper-ink); }
[data-skin="neo"] .compare .bar,
[data-skin="neo"] .compare .bar::after { background: var(--red); }
[data-skin="neo"] .compare .bar::after { color: var(--void); font-family: var(--f-hud); }
[data-skin="neo"] .compare .lbl { font-family: var(--f-hud); font-weight: 700; letter-spacing: .1em; border-color: var(--line); background: var(--void); }
[data-skin="neo"] .compare .lbl.r { color: var(--tron); border-color: var(--tron); }

/* Framed all round instead of a stripe down one side. */
[data-skin="neo"] .fx-note {
    border: 1px solid currentColor;
    padding: 12px 16px;
    --frame-c: currentColor;
}
[data-skin="neo"] .fx-note b { font-weight: 900; }

[data-skin="neo"] .stamp {
    font-weight: 900;
    border-width: 2px;
    border-color: var(--red);
    color: var(--red);
    transform: rotate(-2deg);
}

[data-skin="neo"] .note {
    font-family: var(--f-hud);
    border: 1px solid currentColor;
    --frame-c: currentColor;
}

/* ------------------------------------------------------------------ phones */

[data-skin="neo"] .phone,
[data-skin="neo"] .phone:nth-child(even) {
    border: 1px solid rgba(0, 229, 255, .55);
    background: var(--void);
    box-shadow: none;
}
[data-skin="neo"] .sec-paper .phone,
[data-skin="neo"] .sec-paper .phone:nth-child(even) { border-color: var(--paper-ink); }
[data-skin="neo"] .phone figcaption { font-family: var(--f-hud); font-weight: 700; letter-spacing: .14em; }

/* ------------------------------------------------------------------ terminal + network map */

[data-skin="neo"] .term {
    border: 1px solid var(--line);
    box-shadow: none;
}
[data-skin="neo"] .sec-paper .term { border-color: var(--paper-ink); background: var(--void); color: var(--text); --frame-c: var(--paper-ink); }
[data-skin="neo"] .term-bar {
    font-family: var(--f-hud);
    font-weight: 700;
    letter-spacing: .14em;
    background: var(--ink-3);
    color: var(--tron);
    border-bottom: 1px solid var(--line);
}
[data-skin="neo"] .term .d { color: var(--red); }
[data-skin="neo"] .term .s { color: var(--hud); }

[data-skin="neo"] .netmap {
    border: 1px solid rgba(0, 229, 255, .5);
    box-shadow: none;
    --notch: 18px;
    --frame-c: rgba(0, 229, 255, .5);
}
[data-skin="neo"] .nm-title { font-family: var(--f-hud); color: var(--red); }
[data-skin="neo"] .netmap .nm-scenes .filter.on { background-color: var(--red); border-color: var(--red); color: var(--void); }

/* Message log: a small coloured square per kind instead of a stripe down the left. */
[data-skin="neo"] .nm-log li {
    position: relative;
    border-left: 0;
    padding-left: 16px;
}
[data-skin="neo"] .nm-log li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--line);
}
[data-skin="neo"] .nm-log li.k-state::before { background: var(--acid); }
[data-skin="neo"] .nm-log li.k-status::before { background: var(--cyan); }
[data-skin="neo"] .nm-log li.k-media::before { background: var(--hot); }
[data-skin="neo"] .nm-log li.k-file::before { background: var(--mint); }

/* ------------------------------------------------------------------ lightbox */

[data-skin="neo"] .lb { background: rgba(5, 6, 8, .97); }
[data-skin="neo"] .lb-top { font-family: var(--f-hud); letter-spacing: .14em; }
[data-skin="neo"] .lb-stage img { border: 1px solid rgba(0, 229, 255, .5); box-shadow: none; }
[data-skin="neo"] .lb-btn { font-family: var(--f-hud); font-weight: 700; border-width: 1px; --frame-c: var(--text); }
[data-skin="neo"] .lb-btn:hover { background-color: var(--red); color: var(--void); border-color: var(--red); --frame-c: var(--red); }

/* ------------------------------------------------------------------ footer */

[data-skin="neo"] .foot {
    position: relative;
    background: var(--void);
    color: var(--text);
}
[data-skin="neo"] .foot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 4%, rgba(255, 42, 31, .3) 40%, var(--red) 76%, #ffd6cf 79%, transparent 79.6%);
}
[data-skin="neo"] .foot-big {
    font-weight: 900;
    text-transform: uppercase;
    font-size: min(calc(100cqi / 5.4), 200px);
    line-height: .8;
    color: var(--bone);
    letter-spacing: -.005em;
}
[data-skin="neo"] .foot-big::after {
    content: 'ピクセルパンク';
    display: block;
    margin-top: 14px;
    font-family: var(--f-kana);
    font-size: clamp(14px, 1.6vw, 22px);
    letter-spacing: .5em;
    color: var(--red);
}
[data-skin="neo"] .foot-grid { border-top: 1px solid var(--line); }
[data-skin="neo"] .foot h4 { font-family: var(--f-hud); font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--tron); }
[data-skin="neo"] .foot a { border-bottom: 1px solid var(--tron); }
[data-skin="neo"] .foot a:hover { background: var(--tron); color: var(--void); }
[data-skin="neo"] .foot-credit { font-weight: 900; }
[data-skin="neo"] .foot-credit a { border-bottom-width: 3px; border-bottom-color: var(--red); }
[data-skin="neo"] .foot-legal { font-family: var(--f-hud); font-weight: 600; letter-spacing: .16em; color: var(--dim); }
