.teszt-page {
  padding-block: var(--space-7) var(--space-9);
}

.teszt-page .teszt-section + .teszt-section {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.teszt-page .teszt-hero {
  margin-top: 0;
}

.teszt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
  align-items: center;
  gap: var(--space-7);
}

.teszt-hero__grid > * {
  min-width: 0;
  width: 100%;
}

.teszt-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-4);
}

.teszt-hero__copy h1,
.teszt-hero__copy p,
.teszt-hero__copy nav {
  margin: 0;
}

.teszt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: var(--space-2);
  color: var(--color-ink-muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.teszt-breadcrumb > * {
  min-width: 0;
}

.teszt-hero__copy .lead {
  max-width: 42.5rem;
}

.teszt-hero__independence {
  max-width: 39rem;
  color: var(--color-ink-muted);
}

.teszt-play-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-2);
}

.teszt-play-action > * {
  min-width: 0;
}

.teszt-play-action .meta {
  max-width: 26.25rem;
}

.teszt-play-action__button {
  min-height: 3rem;
  box-shadow: var(--shadow-floating);
}

.teszt-hero__figure {
  width: 100%;
  margin: 0;
}

.teszt-hero__figure img {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper-cool);
}

.teszt-facts {
  padding-block: var(--space-7);
  background: var(--color-paper-cool);
}

.teszt-facts__heading {
  max-width: 42.5rem;
}

.teszt-facts__heading > :first-child,
.teszt-facts__heading > :last-child {
  margin-bottom: 0;
}

.teszt-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(15rem, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
}

.teszt-facts__grid > div {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.teszt-facts__grid dt {
  margin-bottom: var(--space-2);
  color: var(--color-ink-muted);
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.teszt-facts__grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.teszt-status {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.teszt-status--safe { background: #dceee4; }
.teszt-status--warning { background: #fde5cf; }
.teszt-status--danger { background: #f9d8d5; }
.teszt-status--info { background: #dceafa; }

.teszt-facts__source {
  margin: var(--space-4) 0 0;
}

.teszt-gameplay__intro {
  width: min(100%, 45rem);
}

.teszt-gameplay__intro > :last-child {
  margin-bottom: 0;
}

.teszt-gameplay__cards,
.teszt-hazards__cards,
.teszt-verdict__routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.teszt-gameplay__cards > *,
.teszt-hazards__cards > *,
.teszt-verdict__routes > * {
  min-width: 0;
  width: 100%;
}

.teszt-note-card,
.teszt-hazard-card,
.teszt-route-card,
.teszt-support-card,
.teszt-monetization-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-top-width: 3px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.teszt-note-card > *,
.teszt-hazard-card > *,
.teszt-route-card > *,
.teszt-support-card > *,
.teszt-monetization-card > * {
  min-width: 0;
  margin: 0;
}

.teszt-note-card h3,
.teszt-hazard-card h3,
.teszt-route-card h3,
.teszt-support-card h3,
.teszt-monetization-card h3 {
  margin: 0;
  font-size: var(--text-card-title);
}

.teszt-note-card--yellow { border-top-color: var(--color-sun-yellow); background: var(--color-paper-cool); }
.teszt-note-card--blue { border-top-color: var(--color-route-blue); }
.teszt-note-card--green { border-top-color: var(--color-safe-green); }

.teszt-movement__grid {
  display: grid;
  grid-template-columns: minmax(24.375rem, 46fr) minmax(28.75rem, 54fr);
  align-items: start;
  gap: var(--space-6);
}

.teszt-movement__grid > * {
  min-width: 0;
  width: 100%;
}

.teszt-movement__copy {
  max-width: 36.25rem;
}

.teszt-movement__copy > :last-child {
  margin-bottom: 0;
}

.teszt-label-safe { color: var(--color-safe-green); }

.teszt-movement__diagram-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: var(--space-3);
}

.teszt-diagram-hint {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.diagram-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
}

.teszt-route-diagram {
  width: 47.5rem;
  min-width: 47.5rem;
  max-width: none;
}

.teszt-diagram-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-meta);
  line-height: var(--leading-meta);
}

.teszt-diagram-legend li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-2);
}

.teszt-key {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  border: 2px solid var(--color-ink);
}

.teszt-key--ball { border-radius: 50%; background: var(--color-ball-red); }
.teszt-key--route { width: 1.5rem; height: 0.5rem; border-width: 0 0 3px; border-color: var(--color-route-blue); }
.teszt-key--safe { background: var(--color-safe-green); }
.teszt-key--danger { background: var(--color-warning-orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.teszt-key--observe { border-radius: 50%; background: var(--color-sun-yellow); }

.teszt-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style-position: inside;
}

.teszt-steps li {
  min-width: 0;
  padding: var(--space-4);
  border-left: 3px solid var(--color-route-blue);
  background: var(--color-paper-cool);
}

.teszt-movement__closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 39rem);
  min-width: 0;
  gap: var(--space-3);
  margin-top: var(--space-6);
  border-top: 3px solid var(--color-route-blue);
}

.teszt-movement__closing > * { margin: 0; min-width: 0; }
.teszt-movement__closing h3 { margin: 0; }

.teszt-levels__fact {
  width: min(100%, 47.5rem);
}

.teszt-levels__fact h2 strong {
  color: var(--color-route-blue);
}

.teszt-levels__fact > :last-child { margin-bottom: 0; }

.teszt-levels__copy {
  width: min(100%, 42.5rem);
  margin-top: var(--space-6);
}

.teszt-levels__copy > * { min-width: 0; }
.teszt-levels__copy > :last-child { margin-bottom: 0; }

.teszt-margin-note {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-safe-green);
  color: var(--color-ink);
}

