:root {
  --ink: #2a2a2a;
  --muted: #a9a9a9;
  --soft-green: #bfd8a3;
  --soft-gold: #eddc79;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    Arial, sans-serif;
  background: #f7f8f3;
  overflow-x: hidden;
  place-items: start center;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.toolkit-shell {
  position: relative;
  container-type: size;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  min-height: 0;
  overflow: hidden;
  --page-pad-x: max(18px, 2.45cqw);
  --header-h: clamp(44px, 8.4cqh, 96px);
  background:
    radial-gradient(circle at 76% 42%, rgb(244 249 234 / 72%), transparent 16%),
    radial-gradient(circle at 24% 72%, rgb(242 250 234 / 64%), transparent 17%),
    #fff;
}

.page {
  position: absolute;
  inset: 0;
  padding-top: 0;
  pointer-events: none;
  transition:
    opacity 520ms ease,
    filter 520ms ease,
    transform 680ms cubic-bezier(0.2, 0.8, 0.18, 1);
}

.home-page {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.strategy-page,
.roadmap-page {
  z-index: 3;
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transform: translateY(18px) scale(1.02);
}

.toolkit-shell:is([data-page="gamification"], [data-page="multimodal"], [data-page="roadmap"]) .home-page {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transform: scale(0.94);
}

.toolkit-shell[data-page="gamification"] .gamification-page,
.toolkit-shell[data-page="multimodal"] .multimodal-page,
.toolkit-shell[data-page="roadmap"] .roadmap-page {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
  padding: max(13px, 4.45cqh) var(--page-pad-x) 0;
  animation: headerIn 660ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand-mark {
  display: block;
  flex: 0 1 34.5cqw;
  width: 34.5cqw;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: max(10px, 2.25cqw);
  padding-top: 5px;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  color: #111;
  font-size: max(10px, 1.42cqw);
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-link span {
  margin-left: 4px;
  color: #5f5f5f;
  font-size: 0.95em;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #b7d294;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link:is(:hover, :focus-visible),
.nav-link.active {
  color: #000;
  outline: none;
  transform: translateY(-1px);
}

.nav-link:is(:hover, :focus-visible)::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 100%;
  padding: 18.2cqh var(--page-pad-x) 0;
}

.sparkles {
  position: absolute;
  z-index: 0;
  top: 10.6cqh;
  left: 50%;
  width: 92cqw;
  max-width: none;
  pointer-events: none;
  transform: translateX(-50%);
  opacity: 0.9;
  animation: sparkleDrift 8.4s ease-in-out infinite both;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: heroIn 720ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 0.65cqh;
  color: #757575;
  font-size: 2.05cqw;
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: #272727;
  font-size: 4.45cqw;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.1;
}

.subtitle {
  margin: 2.7cqh 0 0;
  color: #aaa;
  font-size: 1.44cqw;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.12;
}

.strategy-row {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 22.4cqw);
  justify-content: center;
  gap: 22.4cqw;
  width: 100%;
  margin: 5.2cqh auto 0;
  animation: choicesIn 720ms 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.strategy-option {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition:
    opacity 190ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.strategy-option img {
  display: block;
  width: 100%;
  height: auto;
}

.strategy-option:is(:hover, :focus-visible),
.strategy-option.active {
  transform: translateY(-2px);
  filter: saturate(1.04);
  outline: none;
}

.strategy-option:not(.active) {
  opacity: 0.92;
}

.card-stage {
  position: absolute;
  right: 0;
  bottom: -1.4cqh;
  left: 0;
  z-index: 4;
  height: 34cqh;
  pointer-events: none;
}

.card-cluster {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 49cqw;
  height: 100%;
  pointer-events: none;
}

.left-cluster {
  transform: translateX(-88%);
}

.right-cluster {
  transform: translateX(-6%);
}

.strategy-card {
  position: absolute;
  bottom: 0;
  width: 13.25cqw;
  aspect-ratio: 0.78;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 18px rgb(143 153 120 / 0.08));
  opacity: 0;
  pointer-events: auto;
  transform-origin: 50% 88%;
  transition:
    filter 200ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.strategy-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.strategy-card:is(:hover, :focus-visible) {
  filter: drop-shadow(0 18px 22px rgb(126 140 103 / 0.18));
  outline: none;
}

.strategy-card.pressed {
  transition-duration: 120ms;
}

.avatar {
  left: 10%;
  animation: fanLeftAvatar 780ms 520ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.mapping {
  left: 35%;
  animation: fanLeftMapping 780ms 610ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.partner {
  left: 61%;
  animation: fanLeftPartner 780ms 700ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.rhythm {
  right: 61%;
  animation: fanRightRhythm 780ms 520ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.feedback {
  right: 35%;
  animation: fanRightFeedback 780ms 610ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.empathy {
  right: 10%;
  animation: fanRightEmpathy 780ms 700ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.game-sparkles {
  position: absolute;
  right: auto;
  bottom: clamp(8px, 3.5cqh, 36px);
  left: clamp(-72px, -3cqw, -18px);
  width: min(540px, 47cqw);
  pointer-events: none;
  opacity: 0.42;
  transform: rotate(-5deg);
}

.roadmap-page {
  display: grid;
  padding: 12.8cqh 5.8cqw 4.8cqh;
  place-items: center;
}

.roadmap-image {
  display: block;
  width: min(88.5cqw, calc(82.4cqh * 6148 / 3060));
  max-height: 82.4cqh;
  object-fit: contain;
}

.game-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 18.6cqw minmax(0, 1fr);
  gap: 3.35cqw;
  height: 100%;
  padding: 15.8cqh 9.1cqw 2cqh 12cqw;
}

.game-card-area {
  position: relative;
  min-width: 0;
  height: 100%;
}

.game-title {
  width: 18.6cqw;
  text-align: center;
}

.game-title h2 {
  margin: 0;
  color: #111;
  font-size: 2.25cqw;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.game-title p {
  margin: 7px 0 0;
  color: #8c8c8c;
  font-size: 1.34cqw;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.primary-card-wrap {
  position: relative;
  width: 18.6cqw;
  margin-top: 3.6cqh;
}

.game-card-primary {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  filter: drop-shadow(0 18px 20px rgb(133 150 112 / 0.08));
  transform-origin: 49% 86%;
}

.game-card-primary img,
.preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.strategy-page.booting .game-card-primary {
  animation: extractPrimary 840ms 460ms cubic-bezier(0.16, 0.92, 0.18, 1) both;
}

.game-card-primary.retracting {
  animation: retractPrimary 360ms cubic-bezier(0.42, 0, 0.58, 1) both;
}

.game-card-primary.extracting {
  animation: extractPrimary 620ms cubic-bezier(0.16, 0.92, 0.18, 1) both;
}

.preview-card-row {
  position: absolute;
  bottom: -5.5cqh;
  left: 1.5cqw;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.preview-card {
  width: 10.45cqw;
  aspect-ratio: 0.78;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 10px 16px rgb(128 143 111 / 0.06));
  opacity: 0.48;
  transform-origin: 50% 100%;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 200ms ease;
}

.preview-card:first-child {
  transform: rotate(-3deg);
}

.preview-card:nth-child(2) {
  margin-left: clamp(-34px, -2.2cqw, -22px);
  transform: translateY(10px) rotate(14deg);
}

.preview-card:is(:hover, :focus-visible) {
  filter: drop-shadow(0 14px 18px rgb(128 143 111 / 0.14));
  opacity: 0.82;
  outline: none;
}

.preview-card:first-child:is(:hover, :focus-visible) {
  transform: translateY(-8px) rotate(-2deg) scale(1.03);
}

.preview-card:nth-child(2):is(:hover, :focus-visible) {
  transform: translateY(2px) rotate(12deg) scale(1.03);
}

.strategy-page.booting .preview-card {
  animation: shrinkToPreview 760ms cubic-bezier(0.18, 0.9, 0.16, 1) both;
}

.strategy-page.switching .preview-card {
  opacity: 0.28;
}

.game-content {
  min-width: 0;
  padding-top: 0.25cqh;
}

.game-tabs {
  display: flex;
  align-items: center;
  gap: 4.45cqw;
  min-height: clamp(30px, 4.3cqh, 42px);
}

.game-tab {
  position: relative;
  padding: 0 0 9px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font: inherit;
  font-size: 1.45cqw;
  line-height: 1;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.game-tab span {
  margin-left: 4px;
  color: #666;
  font-size: 0.95em;
}

.game-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #b7d294;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.game-tab:is(:hover, :focus-visible),
.game-tab.active {
  color: #000;
  outline: none;
  transform: translateY(-1px);
}

.game-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.game-detail {
  margin-top: 3.85cqh;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 240ms ease,
    transform 280ms ease;
}

.game-detail.fading {
  opacity: 0;
  transform: translateY(8px);
}

.game-detail-image img {
  display: block;
  width: 57cqw;
  height: auto;
}

.copy-panel {
  max-width: 57cqw;
  max-height: 55cqh;
  padding-right: 1.1cqw;
  overflow-y: auto;
  color: #4f4f4f;
  scrollbar-width: thin;
  scrollbar-color: rgb(183 210 148 / 0.72) transparent;
}

.presentation-panel {
  display: grid;
  align-content: center;
  min-height: clamp(300px, 47cqh, 410px);
  max-width: 740px;
  color: #4f4f4f;
}

.copy-panel h3 {
  margin: 0 0 1.25cqh;
  color: #2f2f2f;
  font-size: clamp(14px, 1.45cqw, 23px);
  font-weight: 400;
  line-height: 1.18;
}

.presentation-panel h3 {
  margin: 0 0 14px;
  color: #2f2f2f;
  font-size: clamp(22px, 2.2cqw, 30px);
  font-weight: 400;
  line-height: 1.1;
}

.copy-panel p {
  max-width: 100%;
  margin: 0 0 0.85em;
  overflow-wrap: anywhere;
  font-size: clamp(10px, 0.98cqw, 14px);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.52;
  text-align: justify;
}

.copy-panel p:last-child {
  margin-bottom: 0;
}

.presentation-panel p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(15px, 1.45cqw, 18px);
  font-weight: 300;
  line-height: 1.75;
}

.presentation-panel {
  grid-template-columns: clamp(110px, 13cqw, 160px) minmax(0, 1fr);
  gap: clamp(22px, 3cqw, 36px);
  align-items: center;
}

.presentation-panel img {
  width: 100%;
  height: auto;
  opacity: 0.76;
  transform: rotate(-4deg);
}

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes choicesIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes sparkleDrift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  50% {
    transform: translateX(-50%) translateY(-8px) scale(1.01);
  }
}

@keyframes fanLeftAvatar {
  from {
    opacity: 0;
    transform: translateX(20.3cqw) translateY(7.5cqh) rotate(-4deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateX(-2.2cqw) translateY(1.8cqh) rotate(-13deg) scale(1);
  }
}

@keyframes fanLeftMapping {
  from {
    opacity: 0;
    transform: translateX(9.4cqw) translateY(6.7cqh) rotate(0deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateX(-2.8cqw) translateY(-1.4cqh) rotate(0deg) scale(1.02);
  }
}

@keyframes fanLeftPartner {
  from {
    opacity: 0;
    transform: translateX(1.6cqw) translateY(7.5cqh) rotate(2deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateX(-3.1cqw) translateY(1.4cqh) rotate(14deg) scale(1);
  }
}

@keyframes fanRightRhythm {
  from {
    opacity: 0;
    transform: translateX(-1.6cqw) translateY(7.5cqh) rotate(-2deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateX(3.1cqw) translateY(1.4cqh) rotate(-14deg) scale(1);
  }
}

@keyframes fanRightFeedback {
  from {
    opacity: 0;
    transform: translateX(-9.4cqw) translateY(6.7cqh) rotate(0deg) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateX(2.8cqw) translateY(-1.4cqh) rotate(0deg) scale(1.02);
  }
}

@keyframes fanRightEmpathy {
  from {
    opacity: 0;
    transform: translateX(-20.3cqw) translateY(7.5cqh) rotate(4deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateX(2.2cqw) translateY(1.8cqh) rotate(13deg) scale(1);
  }
}

@keyframes shrinkToPreview {
  from {
    opacity: 0.96;
    transform: translateY(-41.5cqh) rotate(0deg) scale(1.9);
  }
}

@keyframes extractPrimary {
  from {
    opacity: 0.5;
    transform: translateX(6cqw) translateY(25cqh) rotate(8deg) scale(0.48);
  }

  58% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes retractPrimary {
  from {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }

  to {
    opacity: 0.28;
    transform: translateX(6.35cqw) translateY(24.4cqh) rotate(8deg) scale(0.5);
  }
}

@media (hover: hover) {
  .avatar:hover {
    transform: translateX(-2.2cqw) translateY(0.9cqh) rotate(-12deg) scale(1.015);
  }

  .mapping:hover {
    transform: translateX(-2.8cqw) translateY(-2.2cqh) rotate(0deg) scale(1.02);
  }

  .partner:hover {
    transform: translateX(-3.1cqw) translateY(0.6cqh) rotate(13deg) scale(1.015);
  }

  .rhythm:hover {
    transform: translateX(3.1cqw) translateY(0.6cqh) rotate(-13deg) scale(1.015);
  }

  .feedback:hover {
    transform: translateX(2.8cqw) translateY(-2.2cqh) rotate(0deg) scale(1.02);
  }

  .empathy:hover {
    transform: translateX(2.2cqw) translateY(0.9cqh) rotate(12deg) scale(1.015);
  }
}

.rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgb(247 248 243 / 0.92);
  color: #2a2a2a;
  text-align: center;
}

.phone-icon {
  width: 42px;
  height: 70px;
  margin-bottom: 20px;
  border: 2px solid #b7d294;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgb(185 201 161 / 0.24);
  transform: rotate(90deg);
}

.phone-icon::after {
  display: block;
  width: 5px;
  height: 5px;
  margin: 58px auto 0;
  border-radius: 50%;
  background: #b7d294;
  content: "";
}

.rotate-hint p {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.rotate-hint span {
  margin-top: 8px;
  color: #777;
  font-size: 14px;
}

@media (max-width: 700px) and (orientation: portrait) {
  body {
    overflow: hidden;
    place-items: center;
  }

  .toolkit-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100svw * 16 / 9);
    height: 100svw;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
    animation: mobileCanvasFocus 1.5s ease both;
  }

  .rotate-hint {
    inset: 50% auto auto 50%;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    width: min(84vw, 360px);
    min-height: 48px;
    padding: 9px 14px 9px 22px;
    border: 1px solid rgb(183 210 148 / 0.4);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.9);
    box-shadow: 0 12px 30px rgb(143 153 120 / 0.14);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: hintFade 1.5s ease both;
  }

  .phone-icon {
    grid-row: 1 / span 2;
    flex: 0 0 auto;
    width: 20px;
    height: 32px;
    margin: 0;
    border-radius: 6px;
    box-shadow: none;
  }

  .phone-icon::after {
    width: 3px;
    height: 3px;
    margin-top: 25px;
  }

  .rotate-hint p {
    grid-column: 2;
    font-size: 13px;
    line-height: 1.1;
    text-align: left;
  }

  .rotate-hint span {
    grid-column: 2;
    margin-top: 1.5px;
    font-size: 11px;
    line-height: 1.1;
    text-align: left;
  }
}

@keyframes hintFade {
  0%,
  64% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
    visibility: hidden;
  }
}

@keyframes mobileCanvasFocus {
  0%,
  64% {
    filter: blur(5px);
  }

  100% {
    filter: none;
  }
}

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