@property --mx { syntax: "<length-percentage>"; inherits: true; initial-value: 22%; }
@property --my { syntax: "<length-percentage>"; inherits: true; initial-value: -30%; }

:root {
  color-scheme: dark;

  --bg: #040509;
  --ink-50: #f7f8fb;
  --ink-100: #eef1f6;
  --ink-200: #dde3ec;
  --ink-300: #c3cbd7;
  --ink-400: #8d98a9;
  --ink-500: #657083;
  --ink-600: #465061;

  --gold-50: #fffaf0;
  --gold-100: #fdf3d6;
  --gold-200: #f8e3a6;
  --gold-300: #f0cf78;
  --gold-400: #e3b653;
  --gold-500: #cf9c34;
  --gold-600: #b07f1f;
  --gold-700: #855d12;
  --gold-800: #5c3f0a;

  --green-300: #6ee7b7;
  --green-400: #34d399;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --amber-400: #fbbf24;

  /* polerowane złoto: ostra linia "horyzontu" w połowie daje odbicie jak na metalu */
  --metal-gold: linear-gradient(180deg,
    #fff4c9 0%, #f5d67f 14%, #e0b24a 34%, #b4852a 48%,
    #7f5810 50.5%, #a8781f 60%, #d9ad48 80%, #f6dc8e 100%);
  /* mikrorysy szczotkowanego metalu */
  --brushed: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.07) 0 1px, rgba(0, 0, 0, 0.05) 1px 2px, transparent 2px 3px,
    rgba(255, 255, 255, 0.035) 3px 4px, transparent 4px 7px);
  --noise: url("../img/noise.svg");

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 1px rgba(0, 0, 0, 0.55),
    0 6px 14px -6px rgba(0, 0, 0, 0.6),
    0 30px 60px -28px rgba(0, 0, 0, 0.85);
  --glass-shadow-lift:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 2px 2px rgba(0, 0, 0, 0.45),
    0 14px 28px -10px rgba(0, 0, 0, 0.65),
    0 44px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 44px -14px rgba(227, 182, 83, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--ink-300);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(227, 182, 83, 0.35); color: #fff; }

/* ---------- otoczenie: karbon pod lakierem ---------- */

/* splot 2x2 twill — wiązki poziome łapią światło */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/carbon-a.svg") 0 0 / 30px 30px, #050607;
}

/* ten sam splot z odwróconą anizotropią — widoczny tylko pod "lampą",
   więc przy ruchu kursora szachownica przełącza się jak na prawdziwym karbonie */
.carbon-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/carbon-b.svg") 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(circle 560px at var(--lx, 78%) var(--ly, 6%), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 42%, transparent 74%);
  mask-image: radial-gradient(circle 560px at var(--lx, 78%) var(--ly, 6%), rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 42%, transparent 74%);
}

/* lakier: odblask lampy, smuga połysku, ciepłe/zimne światło otoczenia, winieta;
   ostatnia warstwa to przyciemnienie całego tła */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 620px at var(--lx, 78%) var(--ly, 6%), rgba(255, 240, 205, 0.05), rgba(255, 240, 205, 0.012) 45%, transparent 70%),
    linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.028) 38%, rgba(255, 255, 255, 0.05) 44%, transparent 58%),
    radial-gradient(ellipse 980px 560px at 8% -14%, rgba(227, 182, 83, 0.16), transparent 62%),
    radial-gradient(ellipse 820px 620px at 108% -6%, rgba(96, 165, 250, 0.08), transparent 58%),
    radial-gradient(ellipse 140% 100% at 50% 30%, transparent 38%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(180deg, rgba(4, 5, 9, 0.62) 0%, rgba(4, 5, 9, 0.74) 55%, rgba(4, 5, 9, 0.86) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

/* ---------- szkło ---------- */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.022) 36%, rgba(255, 255, 255, 0.008) 100%),
    rgba(15, 18, 26, 0.56);
  -webkit-backdrop-filter: blur(22px) saturate(165%) brightness(0.92);
  backdrop-filter: blur(22px) saturate(165%) brightness(0.92);
  box-shadow: var(--glass-shadow);
}

