/* Arkanea — strona domowa.
   Tokeny kolorów i typografii są przepisane z sm-mobile/src/ui/theme/tokens.ts.
   Żadnej nowej barwy poza paletą aplikacji. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('assets/fonts/Karla_400Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('assets/fonts/Karla_600SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('assets/fonts/Karla_700Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #12100d;
  --bg-elevated: #1a1712;
  --bg-sunken: #100e0b;
  --line: rgba(216, 177, 90, 0.14);
  --line-neutral: rgba(255, 255, 255, 0.07);
  --text: #ede3d0;
  --text-strong: #f3e9d5;
  --text-muted: #8c7f68;
  --text-faint: #6f6553;
  --gold: #d8b15a;
  --gold-bright: #f0ce84;
  --gold-dim: rgba(216, 177, 90, 0.16);

  --courage: #f0b65c;
  --courage-bg: #2a1608;
  --wisdom: #93c0ff;
  --wisdom-bg: #111a2e;
  --loyalty: #7fc49b;
  --loyalty-bg: #0f1c13;
  --chaos: #c79bf7;
  --chaos-bg: #1b1030;

  --mage: #cbd8ff;
  --spell-cyan: #8fd3e8;
  --underground: #9b6be0;
  --debate: #e0533d;

  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: min(1160px, 100% - 2.5rem);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

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

::selection {
  background: rgba(216, 177, 90, 0.28);
  color: #fff8e8;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #12100d;
  padding: 10px 16px;
  font: 700 14px var(--body);
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* ── Nagłówek ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(18, 16, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header[data-scrolled='true'] {
  border-bottom-color: var(--line);
  background: rgba(18, 16, 13, 0.92);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-strong);
  margin-right: auto;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 26px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--text-strong);
}

/* ── Przyciski ────────────────────────────────────────────── */

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 15px;
  border-radius: 13px;
  border: 1px solid rgba(216, 177, 90, 0.34);
  background: linear-gradient(160deg, #241f17, #171310);
  color: var(--text-strong);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.store-badge:hover {
  border-color: rgba(240, 206, 132, 0.7);
  background: linear-gradient(160deg, #2c261b, #1b1712);
  transform: translateY(-1px);
}
.store-badge svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--gold-bright);
}
.store-badge .store-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-badge .store-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.store-badge .store-name {
  font-size: 15px;
  font-weight: 700;
}

.store-badge--small {
  padding: 8px 14px 8px 12px;
  border-radius: 11px;
}
.store-badge--small svg {
  width: 17px;
  height: 17px;
}
.store-badge--small .store-name {
  font-size: 13px;
}
.store-badge--small .store-kicker {
  font-size: 9px;
}

.stores-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── Sekcje ───────────────────────────────────────────────── */

.section {
  padding: 104px 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--line-neutral);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 44px);
}
.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17.5px;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: -20% -10% auto;
  height: 150%;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 50% at 50% 0%,
      rgba(216, 177, 90, 0.13),
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 40% at 84% 22%,
      rgba(147, 192, 255, 0.07),
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 12% 40%,
      rgba(199, 155, 247, 0.06),
      transparent 70%
    );
}

.hero-seal {
  position: absolute;
  top: -190px;
  right: -180px;
  width: 720px;
  height: 720px;
  opacity: 0.5;
  pointer-events: none;
  animation: turn 220s linear infinite;
}

.hero-stars span {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
  animation: twinkle 5.5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-lead {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  max-width: 34em;
}

.hero-sub {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 34em;
}

.hero .stores {
  margin-top: 34px;
}

.hero-quote {
  margin-top: 44px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  max-width: 30em;
}
.hero-quote p {
  font-family: var(--display);
  font-size: 20px;
  color: var(--text-strong);
}
.hero-quote cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Atrapa telefonu ──────────────────────────────────────── */

.device {
  position: relative;
  width: 318px;
  flex: none;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a251c, #14110d 55%, #26211a);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(216, 177, 90, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.device::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  border-radius: 14px;
  background: #080705;
  z-index: 3;
}
.device-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  height: 660px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.device-topbar {
  padding: 52px 15px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 13, 0.9);
  flex: none;
}
.device-topbar .t-title {
  font-family: var(--display);
  font-size: 19px;
  color: var(--text-strong);
  line-height: 1.15;
}
.device-topbar .t-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.device-body {
  flex: 1;
  min-height: 0;
  padding: 14px 15px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.device-body--end {
  justify-content: flex-end;
}
/* Strumień, który nie zaczyna się od pierwszej wiadomości, ma znikać u góry,
   a nie urywać się w pół wiersza — tak samo lista pokoi u dołu. */
.device-body--fade-top {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34px);
  mask-image: linear-gradient(to bottom, transparent, #000 34px);
}
.device-body--fade-bottom {
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - 40px),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
}

