:root {
  --primary: #6366f1;
  --bg: #f9fafb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.top {
  padding: 28px 20px 10px;
}

.top h1 {
  margin: 0;
  font-size: 26px;
}

.top p {
  margin-top: 6px;
  color: var(--muted);
}

.list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.primary {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 22px;
}





.big {
  font-size: 26px;
  padding: 30px;
  border-radius: 22px;
}

.small {
  font-size: 18px;
  padding: 18px;
  border-radius: 16px;
}

.spacer {
  height: 20px;
}

/* 눌림 시 확실한 피드백 */
.card {
  position: relative;
  overflow: hidden;
}

.card:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 터치 링 효과 */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(99, 102, 241, 0.15);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:active::after {
  opacity: 1;
}


.image-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.image-btn img {
  width: 26px;
  height: 26px;
}

.image-btn:active {
  transform: scale(0.92);
}
