/* ==========================================================================
   AmnesiaCity — style strony
   ========================================================================== */

:root {
  --bg: #07060d;
  --bg-soft: #0b0915;
  --surface: #110e1d;
  --surface-2: #161226;
  --surface-3: #1e1933;
  --line: rgba(196, 184, 255, 0.1);
  --line-strong: rgba(196, 184, 255, 0.2);
  --text: #f4f1ff;
  --text-2: #cdc7e6;
  --muted: #958eb3;
  --cyan: #2fe0f2;
  --blue: #4a7dff;
  --violet: #9a6bff;
  --leaf: #5fd94e;
  --ember: #ff7b2e;
  --danger: #ff5470;
  --discord: #5865f2;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 52%, var(--violet) 100%);
  --grad-hot: linear-gradient(100deg, #ff7b2e, #ff4d6a);
  --grad-soft: linear-gradient(135deg, rgba(47, 224, 242, 0.16), rgba(74, 125, 255, 0.12) 50%, rgba(154, 107, 255, 0.18));
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: dark;
  interpolate-size: allow-keywords;
}

/* ---------- Podstawy ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection {
  background: rgba(47, 224, 242, 0.28);
  color: #fff;
}

[hidden] {
  display: none !important;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Drobne elementy ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 14, 29, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--leaf);
  animation: ping 2.2s infinite;
}

.dot--cyan {
  background: var(--cyan);
  animation-name: ping-cyan;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 217, 78, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(95, 217, 78, 0);
  }
}

@keyframes ping-cyan {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 224, 242, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(47, 224, 242, 0);
  }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head--center .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

kbd,
.kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78em;
  line-height: 1.4;
  color: var(--text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--cyan);
}

/* ---------- Przyciski ---------- */

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s, background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn .i {
  width: 19px;
  height: 19px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad);
  color: #0a0714;
  box-shadow: 0 12px 30px -12px rgba(74, 125, 255, 0.75);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px -14px rgba(74, 125, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn--discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(88, 101, 242, 0.95);
}

.btn--discord:hover {
  background: #6872f6;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 184, 255, 0.34);
}

.btn--live {
  background: var(--leaf);
  color: #071404;
  box-shadow: 0 12px 30px -12px rgba(95, 217, 78, 0.8);
}

.btn--sm {
  --h: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.btn--lg {
  --h: 56px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.icon-btn--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.icon-btn--sm .i {
  width: 16px;
  height: 16px;
}

.badge-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ember);
  color: #1a0900;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--bg);
}

.badge-count.is-bump {
  animation: bump 0.4s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--text);
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 6, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  opacity: 0;
  transition: opacity 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 24px -8px rgba(47, 224, 242, 0.6);
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand__name span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 6, 13, 0.97);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav nav {
  display: grid;
  gap: 2px;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
}

.mobile-nav__link[aria-current="page"] {
  color: var(--text);
}

