:root {
  --cream: #f7f1e3;
  --paper: #fffaf1;
  --ink: #2c332e;
  --muted: #6b736e;
  --leaf: #3e9a62;
  --leaf-deep: #2b6d46;
  --mint: #b7e3c4;
  --blush: #f3c2b4;
  --sun: #f3d58a;
  --card: #fffdf8;
  --line: rgba(44, 51, 46, 0.1);
  --shadow: 0 18px 50px rgba(62, 90, 55, 0.12);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(183, 227, 196, 0.55), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(243, 213, 138, 0.4), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(243, 194, 180, 0.35), transparent 30%);
  z-index: -2;
}

.clover-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.clover-bg span {
  position: absolute;
  width: 46px;
  height: 46px;
  background: url("../assets/clover.svg") center/contain no-repeat;
  opacity: 0.08;
  animation: drift 18s ease-in-out infinite;
}
.clover-bg span:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.clover-bg span:nth-child(2) { top: 28%; right: 10%; animation-delay: -4s; width: 70px; height: 70px; }
.clover-bg span:nth-child(3) { bottom: 18%; left: 14%; animation-delay: -8s; }
.clover-bg span:nth-child(4) { bottom: 8%; right: 18%; animation-delay: -2s; width: 34px; height: 34px; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img, .brand svg { width: 46px; height: 46px; }
.brand-name {
  font-family: Gaegu, Pretendard, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav a.active, .nav a:hover {
  background: var(--leaf);
  color: #fff;
}

.hero {
  text-align: center;
  padding: 28px 0 12px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px dashed var(--leaf);
  color: var(--leaf-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  font-family: Gaegu, Pretendard, sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.05;
  margin: 16px 0 10px;
  letter-spacing: -0.04em;
}
.hero p { color: var(--muted); font-size: 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 40px;
}
.choice-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0 0 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.choice-photo {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe8d6, #f3d58a);
}
.choice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.choice-card .stamp,
.choice-card h2,
.choice-card p,
.choice-card .go { margin-left: 24px; margin-right: 24px; }
.choice-card .stamp { margin-top: 18px; }
.choice-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(62, 90, 55, 0.16); }
.choice-card.today { background: linear-gradient(180deg, #fffdf8 0%, #eaf7ee 100%); }
.choice-card.play { background: linear-gradient(180deg, #fffdf8 0%, #fdeee8 100%); }
.choice-card h2 {
  font-family: Gaegu, Pretendard, sans-serif;
  font-size: 36px;
  margin: 10px 0 8px;
}
.choice-card p { color: var(--muted); flex: 1; }
.stamp {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  background: var(--mint);
  padding: 4px 8px;
  border-radius: 8px;
}
.choice-card .go {
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.section-title {
  font-family: Gaegu, Pretendard, sans-serif;
  font-size: 34px;
  margin: 10px 0 6px;
}
.lead { color: var(--muted); margin-bottom: 22px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--leaf-deep);
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.chip:hover { border-color: var(--leaf); }
.chip.on {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
}
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-wide { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.weather {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff 0%, #eaf4ff 100%);
  border-radius: 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.weather-photo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}
.weather strong { font-size: 28px; font-family: Gaegu, sans-serif; }
.weather .hint { color: var(--muted); font-size: 14px; }

.hint-line {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.search-row input { flex: 1; }
.suggest {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.suggest-item {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 600;
}
.suggest-item:hover { border-color: var(--leaf); background: #eaf7ee; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.place {
  background: #fff;
  border-radius: 22px;
  padding: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 280px;
}
.place-photo {
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe8d6, #f3d58a);
}
.place-photo img,
.pick-photo img,
.tile-photo img,
.choice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.place-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place .cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--leaf-deep);
}
.place h3 { font-size: 18px; }
.place p { color: var(--muted); font-size: 14px; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.random-btn {
  width: 100%;
  margin: 8px 0 18px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #4eab70, #2f7a4c);
  color: #fff;
  font-family: Gaegu, sans-serif;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(47, 122, 76, 0.28);
}
.random-btn small { display: block; font-family: Pretendard, sans-serif; font-size: 13px; font-weight: 500; opacity: 0.85; }

.result-hero {
  text-align: center;
  padding: 12px 8px 6px;
}
.result-hero .big {
  font-family: Gaegu, sans-serif;
  font-size: 42px;
  line-height: 1.1;
}
.share-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  border: 1px dashed var(--leaf);
  text-align: center;
}
.pick-card { padding: 0 0 22px; overflow: hidden; }
.pick-photo {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe8d6, #f3d58a);
  background-size: cover;
  background-position: center;
}
.pick-card .eyebrow,
.pick-card .result-hero,
.pick-card .pick-desc,
.pick-card .btn-row { margin-left: 18px; margin-right: 18px; }
.pick-card .eyebrow { margin-top: 16px; }
.pick-desc { color: var(--muted); margin: 8px 18px 16px; }
.q-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  min-height: 220px;
}
.q-card h2 {
  font-family: Gaegu, sans-serif;
  font-size: 32px;
  margin: 8px 0 18px;
}
.options { display: grid; gap: 10px; }
.option {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid transparent;
  font-weight: 600;
}
.option:hover, .option.on { background: #eaf7ee; border-color: var(--leaf); }

.progress {
  height: 8px;
  background: #eadfca;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 16px;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--leaf);
  width: 0;
  transition: width 0.3s ease;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0 40px;
}
.play-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0 0 16px;
  min-height: 200px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  overflow: hidden;
}
.play-tile:hover { transform: translateY(-4px); }
.tile-photo { height: 110px; overflow: hidden; background: linear-gradient(135deg, #cfe8d6, #f3d58a); }
.play-tile h3 { font-family: Gaegu, sans-serif; font-size: 26px; margin: 10px 14px 4px; }
.play-tile p { color: var(--muted); font-size: 13px; margin: 0 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}
input[type="text"]:focus { border-color: var(--leaf); }

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 28px 0 40px;
  font-size: 13px;
}

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.vs .side {
  background: #fff;
  border-radius: 20px;
  padding: 22px 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 18px;
}
.vs .mid {
  align-self: center;
  font-family: Gaegu, sans-serif;
  font-size: 22px;
  color: var(--blush);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compare .who { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .grid-2, .vs, .compare { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: center; }
  .hero h1 { font-size: 42px; }
  .choice-card { min-height: 200px; }
}