/* krawędź szkła: jaśniejsza od strony światła, ciepła na dole */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(158deg,
    rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 26%,
    rgba(255, 255, 255, 0.025) 55%, rgba(227, 182, 83, 0.2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* odblask pod kursorem + ziarno szkła mrożonego */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 38%, transparent 60%),
    var(--noise);
  opacity: 0.7;
  transition: opacity 0.35s ease;
}

.glass:hover::after { opacity: 1; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  background:
    linear-gradient(180deg, rgba(12, 14, 20, 0.82), rgba(12, 14, 20, 0.6)),
    var(--noise);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px -14px rgba(0, 0, 0, 0.85);
}

/* złota nitka pod paskiem */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 182, 83, 0.4) 22%, rgba(255, 236, 190, 0.75) 50%, rgba(227, 182, 83, 0.4) 78%, transparent);
  opacity: 0.55;
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink-50);
  text-decoration: none;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

/* kropka w logo jako złoty koralik */
.brand .gold-text {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px 0 3px;
  align-self: flex-end;
  transform: translateY(-4px);
  border-radius: 50%;
  font-size: 0;
  background: radial-gradient(circle at 35% 30%, #fffbe8 0 12%, var(--gold-300) 30%, var(--gold-600) 75%, var(--gold-800));
  box-shadow: 0 0 8px rgba(227, 182, 83, 0.7), 0 1px 1px rgba(0, 0, 0, 0.6);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-300);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}

.nav-back:hover {
  color: var(--gold-200);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(227, 182, 83, 0.4), 0 0 18px -4px rgba(227, 182, 83, 0.35);
}

.nav-back:active { transform: translateY(1px); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- przełącznik języka ---------- */
.lang-switcher { position: relative; }

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-200);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 0;
  border-radius: 999px;
  padding: 7px 12px 7px 9px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(227, 182, 83, 0.32), 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.2s ease;
}

.lang-current:hover,
.lang-switcher.is-open .lang-current {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(227, 182, 83, 0.6), 0 0 18px -4px rgba(227, 182, 83, 0.4);
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 17px;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  border-radius: 4px;
  flex: 0 0 auto;
}

.lang-current .flag {
  color: #3b2705;
  background: var(--brushed), var(--metal-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(92, 63, 10, 0.7);
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.55);
}

.lang-current .chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 1px;
  font-size: 0;
  border-right: 1.5px solid var(--gold-400);
  border-bottom: 1.5px solid var(--gold-400);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}

.lang-switcher.is-open .lang-current .chevron { transform: rotate(225deg); margin-top: 3px; }

.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(14, 17, 25, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 50px -12px rgba(0, 0, 0, 0.85);
}

.lang-switcher.is-open .lang-list {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink-300);
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.lang-option.is-active {
  color: var(--gold-200);
  background: linear-gradient(90deg, rgba(227, 182, 83, 0.16), rgba(227, 182, 83, 0.04));
  box-shadow: inset 0 0 0 1px rgba(227, 182, 83, 0.22);
}

.lang-option .flag {
  color: var(--ink-400);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang-option:hover .flag,
.lang-option.is-active .flag {
  color: #3b2705;
  background: var(--brushed), var(--metal-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(92, 63, 10, 0.7);
}

/* ---------- hero ---------- */
.hero {
  padding: 68px 0 44px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-100);
  background: linear-gradient(180deg, rgba(227, 182, 83, 0.2), rgba(227, 182, 83, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 215, 0.22),
    inset 0 0 0 1px rgba(227, 182, 83, 0.38),
    0 0 26px -6px rgba(227, 182, 83, 0.35);
  margin-bottom: 22px;
}

/* dioda */
.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbe8 0 18%, var(--gold-300) 45%, var(--gold-600));
  box-shadow: 0 0 6px var(--gold-400), 0 0 14px rgba(227, 182, 83, 0.7);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: var(--ink-50);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 18px 40px rgba(0, 0, 0, 0.6);
}

