:root {
  color-scheme: dark;
  --bg: #050807;
  --panel: rgba(5, 20, 14, 0.82);
  --panel-strong: rgba(8, 32, 22, 0.94);
  --green: #3cff86;
  --green-soft: #96ffbd;
  --amber: #f8fff9;
  --pink: #ff4fd8;
  --cyan: #49d8ff;
  --white: #f8fff9;
  --cream: #fff8e7;
  --text: #f1fff5;
  --muted: #b8d6c1;
  --line: rgba(60, 255, 134, 0.24);
  --shadow: 0 0 32px rgba(60, 255, 134, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 79, 216, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(73, 216, 255, 0.13), transparent 26rem),
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.10), transparent 18rem),
    linear-gradient(135deg, #030504 0%, #07130d 42%, #020403 100%);
  color: var(--text);
  letter-spacing: -0.02em;
}

.scanlines, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.scanlines {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.42;
}
.noise {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 5, 4, 0.76);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(60, 255, 134, 0.44);
}
.logo-brand img { width: min(310px, 58vw); height: auto; display: block; }
.brand-mark { color: var(--pink); }
nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}
nav a:hover { color: var(--green); text-shadow: 0 0 12px rgba(60,255,134,.6); }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  min-height: calc(100vh - 8rem);
}
.panel, .card, .terminal, .topic-list li {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 0 24px rgba(60,255,134,.045);
}
.panel { border-radius: 28px; padding: clamp(1.2rem, 3vw, 2.5rem); }
.eyebrow {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: labelCycle 4.8s steps(1, end) infinite;
}
h1, h2, h3 { margin: 0; line-height: 0.98; }
h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  color: var(--white);
  text-shadow: 0 0 28px rgba(255,255,255,.20), 3px 3px 0 rgba(255,79,216,.45);
}
h1 span { color: var(--white); }
h1 em { color: var(--green); font-style: normal; }
.site-title .title-hacker,
.site-title .title-bunny,
.site-title em { display: inline; }
.site-title wbr { display: inline; }
@keyframes labelCycle {
  0%, 100% { color: var(--white); text-shadow: 0 0 12px rgba(255,255,255,.22); }
  34% { color: var(--green); text-shadow: 0 0 16px rgba(60,255,134,.48); }
  67% { color: var(--pink); text-shadow: 0 0 16px rgba(255,79,216,.48); }
}

h2 { font-size: clamp(2rem, 5vw, 4.2rem); color: var(--green-soft); }
h3 { font-size: 1.25rem; color: var(--green); }
p { color: var(--muted); line-height: 1.65; }
.lede { max-width: 62ch; font-size: 1.05rem; color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  text-decoration: none;
  background: rgba(60,255,134,.05);
}
.button.primary {
  color: #031006;
  background: var(--green);
  box-shadow: 0 0 24px rgba(60,255,134,.35);
  font-weight: 800;
}
.terminal {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 10, 4, 0.92);
}
.terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.terminal-bar span { width: 0.68rem; height: 0.68rem; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px currentColor; }
.terminal-bar span:nth-child(2) { background: var(--amber); }
.terminal-bar span:nth-child(3) { background: var(--green); }
pre { margin: 0; padding: 1.25rem; overflow: auto; color: var(--green-soft); line-height: 1.55; font-size: clamp(.78rem, 1.5vw, .96rem); }

.section { padding: 5rem 0 1rem; }
.section-title { max-width: 760px; margin-bottom: 1.3rem; }
.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  min-height: 230px;
  padding: 1.25rem;
  border-radius: 22px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(60,255,134,.75); }
.card.hot { background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,79,216,.13), rgba(5,20,14,.82)); }
.newbs .card:nth-child(2) { background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(5,20,14,.82)); border-color: rgba(255,255,255,.28); }
.tag { display: inline-block; margin-bottom: 2rem; color: var(--pink); }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: center;
}
.reverse { grid-template-columns: 1fr 0.9fr; }
.stack-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.stack-map span {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--green-soft);
  background: rgba(60,255,134,.055);
}
.danger { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  margin: 0 0 .75rem;
  padding: .9rem 1rem .9rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #d7ffe3;
  background: rgba(0,0,0,.22);
  position: relative;
}
.checklist li::before { content: "✓"; position: absolute; left: 1rem; color: var(--green); }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.topic-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
}
.topic-list span { color: var(--amber); white-space: nowrap; }
footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 5rem auto 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
footer p { margin: 0; font-size: .85rem; }

