/* colonelpanic.tech cyber theme layer.
   Linked after the inline styles in index.php, so equal-specificity rules here win.
   The host cache ignores query strings, so this file and ascii-wordmark are versioned
   in their FILENAMES: rename both the file and its reference in index.php on every change.
   blog-styles.css loads again at the end of <body>; rules that compete with it are
   prefixed with #blog. */

:root {
  --cp-cyan: #00e5ff;
  --cp-pink: #ff2bd6;
  --cp-amber: #ffab00;
  --cp-line: rgba(255, 255, 255, 0.17);
  --cp-display: 'Zen Dots', 'Chakra Petch', sans-serif;   /* one weight only: never ask it for bold */
  --cp-head: 'Chakra Petch', 'Segoe UI', sans-serif;
  --cp-mono: 'Menlo', 'Monaco', 'Consolas', 'DejaVu Sans Mono', monospace;

  --bg-primary: #000;
  --bg-secondary: #000;
  --bg-accent: #0b0b0d;
  --text-primary: #f4f4f7;
  --text-secondary: #c6c9d4;
  --accent-blue: var(--cp-cyan);
  --accent-purple: var(--cp-pink);
  --accent-pink: var(--cp-pink);
  --accent-cyan: var(--cp-cyan);
  --accent-green: var(--cp-cyan);
  --border-color: var(--cp-line);
}