.mobile-nav__link[aria-current="page"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .nav,
  .header-actions .btn--discord {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .burger {
    display: inline-grid;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1.35rem;
  }
}

/* ---------- Sekcje ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 136px);
}

.section--tight {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-lead {
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  text-wrap: pretty;
}

/* ---------- Hero (strona główna) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 clamp(72px, 9vw, 110px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__city {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 35%;
  opacity: 0.34;
  filter: saturate(1.25);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 13, 0.55) 0%, transparent 30%, transparent 55%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 6, 13, 0.82) 32%, rgba(7, 6, 13, 0.25) 70%, rgba(7, 6, 13, 0.55) 100%);
}

.haze {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}

.haze--1 {
  left: -12vw;
  top: -14vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(154, 107, 255, 0.5), transparent 65%);
}

.haze--2 {
  right: -10vw;
  top: 6vh;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(47, 224, 242, 0.3), transparent 65%);
  animation-duration: 23s;
  animation-delay: -7s;
}

.haze--3 {
  left: 38%;
  bottom: -16vw;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(95, 217, 78, 0.16), transparent 65%);
  animation-duration: 27s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 3vh, 0) scale(1.15);
  }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 7.4vw, 6.75rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero__title > span {
  display: block;
}

.hero__lead {
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  text-wrap: pretty;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 580px);
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 125, 255, 0.4), rgba(154, 107, 255, 0.16) 45%, transparent 70%);
  filter: blur(30px);
}

.hero__art img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(74, 125, 255, 0.3));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 16px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
    width: min(62%, 300px);
    margin-bottom: -12px;
  }

  .hero .scroll-hint {
    display: none;
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scroll-line 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Efekt „glitch” — amnezja w akcji */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch::before {
  color: var(--cyan);
}

.glitch::after {
  color: var(--violet);
}

.glitch.is-glitching::before {
  animation: glitch-a 0.5s steps(2, end) both;
}

.glitch.is-glitching::after {
  animation: glitch-b 0.5s steps(2, end) both;
}

@keyframes glitch-a {
  0% {
    opacity: 0.9;
    clip-path: inset(8% 0 62% 0);
    transform: translate(-6px, -2px);
  }
  25% {
    clip-path: inset(55% 0 12% 0);
    transform: translate(5px, 1px);
  }
  50% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(-4px, 2px);
  }
  75% {
    clip-path: inset(70% 0 5% 0);
    transform: translate(3px, -1px);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes glitch-b {
  0% {
    opacity: 0.85;
    clip-path: inset(60% 0 8% 0);
    transform: translate(6px, 2px);
  }
  25% {
    clip-path: inset(12% 0 58% 0);
    transform: translate(-5px, -1px);
  }
  50% {
    clip-path: inset(42% 0 30% 0);
    transform: translate(4px, -2px);
  }
  75% {
    clip-path: inset(4% 0 75% 0);
    transform: translate(-3px, 1px);
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

/* ---------- Odliczanie / status ---------- */

.launch-card {
  display: grid;
  gap: 14px;
  width: min(100%, 540px);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 18, 38, 0.82), rgba(17, 14, 29, 0.6));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.launch-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.launch-card__head > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.launch-card__date {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-2);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cd {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 6, 13, 0.6);
  overflow: hidden;
}

.cd__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cd__num.is-tick {
  animation: tick 0.45s var(--ease);
}

@keyframes tick {
  from {
    opacity: 0.15;
    transform: translateY(-30%);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.cd__lbl {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.live__players {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
}

.live__players small {
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

/* Adres serwera do skopiowania */
.connect {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 7px 7px 7px 14px;
  border: 1px dashed rgba(47, 224, 242, 0.45);
  border-radius: 14px;
  background: rgba(47, 224, 242, 0.06);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s;
}

.connect:hover {
  border-style: solid;
  background: rgba(47, 224, 242, 0.11);
}

.connect__cmd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cyan);
}

.connect__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(47, 224, 242, 0.14);
  color: var(--cyan);
  transition: background-color 0.2s, color 0.2s;
}

.connect__icon .i {
  width: 16px;
  height: 16px;
}

.connect.is-copied {
  border-color: rgba(95, 217, 78, 0.6);
  background: rgba(95, 217, 78, 0.08);
}

.connect.is-copied .connect__icon {
  background: rgba(95, 217, 78, 0.2);
  color: var(--leaf);
}

/* ---------- Pasek przewijany ---------- */

.ticker {
  position: relative;
  z-index: 2;
  margin-block: -12px;
  padding-block: 18px;
  border-block: 1px solid var(--line-strong);
  background: var(--bg-soft);
  overflow: hidden;
  transform: rotate(-1.4deg) scale(1.03);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.ticker__group {
  display: flex;
  flex: none;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 255, 0.55);
}

.ticker__item::after {
  content: "✦";
  color: var(--leaf);
  font-size: 0.6em;
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Karty / bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  isolation: isolate;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 125, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--cyan);
}

.card__icon .i {
  width: 24px;
  height: 24px;
}

.card__num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
}

.card__text {
  color: var(--text-2);
  font-size: 0.98rem;
  text-wrap: pretty;
}

.bento .card--big {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bento .card--big .card__title {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.bento .card--wide {
  grid-column: span 2;
}

.term {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 6, 13, 0.75);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  overflow: hidden;
}

.card--big .term {
  margin-top: 28px;
}

.term__bar {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.term__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2540;
}

.term__bar i:first-child {
  background: #ff5f57;
}

.term__bar i:nth-child(2) {
  background: #febc2e;
}

.term__bar i:nth-child(3) {
  background: #28c840;
}

.term__body {
  display: grid;
  gap: 5px;
  padding: 16px 18px 18px;
  color: var(--text-2);
  overflow-x: auto;
}

.term__body > span {
  white-space: pre;
}

.term__prompt {
  color: var(--cyan);
}

.term__ok {
  color: var(--leaf);
}

.term__dim {
  color: #5f5880;
}

.term__wait {
  color: var(--ember);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento .card--big {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .bento,
  .stats {
    grid-template-columns: 1fr;
  }

  .bento .card--big,
  .bento .card--wide {
    grid-column: auto;
  }
}

/* ---------- Kroki ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 0.8;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__title {
  font-weight: 700;
  font-size: 1.15rem;
}

.step__text {
  color: var(--text-2);
  font-size: 0.95rem;
}

.step__text a {
  color: var(--cyan);
}

.step .connect {
  margin-top: 4px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -17px;
  width: 18px;
  height: 2px;
  background: var(--grad);
  opacity: 0.6;
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Rekrutacja ---------- */

.recruit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}

.recruit__panel {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(74, 125, 255, 0.16), transparent 50%),
    var(--surface);
}

.recruit__panel .section-head {
  margin-bottom: 28px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 10px var(--leaf);
}

.chip.is-closed {
  color: var(--muted);
}

.chip.is-closed::before {
  background: var(--muted);
  box-shadow: none;
}

.chip:hover {
  border-color: rgba(47, 224, 242, 0.5);
  background: rgba(47, 224, 242, 0.07);
}

.recruit__art {
  position: relative;
  min-height: 460px;
}

.recruit__art::before {
  content: "";
  position: absolute;
  inset: 12% 0 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 107, 255, 0.4), transparent);
  filter: blur(14px);
}