.teszt-levels__link {
  width: min(100%, 35rem);
  margin-top: var(--space-5);
}

.teszt-physics__layout {
  display: grid;
  grid-template-columns: minmax(0, 45rem) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.teszt-physics__layout > * { min-width: 0; }

.teszt-physics__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-5);
}

.teszt-physics__copy > * { min-width: 0; margin: 0; }
.teszt-physics__copy h2 { margin: 0; }

.teszt-physics__observation,
.teszt-physics__advice {
  width: min(100%, 37.5rem);
}

.teszt-physics__observation > :last-child,
.teszt-physics__advice > :last-child { margin-bottom: 0; }

.teszt-physics__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-left: 3px solid var(--color-route-blue);
}

.teszt-physics__marker span {
  color: var(--color-route-blue);
  font-family: var(--font-heading);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.teszt-hazards__intro {
  width: min(100%, 43.75rem);
}

.teszt-hazards__intro .cluster { margin-bottom: var(--space-4); }
.teszt-hazards__intro > :last-child { margin-bottom: 0; }

.teszt-hazard-card--warning { border-top-color: var(--color-warning-orange); }
.teszt-hazard-card--safe { border-top-color: var(--color-safe-green); }
.teszt-hazard-card--blue { border-top-color: var(--color-route-blue); }

.teszt-hazards__link {
  width: min(100%, 43.75rem);
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
}

.teszt-bosses > .container > h2 { width: min(100%, 42.5rem); }

.teszt-spoiler {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-2);
  width: 100%;
  margin: var(--space-5) 0 0;
}

.teszt-spoiler > * { min-width: 0; margin: 0; }

.teszt-bosses__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 42.5rem);
  min-width: 0;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.teszt-bosses__copy > * { min-width: 0; margin: 0; }

.teszt-bosses__note {
  width: 100%;
}

.teszt-bosses__note h3 { margin-top: 0; }
.teszt-bosses__note > :last-child { margin-bottom: 0; }

.teszt-bosses__link a,
.teszt-support__link a,
.teszt-hazards__link a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.375rem;
}

.teszt-support__heading,
.teszt-monetization__heading {
  width: min(100%, 42.5rem);
}