::selection { background: var(--cp-pink); color: #000; }

/* ---------- page ground: pure black, with the ASCII art drifting across it ----------
   The art is white ink on black; a pink > purple > blue gradient slides over it in
   multiply, so the ink takes the colour and the black stays black. Both motions are
   transforms, so nothing repaints per frame. */
body {
  background: #000;
  animation: none;
}
body::before { content: none; }
.ascii-ground,
.hero-art {
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.ascii-ground { will-change: transform; }
.ascii-ground i,
.hero-art i {
  position: absolute;
  top: 0;
  left: 0;
  width: 175%;
  height: 100%;
  /* Repeating pink > purple > blue > purple > pink bands, each 75% of the art wide;
     sliding by exactly one band loops. Kept to 175% so the layer stays small. */
  background: repeating-linear-gradient(90deg, #ff2bd6 0, #b05cff 10.714%, #3d82ff 21.429%, #b05cff 32.143%, #ff2bd6 42.857%);
  mix-blend-mode: multiply;
  animation: cpHueSlide 22s linear infinite;
  will-change: transform;
}
@keyframes cpHueSlide { to { transform: translate3d(-42.857%, 0, 0); } }
/* Same size and the same slow four-corner tour the original background made
   (150% wide, 10% > 90% positions, 180s). */
.ascii-ground {
  position: fixed;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 146.7vw;
  margin: -73.35vw 0 0 -75vw;
  background: #000 url('ascii-bg.png?v=20261011') center / 100% 100% no-repeat;
  opacity: 0.75;
  animation: cpDrift 180s linear infinite;
}
@keyframes cpDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(20vw, calc(58.7vw - 40vh), 0); }
  50% { transform: translate3d(-20vw, calc(40vh - 58.7vw), 0); }
  75% { transform: translate3d(20vw, calc(40vh - 58.7vw), 0); }
}

/* ---------- grime: scanlines and a vignette, then film grain that shivers ---------- */
body::after,
html::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 9990;   /* over the page, under the cart drawer */
}
body::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 62%, rgba(0, 0, 0, 0.36) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
}
html::after {
  inset: -80px;
  /* Sparse light specks only, so black stays black between them. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.5 0 0 0 -.74'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.3;
  animation: cpGrain 0.7s steps(1) infinite;
}
@keyframes cpGrain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-37px, 23px, 0); }
  40%  { transform: translate3d(29px, -41px, 0); }
  60%  { transform: translate3d(-53px, -17px, 0); }
  80%  { transform: translate3d(43px, 51px, 0); }
}

/* ---------- top bar ---------- */
header {
  background: #000;
  border-bottom: 1px solid var(--cp-line);
  padding: 0.6rem 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-content { padding: 0 clamp(0.9rem, 2.6vw, 2.2rem); }
.brand {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(0.92rem, 1.3vw, 1.15rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  text-shadow: -1px 0 0 var(--cp-cyan), 1px 0 0 var(--cp-pink);
}
.brand-tld { color: var(--cp-pink); text-shadow: 0 0 12px rgba(255, 43, 214, 0.7); }
nav ul { gap: 0.15rem; align-items: center; }
nav a {
  color: #fff;
  font-family: var(--cp-head);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 0;
}
nav a::before { display: none; }
nav a::after { bottom: 0; background: var(--cp-pink); }
nav a:hover {
  color: var(--cp-cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.75);
  transform: none;
  box-shadow: none;
}
.cart-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: #fff;
}
.cart-nav-btn:hover {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
.cart-count {
  background: var(--cp-pink);
  color: #000;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.7);
}

/* ---------- hero: a compact plate, not a poster ---------- */
.hero {
  padding: 0;
  text-align: left;
  background: #000;
  border-bottom: 1px solid var(--cp-line);
}
.hero::before,
.hero::after { content: none; }
.hero-stage {
  --frame-inset: clamp(6px, 0.8vw, 12px);
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 1.5vw, 1.4rem) clamp(1.1rem, 1.7vw, 1.6rem) clamp(0.9rem, 1.3vw, 1.2rem);
}
/* Inside the frame only: neon through smog (magenta from one corner, sodium amber along
   the floor) with the ASCII art over it. Outside the frame the page is plain black. */
.hero-clip {
  position: absolute;
  inset: var(--frame-inset);
  z-index: 1;
  overflow: hidden;   /* the art pans and zooms; nothing of it may show outside the frame */
  pointer-events: none;
  background:
    radial-gradient(55% 120% at 6% 115%, rgba(255, 43, 214, 0.22), transparent 70%),
    linear-gradient(0deg, rgba(255, 140, 0, 0.13), transparent 55%);
}
.hero-art {
  position: absolute;
  inset: 0;
  background: #000 url('ascii-hero.png?v=20261011') center / cover no-repeat;
  mix-blend-mode: screen;   /* its black must not hide the haze behind it */
  opacity: 0.8;
  animation: cpHeroArt 240s ease-in-out infinite;
}
/* The pan-and-zoom the hero art has always had. */
@keyframes cpHeroArt {
  0%, 100% { transform: scale(1) translate(0, 0); }
  20% { transform: scale(1.8) translate(10%, 8%); }
  40% { transform: scale(1.3) translate(-12%, 10%); }
  60% { transform: scale(2.2) translate(-8%, -10%); }
  80% { transform: scale(1.5) translate(9%, -8%); }
}
.hero-frame {
  position: absolute;
  inset: var(--frame-inset);
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
}
.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cp-cyan);
  border-left: 2px solid var(--cp-cyan);
}
.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--cp-pink);
  border-bottom: 2px solid var(--cp-pink);
}
.hero-inner {
  position: relative;
  z-index: 3;
}
.hero-hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(0.7rem, 1.2vw, 1.1rem);
  font-family: var(--cp-mono);
  text-transform: uppercase;
}
.hero .hud-lede {
  max-width: 27rem;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.7rem;
  line-height: 2;
  letter-spacing: 0.22em;
  text-shadow: none;
  color: #fff;
}
.hud-chip {
  display: inline-block;
  margin-right: 0.7em;
  padding: 0.05em 0.6em;
  background: var(--cp-cyan);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hud-lede b { color: var(--cp-pink); font-weight: 400; }
.hud-side {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  width: min(520px, 54%);
}
.hud-plate { flex: 1; min-width: 0; }
.hud-plate-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #fff;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}
.hud-bars {
  font-family: var(--cp-mono);
  font-size: 0.85rem;
  letter-spacing: -0.06em;
  color: var(--cp-cyan);
  white-space: nowrap;
}
.hud-plate dl {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}
.hud-plate dt,
.hud-plate dd {
  margin: 0;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.hud-plate dt { color: var(--cp-cyan); }
.hud-plate dd { color: #fff; }
/* Wide screens: the plate lies flat, two readings to a row, so the corner block is short. */
@media (min-width: 1180px) {
  .hud-side { width: auto; }
  .hud-plate dl { grid-template-columns: auto auto auto auto; column-gap: 1.1rem; }
  .hud-plate dd { padding-right: 0.9rem; white-space: nowrap; }
  .hud-plate dd:nth-of-type(even) { padding-right: 0; }
}
.hud-arrow {
  flex: none;
  width: clamp(40px, 4vw, 58px);
  height: auto;
  fill: #fff;
  filter: drop-shadow(3px 0 0 var(--cp-pink)) drop-shadow(-3px 0 0 var(--cp-cyan));
}

/* The real heading stays in the DOM for readers and search; it only shows if the canvas never starts. */
.hero-mark { position: relative; }
.hero h1 {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  filter: none;
  text-shadow: -2px 0 0 var(--cp-cyan), 2px 0 0 var(--cp-pink);
  opacity: 0;
  animation: cpFallbackTitle 0.01s linear 5s forwards;
}
@keyframes cpFallbackTitle { to { opacity: 1; } }
.hero.wm-ready h1 {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  animation: none;
}
.ascii-wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 19 / 1;
  filter: drop-shadow(0 0 12px rgba(176, 92, 255, 0.5));
}
/* Phones: the logo stacks into a two-line block and gets a harder glow so it carries the header. */
@media (max-width: 559px) {
  .ascii-wordmark {
    aspect-ratio: 9 / 2;
    filter: drop-shadow(0 0 3px rgba(61, 130, 255, 0.7)) drop-shadow(0 0 12px rgba(255, 43, 214, 0.6));
  }
}

.hero-ticker {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cp-cyan);
  color: #000;
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}
/* Two identical runs side by side; sliding one run's width loops seamlessly. */
.hero-ticker-track {
  display: inline-flex;
  will-change: transform;
  animation: cpTicker 64s linear infinite;
}
.hero-ticker:hover .hero-ticker-track,
.hero-ticker:focus-within .hero-ticker-track { animation-play-state: paused; }
.hero-ticker-run { display: inline-flex; align-items: center; }
.hero-ticker a {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.55rem 0.6em 0.5rem;
  color: #000;
  text-decoration: none;
  font-size: inherit;
  letter-spacing: inherit;
  border: 0;
  border-radius: 0;
}
.hero-ticker a::after { content: none; }
.hero-ticker a b {
  padding: 0.28em 0.55em 0.2em;
  background: #000;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.hero-ticker a:hover,
.hero-ticker a:focus-visible {
  background: #000;
  color: var(--cp-cyan);
  text-shadow: none;
  outline: none;
}
.hero-ticker a:hover b,
.hero-ticker a:focus-visible b { background: var(--cp-cyan); color: #000; }
.hero-ticker a.tick-alt {
  padding: 0.3em 0.7em 0.22em;
  border: 1px solid #000;
  font-family: var(--cp-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.hero-ticker i { padding: 0 0.9em; font-style: normal; opacity: 0.45; }
@keyframes cpTicker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- section headings ---------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--cp-line);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.9rem);
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: left;
  color: #fff;
  text-shadow: -2px 0 0 var(--cp-cyan), 2px 0 0 var(--cp-pink);
}
.section-title::before { content: none; }
.section-title::after {
  content: '';
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.1));
  text-shadow: none;
}
#partners .section-title { opacity: 1; font-size: 1.3rem; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 4;
}
.card::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--cp-pink);
  border-left: 2px solid var(--cp-pink);
}
.card::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--cp-cyan);
  border-bottom: 2px solid var(--cp-cyan);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--cp-cyan);
  box-shadow: 0 0 0 1px var(--cp-cyan), 0 0 36px rgba(0, 229, 255, 0.24);
}
.card h3 {
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.product-image,
.image-overlay,
.gallery-item { border-radius: 0; }
.product-image { border: 1px solid var(--cp-line); }
/* Photo frames. The photo sits in a wrapper with no height, so it renders at its natural height
   and a fixed-height frame left an empty band under it whenever the card was narrow (phones,
   tablets, and the mesh-detect board at every width). The frame now hugs the photo and only
   caps it: same crop as before on wide cards, no band on narrow ones. */
.product-image { height: auto; max-height: 280px; }
.product-image-link { line-height: 0; }
.product-img { display: block; }
.mesh-detect-slot { height: auto; max-height: none; }
.feature strong,
.card p strong { color: var(--cp-cyan); }
.card p code,
.feature code {
  padding: 0.05em 0.35em;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.88em;
}
.price {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cp-amber);
  text-shadow: 0 0 20px rgba(255, 171, 0, 0.45);
}