.recruit__art img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 108%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 1px rgba(47, 224, 242, 0.9)) drop-shadow(0 24px 50px rgba(74, 125, 255, 0.35));
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

@media (max-width: 900px) {
  .recruit {
    grid-template-columns: 1fr;
  }

  .recruit__art {
    display: none;
  }
}

/* ---------- Mapa drogowa ---------- */

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.rm {
  position: relative;
  padding-top: 52px;
}

.rm::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: -16px;
  height: 2px;
  background: var(--line-strong);
}

.rm:last-child::before {
  right: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.rm.is-done::before {
  background: var(--leaf);
}

.rm.is-current::before {
  background: linear-gradient(90deg, var(--cyan), var(--line-strong));
}

.rm__dot {
  position: absolute;
  top: 8px;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
}

.rm.is-done .rm__dot {
  border-color: var(--leaf);
  background: var(--leaf);
}

.rm.is-current .rm__dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(47, 224, 242, 0.16), 0 0 24px var(--cyan);
}

.rm__card {
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.rm.is-current .rm__card {
  border-color: rgba(47, 224, 242, 0.35);
  background: linear-gradient(180deg, rgba(47, 224, 242, 0.07), transparent 60%), var(--surface);
}

.rm__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rm__when {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.rm__status {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rm.is-done .rm__status {
  background: rgba(95, 217, 78, 0.14);
  color: var(--leaf);
}

.rm.is-current .rm__status {
  background: rgba(47, 224, 242, 0.14);
  color: var(--cyan);
}

.rm__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.rm__text {
  color: var(--text-2);
  font-size: 0.97rem;
}

@media (max-width: 860px) {
  .roadmap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rm {
    padding: 0 0 18px 40px;
  }

  .rm::before,
  .rm:last-child::before {
    top: 20px;
    bottom: -8px;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .rm:last-child::before {
    background: linear-gradient(180deg, var(--line-strong), transparent);
  }

  .rm.is-current::before {
    background: linear-gradient(180deg, var(--cyan), var(--line-strong));
  }

  .rm__dot {
    top: 2px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq__a {
  padding: 0 24px 22px;
  color: var(--text-2);
}

.faq__a a {
  color: var(--cyan);
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(154, 107, 255, 0.35), transparent 60%),
    radial-gradient(80% 140% at 0% 100%, rgba(47, 224, 242, 0.2), transparent 55%),
    var(--surface);
  overflow: hidden;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.cta__text {
  max-width: 52ch;
  margin-block: 18px 28px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__mark {
  width: clamp(140px, 17vw, 220px);
  border-radius: 36px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 30px 80px -20px rgba(47, 224, 242, 0.55);
  transform: rotate(6deg);
}

@media (max-width: 760px) {
  .cta {
    grid-template-columns: 1fr;
  }

  .cta__mark {
    display: none;
  }
}

/* ---------- Stopka ---------- */

.site-footer {
  margin-top: clamp(16px, 3vw, 32px);
  padding-block: 64px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), #050409);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand p {
  max-width: 36ch;
  margin-block: 16px 20px;
  color: var(--muted);
}

.footer__col h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer__col a {
  color: var(--text-2);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Nagłówek podstron ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 88px)) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(154, 107, 255, 0.24), transparent 60%),
    radial-gradient(45% 70% at 92% 8%, rgba(47, 224, 242, 0.14), transparent 60%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(196, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 25% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 25% 0%, #000, transparent 75%);
}

.page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.page-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.page-lead {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  text-wrap: pretty;
}

/* ---------- Panele, stany, formularze ---------- */

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__title .i {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(40px, 6vw, 64px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text-2);
  text-align: center;
}

.state__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  color: var(--cyan);
}

.state__icon .i {
  width: 26px;
  height: 26px;
}

.state__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

.state p {
  max-width: 48ch;
}

.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.req {
  color: var(--ember);
}

.field__hint {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.field__error {
  color: #ff8a9d;
  font-size: 0.85rem;
}

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 6, 13, 0.6);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.textarea {
  min-height: 132px;
  line-height: 1.55;
  resize: vertical;
}

.textarea--long {
  min-height: 220px;
}

.input::placeholder,
.textarea::placeholder {
  color: #6f6890;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(7, 6, 13, 0.85);
  box-shadow: 0 0 0 4px rgba(47, 224, 242, 0.14);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 84, 112, 0.12);
}

.counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}

.counter.is-ok {
  color: var(--leaf);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}

.check a {
  color: var(--cyan);
}

.check input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin: 1px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(7, 6, 13, 0.6);
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.check input:checked {
  border-color: transparent;
  background: var(--grad);
}

.check input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #0a0714;
  border-bottom: 2px solid #0a0714;
  transform: translateY(-1px) rotate(-45deg);
}

.check input[aria-invalid="true"] {
  border-color: var(--danger);
}

.check input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.choice-group legend {
  padding: 0;
  margin-bottom: 8px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 6, 13, 0.6);
  color: var(--text-2);
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.choice input:checked + span {
  border-color: var(--cyan);
  background: rgba(47, 224, 242, 0.1);
  color: var(--text);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.choice-group[aria-invalid="true"] .choice span {
  border-color: rgba(255, 84, 112, 0.6);
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.5;
}

.notice .i {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--cyan);
}

.notice--error {
  border-color: rgba(255, 84, 112, 0.45);
  background: rgba(255, 84, 112, 0.08);
  color: #ffc2cc;
}

.notice--error .i {
  color: var(--danger);
}

.notice--ok {
  border-color: rgba(95, 217, 78, 0.4);
  background: rgba(95, 217, 78, 0.08);
  color: #c9f5c1;
}

.notice--ok .i {
  color: var(--leaf);
}

/* ---------- Powiadomienia (toast) ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100% - 32px, 460px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(23, 19, 39, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  pointer-events: auto;
  animation: toast-in 0.35s var(--ease);
}

.toast .i {
  width: 18px;
  height: 18px;
  color: var(--leaf);
}

.toast--error .i {
  color: var(--danger);
}

.toast__action {
  margin-left: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.toast__action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.toast.is-leaving {
  animation: toast-out 0.25s forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Okno dialogowe ---------- */

.modal {
  width: min(100% - 32px, 480px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(3, 2, 8, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal__body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 32px 32px;
  text-align: center;
}

.modal__body p {
  color: var(--text-2);
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(95, 217, 78, 0.14);
  color: var(--leaf);
}

.modal__icon .i {
  width: 30px;
  height: 30px;
}

.modal__icon--error {
  background: rgba(255, 84, 112, 0.14);
  color: var(--danger);
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  text-transform: uppercase;
}

/* ---------- Sklep ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.88rem;
}

.trust .i {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 -4px 28px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  flex: none;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tab .i {
  width: 17px;
  height: 17px;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.tab[aria-selected="true"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.tab--hot {
  border-color: rgba(255, 123, 46, 0.45);
  color: #ffb98f;
}

.tab--hot[aria-selected="true"] {
  border-color: transparent;
  background: var(--grad-hot);
  color: #1a0505;
}

.tab__count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.6;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 28px;
}

.shop-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}

@media (max-width: 1080px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-aside {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}

.products > * {
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.products .skeleton {
  min-height: 340px;
}

.products .state {
  grid-column: 1 / -1;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 125, 255, 0.45);
  box-shadow: 0 26px 50px -26px rgba(74, 125, 255, 0.55);
}

.product__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 22px;
  background: radial-gradient(60% 60% at 50% 55%, rgba(74, 125, 255, 0.24), transparent 70%);
}

.product__media img {
  width: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.06) translateY(-4px);
}

.product__media .i {
  width: 56px;
  height: 56px;
  color: var(--muted);
}

.product__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--grad-hot);
  color: #1a0505;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product__tag .i {
  width: 13px;
  height: 13px;
}

.product__body {
  display: grid;
  align-content: start;
  gap: 6px;
  flex: 1;
  padding: 0 20px 18px;
}

.product__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.3;
}

.product__desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.stock {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #ffb98f;
}

.stock__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stock__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-hot);
}

.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.95rem;
  line-height: 1;
  white-space: nowrap;
}

.price small {
  margin-left: 3px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.product.is-soldout .product__media,
.product.is-soldout .product__body {
  opacity: 0.5;
}

.product__foot .btn[disabled] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  opacity: 1;
}

.feed {
  display: grid;
  gap: 10px;
  list-style: none;
}

.feed li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.feed .avatar {
  grid-row: span 2;
}

.feed__who {
  overflow: hidden;
  font-weight: 600;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed__what {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed__empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--grad-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.top-spender {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-spender .avatar {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 210, 63, 0.45);
  background: rgba(255, 210, 63, 0.12);
  color: #ffd23f;
}

.top-spender .avatar .i {
  width: 22px;
  height: 22px;
}

.top-spender strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-spender span {
  color: #ffd23f;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.howto {
  display: grid;
  gap: 10px;
  counter-reset: howto;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
}

.howto li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  counter-increment: howto;
}

.howto li::before {
  content: counter(howto);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(47, 224, 242, 0.12);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Szuflada koszyka */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

.drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 8, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  border-left: 1px solid var(--line-strong);
  background: var(--bg-soft);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 18px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.drawer__body {
  flex: 1;
  padding: 18px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__foot {
  display: grid;
  gap: 14px;
  padding: 18px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.checkout {
  display: grid;
  gap: 18px;
}

.cart-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cart-item__img {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(74, 125, 255, 0.2), rgba(255, 255, 255, 0.03));
}

.cart-item__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.cart-item__img .i {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.3;
}

.cart-item__unit {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-item__total {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.qty {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
}

.qty button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text);
}

.qty button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty .i {
  width: 14px;
  height: 14px;
}

.qty output {
  min-width: 30px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
}

.summary {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
}

.summary__row span:last-child {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.summary__row--discount {
  color: var(--leaf);
}

.summary__row--total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.promo {
  display: flex;
  gap: 8px;
}

.promo .input {
  min-width: 0;
  text-transform: uppercase;
}

.promo .input::placeholder {
  text-transform: none;
}

.promo-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: 1px dashed rgba(95, 217, 78, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(95, 217, 78, 0.07);
  color: #c9f5c1;
  font-size: 0.9rem;
}

.promo-active strong {
  font-family: var(--font-mono);
  color: var(--leaf);
}

/* ---------- Administracja ---------- */

.team-group + .team-group {
  margin-top: clamp(40px, 6vw, 64px);
}

.team-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.team-group__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.team-group__count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  list-style: none;
}

.team-grid .skeleton {
  height: 92px;
}

.member {
  --role: var(--cyan);
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}

.member::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--role);
  box-shadow: 0 0 12px var(--role);
}

.member:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--role) 45%, transparent);
}

