/* Wieża AI: mem o infrastrukturze AI. Klocki z tego samego betonu co strona, kurtka czarna w obu motywach.
   Wieża chwieje się na czterech przegubach (każdy wyżej mocniej i w innym tempie), więc ruch się nie powtarza. */
@property --amp { syntax: "<number>"; inherits: true; initial-value: 1; }

.tw-fig { margin: 0; border: var(--line) solid var(--ink); background: var(--card); }
.tw-fig svg { display: block; width: 100%; height: auto; max-width: 1200px; margin: 0 auto; --amp: 1; transition: --amp 1.4s var(--ease-soft); }
.tw-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; border-top: var(--line) solid var(--ink); font-size: 14px; color: var(--muted); }
.tw-fig figcaption a { color: inherit; }
.tw-poke { flex: 0 0 auto; padding: 9px 14px; border: var(--line) solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 800; cursor: pointer; }
.tw-poke:hover { background: var(--accent); color: #0b0b0a; }

.tw-b { fill: var(--card-2); }
.tw-b2 { fill: var(--paper-2); }
.tw-w { fill: var(--card); }
.tw-b, .tw-b2, .tw-w, .tw-j, .tw-l { stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: miter; stroke-linecap: square; }
.tw-l { fill: none; }
.tw-j { fill: #0b0b0a; }
.tw-zip { fill: none; stroke: #8b8a84; stroke-width: 1.6; }
html[data-theme="dark"] .tw-j { stroke: #efeee9; }
.tw-sea { fill: var(--paper-2); }
.tw-wave { fill: none; stroke: var(--faint); stroke-width: 2; }
.tw-arr { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.tw-ah { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.tw-t { font-family: var(--sans); font-weight: 800; font-stretch: 100%; fill: var(--ink); text-anchor: middle; dominant-baseline: central; text-transform: uppercase; }
.tw-n { font-family: var(--mono); font-weight: 500; fill: var(--ink); text-transform: uppercase; }
.tw-big { font-family: var(--sans); font-weight: 900; font-stretch: 112%; fill: var(--ink); text-transform: uppercase; }

.tw-s { transform-box: view-box; animation: tw-sway var(--d) ease-in-out var(--dl, 0s) infinite alternate; }
@keyframes tw-sway {
  from { transform: rotate(calc(var(--amp) * var(--a) * -1)); }
  to { transform: rotate(calc(var(--amp) * var(--a))); }
}
@media (prefers-reduced-motion: reduce) {
  .tw-s { animation: none; }
  .tw-poke { display: none; }
}

.tw-legend { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; }
.tw-legend h2 { margin: 0; font-weight: 900; font-stretch: 125%; font-size: clamp(26px, 3vw, 44px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.tw-legend ol { margin: 0; padding: 0; list-style: none; border-top: var(--line) solid var(--ink); }
.tw-legend li { padding: 14px 0; border-bottom: 1px solid var(--rule); line-height: 1.5; color: var(--ink-2); }
.tw-legend li b { color: var(--ink); font-weight: 800; }
.tw-legend .tw-date { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .tw-legend { grid-template-columns: minmax(0, 1fr); } }

/* Zero dni: płomień, zero na tabliczce i iskra na loncie są pomarańczowe. */
.tw-acc { fill: var(--accent); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: miter; }
.tw-blink { animation: tw-blink 1.1s steps(2, jump-none) infinite; }
@keyframes tw-blink { from { opacity: 1; } to { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .tw-blink { animation: none; } }

/* Indeks memów: dwie płyty zamiast trzech. */
.meme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .meme-grid { grid-template-columns: minmax(0, 1fr); } }