/* pasek obecnych + skróty funkcji pokoju */
.device-strip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line-neutral);
}
.presence {
  display: flex;
}
.presence span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid rgba(18, 16, 13, 0.9);
  margin-left: -7px;
}
.presence span:first-child {
  margin-left: 0;
}
.device-strip .more {
  font-size: 10.5px;
  color: var(--text-faint);
}
.device-strip .chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 14px;
  border: 1px solid rgba(216, 177, 90, 0.35);
  background: rgba(216, 177, 90, 0.07);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.device-strip .chip i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 1px;
}

.device-composer {
  flex: none;
  padding: 10px 12px 26px;
  border-top: 1px solid var(--line-neutral);
  background: var(--bg-sunken);
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.device-composer .c-spell {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(160deg, #241f17, #171310);
  border: 1px solid rgba(216, 177, 90, 0.45);
  display: grid;
  place-items: center;
  flex: none;
  animation: bob 3.4s ease-in-out infinite;
}
.device-composer .c-spell i {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.device-composer .c-field {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-dim);
  border-radius: 19px;
  padding: 9px 14px;
  color: #7a6e59;
  font-size: 13.5px;
}
.device-composer .c-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 15px;
}

.device-tabs {
  flex: none;
  display: flex;
  border-top: 1px solid var(--line-neutral);
  background: var(--bg-sunken);
  padding: 9px 4px 24px;
}
.device-tabs span {
  flex: 1;
  text-align: center;
  font-size: 9.5px;
  color: var(--text-faint);
}
.device-tabs span i {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto 5px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.device-tabs span.is-active {
  color: var(--gold);
}

/* wiersz wiadomości */
.msg {
  display: flex;
  gap: 10px;
  position: relative;
}
.msg .av {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--display);
  font-size: 14px;
  background: #241f17;
  border: 1px solid rgba(216, 177, 90, 0.45);
  color: var(--gold-bright);
}
.msg .body {
  flex: 1;
  min-width: 0;
}
.msg .meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.msg .who {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gold-bright);
}
.msg .when {
  font-size: 10.5px;
  color: var(--text-faint);
}
.msg .text {
  font-size: 14px;
  line-height: 1.45;
  color: #e4dac7;
  margin-top: 3px;
}

.role-tag {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 2px 4px;
  line-height: 1;
}

.spell-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.spell-caption b {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spell-caption span {
  font-size: 10.5px;
  color: var(--text-faint);
}

/* wiersz pokoju */
.room-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.room-row .tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(216, 177, 90, 0.4);
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(216, 177, 90, 0.06);
}
.room-row .tile svg {
  width: 20px;
  height: 20px;
}
.room-row .rn {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong);
}
.room-row .rp {
  font-size: 12px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-row .badge {
  margin-left: auto;
  flex: none;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.room-group {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Czym jest ────────────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 22px;
}
.pillar {
  padding: 26px 24px 28px;
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.028),
    rgba(255, 255, 255, 0)
  );
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.pillar svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar h3 {
  font-size: 22px;
  margin: 16px 0 8px;
}
.pillar p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ── Domy ─────────────────────────────────────────────────── */

.houses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.house {
  --accent: var(--gold);
  --accent-bg: var(--bg-elevated);
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: linear-gradient(
    170deg,
    var(--accent-bg),
    rgba(18, 16, 13, 0.55) 78%
  );
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.house::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 68%
  );
  filter: blur(18px);
  pointer-events: none;
}
.house:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.house .crest {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.house .crest svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.house h3 {
  position: relative;
  font-size: 26px;
  margin: 18px 0 4px;
}
.house .traits {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.house p {
  position: relative;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

.houses-note {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(216, 177, 90, 0.045);
  color: var(--text-muted);
  font-size: 15px;
}
.houses-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  margin-top: 2px;
}
.houses-note b {
  color: var(--text-strong);
  font-weight: 600;
}

/* ── Układ dwukolumnowy z atrapą ──────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 68px;
  align-items: center;
}
.split--reverse {
  grid-template-columns: auto minmax(0, 1fr);
}
.split--reverse .split-copy {
  order: 2;
}

.feature-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}
.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-list b {
  display: block;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 16px;
}
.feature-list p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 3px;
}

/* ── Hierarchia ───────────────────────────────────────────── */

.ladder {
  display: grid;
  gap: 12px;
  counter-reset: rung;
}
.rung {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 17px 22px;
  border: 1px solid var(--line-neutral);
  border-radius: 14px;
  background: linear-gradient(
    100deg,
    rgba(216, 177, 90, calc(var(--step) * 0.028)),
    rgba(255, 255, 255, 0.012)
  );
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.rung:hover {
  border-color: var(--line);
  transform: translateX(3px);
}
.rung .step {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.rung .who {
  font-family: var(--display);
  font-size: 24px;
  color: var(--text-strong);
}
.rung .how {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 2px;
}
.rung .term {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 13px;
  white-space: nowrap;
}
.rung--gold {
  border-color: rgba(216, 177, 90, 0.32);
  background: linear-gradient(
    100deg,
    rgba(216, 177, 90, 0.1),
    rgba(216, 177, 90, 0.02)
  );
}
.rung--gold .who {
  color: var(--gold-bright);
}

.side-roles {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.side-role {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.side-role b {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  color: var(--accent);
}
.side-role span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 14px;
}

.grade-card {
  margin-top: 34px;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  max-width: 520px;
}
.grade-card .gc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.grade-card .gc-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--text-strong);
}
.grade-card .gc-xp {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.grade-card .gc-bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.grade-card .gc-bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}
.grade-card .gc-steps {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}
.grade-card .gc-steps i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.grade-card .gc-steps i.on {
  background: var(--gold);
}
.grade-card .gc-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Zaklęcia ─────────────────────────────────────────────── */

.spell-levels {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(143, 211, 232, 0.05);
}
.spell-levels b {
  color: var(--spell-cyan);
  font-family: var(--display);
  font-size: 20px;
}
.spell-levels p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}
.level-scale {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}
.level-scale i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    180deg,
    var(--spell-cyan),
    rgba(143, 211, 232, 0.15)
  );
  opacity: 0.85;
}