.member__avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 16px;
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--role) 55%, transparent);
}

.member__avatar.avatar {
  font-size: 1.2rem;
}

.member__info {
  min-width: 0;
}

.member__name {
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.member__handle {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--role) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--role) 12%, transparent);
  color: var(--role);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Wyróżniona karta (ranga ze „spotlight” w config.js, np. Founder) — ten sam rozmiar co reszta */

.member--spotlight {
  --gold: #ffc94a;
  border-color: transparent;
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(115deg, var(--gold), color-mix(in srgb, var(--role) 65%, transparent) 40%, var(--line) 70%) border-box;
  box-shadow: 0 16px 40px -26px color-mix(in srgb, var(--gold) 70%, transparent);
}

.member--spotlight:hover {
  border-color: transparent;
}

.member--spotlight::before {
  background: linear-gradient(var(--gold), var(--role));
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 70%, transparent);
}

.member__portrait {
  position: relative;
  display: grid;
  flex: none;
}

.member--spotlight .member__avatar {
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px -2px color-mix(in srgb, var(--gold) 55%, transparent);
}

.member__crown {
  position: absolute;
  top: -10px;
  right: -9px;
  width: 22px;
  height: 22px;
  color: var(--gold);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  transform: rotate(18deg);
}

.member--spotlight .member__name {
  width: fit-content;
  background: linear-gradient(100deg, #fff3d1, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.member--spotlight .role-pill {
  border-color: transparent;
  background: linear-gradient(100deg, var(--gold), color-mix(in srgb, var(--role) 85%, var(--gold)));
  color: #1f0e05;
}

.join-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(70% 160% at 100% 0%, rgba(154, 107, 255, 0.25), transparent 60%),
    var(--surface);
}