.teszt-support__cards,
.teszt-monetization__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.teszt-support__cards > *,
.teszt-monetization__facts > * { min-width: 0; width: 100%; }

.teszt-support-card { background: var(--color-paper-cool); }
.teszt-support-card--offline { border-top-color: var(--color-route-blue); }
.teszt-support-card--controller { border-top-color: var(--color-safe-green); }

.teszt-support__link {
  width: min(100%, 35rem);
  margin: var(--space-5) 0 0;
}

.teszt-monetization-card {
  background: var(--color-paper-cool);
  border-top-color: var(--color-route-blue);
}

.teszt-monetization__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, auto);
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
  border-top: 3px solid var(--color-ball-red);
}

.teszt-monetization__cta > * { min-width: 0; }
.teszt-monetization__cta p:last-child { margin-bottom: 0; }

.teszt-verdict__copy {
  width: min(100%, 45rem);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-ball-red);
}

.teszt-verdict__copy > :last-child { margin-bottom: 0; }

.teszt-route-card--blue { border-top-color: var(--color-route-blue); }
.teszt-route-card--green { border-top-color: var(--color-safe-green); }
.teszt-route-card--orange { border-top-color: var(--color-warning-orange); }

.teszt-route-card a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: auto;
}

.teszt-verdict__closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, auto);
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  border-top: 2px solid var(--color-line);
}

.teszt-verdict__closing > * { min-width: 0; }
.teszt-verdict__closing p { margin: 0; }
.teszt-verdict__closing .meta { max-width: 38.75rem; margin-top: var(--space-2); }

@media (max-width: 63.99rem) {
  .teszt-hero__grid { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: var(--space-6); }
  .teszt-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teszt-gameplay__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teszt-movement__grid { grid-template-columns: 1fr; }
  .teszt-movement__copy { max-width: 36.25rem; }
  .teszt-physics__layout { grid-template-columns: minmax(0, 45rem); }
  .teszt-physics__marker { display: none; }
  .teszt-verdict__routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 61.24rem) {
  .teszt-hazards__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 57.49rem) {
  .teszt-hero__grid { grid-template-columns: 1fr; }
  .teszt-hero__copy { max-width: 42.5rem; }
  .teszt-hero__figure { max-width: 40rem; }
}

@media (max-width: 48.74rem) {
  .teszt-support__cards,
  .teszt-monetization__facts { grid-template-columns: 1fr; }
  .teszt-monetization__cta,
  .teszt-verdict__closing { grid-template-columns: 1fr; }
  .teszt-monetization__cta .teszt-play-action,
  .teszt-verdict__closing .teszt-play-action { width: 100%; }
}

@media (max-width: 43.74rem) {
  .teszt-gameplay__cards,
  .teszt-hazards__cards,
  .teszt-verdict__routes,
  .teszt-steps { grid-template-columns: 1fr; }
}

@media (max-width: 47.99rem) {
  .teszt-page { padding-block: var(--space-6) var(--space-8); }
  .teszt-page .teszt-section + .teszt-section { margin-top: clamp(2.5rem, 12vw, 3.5rem); }
  .teszt-facts { padding-block: var(--space-6); }
  .teszt-facts__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .teszt-facts__grid > div { padding: var(--space-3); }
  .teszt-note-card,
  .teszt-hazard-card,
  .teszt-route-card,
  .teszt-support-card,
  .teszt-monetization-card { padding: var(--space-4); }
  .teszt-hero__copy .lead { max-width: none; }
  .teszt-hero__independence { max-width: none; }
  .teszt-play-action,
  .teszt-play-action__button { width: 100%; }
  .teszt-route-diagram { width: 38.75rem; min-width: 38.75rem; }
  .teszt-diagram-legend { flex-direction: column; align-items: flex-start; }
  .teszt-movement__closing,
  .teszt-levels__link,
  .teszt-physics__observation,
  .teszt-physics__advice { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .teszt-page * { scroll-behavior: auto; }
}
