
:root {
  --bg: #f5f0e9;
  --paper: rgba(255,255,255,.88);
  --ink: #2f2935;
  --muted: #756e79;
  --purple: #75549a;
  --purple-dark: #5f407f;
  --line: rgba(71,55,78,.14);
  --shadow: 0 22px 70px rgba(45,34,53,.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(162,133,190,.18), transparent 34rem),
    var(--bg);
}
button, a { font: inherit; }
button { border: 0; }
.page-shell {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: max(36px, env(safe-area-inset-top)) 0 max(36px, env(safe-area-inset-bottom));
}
.hero { text-align: center; margin-bottom: 24px; }
.brand {
  margin: 0 0 8px;
  color: var(--purple);
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 12px;
}
h1 { margin: 0; font-size: clamp(30px, 8vw, 42px); letter-spacing: -.04em; }
.subtitle { margin: 12px auto 0; max-width: 420px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.draw-card {
  padding: 14px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 22px;
  background: #eee7df;
  border: 1px solid rgba(60,45,70,.10);
}
.image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 10px;
  text-align: center;
  color: rgba(84,67,94,.42);
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(117,84,154,.09)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(117,84,154,.025) 18px 19px);
}
.question { font-family: Georgia, serif; font-size: 88px; line-height: .9; font-weight: 400; color: rgba(117,84,154,.48); }
.special-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(117,84,154,.92); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .12em;
  box-shadow: 0 8px 20px rgba(70,45,90,.22);
}
.result-copy { text-align: center; padding: 18px 8px 2px; }
.eyebrow { margin: 0 0 5px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.result-copy h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.result-copy p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.result-actions { grid-template-columns: 1fr 1fr; }
.btn {
  min-height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 17px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid rgba(117,84,154,.28); outline-offset: 3px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); box-shadow: 0 10px 22px rgba(96,63,128,.22); }
.btn-secondary { color: var(--purple-dark); background: #eee7f4; }
.community-note {
  margin-top: 20px; padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  text-align: center;
}
.community-note strong { font-size: 15px; }
.community-note p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.footnote { margin: 14px 16px 0; text-align: center; color: #8a828c; line-height: 1.45; font-size: 11px; }
.is-drawing img { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: scale(.985); filter: blur(5px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@media (max-width: 420px) {
  .page-shell { width: min(100% - 20px, 560px); padding-top: 24px; }
  .draw-card { border-radius: 24px; padding: 10px 10px 15px; }
  .image-wrap { border-radius: 18px; }
  .result-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
