* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #fff;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 170, 219, .75), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(126, 220, 255, .75), transparent 30%),
    linear-gradient(135deg, #5c8dff 0%, #69b7ff 42%, #ff9ed8 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .55;
  pointer-events: none;
}

body::before {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 6%;
  background: rgba(255, 255, 255, .22);
}

body::after {
  width: 160px;
  height: 160px;
  right: -40px;
  top: 14%;
  background: rgba(255, 255, 255, .18);
}

.app {
  width: min(920px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  place-items: center;
}

.hero-card,
.test-card,
.result-card {
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(48, 89, 185, .28);
  border-radius: 34px;
  padding: 48px 34px;
  text-align: center;
  animation: pop .42s ease both;
}

@keyframes pop {
  from { transform: translateY(14px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.hidden {
  display: none !important;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(34px, 7vw, 58px);
  margin: 0 0 16px;
  letter-spacing: 1px;
  text-shadow: 0 8px 28px rgba(48, 60, 150, .18);
}

h2 {
  font-size: clamp(30px, 6vw, 48px);
  margin: 10px 0 14px;
}

.desc {
  width: min(620px, 100%);
  margin: 0 auto 34px;
  line-height: 1.85;
  font-size: 18px;
  color: rgba(255,255,255,.94);
}

.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  padding: 15px 34px;
  font-size: 18px;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #2f6dff, #ff71c8);
  box-shadow: 0 14px 30px rgba(67, 105, 244, .32);
}

.ghost-btn {
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.38);
}

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

.primary-btn:active,
.ghost-btn:active {
  transform: translateY(1px) scale(.98);
}

.tips {
  margin-top: 22px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

.test-card {
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
}

.reaction-box {
  min-height: 390px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  user-select: none;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.48);
  box-shadow: inset 0 0 0 999px rgba(255,255,255,.05), 0 22px 56px rgba(60, 80, 170, .22);
  transition: background .2s ease, transform .16s ease;
}

.reaction-box.waiting {
  background: linear-gradient(135deg, #ff80ca, #ffb1dd);
}

.reaction-box.ready {
  background: linear-gradient(135deg, #35d889, #8cf7bd);
}

.reaction-box.too-soon {
  background: linear-gradient(135deg, #ff5d7e, #ff9aa8);
  animation: shake .3s ease;
}

.reaction-box.clicked {
  background: linear-gradient(135deg, #66a3ff, #a7d3ff);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.box-icon {
  font-size: 72px;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.08));
}

.box-title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 1000;
}

.box-sub {
  font-size: 18px;
  opacity: .94;
}

.history {
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0;
}

.history span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.34);
  font-weight: 800;
}

.result-emoji {
  font-size: 70px;
}

.result-main {
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0 10px;
}

.result-main span {
  font-size: 42px;
  color: #fff2a8;
  text-shadow: 0 6px 22px rgba(50, 60, 150, .2);
}

.result-comment {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
  margin: 0 auto 28px;
  max-width: 580px;
}

.result-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .hero-card,
  .test-card,
  .result-card {
    padding: 34px 18px;
    border-radius: 26px;
  }

  .test-card {
    padding: 16px;
  }

  .topbar {
    font-size: 14px;
  }

  .reaction-box {
    min-height: 330px;
    border-radius: 24px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
.fox-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.result-emoji {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.result-emoji span {
  font-size: 44px;
}