.join-band h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.join-band p {
  margin-top: 8px;
  color: var(--text-2);
}

/* ---------- Podania ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.app-card {
  --accent: var(--cyan);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    var(--surface);
  color: inherit;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  animation: rise 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.app-card__bg {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: -1;
  width: 130px;
  height: 130px;
  color: var(--accent);
  opacity: 0.09;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.app-card:hover .app-card__bg {
  opacity: 0.16;
  transform: rotate(-8deg) scale(1.06);
}

.app-card__bg .i {
  width: 100%;
  height: 100%;
}

.app-card__group {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.app-card__desc {
  color: var(--text-2);
  font-size: 0.95rem;
}

.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.app-card__go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.app-card:hover .app-card__go {
  border-color: transparent;
  background: var(--accent);
  color: #0a0714;
  transform: translateX(3px);
}

.app-card.is-closed {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-card.is-closed:hover {
  transform: none;
  border-color: var(--line);
}

.app-card.is-closed:hover .app-card__go {
  border-color: var(--line-strong);
  background: none;
  color: inherit;
  transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status--closed {
  color: var(--muted);
}

.status--closed::before {
  box-shadow: none;
}

.app-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
  list-style: none;
}

.app-tips li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.94rem;
}

.app-tips strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

@media (max-width: 860px) {
  .app-tips {
    grid-template-columns: 1fr;
  }
}

.app-form {
  max-width: 840px;
  margin-inline: auto;
}

.app-form__head {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: 28px;
}

.app-form__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.app-form__intro {
  max-width: 62ch;
  color: var(--text-2);
}

.form-block {
  display: grid;
  gap: 22px;
  margin-bottom: 16px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.form-block__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.form-block__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.draft-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.draft-note .i {
  width: 15px;
  height: 15px;
}

.result-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) 24px;
  border: 1px solid rgba(95, 217, 78, 0.4);
  border-radius: 28px;
  background: radial-gradient(80% 100% at 50% 0%, rgba(95, 217, 78, 0.14), transparent 60%), var(--surface);
  text-align: center;
}

.result-card p {
  max-width: 46ch;
  color: var(--text-2);
}

/* ---------- Regulaminy ---------- */

