/* Страница «Об игре»: стили ограничены блоком .about-game */
.about-game,
.about-game *,
.about-game *::before,
.about-game *::after {
  box-sizing: border-box;
}

.about-game {
  width: min(1240px, calc(100% - 40px));
  margin: 40px auto 80px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-radius: 28px;
  background: #f6f2e8;
  color: #102c28;
  font-family: "Manrope", system-ui, sans-serif;
}

.about-game__intro {
  grid-column: 1 / -1;
  padding: clamp(32px, 6vw, 78px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(239, 188, 72, 0.24), transparent 34%),
    linear-gradient(135deg, #07372f 0%, #0d5142 100%);
  color: #fffdf7;
}

.about-game__eyebrow {
  margin: 0 0 22px;
  color: #ffd875;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-game__intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.about-game__intro > p:not(.about-game__eyebrow) {
  max-width: 690px;
  margin: 24px 0 30px;
  color: rgba(255, 253, 247, 0.84);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.about-game__intro a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: #efbc48;
  color: #102c28;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.about-game__intro a:hover {
  background: #ffd875;
  transform: translateY(-2px);
}

.about-game__intro a:focus-visible {
  outline: 3px solid #fffdf7;
  outline-offset: 4px;
}

.about-game__section {
  min-width: 0;
  padding: 34px 30px;
  border: 1px solid rgba(16, 44, 40, 0.1);
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: 0 16px 42px rgba(18, 45, 39, 0.07);
}

.about-game__section h2 {
  margin: 0 0 18px;
  color: #083931;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-game__section p {
  margin: 0;
  color: #52635d;
  font-size: 15px;
  line-height: 1.75;
}

/* Шапка только страницы «Об игре» */
.about-header {
  background: #07372f;
  color: #fffdf7;
  font-family: "Manrope", system-ui, sans-serif;
}

.about-header,
.about-header * {
  box-sizing: border-box;
}

.about-header__inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.about-header__brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.about-header__brand span {
  display: grid;
  gap: 2px;
}

.about-header__brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.about-header__brand small {
  color: rgba(255, 253, 247, 0.67);
  font-size: 10px;
}

.about-header__nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.about-header__nav a {
  flex: 0 0 auto;
  padding: 10px 0;
  color: rgba(255, 253, 247, 0.78);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.about-header__nav a:hover,
.about-header__nav a[aria-current="page"] {
  color: #ffd875;
}

.about-header__action {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(255, 253, 247, 0.55);
  border-radius: 10px;
  color: #fffdf7;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.about-header__action:hover {
  border-color: #ffd875;
  color: #ffd875;
}

.about-header a:focus-visible {
  outline: 3px solid #ffd875;
  outline-offset: 4px;
}

/* Только эта страница подключает файл: шапка и подвал занимают всю ширину */
body {
  margin: 0;
}

/* Подвал страницы «Об игре» */
.about-footer {
  background: #07372f;
  color: rgba(255, 253, 247, 0.72);
  font-family: "Manrope", system-ui, sans-serif;
}

.about-footer,
.about-footer * {
  box-sizing: border-box;
}

.about-footer__inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.about-footer__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: #fffdf7;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.about-footer__brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.about-footer__right {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.about-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.about-footer__nav a {
  color: rgba(255, 253, 247, 0.76);
  font-size: 11px;
  text-decoration: none;
}

.about-footer__nav a:hover {
  color: #ffd875;
}

.about-footer a:focus-visible {
  outline: 3px solid #ffd875;
  outline-offset: 4px;
}

.about-footer__right small {
  color: rgba(255, 253, 247, 0.48);
  font-size: 10px;
}

@media (max-width: 700px) {
  .about-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 28px 0;
  }

  .about-footer__right {
    justify-items: start;
  }

  .about-footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 950px) {
  .about-header__inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px 0;
  }

  .about-header__nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  .about-header__action {
    margin-left: auto;
  }
}

@media (max-width: 850px) {
  .about-game {
    grid-template-columns: 1fr;
  }

  .about-game__intro {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .about-game {
    width: calc(100% - 24px);
    margin: 20px auto 48px;
    padding: 12px;
    gap: 12px;
    border-radius: 18px;
  }

  .about-game__intro {
    padding: 30px 24px;
    border-radius: 16px;
  }

  .about-game__section {
    padding: 26px 22px;
    border-radius: 16px;
  }
}

/* Только страница «Как начать»: тёплый фон и чередование разделов */
.howto-wrapper {
  padding: 28px 0 72px;
  background: linear-gradient(180deg, #eee9df 0%, #e6ded0 100%);
}

.howto-wrapper .about-game {
  margin-top: 0;
  margin-bottom: 28px;
  background: #e4dccd;
  box-shadow: 0 12px 36px rgba(17, 49, 38, 0.06);
}

.howto-wrapper .about-game:nth-child(even) {
  background: #dfe5da;
}

.howto-wrapper .about-game__section {
  background: #f8f5ef;
}

.howto-wrapper .about-game__section:nth-child(even) {
  background: #edf1e9;
}

.howto-wrapper .howto-phase {
  grid-column: 1 / -1;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 16px;
  background: #12483c;
  box-shadow: 0 10px 24px rgba(7, 55, 47, 0.12);
}

.howto-wrapper .howto-phase__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #f0c765;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.howto-wrapper .howto-phase h2 {
  margin: 0;
  color: #fffdf7;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

@media (max-width: 560px) {
  .howto-wrapper {
    padding: 16px 0 40px;
  }

  .howto-wrapper .about-game {
    margin-bottom: 16px;
  }
}

@keyframes howto-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.howto-wrapper .about-game:first-child .about-game__intro {
  animation: howto-appear 2000ms ease-in-out both;
}

.howto-wrapper .about-game.will-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 2400ms ease-in-out, transform 1100ms ease-in-out;
}

.howto-wrapper .about-game.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.howto-wrapper .about-game__section {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .howto-wrapper .about-game__section:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(18, 45, 39, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .howto-wrapper .about-game:first-child .about-game__intro {
    animation: none;
  }

  .howto-wrapper .about-game.will-reveal,
  .howto-wrapper .about-game.will-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .howto-wrapper .about-game__section {
    transition: none;
  }

  .howto-wrapper .about-game__section:hover {
    transform: none;
  }
}