:root {
  --primary-color: #1d1d1f;
  --secondary-color: #6e6e73;
  --link-color: #06c;
  --bg-color: #f5f5f7;
  --card-color: #fff;
  --spacing-unit: 20px;
  --container-width: 980px;
  --animation-duration: 0.8s;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--primary-color);
  font-family: "PingFang SC", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 5) var(--spacing-unit);
}

.intro {
  margin-bottom: calc(var(--spacing-unit) * 4);
  opacity: 0;
  animation: fadeUp var(--animation-duration) ease forwards;
}

.intro-heading {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}

.avatar {
  width: 132px;
  height: 132px;
  margin-bottom: 10px;
  border-radius: 34px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.avatar:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: 96px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 20px 0;
  color: var(--secondary-color);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

.subtitle {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
}

.subtitle small {
  position: relative;
  bottom: 4px;
  color: #bf4800;
  font-size: 0.46em;
  font-weight: 400;
  line-height: 1;
}

.section {
  margin: 22px 0;
  opacity: 0;
  animation: fadeUp var(--animation-duration) ease 0.25s forwards;
  will-change: transform, opacity;
}

.section:nth-of-type(2) {
  animation-delay: 0.35s;
}

.section:nth-of-type(3) {
  animation-delay: 0.45s;
}

.section:nth-of-type(4) {
  animation-delay: 0.55s;
}

.section:nth-of-type(5) {
  animation-delay: 0.65s;
}

.store-card {
  min-height: 260px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    var(--card-color);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(0, 0, 0, 0.1);
}

.plain-section {
  min-height: 260px;
  padding: clamp(28px, 5vw, 44px);
}

.dark-card {
  color: #f5f5f7;
  background:
    radial-gradient(circle at 85% 20%, rgba(40, 135, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #1d1d1f, #000);
}

.card-label {
  margin-bottom: 12px;
  color: #bf4800;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dark-card .card-label {
  color: #f5a623;
}

.section-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.content {
  max-width: 700px;
  color: var(--secondary-color);
  font-size: 21px;
  line-height: 1.6;
}

.dark-card .content {
  color: #a1a1a6;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.tag-grid span {
  position: relative;
  min-height: 64px;
  display: grid;
  place-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1f1f4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 12px 28px rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tag-grid span:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 20px 42px rgba(0, 0, 0, 0.14);
}

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

.contact-card {
  min-height: 300px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.contact-link {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1f1f4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 12px 28px rgba(0, 0, 0, 0.08);
  color: var(--link-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.2s ease;
}

.contact-link img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  opacity: 0.82;
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 20px 42px rgba(0, 0, 0, 0.14);
}

.setup-card {
  min-height: auto;
}

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

.spec-card {
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, #ffffff, #f1f1f4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 14px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 24px 50px rgba(0, 0, 0, 0.16);
}

.spec-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  mix-blend-mode: multiply;
}

.spec-type {
  margin-bottom: 6px;
  color: #bf4800;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.spec-card h4 {
  margin: 0;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.18;
}

footer {
  margin-top: 86px;
  color: var(--secondary-color);
  font-size: 14px;
  opacity: 0;
  animation: fadeUp var(--animation-duration) ease 0.75s forwards;
}

footer p {
  margin-bottom: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-unit: 16px;
  }

  .container {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
  }

  .intro {
    margin-bottom: calc(var(--spacing-unit) * 3);
  }

  h1 {
    font-size: clamp(52px, 15vw, 72px);
  }

  h2 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .subtitle {
    flex-wrap: wrap;
    gap: 7px;
  }

  .subtitle small {
    bottom: 3px;
    font-size: 0.42em;
  }

  .avatar {
    width: 104px;
    height: 104px;
    margin-bottom: 7px;
    border-radius: 28px;
  }

  .store-card {
    min-height: auto;
    padding: 26px;
    border-radius: 22px;
  }

  .section {
    margin: 16px 0;
  }

  .section-title {
    font-size: clamp(30px, 9vw, 38px);
  }

  .content,
  .contact-link {
    font-size: 18px;
  }

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

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

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

@media (max-width: 520px) {
  .container {
    padding: 44px 12px;
  }

  .avatar {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }

  .intro-heading {
    align-items: flex-end;
    gap: 16px;
  }

  .store-card {
    padding: 22px;
    border-radius: 20px;
  }

  .card-label {
    margin-bottom: 10px;
  }

  .content {
    font-size: 17px;
    line-height: 1.58;
  }

  .tag-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tag-grid span {
    min-height: 58px;
    font-size: 19px;
  }

  .contact-link {
    min-height: 64px;
    padding: 14px;
    gap: 12px;
    font-size: 17px;
  }

  .contact-link img {
    width: 30px;
    height: 30px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .spec-card {
    min-height: 246px;
    padding: 18px;
  }

  .spec-card img {
    height: 132px;
    margin-bottom: 16px;
  }

  footer {
    margin-top: 56px;
    text-align: center;
  }
}

@media (hover: none) {
  .avatar:hover,
  .store-card:hover,
  .tag-grid span:hover,
  .contact-link:hover,
  .spec-card:hover {
    transform: none;
  }
}
