:root {
  --bg: #fff5f7;
  --bg-soft: #fffafc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #352330;
  --muted: #6d5260;
  --pink: #ffa7c4;
  --pink-strong: #ff4081;
  --plum: #5e264f;
  --plum-dark: #341428;
  --gold: #c89a5a;
  --border: rgba(94, 38, 79, 0.14);
  --shadow: 0 20px 50px rgba(74, 20, 55, 0.12);
  --shadow-strong: 0 28px 64px rgba(74, 20, 55, 0.18);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 245, 247, 0.98), rgba(255, 250, 252, 0.98)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 167, 196, 0.08) 0,
      rgba(255, 167, 196, 0.08) 1px,
      transparent 1px,
      transparent 76px
    );
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Serif SC", "Source Han Serif SC", serif;
  line-height: 1.72;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 245, 247, 0.88);
  border-bottom: 1px solid rgba(94, 38, 79, 0.1);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(94, 38, 79, 0.18);
  box-shadow: 0 10px 20px rgba(74, 20, 55, 0.12);
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__text strong,
.brand__text small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__text strong {
  font-size: 0.98rem;
  color: var(--plum-dark);
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--plum);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a:not(.site-nav__cta) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-action::before {
  content: "";
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background-image: var(--icon-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

[data-icon="intro"] {
  --icon-url: url("img/icons/intro.svg");
}

[data-icon="content"] {
  --icon-url: url("img/icons/content.svg");
}

[data-icon="guide"] {
  --icon-url: url("img/icons/guide.svg");
}

[data-icon="features"] {
  --icon-url: url("img/icons/features.svg");
}

[data-icon="updates"] {
  --icon-url: url("img/icons/updates.svg");
}

[data-icon="faq"] {
  --icon-url: url("img/icons/faq.svg");
}

[data-icon="view"] {
  --icon-url: url("img/icons/view.svg");
}

.site-nav a.is-active {
  color: var(--pink-strong);
}

.site-nav a:not(.site-nav__cta):hover,
.site-nav a:not(.site-nav__cta):focus-visible,
.site-nav a.is-active:not(.site-nav__cta) {
  color: var(--pink-strong);
  border-color: rgba(255, 64, 129, 0.38);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
}

.site-nav__cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.site-nav__cta,
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-strong), #ff5f97);
  box-shadow: 0 12px 24px rgba(255, 64, 129, 0.2);
}

.site-nav__cta::before,
.btn--primary::before {
  filter: brightness(0) invert(1);
}

.site-nav__cta:hover,
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255, 64, 129, 0.26);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(94, 38, 79, 0.14);
  color: var(--plum-dark);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 64, 129, 0.24);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.icon-thumb {
  position: relative;
}

.icon-thumb::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 64, 129, 0.9);
  background-image: url("img/icons/zoom.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(74, 20, 55, 0.18);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(94, 38, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("img/icons/menu.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.nav-open .nav-toggle::before {
  background-image: url("img/icons/close.svg");
}

.nav-toggle span {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100svh - 72px);
  border-bottom: 1px solid rgba(94, 38, 79, 0.1);
}

.hero__art,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(255, 245, 247, 0.98) 0%, rgba(255, 245, 247, 0.94) 24%, rgba(255, 245, 247, 0.72) 48%, rgba(255, 245, 247, 0.18) 100%),
    linear-gradient(180deg, rgba(52, 20, 40, 0.06) 0%, rgba(52, 20, 40, 0.22) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: 36px;
  padding-block: 58px 44px;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow,
.section__eyebrow {
  margin: 0 0 12px;
  color: var(--pink-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--plum-dark);
  line-height: 1.15;
}

.hero h1 {
  font-size: 3.1rem;
  max-width: 12ch;
}

.hero__lead {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--plum-dark);
}