@media (max-width: 900px) {

  .site-title .title-hacker,
  .site-title .title-bunny,
  .site-title em { display: block; }
  .site-title { max-width: 7ch; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero, .split, .reverse, .danger { grid-template-columns: 1fr; }
  .cards.three, .cards.four { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .topic-list li, footer { flex-direction: column; }
  .topic-list span { white-space: normal; }
}
a { color: var(--green); }
.post { margin-top: 2rem; }
.post-body { color: var(--text); line-height: 1.7; }
.post-body h1,.post-body h2,.post-body h3 { color: var(--green-soft); margin-top: 1.5rem; }
.admin-form, .comment-form, .inline-form { display: grid; gap: .8rem; max-width: 850px; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; }
input, textarea, select, button {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
}
textarea { min-height: 8rem; }
button { cursor: pointer; color: var(--green); }
.comment { border-left: 3px solid var(--green); padding: .5rem 1rem; margin: 1rem 0; background: rgba(255,255,255,.045); }
.rating { color: var(--cream); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag-row a {
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .18rem .55rem;
  background: rgba(60,255,134,.06);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.cloud-tag {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255,255,255,.2);
  animation: labelCycle 5.4s steps(1,end) infinite;
}
.cloud-tag:nth-child(2n) { animation-delay: .7s; }
.cloud-tag:nth-child(3n) { animation-delay: 1.4s; }
.cloud-tag span {
  font-size: .72rem;
  color: var(--muted);
}
.cloud-tag:hover { color: var(--green); transform: translateY(-1px); }
/* Post images: small thumbnails, full image in modal */
.post-body .image-preview {
  margin: 1rem 0;
  text-align: left;
}
.post-body .image-preview a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  max-width: 42vw;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .28rem;
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 18px rgba(60,255,134,.10);
  overflow: hidden;
}
.post-body .image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.post-body .hero-preview {
  margin: 1.5rem auto;
  text-align: center;
}
.post-body .hero-preview a {
  width: min(760px, 100%);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: .45rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.post-body .hero-preview img {
  object-fit: contain;
  border-radius: 13px;
}
.post-body a {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .post-body .image-preview a { width: 108px; }
}

/* Click-to-enlarge image modal */
.modal-image-link { cursor: zoom-in; }
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 3.5rem 1rem 2rem;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(4px);
}
.image-modal.is-open {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
}
.image-modal-content {
  max-width: min(94vw, 1200px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(60,255,134,.25), 0 0 70px rgba(255,79,216,.16);
  animation: modalZoom .18s ease-out;
}
.image-modal-caption {
  max-width: min(90vw, 900px);
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: .92rem;
}
.image-modal-close {
  position: fixed;
  top: .8rem;
  right: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  background: rgba(5,8,7,.86);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.image-modal-close:hover,
.image-modal-close:focus-visible {
  color: var(--green);
  box-shadow: 0 0 22px rgba(60,255,134,.28);
}
body.modal-open { overflow: hidden; }
@keyframes modalZoom {
  from { transform: scale(.94); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}

/* Sticky article outline */
.post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 1.1rem;
  align-items: start;
}
.post-shell .post { margin-top: 2rem; }
.post-toc {
  position: sticky;
  top: 104px;
  margin-top: 2rem;
  max-height: calc(100vh - 128px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(2, 5, 4, 0.72);
  box-shadow: 0 0 24px rgba(60,255,134,.10), inset 0 0 18px rgba(255,79,216,.035);
  backdrop-filter: blur(14px);
}
.toc-kicker {
  margin: 0 0 .75rem;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.post-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .48rem; }
.post-toc li { line-height: 1.25; }
.post-toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  border-left: 2px solid rgba(60,255,134,.22);
  padding: .18rem 0 .18rem .58rem;
}
.post-toc .toc-l3 a { margin-left: .7rem; font-size: .76rem; opacity: .9; }
.post-toc a:hover,
.post-toc a:focus-visible {
  color: var(--green);
  border-left-color: var(--green);
  text-shadow: 0 0 12px rgba(60,255,134,.45);
}
.heading-anchor {
  color: var(--pink);
  text-decoration: none;
  opacity: 0;
  margin-right: .45rem;
  transition: opacity .15s ease;
}
.post-body h2:hover .heading-anchor,
.post-body h3:hover .heading-anchor,
.heading-anchor:focus-visible { opacity: 1; }
.post-body h2,
.post-body h3 { scroll-margin-top: 110px; }
@media (max-width: 1050px) {
  .post-shell { grid-template-columns: 1fr; }
  .post-toc {
    position: static;
    order: -1;
    max-height: none;
    margin-top: 1rem;
  }
  .post-toc ol { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (max-width: 700px) {
  .post-toc { padding: .85rem; }
  .post-toc ol { grid-template-columns: 1fr; }
}
.post-toc a.is-active,
.post-toc a[aria-current="true"] {
  color: var(--green);
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(60,255,134,.14), transparent 78%);
  text-shadow: 0 0 14px rgba(60,255,134,.48);
}
.post-toc a.is-active::before,
.post-toc a[aria-current="true"]::before {
  content: "› ";
  color: var(--pink);
}

/* New posts index */
.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.2rem 0 1.4rem;
}
.post-list {
  grid-template-columns: 1fr;
}
.post-list-card {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 1rem;
  min-height: 180px;
}
.post-list-card .card-image {
  grid-row: span 4;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.04);
}
.post-list-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}
.post-list-meta .tag { margin: 0; }
.post-list-meta time {
  color: var(--cream);
  font-size: .82rem;
  opacity: .82;
}
.post-list-card h3 a { text-decoration: none; }
.post-sentinel { height: 1px; }
.bunny-loader {
  display: grid;
  place-items: center;
  gap: .6rem;
  padding: 2rem 0 .4rem;
  color: var(--muted);
}
.bunny-loader[hidden] { display: none; }
.loader-bunny {
  position: relative;
  width: 92px;
  height: 82px;
  filter: drop-shadow(0 0 14px rgba(60,255,134,.35));
  animation: loaderHop 1.05s ease-in-out infinite;
}
.lb-ear, .lb-head, .lb-eye, .lb-nose, .lb-glass { position: absolute; }
.lb-ear {
  top: 0;
  width: 14px;
  height: 42px;
  background: #fff;
  box-shadow: inset 4px 0 0 #ffc7f3;
}
.lb-ear-left { left: 24px; }
.lb-ear-right { left: 52px; transform: rotate(18deg); transform-origin: bottom center; }
.lb-head {
  left: 14px;
  top: 34px;
  width: 60px;
  height: 42px;
  background: #fff;
  border-radius: 0;
  box-shadow: 8px 0 0 #fff, -8px 8px 0 #fff, 0 8px 0 #fff;
}
.lb-eye {
  top: 14px;
  width: 9px;
  height: 9px;
  background: #050807;
  animation: loaderEyes 2.2s steps(1,end) infinite;
}
.lb-eye:first-child { left: 12px; }
.lb-eye:nth-child(2) { right: 12px; animation-delay: .25s; }
.lb-nose {
  left: 26px;
  top: 27px;
  width: 8px;
  height: 7px;
  background: var(--pink);
}
.lb-glass {
  right: 0;
  top: 42px;
  width: 30px;
  height: 30px;
  border: 4px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(60,255,134,.6);
}
.lb-glass::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: -9px;
  width: 20px;
  height: 5px;
  background: var(--pink);
  transform: rotate(42deg);
  box-shadow: 0 0 12px rgba(255,79,216,.55);
}
@keyframes loaderHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes loaderEyes {
  0%, 58%, 100% { background: #050807; box-shadow: none; }
  68% { background: var(--green); box-shadow: 0 0 12px var(--green); }
  82% { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
}
@media (max-width: 720px) {
  .post-list-card { grid-template-columns: 1fr; }
  .post-list-card .card-image { grid-row: auto; }
}

/* Search / reusable post feed */
.search-cloud { margin: 1rem 0 1rem; }
.cloud-tag.is-selected {
  color: var(--green);
  border-bottom: 2px solid var(--pink);
  text-shadow: 0 0 18px rgba(60,255,134,.55), 0 0 22px rgba(255,79,216,.28);
}
.chosen-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 1rem 0 1.2rem;
  color: var(--muted);
}
.chosen-tags > span:first-child {
  color: var(--cream);
  font-size: .9rem;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  background: rgba(60,255,134,.075);
  box-shadow: 0 0 16px rgba(60,255,134,.10);
}
.tag-pill b {
  color: var(--pink);
  font-size: 1.1em;
  line-height: 1;
}
.tag-pill:hover,
.tag-pill:focus-visible {
  border-color: var(--pink);
  color: var(--white);
  box-shadow: 0 0 20px rgba(255,79,216,.18);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Difficulty / experience badges */
.level-badge {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .35rem;
  width: 160px;
  max-width: 100%;
  color: var(--cream);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card > .level-badge:not(.post-list-card .level-badge) { margin-bottom: 1rem; }
.level-badge svg {
  width: 150px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(60,255,134,.10), rgba(0,0,0,.35));
  box-shadow: 0 0 22px rgba(60,255,134,.13), inset 0 0 20px rgba(255,79,216,.045);
}
.level-badge .desk,
.level-badge .base { fill: #3cff86; opacity: .9; }
.level-badge .screen { fill: #101915; stroke: #3cff86; stroke-width: 4; }
.level-badge .screen-glow { fill: rgba(60,255,134,.12); animation: screenReady 2.4s steps(1,end) infinite; }
.level-advanced .screen-glow { animation-duration: 4.2s; }
.level-pro .screen-glow { animation-duration: 6.2s; }
.level-unknown .screen-glow { opacity: .18; animation: none; }
.level-badge .ready {
  font: 900 10px monospace;
  fill: #3cff86;
  opacity: 0;
  animation: readyBlink 2.4s steps(1,end) infinite;
}
.level-advanced .ready { animation-duration: 4.2s; }
.level-pro .ready { animation-duration: 6.2s; }
.level-unknown .ready { display: none; }
.level-badge .bun rect { fill: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,.35)); }
.level-badge .bun rect:nth-child(odd) { fill: #f4fff8; }
.level-badge .bun .paw,
.level-badge .button-push { fill: #ff4fd8; }
.level-badge .button-push { animation: buttonPush 2.4s steps(1,end) infinite; }
.level-badge .cables path {
  fill: none;
  stroke: #ff4fd8;
  stroke-width: 4;
  stroke-linecap: square;
  stroke-dasharray: 8 5;
  animation: cablePulse 4.2s linear infinite;
}
.level-badge .terminal-lines rect { fill: #3cff86; animation: terminalType 6.2s steps(1,end) infinite; }
.level-badge .terminal-lines rect:nth-child(2) { animation-delay: .35s; }
.level-badge .terminal-lines rect:nth-child(3) { animation-delay: .7s; }
.level-badge .box rect { fill: #24362d; stroke: #3cff86; stroke-width: 3; }
.level-badge .box path { fill: #16241d; stroke: #3cff86; stroke-width: 3; }
.level-badge .question { font: 900 30px monospace; fill: #ff4fd8; animation: questionPop 1.8s ease-in-out infinite; }
.level-badge span { text-shadow: 0 0 12px rgba(60,255,134,.32); }
.level-beginner span { color: var(--green); }
.level-advanced span { color: var(--cyan); }
.level-pro span { color: var(--pink); }
.level-unknown span { color: var(--muted); }
@keyframes screenReady {
  0%, 48% { fill: rgba(60,255,134,.10); }
  58%, 100% { fill: rgba(60,255,134,.44); filter: drop-shadow(0 0 8px #3cff86); }
}
@keyframes readyBlink {
  0%, 48% { opacity: 0; }
  58%, 100% { opacity: 1; }
}
@keyframes buttonPush {
  0%, 42%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@keyframes cablePulse {
  to { stroke-dashoffset: -26; }
}
@keyframes terminalType {
  0%, 70%, 100% { opacity: 0; }
  12%, 58% { opacity: 1; }
}
@keyframes questionPop {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-5px); opacity: 1; }
}
@media (max-width: 720px) {
  .level-badge { width: 132px; }
  .level-badge svg { width: 132px; }
}
.post-headline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .75rem;
}
.post-headline .level-badge { flex: 0 0 150px; }
.post-headline .level-badge svg { width: 140px; }
@media (max-width: 720px) {
  .post-headline { align-items: flex-start; flex-direction: column; }
}

/* Admin dropdowns */
nav .nav-menu,
nav .submenu { position: relative; display: inline-flex; align-items: stretch; }
nav .dropdown {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 50;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 8, 5, .96);
  box-shadow: var(--shadow);
}
nav .subdrop { top: -.55rem; left: calc(100% + .35rem); }
nav .nav-menu:hover > .dropdown,
nav .nav-menu:focus-within > .dropdown,
nav .submenu:hover > .dropdown,
nav .submenu:focus-within > .dropdown { display: flex; }
nav .dropdown a {
  display: block;
  min-width: 100%;
  padding: .65rem .8rem;
  border-radius: 10px;
  white-space: nowrap;
}
nav .dropdown a:hover { background: rgba(60,255,134,.08); }
.hidden-counter {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.stat-grid .card { min-height: 150px; }
.stat-grid h3 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--white); }
.mini-cards { margin-top: 1.2rem; }
@media (max-width: 900px) {
  nav .dropdown,
  nav .subdrop {
    position: static;
    margin-top: .35rem;
    margin-left: .65rem;
  }
}