/* odlewane złoto: gradient metalu + przesuwający się błysk + grubość przez drop-shadow */
.hero h1 .accent {
  display: inline-block;
  padding-bottom: 0.06em;
  background:
    linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.85) 48%, rgba(255, 255, 255, 0) 58%) -120% 0 / 250% 100% no-repeat,
    var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 1px 0 rgba(120, 82, 14, 0.9))
    drop-shadow(0 2px 0 rgba(60, 40, 6, 0.8))
    drop-shadow(0 14px 22px rgba(227, 182, 83, 0.2));
  animation: shine 7s var(--ease-out) 1.2s infinite;
}

@keyframes shine {
  0% { background-position: -120% 0, 0 0; }
  30%, 100% { background-position: 220% 0, 0 0; }
}

.hero p {
  font-size: 1.07rem;
  line-height: 1.6;
  color: var(--ink-400);
  max-width: 540px;
  margin: 0;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-300);
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-variant-numeric: tabular-nums;
}

/* zielona dioda "na żywo" */
.meta-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ecfdf5 0 15%, var(--green-400) 50%, #047857);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: led-breathe 2.8s ease-in-out infinite;
}

@keyframes led-breathe {
  0%, 100% { box-shadow: 0 0 5px rgba(52, 211, 153, 0.55); }
  50% { box-shadow: 0 0 11px rgba(52, 211, 153, 0.95); }
}

/* ---------- oś czasu ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
}

/* frezowany rowek */
.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 60%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), 1px 0 0 rgba(255, 255, 255, 0.03);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}

/* złota inkrustacja w rowku */
.timeline::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-200), rgba(207, 156, 52, 0.6) 35%, rgba(207, 156, 52, 0.06) 92%);
  box-shadow: 0 0 6px rgba(227, 182, 83, 0.45);
}

.release {
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
}

/* wejście kart przy przewijaniu — animujemy samą kartę i kulkę, nie rodzica:
   opacity/filter na przodku szkła odcina backdrop-filter od tła */
.release.will-reveal .card,
.release.will-reveal .release-dot {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.release.will-reveal .release-dot { transform: scale(0.4); }

.release.is-in .card,
.release.is-in .release-dot {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease-out) calc(var(--i, 0) * 70ms),
    transform 0.8s var(--ease-out) calc(var(--i, 0) * 70ms);
}

.release.is-in .release-dot { transition-timing-function: var(--ease-out), var(--ease-spring); }

/* polerowana złota kulka osadzona w gnieździe */
.release-dot {
  position: absolute;
  left: 10px;
  top: 30px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  z-index: 1;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0 7%, rgba(255, 250, 225, 0.5) 12%, transparent 26%),
    radial-gradient(circle at 55% 115%, rgba(255, 224, 150, 0.6), transparent 48%),
    radial-gradient(circle at 42% 36%, #fbe7a6 0%, #e2b453 28%, #a8761c 62%, #5e3f09 100%);
  box-shadow:
    0 0 0 3px #07080b,
    0 0 0 4px rgba(227, 182, 83, 0.3),
    0 4px 8px 3px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(227, 182, 83, 0.35);
}

.release.is-highlight .release-dot {
  width: 23px;
  height: 23px;
  left: 8px;
  top: 28px;
  animation: pulse-gold 2.6s ease-in-out infinite;
}

/* fala światła wokół wyróżnionego wydania */
.release.is-highlight .release-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(240, 207, 120, 0.7);
  animation: ping 2.6s var(--ease-out) infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 3px #07080b, 0 0 0 4px rgba(227, 182, 83, 0.35), 0 4px 8px 3px rgba(0, 0, 0, 0.6), 0 0 16px rgba(227, 182, 83, 0.45); }
  50% { box-shadow: 0 0 0 3px #07080b, 0 0 0 4px rgba(227, 182, 83, 0.6), 0 4px 8px 3px rgba(0, 0, 0, 0.6), 0 0 34px rgba(240, 207, 120, 0.85); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.3); opacity: 0; }
}

/* ---------- karta wydania ---------- */
.card {
  padding: 26px 28px 24px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-lift);
}

.release.is-highlight .card {
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(227, 182, 83, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 36%, rgba(255, 255, 255, 0.008) 100%),
    rgba(18, 18, 22, 0.6);
  box-shadow: var(--glass-shadow), 0 0 50px -16px rgba(227, 182, 83, 0.35);
}