.hero__body {
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero__meta li {
  padding: 8px 12px;
  border: 1px solid rgba(94, 38, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--plum);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero__aside {
  align-self: end;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(94, 38, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero__badge {
  margin: 0;
  display: grid;
  place-items: center;
}

.hero__badge img {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(94, 38, 79, 0.16);
  box-shadow: var(--shadow-strong);
}

.hero__aside-copy h2 {
  margin: 0;
  color: var(--plum-dark);
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero__aside-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section {
  scroll-margin-top: 84px;
  padding-block: 78px;
  border-top: 1px solid rgba(94, 38, 79, 0.08);
}

.section--intro {
  background: rgba(255, 250, 252, 0.72);
}

.section--content {
  background: rgba(255, 245, 247, 0.82);
}

.section--guide {
  background: rgba(255, 250, 249, 0.86);
}

.section--features {
  background: rgba(255, 244, 248, 0.84);
}

.section--updates {
  background: rgba(255, 248, 244, 0.84);
}

.section--screenshots {
  background: rgba(255, 250, 252, 0.94);
}

.section--faq {
  background: rgba(255, 253, 253, 0.92);
}

.section--friends {
  padding-block: 54px 60px;
  border-top: none;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(90deg, rgba(31, 34, 54, 0.98) 0%, rgba(52, 20, 40, 0.98) 52%, rgba(94, 38, 79, 0.98) 100%);
  color: #fff;
}

.friends-links {
  max-width: 1120px;
  text-align: center;
}

.friends-links h2 {
  margin: 0;
  color: #fff;
  font-size: 2.08rem;
  line-height: 1.15;
}

.friend-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.friend-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.friend-links__item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.friend-links__item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.52);
  outline-offset: 3px;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: start;
}

.section__grid--reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.section__grid--reverse .section__copy {
  order: 2;
}

.section__grid--reverse .section__figure {
  order: 1;
}

.section__narrow {
  max-width: 980px;
}

.section__content-only {
  max-width: 1040px;
  margin-inline: auto;
}

.section__centered {
  margin-inline: auto;
}

#game-faq .section__copy {
  text-align: center;
}

#game-faq .faq-list {
  max-width: 860px;
  margin-inline: auto;
  text-align: left;
}

#game-faq .faq-list summary {
  text-align: left;
}

#game-faq .faq-list p {
  text-align: left;
}

.section__copy h2 {
  font-size: 2.12rem;
}

.section__copy h3 {
  margin: 28px 0 12px;
  color: var(--plum-dark);
  font-size: 1.18rem;
  line-height: 1.35;
}

.section__copy p {
  margin: 0 0 14px;
  color: var(--text);
}

.section__figure {
  margin: 0;
  display: grid;
  gap: 10px;
  align-self: start;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.section__figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(94, 38, 79, 0.14);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-strong);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
}

.section__figure--portrait img {
  object-position: center center;
}

.section__figure figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

