/* punk-cyber.css — THUD CORE's Cyberpunk (2026-10-11), ported from Matcha Edition's (its app/skins/cyberpunk.css: Inter alone,
   smoked glass over the city, a holographic rule along the top, a magenta rubric, cyan for state) onto THUD's glass. Its
   magenta is a lit edge only; Ukraine's blue and yellow stay the accent (cyan) and the reward (sodium yellow). Inter is THUD
   DEF's own face (fonts/Inter-VF.woff2): nothing new to load. */
html[data-palette="cyber"] {
  --caps: "Inter DEF", "Inter", var(--face);
  --display: "Inter DEF", "Inter", var(--face);
  --ui: "Inter DEF", "Inter", var(--face);
  --gold: #ffe24d;
  --gold-hot: #fffbd0;
  --holo: linear-gradient(90deg, #45e3ff, #8f7bff 45%, #ff5ad9 75%, #45e3ff);
  --neon-c: #45e3ff;
  --neon-m: #ff5ad9;
  /* the glass: a holographic edge, cyan at the top left, magenta at the bottom right */
  --rim: rgba(69, 227, 255, .62);
  --rim-soft: rgba(143, 123, 255, .2);
  --rim-far: rgba(255, 90, 217, .44);
  --hi: rgba(170, 240, 255, .14);
  --glass-top: rgba(120, 220, 255, .06);
  --spot: rgba(110, 225, 255, .22);
  --sheen: rgba(210, 160, 255, .16);
  --hud: rgba(69, 227, 255, .7);
}
html[data-look="milk"][data-palette="cyber"] {
  --gold: #806300;
  --neon-c: #007f9f;
  --neon-m: #a8118a;
  --rim: rgba(0, 140, 175, .55);
  --rim-soft: rgba(120, 100, 230, .18);
  --rim-far: rgba(168, 17, 138, .32);
  --hi: rgba(255, 255, 255, .72);
  --hud: rgba(0, 127, 159, .6);
}
html[data-palette="cyber"] body { font-family: var(--ui); font-feature-settings: "cv11", "ss03"; }

/* titles in Inter's display weight, tight; labels its capitals, tracked wide */
html[data-palette="cyber"] :is(.def-hero__title, .phead h1, .t-display, .t-large, .t-title, .t-head, .def-card__title, .sheet .t-title, .fr-res .rs-head, .brief__title) {
  font-family: var(--display); font-weight: 750; letter-spacing: -.024em; }
html[data-palette="cyber"] .caps { font-family: var(--caps); font-weight: 650; letter-spacing: .24em; }
html[data-palette="cyber"] :is(.def-cell b, .fr-arc__n) { font-family: var(--display); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
html[data-palette="cyber"] .def-brand b { font-family: var(--display); font-weight: 900; letter-spacing: .12em; }
html[data-palette="cyber"] .def-brand i { font-family: var(--caps); font-weight: 700; letter-spacing: .3em; }

/* the panels: smoked glass, a holographic rule along the top */
html[data-palette="cyber"] .glass:not(.chip):not(.tabbar):not(.btn):not(.def-cell):not(.fr-tile) {
  background-image: var(--holo), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% 1px, 100% 100%; background-repeat: no-repeat; background-position: 0 0, 0 0; }
/* the readiness plates: the corners marked, as a sight marks its frame */
html[data-palette="cyber"] :is(.def-cell, .fr-tile) {
  background-image:
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    linear-gradient(var(--hud), var(--hud)), linear-gradient(var(--hud), var(--hud)),
    var(--holo), linear-gradient(180deg, var(--glass-top) 0%, rgba(255, 255, 255, .02) 42%, rgba(255, 255, 255, 0) 100%);
  background-size: 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 100% 1px, 100% 100%;
  background-position: 7px 7px, 7px 7px, calc(100% - 7px) 7px, calc(100% - 7px) 7px, 7px calc(100% - 7px), 7px calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), 0 0, 0 0;
  background-repeat: no-repeat; border-radius: 10px; }

/* the strategies' covers: a holographic frame that glows when it is touched */
html[data-palette="cyber"] .def-card { border-radius: 14px; }
html[data-palette="cyber"] .def-card::before { padding: 1px;
  background: linear-gradient(145deg, rgba(69, 227, 255, .8), rgba(143, 123, 255, .25) 40%, rgba(255, 90, 217, .15) 62%, rgba(255, 90, 217, .7)); }
html[data-palette="cyber"] .def-card:hover { box-shadow: 0 0 0 1px rgba(69, 227, 255, .5), 0 0 28px -8px rgba(69, 227, 255, .55), var(--cast); }
html[data-palette="cyber"] .def-card__n { color: var(--neon-c); }

/* the primary: sodium-yellow neon, lit */
html[data-palette="cyber"] .btn--primary { border-radius: 12px; font-weight: 750; letter-spacing: .01em;
  box-shadow: inset 0 1px 0 var(--btn-rim), inset 0 -10px 16px -10px var(--btn-deep), 0 0 0 1px rgba(255, 226, 77, .55), 0 0 26px -6px rgba(255, 226, 77, .6); }

/* the count: a holographic bar of light */
html[data-palette="cyber"] .fr-arc .ring__bar { filter: drop-shadow(0 0 7px rgba(69, 227, 255, .7)) drop-shadow(0 0 16px rgba(255, 90, 217, .35)); }
/* the Debrief's score in its rim (PUNK.md call 41): black titanium machined in grooves, a cyan and a magenta light
   channel (art/cyber/bezel.webp, scripts/cut_rims.py), its opening 180 px of 224, clear of the gauge's ticks (176 px) */
html[data-palette="cyber"] .fr-arc, html[data-palette="cyber"] .fr-res .fr-arc { margin: 38px 0 36px; }
html[data-palette="cyber"] .fr-arc .ring::after { content: ""; position: absolute; inset: -36px; pointer-events: none;
  background: url("art/cyber/bezel.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
html[data-look="milk"][data-palette="cyber"] .fr-arc .ring::after { filter: drop-shadow(0 6px 10px rgba(16, 34, 60, .3)); }

/* the hero: the name lit by the city */
html[data-palette="cyber"] .def-hero__title { text-shadow: 0 0 24px rgba(69, 227, 255, .38), 0 0 2px rgba(255, 90, 217, .45); }
html:not([data-look="milk"])[data-palette="cyber"] .def-hero__eyebrow { color: var(--neon-c); }

/* ── the companion's burst (RAM.md §7, thud.js burst): neon pixels, cyan and magenta; on a run of five or ten the bird glitches for a
   third of a second (a split in red and blue, slices shifted) and settles ── */
[data-ram="cyber"] .petal { left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 0; background: #3be8ff !important; box-shadow: 0 0 6px 1px rgba(59, 232, 255, .85); }
[data-ram="cyber"] .petal.p1, [data-ram="cyber"] .petal.p3 { background: #ff3fd8 !important; box-shadow: 0 0 6px 1px rgba(255, 63, 216, .85); }
.peek__ram img.peek--glitch { animation: ram-glitch .32s steps(4, end) both; }
@keyframes ram-glitch {
  0% { filter: drop-shadow(3px 0 0 rgba(255, 40, 120, .8)) drop-shadow(-3px 0 0 rgba(40, 230, 255, .8)); clip-path: inset(0 0 55% 0); }
  25% { clip-path: inset(40% 0 20% 0); }
  50% { filter: drop-shadow(-2px 0 0 rgba(255, 40, 120, .8)) drop-shadow(2px 0 0 rgba(40, 230, 255, .8)); clip-path: inset(10% 0 60% 0); }
  75% { clip-path: inset(60% 0 0 0); }
  100% { filter: none; clip-path: inset(0); }
}

