@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Russo+One&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
/* Карточка «WebAssembly: запусти DOOM» на главной хаба — в стиле квеста: тёмная база на Фобосе, красно-оранжевый
   огонь DOOM (три кадра-картинки сменяют друг друга), пиксельные уголки и надписи. «В работе» — приглушённая, без входа. */
.qc-wasm { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; color: #f3e6dc; font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif; overflow: hidden;
  background: radial-gradient(ellipse at 50% 115%, rgba(255, 90, 31, .22), transparent 58%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 4px), #0d0806;
  border: 1px solid #3a1d12; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transition: transform .2s, box-shadow .2s, border-color .2s; text-decoration: none; }
.qc-wasm::before, .qc-wasm::after { content: ""; position: absolute; width: 10px; height: 10px; border: 3px solid #ff5a1f; pointer-events: none; }
.qc-wasm::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.qc-wasm::after { right: 6px; bottom: 6px; border-left: 0; border-top: 0; }
article.qc-wasm:hover { transform: translateY(-3px); border-color: #6b2a12; box-shadow: 0 24px 60px rgba(255, 90, 31, .22); }
.qc-wasm.is-wip { filter: saturate(.75); }
.qc-wasm-head { display: flex; align-items: center; gap: 14px; }
.qc-wasm-logo { flex: none; display: grid; place-items: center; width: 54px; height: 54px; background: #1b0d08; border: 2px solid #ff5a1f; color: #ffb000;
  font: 9px/1 "Press Start 2P", ui-monospace, monospace; box-shadow: 4px 4px 0 #6b1a0a; image-rendering: pixelated; }
.qc-wasm-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; font: 600 11px "IBM Plex Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #ff7a2e; }
.qc-wasm-badge { padding: 2px 8px; border: 1px solid rgba(255, 176, 0, .55); color: #ffcf6a; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.qc-wasm h3 { margin: 4px 0 0; font: 400 20px/1.2 "Russo One", "IBM Plex Sans", sans-serif; color: #fff1e6; letter-spacing: .01em; }
.qc-wasm-art { position: relative; width: 100%; height: 150px; overflow: hidden; background: #070404; border: 1px solid #2a140c; }
.qc-wasm-art img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; animation: qcw-flick .3s steps(1) infinite; }
.qc-wasm-art img:nth-child(2) { animation-delay: -.1s; }
.qc-wasm-art img:nth-child(3) { animation-delay: -.2s; }
@keyframes qcw-flick { 0% { opacity: 1; } 33.34% { opacity: 0; } }
.qc-wasm-doom { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font: 22px/1 "Press Start 2P", ui-monospace, monospace; color: rgba(255, 90, 31, .16); letter-spacing: .12em; pointer-events: none; }
.qc-wasm-art.done .qc-wasm-doom { color: #ffb000; text-shadow: 3px 3px 0 #8f1d07, 0 0 18px rgba(255, 122, 46, .8); }
@media (prefers-reduced-motion: reduce) { .qc-wasm-art img { animation: none; } .qc-wasm-art img:first-child { opacity: 1; } }
.qc-wasm-desc { margin: 0; color: #d6c1b3; font-size: 14px; line-height: 1.5; }
.qc-wasm-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #a88d7e; }
.qc-wasm-stats b { color: #fff1e6; }
.qc-wasm-mine { font-size: 13px; padding: 8px 12px; background: rgba(255, 90, 31, .08); border: 1px solid rgba(255, 90, 31, .32); }
.qc-wasm-mine b { color: #ffb000; }
.qc-wasm-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.qc-wasm-btn { padding: 11px 18px; background: #ff5a1f; color: #160803; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 #7a1c06; transition: transform .1s, box-shadow .1s; }
.qc-wasm-btn:hover { background: #ff7a2e; }
.qc-wasm-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #7a1c06; }
.qc-wasm-link { color: #a88d7e; font-size: 13px; text-decoration: none; }
.qc-wasm-link:hover { color: #ff7a2e; }
.qc-wasm-soon { margin-top: auto; align-self: flex-start; padding: 9px 14px; border: 1px dashed rgba(255, 176, 0, .5); color: #ffcf6a; font-weight: 600; font-size: 14px; }
/* главная «в один экран» (hub.css): плашка компактнее — огонь ниже (124 px), описание до трёх строк */
@media (min-width: 1000px) and (min-height: 500px), (min-width: 760px) and (min-height: 900px) {
  body.hb-home .hb-grid .qc-wasm { gap: 10px; padding: 18px 20px; }
  body.hb-home .hb-grid .qc-wasm-logo { width: 46px; height: 46px; }
  body.hb-home .hb-grid .qc-wasm-art { height: 124px; }
  body.hb-home .hb-grid .qc-wasm-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  body.hb-home .hb-grid .qc-wasm-mine { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