/* ── Aktywności ───────────────────────────────────────────── */

.activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 18px;
}
.activity {
  --accent: var(--gold);
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-neutral);
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.026),
    rgba(255, 255, 255, 0)
  );
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.activity:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}
.activity .a-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.activity .a-mark svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.activity h3 {
  font-size: 21px;
  margin: 15px 0 7px;
}
.activity p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ── Wezwanie końcowe ─────────────────────────────────────── */

.closing {
  position: relative;
  padding: 112px 0 120px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-neutral);
}
.closing-glow {
  position: absolute;
  left: 50%;
  top: -140px;
  width: 780px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(216, 177, 90, 0.16),
    transparent 66%
  );
  pointer-events: none;
}
.closing-mark {
  position: relative;
  width: 74px;
  margin: 0 auto 26px;
  animation: breathe 7s ease-in-out infinite;
}
.closing h2 {
  position: relative;
  font-size: clamp(34px, 5.4vw, 54px);
}
.closing p {
  position: relative;
  margin: 18px auto 0;
  max-width: 44ch;
  color: var(--text-muted);
  font-size: 18px;
}
.closing .stores {
  position: relative;
  margin-top: 34px;
  justify-content: center;
}

/* ── Stopka ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-neutral);
  padding: 44px 0 56px;
  background: var(--bg-sunken);
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .f-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.site-footer .f-brand img {
  height: 26px;
  width: auto;
  display: block;
}
.site-footer small {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Animacje ─────────────────────────────────────────────── */

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.045);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes ring {
  0% {
    transform: scale(0.65);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@keyframes echoout {
  0% {
    opacity: 0.45;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(18px);
  }
}
@keyframes fall {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(46px);
    opacity: 0;
  }
}
@keyframes fog {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(145%);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-30%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(60%);
    opacity: 0;
  }
}
@keyframes frost {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* efekty zaklęć w atrapie */
.fx-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(240, 206, 132, 0.5);
  border-radius: 16px;
  animation: ring 2.6s ease-out infinite;
}
.fx-glow {
  position: absolute;
  left: -6px;
  top: -12px;
  width: 130px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 206, 132, 0.24),
    transparent 68%
  );
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.fx-echo {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--wisdom);
  animation: echoout 2.4s ease-out infinite;
}
.fx-confetti i {
  position: absolute;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.fx-fog {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(150, 142, 128, 0.4),
    transparent
  );
  animation: fog 4.5s linear infinite;
}
.fx-wind {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 16px;
  overflow: hidden;
}
.fx-wind i {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 70%;
  height: 22px;
  border-radius: 50%;
  border-top: 1.5px solid rgba(143, 211, 232, 0.8);
  animation: shimmer 3.2s ease-in-out infinite;
}
.fx-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--mage);
  animation: frost 2.6s ease-in-out infinite;
}

/* ── Wejście sekcji ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Responsywność ────────────────────────────────────────── */

@media (max-width: 1040px) {
  .hero-inner,
  .split,
  .split--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    justify-items: center;
  }
  .hero-copy,
  .split-copy {
    max-width: 640px;
    justify-self: start;
  }
  .split--reverse .split-copy {
    order: 0;
  }
  .hero-seal {
    top: -240px;
    right: -300px;
    opacity: 0.35;
  }
}

@media (max-width: 780px) {
  .site-nav,
  .site-header .stores {
    display: none;
  }
  .section {
    padding: 76px 0;
  }
  .hero {
    padding: 46px 0 72px;
  }
  .rung {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .rung .step {
    display: none;
  }
  .rung .term {
    justify-self: start;
    margin-top: 6px;
  }
}

@media (max-width: 400px) {
  :root {
    --shell: min(1160px, 100% - 1.75rem);
  }
  .device {
    width: 100%;
    max-width: 318px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