/* ---------- web flasher button: flat graphic, poster-style ----------
   A slanted block of solid colour carrying the label in the logo face, a sparkle on its
   leading edge, then two lines of small technical caption on black. No glow, no gradient,
   no motion; hover just swaps the block's colour. */
.btn-flash {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin: 0.35rem 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  overflow: hidden;   /* trims the slanted block flush with the left edge */
  transition: border-color 0.15s ease;
}
.btn-flash-label {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: -0.7rem;
  padding: 0 1.3rem 0 1.65rem;
  background: var(--cp-pink);
  color: #000;
  font-family: var(--cp-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-14deg);
  transition: background-color 0.15s ease;
}
.btn-flash-label::after {   /* four-point sparkle, stood back upright */
  content: '';
  position: absolute;
  top: 4px;
  right: -8px;
  width: 15px;
  height: 15px;
  background: #fff;
  clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%);
  transform: skewX(14deg);
}
.btn-flash-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
  min-width: 0;
  padding: 0.66rem 0.4rem 0.6rem 1.05rem;
  font-family: var(--cp-mono);
  text-transform: uppercase;
}
.btn-flash-note { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
.btn-flash-meta { font-size: 0.56rem; letter-spacing: 0.17em; color: #8f8c9e; }
.btn-flash-go {
  flex: none;
  align-self: center;
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 0.9rem 0 0.7rem;
  color: #fff;
  transition: transform 0.15s ease, color 0.15s ease;
}
.btn-flash:hover,
.btn-flash:focus-visible { border-color: var(--cp-cyan); }
.btn-flash:hover .btn-flash-label,
.btn-flash:focus-visible .btn-flash-label { background: var(--cp-cyan); }
.btn-flash:hover .btn-flash-go,
.btn-flash:focus-visible .btn-flash-go { transform: translate(2px, -2px); color: var(--cp-cyan); }
.btn-flash:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 3px; }
/* The plate spans its card (capped) and is a size container, so the caption drops under the
   label whenever the CARD is narrow (two-up cards on a tablet), not only when the screen is. */
.btn-flash { display: flex; flex-wrap: wrap; max-width: 500px; container-type: inline-size; }
.btn-flash-text { flex: 1 1 0; }
@container (max-width: 440px) {
  .btn-flash-label { padding-top: 0.6rem; padding-bottom: 0.55rem; font-size: 0.88rem; }
  .btn-flash-text { flex: 1 1 60%; padding-left: 0.85rem; }
}
@media (max-width: 480px) {   /* same stack for browsers without container queries */
  .btn-flash-label { padding-top: 0.6rem; padding-bottom: 0.55rem; font-size: 0.88rem; }
  .btn-flash-text { flex: 1 1 60%; padding-left: 0.85rem; }
}

/* Links inside a feature line (firmware repos, flashers). */
.feature a {
  color: var(--cp-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 43, 214, 0.45);
}
.feature a:hover,
.feature a:focus-visible { color: var(--cp-cyan); border-bottom-color: currentColor; }

/* ---------- buttons ---------- */
/* Product actions, in the same flat slanted language as the flasher button.
   Add to Cart is the loud one: a solid cyan slab with the logo face, a black "+" cell and
   a hard pink offset shadow it presses into on hover. The repo link is the quiet one: a
   hairline outline. Both stay plain text inside, because the cart script rewrites the
   button's text ("Added"), so every extra part is drawn with pseudo-elements. */
.links { align-items: center; gap: 1.5rem 1.6rem; padding: 0 0.5rem 0.45rem 0.35rem; }
.btn-link {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  color: #cfccdd;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 0.82rem 1.15rem;
  cursor: pointer;
  transform: skewX(-12deg);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
a.btn-link::after { content: ' \2197'; }
.btn-link:hover,
.btn-link:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: #fff;
  color: #fff;
  transform: skewX(-12deg);
  box-shadow: none;
}
.btn-buy {
  padding: 1rem 4.1rem 0.94rem 1.5rem;
  background: var(--cp-cyan);
  color: #000 !important;
  border: 0;
  font-family: var(--cp-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  box-shadow: 5px 5px 0 var(--cp-pink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn-buy::after {
  content: '+';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.9rem;
  display: grid;
  place-items: center;
  background: #000;
  box-shadow: inset 0 0 0 2px var(--cp-cyan);
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 1.35rem;
  font-weight: 700;
  transition: color 0.12s ease, box-shadow 0.12s ease;
}
.btn-buy:hover,
.btn-buy:focus-visible {
  background: #fff;
  color: #000 !important;
  transform: skewX(-12deg) translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--cp-pink);
}
.btn-buy:hover::after,
.btn-buy:focus-visible::after { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn-buy:focus-visible,
.btn-link:focus-visible { outline: 2px solid var(--cp-pink); outline-offset: 4px; }
/* The moment after a click: the slab goes pink and the cell shows a tick. */
.btn-add-to-cart.added { background: var(--cp-pink) !important; color: #000 !important; box-shadow: 5px 5px 0 var(--cp-cyan); }
.btn-add-to-cart.added::after { content: '\2713'; color: var(--cp-pink); box-shadow: inset 0 0 0 2px var(--cp-pink); }
.btn-sold-out { border-radius: 0; }
.product-card.sold-out .sold-out-overlay .sold-out-tag {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 20px;
  border-radius: 0;
  background: #000;
}

/* ---------- specs / about / connect ---------- */
.spec-list li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  column-gap: 1rem;
  align-items: baseline;
}
.spec-list strong {
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skills li {
  background: #000;
  border: 1px solid var(--cp-line);
  border-left: 3px solid var(--cp-cyan);
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skills li:nth-child(even) { border-left-color: var(--cp-pink); }
.social-link {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: #fff;
  font-family: var(--cp-head);
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.9rem 1.4rem;
}
.social-link:hover {
  background: var(--cp-pink);
  border-color: var(--cp-pink);
  color: #000;
  box-shadow: 0 0 26px rgba(255, 43, 214, 0.5);
}
footer {
  background: #000;
  border-top: 1px solid var(--cp-line);
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- videos ---------- */
.video-stage {
  border: 1px solid var(--cp-cyan);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 70px rgba(255, 43, 214, 0.2);
}
.video-arrow {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
}
.video-arrow:hover {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}
.video-dot {
  width: 22px;
  height: 5px;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.35);
}
.video-dot.active {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

/* ---------- articles (rendered by blog-manager.js) ---------- */
#blog .featured-post {
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
}
#blog .featured-post::before { display: none; }
#blog .featured-post:hover {
  transform: translateY(-4px);
  border-color: var(--cp-pink);
  box-shadow: 0 0 0 1px var(--cp-pink), 0 0 36px rgba(255, 43, 214, 0.26);
}
#blog .featured-image {
  border-radius: 0;
  border-bottom: 1px solid var(--cp-line);
}
#blog .featured-post-content { padding: 1.5rem; }
#blog .featured-meta { gap: 0.7rem; margin-bottom: 1.1rem; }
#blog .featured-category {
  background: var(--cp-pink);
  color: #000;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
}
#blog .featured-date {
  font-family: var(--cp-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#blog .featured-author {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#blog .featured-author.author-colonelpanic {
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
}
#blog .featured-post-title {
  font-family: var(--cp-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#blog .featured-post-title a,
#blog .featured-post-title a:hover {
  background: none;
  -webkit-text-fill-color: currentColor;
}
#blog .featured-post-title a { color: #fff; }
#blog .featured-post-title a:hover {
  color: var(--cp-cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}
#blog .featured-excerpt { font-size: 0.94rem; color: var(--text-secondary); opacity: 1; }
#blog .featured-tag,
#blog .blog-tags .tag {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 0;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#blog .featured-link {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-family: var(--cp-mono);
  font-size: 0.76rem;
}
#blog .featured-link:hover {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  color: #000;
  transform: none;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}
#blog .blog-controls {
  background: #000;
  border: 1px solid var(--cp-line);
  border-radius: 0;
}
#blog .tag-filter {
  background: transparent;
  border-radius: 0;
  font-family: var(--cp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#blog .tag-filter:hover {
  background: transparent;
  border-color: var(--cp-cyan);
  color: var(--cp-cyan);
  transform: none;
}
#blog .tag-filter.active {
  background: var(--cp-cyan);
  border-color: var(--cp-cyan);
  color: #000;
}
#blog .more-articles-header { text-align: left; }
#blog .more-articles-title {
  font-family: var(--cp-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
}
#blog .more-articles-title::before {
  content: '//';
  color: var(--cp-pink);
  text-shadow: none;
}
#blog .more-articles-title::after { content: none; }
#blog .blog-post {
  background: #000;
  border: 1px solid var(--cp-line);
  border-left: 3px solid var(--cp-pink);
  border-radius: 0;
}
#blog .blog-post:hover {
  transform: translateX(4px);
  border-left-color: var(--cp-cyan);
  box-shadow: -6px 0 26px rgba(0, 229, 255, 0.22);
}
#blog .blog-post h3 {
  font-family: var(--cp-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#blog .blog-post h3 a:hover { color: var(--cp-cyan); }
#blog .blog-category,
#blog .blog-author {
  border-radius: 0;
  font-family: var(--cp-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#blog .blog-category {
  align-self: flex-start;
  background: var(--cp-pink);
  border-color: var(--cp-pink);
  color: #000;
}

/* ---------- tech reviews (cards carry inline styles, hence !important) ---------- */
.tech-reviews-grid > div {
  position: relative;
  background: #000 !important;
  border: 1px solid var(--cp-line) !important;
  border-radius: 0 !important;
}
.tech-reviews-grid > div:hover {
  transform: translateY(-4px);
  border-color: var(--cp-cyan) !important;
  box-shadow: 0 0 0 1px var(--cp-cyan), 0 0 36px rgba(0, 229, 255, 0.24);
}
.tech-reviews-grid > div > div:first-child {
  background: #050506 !important;
  border-bottom: 1px solid var(--cp-line);
}
.tech-reviews-grid > div > div:first-child span {
  border-radius: 0 !important;
  font-family: var(--cp-mono) !important;
  font-size: 0.68rem !important;
  box-shadow: none !important;
}
.tech-reviews-grid > div > div:first-child span[style*="linear-gradient"] {
  background: var(--cp-cyan) !important;
  color: #000 !important;
}
.tech-reviews-grid img[src*="m5stack-logo"] {
  padding: 0.9rem 1.3rem;
  background: #fff;
  border-radius: 0 !important;
}
.tech-reviews-grid h3 {
  font-family: var(--cp-head) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tech-reviews-grid span[style*="ff69b4"] {
  color: var(--cp-pink) !important;
  font-family: var(--cp-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tech-reviews-grid a[style*="linear-gradient"] {
  display: inline-block;
  background: transparent !important;
  border: 1px solid #fff;
  border-radius: 0 !important;
  color: #fff !important;
  font-family: var(--cp-mono) !important;
}
.tech-reviews-grid a[style*="linear-gradient"]:hover {
  background: var(--cp-cyan) !important;
  border-color: var(--cp-cyan);
  color: #000 !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
}

/* ---------- cart drawer ---------- */
.cart-drawer {
  background: #000;
  border-left: 1px solid var(--cp-pink);
  box-shadow: none;
}
.cart-drawer.open { box-shadow: -4px 0 50px rgba(255, 43, 214, 0.3); }
.cart-drawer-header,
.cart-drawer-footer { background: #000; }
.cart-drawer-title,
.cart-back-link,
.cart-empty-ascii,
.cart-item-line-total,
.cart-total-amt { color: var(--cp-cyan); }
.cart-drawer-title,
.cart-empty-ascii { text-shadow: 0 0 10px rgba(0, 229, 255, 0.6); }
.cart-total-amt {
  color: var(--cp-amber);
  text-shadow: 0 0 12px rgba(255, 171, 0, 0.5);
}
.cart-drawer-close,
.cart-qty-btn,
.cart-address-input,
.cart-address-select { border-radius: 0; }
.cart-address-input,
.cart-address-select { background: #000; }
/* Discount code box in the checkout view. The page only shows it for carts that hold an
   eligible device; the code itself is checked on the server and never appears here. */
.cart-promo { margin: 0 0 0.75rem; }
.cart-promo-row { display: flex; gap: 0.45rem; }
.cart-promo-row .cart-address-input {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cart-promo-row .cart-address-input[readonly] { border-color: var(--cp-cyan); color: var(--cp-cyan); }
.cart-promo-btn {
  flex: none;
  min-width: 5.4rem;
  padding: 0 0.9rem;
  background: transparent;
  border: 1px solid var(--cp-cyan);
  border-radius: 0;
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-promo-btn:hover:not([disabled]),
.cart-promo-btn:focus-visible { background: var(--cp-cyan); color: #000; outline: none; }
.cart-promo-btn[disabled] { opacity: 0.5; cursor: default; }
.cart-promo-msg {
  min-height: 1.1em;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #ff5c5c;
}
.cart-promo-msg.ok { color: var(--cp-cyan); }
.cart-summary-discount { opacity: 1; }
.cart-summary-discount .cart-summary-label,
.cart-summary-discount .cart-summary-amt { color: var(--cp-pink); }
.cart-checkout-btn {
  background: var(--cp-cyan);
  color: #000;
  border-radius: 0;
}
.cart-checkout-btn:hover:not([disabled]) {
  background: var(--cp-pink);
  transform: none;
  box-shadow: 0 0 28px rgba(255, 43, 214, 0.5);
}

/* ---------- touch targets ----------
   Thin controls keep their look; an invisible pseudo-element widens the area that takes the tap. */
.brand,
.video-dot { position: relative; }
.brand::before,
.video-dot::before { content: ''; position: absolute; }
.brand::before { inset: -10px -8px; }
.video-dot::before { inset: -14px -4px; }
.hero-ticker a.tick-alt::before { display: block; inset: -10px -4px; background: none; }

/* ---------- small screens ---------- */
/* Between the phone layout and a full desktop the one-row nav is wider than the space beside
   the brand and pushed the whole page sideways (iPad portrait). Tighten it; wrap as a last resort. */
@media (min-width: 769px) and (max-width: 960px) {
  header nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 0 0.1rem; }
  header nav a { font-size: 0.74rem; letter-spacing: 0.12em; padding: 0.5rem 0.45rem; }
  .cart-nav-btn { margin-left: 0.4rem; }
}
@media (max-width: 860px) {
  .hero-hud { flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
  .hud-side { width: 100%; }
  .hud-arrow { display: none; }
}
@media (max-width: 768px) {
  /* On a tall narrow screen the vignette just dims the top and bottom text: scanlines only. */
  body::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px); }
  nav ul { gap: 0.1rem 0.2rem; }
  nav a { font-size: 0.7rem; letter-spacing: 0.12em; padding: 0.55rem 0.5rem; }
  .cart-nav-btn { min-width: 42px; min-height: 36px; }
  /* Touch sizes: the filter chips and the bare search / category fields are too small to hit. */
  #blog .tag-filters { gap: 0.4rem; }
  #blog .tag-filter { padding: 0.5rem 0.75rem; }
  #blog .blog-controls input[type="text"],
  #blog .blog-controls select {
    width: 100% !important;
    min-height: 44px;
    border-bottom: 1px solid var(--cp-line) !important;
  }
  .section { padding: 3.2rem 0; }
  .section-title { gap: 0.7rem; margin-bottom: 1.8rem; }
  .hero-ticker { font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .hud-lede { font-size: 0.64rem; letter-spacing: 0.16em; }
  .hud-plate dl { font-size: 0.62rem; }
  .card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ascii-ground,
  .ascii-ground i,
  .hero-art,
  .hero-art i,
  html::after,
  .hero-ticker-track { animation: none; }
  .hero-ticker { overflow-x: auto; }
}