.content-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.content-list li {
  padding: 14px 16px;
  border: 1px solid rgba(94, 38, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.content-list strong {
  color: var(--plum-dark);
}

.guide-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(94, 38, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.guide-list span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 167, 196, 0.4), rgba(255, 64, 129, 0.16));
  color: var(--plum-dark);
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.guide-list strong {
  display: block;
  color: var(--plum-dark);
  margin-bottom: 4px;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.feature-grid article {
  padding: 16px;
  border: 1px solid rgba(94, 38, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.screenshots__intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.screenshots__intro h2 {
  margin: 0;
  color: var(--plum-dark);
  font-size: 2.12rem;
  line-height: 1.15;
}

.screenshots__intro p {
  margin: 12px 0 0;
  color: var(--muted);
}

.screenshots {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.screenshots__preview {
  margin: 0;
  display: grid;
  gap: 10px;
  align-self: start;
  transition: transform 0.24s ease;
}

.screenshots__preview img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  border: 1px solid rgba(94, 38, 79, 0.14);
  box-shadow: var(--shadow-strong);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
}

.screenshots__preview figcaption {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.screenshots__thumb {
  position: relative;
  padding: 0;
  border: 1px solid rgba(94, 38, 79, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(74, 20, 55, 0.08);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.screenshots__thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 64, 129, 0.36);
  box-shadow: 0 16px 32px rgba(74, 20, 55, 0.14);
}

.screenshots__thumb.is-active {
  border-color: rgba(255, 64, 129, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 64, 129, 0.14), 0 14px 30px rgba(74, 20, 55, 0.12);
}

.screenshots__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 14px 16px;
  border-left: 4px solid rgba(255, 64, 129, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(74, 20, 55, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.timeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--pink-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.faq-list details {
  border: 1px solid rgba(94, 38, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(74, 20, 55, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 48px 16px 16px;
  color: var(--plum-dark);
  font-weight: 700;
  transition: color 0.22s ease, background-color 0.22s ease;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background-image: url("img/icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-list summary:hover {
  color: var(--pink-strong);
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(94, 38, 79, 0.1);
  background: rgba(255, 245, 247, 0.96);
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.site-footer strong {
  color: var(--plum-dark);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer__copy {
  white-space: nowrap;
}

.floating-view {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(255, 64, 129, 0.28);
  letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover img {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 28px rgba(74, 20, 55, 0.16);
  }

  .brand:hover .brand__text strong {
    color: var(--pink-strong);
  }

  .site-nav a:not(.site-nav__cta):hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
  }

  .site-nav__cta:hover,
  .btn--primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 36px rgba(255, 64, 129, 0.34);
    filter: brightness(1.02);
  }

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

  .floating-view:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 22px 40px rgba(255, 64, 129, 0.34);
    filter: brightness(1.03);
  }

  .hero__aside:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
  }

  .hero__badge:hover img {
    transform: scale(1.02);
  }

  .section__figure:hover img,
  .screenshots__preview:hover img {
    transform: scale(1.015);
    border-color: rgba(255, 64, 129, 0.3);
    filter: saturate(1.03) contrast(1.01);
  }

  .screenshots__thumb:hover img {
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.02);
  }

  .content-list li:hover,
  .guide-list li:hover,
  .feature-grid article:hover,
  .timeline li:hover,
  .faq-list details:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 64, 129, 0.22);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 32px rgba(74, 20, 55, 0.1);
  }

  .guide-list li:hover span {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 167, 196, 0.52), rgba(255, 64, 129, 0.22));
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.12);
  }

  .content-list li:hover strong,
  .guide-list li:hover strong,
  .feature-grid article:hover h3,
  .timeline li:hover span {
    color: var(--pink-strong);
  }

  .faq-list details:hover summary::after {
    filter: brightness(0.92) saturate(1.1);
  }
}

[data-year] {
  color: var(--plum-dark);
  font-weight: 700;
}

.site-nav a,
.btn,
.nav-toggle,
.faq-list summary {
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.faq-list summary:focus-visible {
  outline: 2px solid rgba(255, 64, 129, 0.34);
  outline-offset: 2px;
}

.floating-view:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero__inner,
  .section__grid,
  .section__grid--reverse {
    grid-template-columns: 1fr;
  }

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

  .screenshots__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__aside {
    max-width: 520px;
  }

  .friend-links__list {
    gap: 12px;
  }

  .section__grid--reverse .section__copy,
  .section__grid--reverse .section__figure {
    order: initial;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 16px 18px;
    background: rgba(255, 245, 247, 0.98);
    border-bottom: 1px solid rgba(94, 38, 79, 0.1);
    box-shadow: 0 18px 32px rgba(74, 20, 55, 0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(94, 38, 79, 0.08);
  }

  .site-nav__cta {
    margin-top: 8px;
  }

  .nav-open .site-nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 46px 38px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding-block: 64px;
  }

  .section__copy h2 {
    font-size: 1.82rem;
  }

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

  .screenshots__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--friends {
    padding-block: 46px 52px;
  }

  .friends-links h2 {
    font-size: 1.72rem;
  }

  .friend-links__list {
    gap: 10px;
    margin-top: 18px;
  }

  .friend-links__item {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .site-footer__copy {
    white-space: normal;
  }

  .floating-view {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    padding-inline: 16px;
  }
}

@media (min-width: 1280px) {
  :root {
    --container: 1260px;
  }

  body {
    font-size: 15px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand__text strong {
    font-size: 0.92rem;
  }

  .brand__text small {
    font-size: 0.7rem;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .site-nav__cta,
  .btn {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero {
    min-height: calc(100svh - 68px);
  }

  .hero__inner {
    min-height: calc(100svh - 68px);
    gap: 32px;
    padding-block: 48px 34px;
  }

  .hero h1 {
    font-size: 2.68rem;
  }

  .hero__lead {
    font-size: 0.94rem;
  }

  .hero__body {
    font-size: 0.88rem;
  }

  .hero__meta li {
    padding: 7px 11px;
    font-size: 0.82rem;
  }

  .section {
    padding-block: 68px;
  }

  .section__copy h2,
  .screenshots__intro h2 {
    font-size: 1.82rem;
  }

  .section__copy h3 {
    font-size: 0.98rem;
  }

  .section__narrow {
    max-width: 1000px;
  }

  .section__content-only {
    max-width: 1160px;
  }

  #game-faq .faq-list {
    max-width: 780px;
  }

  .content-list li,
  .guide-list li,
  .timeline li,
  .feature-grid article,
  .faq-list details {
    padding: 12px 14px;
  }

  .screenshots {
    gap: 18px;
  }

  .screenshots__thumbs {
    gap: 10px;
  }

  .hero__copy {
    max-width: 560px;
  }

  .hero__aside {
    max-width: 430px;
  }

  .screenshots__intro {
    max-width: 680px;
  }

  .section--friends {
    padding-block: 58px 64px;
  }

  .friends-links {
    max-width: 980px;
  }

  .friends-links h2 {
    font-size: 2.18rem;
  }

  .friend-links__list {
    gap: 16px;
    margin-top: 26px;
  }

  .friend-links__item {
    min-height: 48px;
    padding: 0 22px;
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand__text strong {
    font-size: 0.9rem;
  }

  .brand__text small {
    font-size: 0.74rem;
  }

  .hero h1 {
    font-size: 2rem;
    max-width: 14ch;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__body {
    font-size: 0.98rem;
  }

  .hero__actions,
  .hero__meta {
    gap: 10px;
  }

  .hero__meta li,
  .content-list li,
  .timeline li,
  .feature-grid article,
  .faq-list details,
  .guide-list li,
  .screenshots__thumb {
    padding-left: 14px;
    padding-right: 14px;
  }

  .guide-list li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