.release.is-highlight .card::before {
  background: linear-gradient(158deg,
    rgba(255, 238, 190, 0.6) 0%, rgba(227, 182, 83, 0.28) 24%,
    rgba(255, 255, 255, 0.03) 55%, rgba(227, 182, 83, 0.35) 100%);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.card-head-left {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.version {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink-50);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

/* tagi jak tłoczone plakietki */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 9px 4px;
  border-radius: 6px;
}

.tag-major {
  color: #3b2705;
  background: var(--brushed), var(--metal-gold);
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(92, 63, 10, 0.85),
    0 2px 5px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(227, 182, 83, 0.28);
}

.tag-minor {
  color: #d1fae5;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.34), rgba(6, 95, 70, 0.3));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(209, 250, 229, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(52, 211, 153, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 14px -2px rgba(52, 211, 153, 0.25);
}

.tag-patch {
  color: #dbeafe;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.34), rgba(30, 64, 175, 0.3));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(219, 234, 254, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(96, 165, 250, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 14px -2px rgba(96, 165, 250, 0.25);
}

.date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-400);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.title {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink-100);
  margin: 4px 0 18px;
}

.changes {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  /* grawerowana linia oddzielająca */
  border-top: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.changes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-300);
}

/* chipy jak emaliowane wkładki */
.chip {
  flex: 0 0 auto;
  min-width: 86px;
  margin-top: 1px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 8px 3px;
  border-radius: 5px;
  line-height: 1.45;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.chip-new {
  color: #d1fae5;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.26), rgba(16, 185, 129, 0.1));
  box-shadow: inset 0 1px 0 rgba(209, 250, 229, 0.2), inset 0 0 0 1px rgba(52, 211, 153, 0.4);
}

.chip-improved {
  color: #ede9fe;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.28), rgba(139, 92, 246, 0.1));
  box-shadow: inset 0 1px 0 rgba(237, 233, 254, 0.2), inset 0 0 0 1px rgba(167, 139, 250, 0.42);
}

.chip-fixed {
  color: #dbeafe;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.28), rgba(59, 130, 246, 0.1));
  box-shadow: inset 0 1px 0 rgba(219, 234, 254, 0.2), inset 0 0 0 1px rgba(96, 165, 250, 0.42);
}

.chip-removed {
  color: #fee2e2;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.26), rgba(239, 68, 68, 0.1));
  box-shadow: inset 0 1px 0 rgba(254, 226, 226, 0.2), inset 0 0 0 1px rgba(248, 113, 113, 0.4);
}

/* ---------- stany ---------- */
.state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-400);
}

.state.error {
  color: var(--red-300);
  border-radius: var(--radius-lg);
  background: rgba(127, 29, 29, 0.18);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.3);
}

/* szkieletowe karty podczas ładowania */
.skeleton .card { pointer-events: none; }

.skeleton .release-dot {
  background: radial-gradient(circle at 40% 35%, #3a3f48, #16181d);
  box-shadow: 0 0 0 3px #07080b, 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.sk-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.sk-line.w-20 { width: 20%; height: 18px; }
.sk-line.w-45 { width: 45%; }
.sk-line.w-70 { width: 70%; }
.sk-line.w-85 { width: 85%; }

@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- stopka ---------- */
.footer {
  position: relative;
  margin-top: 56px;
  padding-top: 26px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-400);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 182, 83, 0.35), transparent);
}

.footer a {
  color: var(--gold-300);
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}

.footer a:hover { background-size: 100% 1px; }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .nav-inner { padding: 12px 16px; }
  .wrap { padding: 0 16px 72px; }
  .nav-back { padding: 8px 12px; }
  .card { padding: 20px 18px 18px; }
  .hero { padding: 44px 0 30px; }
  .release { padding-left: 42px; }
  .timeline::before { left: 12px; }
  .timeline::after { left: 14px; }
  .release-dot { left: 5px; }
  .release.is-highlight .release-dot { left: 3px; }
  .changes li { flex-direction: column; gap: 5px; }
  .chip { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .release.will-reveal .card,
  .release.will-reveal .release-dot { opacity: 1; transform: none; }
}