.rules-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-block: 14px;
  background: rgba(7, 6, 13, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 0 0 100vmax rgba(7, 6, 13, 0.9);
  clip-path: inset(0 -100vmax -1px);
}

.seg {
  display: inline-flex;
  flex: none;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.seg button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.seg button:hover {
  color: var(--text);
}

.seg button[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
}

.search {
  position: relative;
  flex: 1 1 260px;
}

.search .i {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search .input {
  padding-left: 42px;
}

.search .input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.6);
}

.toc-select {
  display: none;
  flex: 1 1 100%;
}

.search-meta {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.search-meta:empty {
  display: none;
}

.rules-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 100px);
  max-height: calc(100vh - var(--header-h) - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.toc ol {
  display: grid;
  gap: 2px;
  list-style: none;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.toc a span {
  min-width: 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  opacity: 0.75;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.toc a.is-active {
  color: var(--text);
  background: rgba(47, 224, 242, 0.08);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.toc a.is-empty {
  opacity: 0.35;
}

@media (max-width: 960px) {
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .toc-select {
    display: block;
  }

  /* na telefonie pasek nie przykleja się — zostaje więcej miejsca na treść */
  .rules-toolbar {
    position: static;
    box-shadow: none;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .seg {
    flex: 1 1 100%;
  }

  .seg button {
    flex: 1;
    padding: 0 10px;
  }
}

.rules-sec {
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  /* + scroll-padding z <html> (wysokość nagłówka) = miejsce na przyklejony pasek wyszukiwania */
  scroll-margin-top: 84px;
}

.rules-sec + .rules-sec {
  margin-top: 16px;
}

.rules-sec__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.rules-sec__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.8;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-sec__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.rules-list {
  display: grid;
  gap: 2px;
  list-style: none;
}

.rule {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  margin-inline: -12px;
  padding: 10px 12px;
  border-radius: 12px;
  scroll-margin-top: 92px;
  transition: background-color 0.3s;
}

@media (max-width: 960px) {
  .rules-sec,
  .rule {
    scroll-margin-top: 0;
  }
}

.rule:hover {
  background: rgba(255, 255, 255, 0.025);
}

.rule.is-flash,
.rule:target {
  background: rgba(47, 224, 242, 0.09);
  box-shadow: inset 2px 0 0 var(--cyan);
}

.rule__num {
  align-self: start;
  padding-top: 2px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
}

.rule__num:hover {
  text-decoration: underline;
}

.rule--plain {
  grid-template-columns: minmax(0, 1fr);
}

.rule__text {
  color: var(--text-2);
}

.rule__text a {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.rule__text ul {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  list-style: none;
}

.rule__text li {
  position: relative;
  padding-left: 18px;
}

.rule__text li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

mark {
  border-radius: 3px;
  padding: 0 1px;
  background: rgba(255, 123, 46, 0.34);
  color: #fff;
}

.limits {
  display: grid;
  gap: 24px;
}

.limit-group__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
}

.limit-group__note {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.86rem;
}

.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.limit {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 6, 13, 0.5);
}

.limit__name {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}

.limit__rows {
  display: grid;
  gap: 4px;
  margin: 0;
}

.limit__rows div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.limit__rows dt {
  color: var(--muted);
}

.limit__rows dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  text-align: right;
}

.limit--text {
  color: var(--text-2);
  font-size: 0.92rem;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 0;
}

.glossary > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 6, 13, 0.5);
}

.glossary dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.glossary dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.rules-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text-2);
}

.is-filtered-out {
  display: none !important;
}

/* ---------- 404 ---------- */

.e404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
  text-align: center;
}

.e404__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.e404__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(8rem, 32vw, 18rem);
  line-height: 0.8;
}

.e404 p {
  max-width: 44ch;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- Animacje wejścia ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker__track {
    animation: none;
  }
}
