/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a2e;
  background:
    radial-gradient(1200px 600px at 50% -10%, #ece7ff 0%, transparent 55%),
    linear-gradient(180deg, #f6f4ff 0%, #f8f9fb 45%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.wrap {
  width: 100%;
  max-width: 480px;
  min-width: 320px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

/* === Hero === */
.hero {
  text-align: center;
  margin-bottom: 40px;
}
.hero-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 14px rgba(112, 72, 232, 0.25));
}
.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  word-break: keep-all;
}
.hero-desc {
  font-size: 15px;
  color: #8a8aa3;
  word-break: keep-all;
  line-height: 1.6;
}

/* === Section label === */
.list-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #b0a8d0;
  margin: 0 4px 14px;
  text-transform: uppercase;
}

/* === Test List === */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.test-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(40, 30, 90, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.test-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,0.5), transparent 40%);
  pointer-events: none;
}
.test-card:active {
  transform: translateY(2px) scale(0.985);
  box-shadow: 0 4px 14px rgba(40, 30, 90, 0.1);
}

.test-card-emoji {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-radius: 18px;
  background: #f3f0ff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.test-card-body { flex: 1; min-width: 0; }

.test-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #7048e8;
  background: rgba(112, 72, 232, 0.1);
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 7px;
}
.test-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  word-break: keep-all;
}
.test-card-desc {
  font-size: 13px;
  color: #8a8aa3;
  word-break: keep-all;
  line-height: 1.5;
}

.test-card-arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: #c4bce0;
  font-weight: 300;
}

/* 테마별 이모지 배경 톤 */
.test-card-emoji.love   { background: #ffeef2; }
.test-card-emoji.diss   { background: #fff1e8; }
.test-card-emoji.nature { background: #efeaff; }

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 32px 20px 44px;
  color: #b0aac6;
  font-size: 12px;
}

@media screen and (max-width: 430px) {
  .wrap { padding: 44px 16px 20px; }
  .hero-title { font-size: 26px; }
}
