/* 점괘 뽑기 (fortune-sticks) — mobile first */
.fs-hero { text-align: center; padding: 54px 0 10px; }
.fs-hero .kicker { color: var(--gold); letter-spacing: 4px; font-size: 0.82rem; margin-bottom: 14px; }
.fs-hero h1 { font-size: 2rem; margin: 0 0 14px; color: var(--cream); font-weight: 600; }
.fs-hero h1 .hl { color: var(--gold-light); }
.fs-hero .sub { color: var(--cream-dim); line-height: 1.9; font-size: 0.95rem; }

.fs-stage { text-align: center; padding: 30px 0 10px; }
.fs-tube-wrap { position: relative; width: 220px; height: 300px; margin: 0 auto; }
.fs-tube {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 130px; height: 190px; border-radius: 14px 14px 22px 22px;
  background: linear-gradient(90deg, #8a6a38 0%, #c9a35c 22%, #e0bd76 50%, #c9a35c 78%, #7c5f31 100%);
  box-shadow: inset 0 -14px 24px rgba(60,40,10,0.45), 0 18px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(60,40,10,0.6);
}
.fs-tube::before, .fs-tube::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 3px;
  background: rgba(70,48,14,0.5); border-radius: 2px;
}
.fs-tube::before { top: 64px; }
.fs-tube::after { top: 126px; }
.fs-tube-rim {
  position: absolute; top: -12px; left: -6px; right: -6px; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at center, #2c1f0e 0 34%, #6b4f26 36%, #a37f45 60%, #5e451f 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.fs-tube-seal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-4deg);
  width: 52px; height: 52px; border-radius: 8px; background: var(--red);
  color: #f6ecd2; font-family: var(--font-serif); font-size: 1.7rem; line-height: 52px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 0 0 2px rgba(246,236,210,0.5);
}
.fs-tube.shaking { animation: fs-shake 0.14s linear 11; }
@keyframes fs-shake {
  0%, 100% { transform: translateX(-50%) rotate(-7deg); }
  50% { transform: translateX(-50%) rotate(7deg); }
}
.fs-sticks { position: absolute; left: 50%; bottom: 196px; width: 0; height: 0; }
.fs-sticks i {
  position: absolute; bottom: 0; left: -4px; width: 8px; height: var(--h);
  background: linear-gradient(90deg, #a8842e, #e8c96a 55%, #a8842e);
  border-radius: 4px 4px 0 0; transform-origin: bottom center; transform: rotate(var(--a));
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.fs-tube-wrap .fs-sticks i { transition: transform 0.3s ease; }
.fs-tube.shaking ~ .fs-sticks i, .fs-tube.shaking + .fs-tube-shadow { animation: fs-rattle 0.14s linear 11; }
@keyframes fs-rattle { 0%, 100% { margin-left: -3px; } 50% { margin-left: 3px; } }
.fs-tube-shadow {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 150px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
}
.fs-stick {
  position: absolute; left: 50%; bottom: 200px; transform: translateX(-50%) translateY(40px) scale(0.6);
  width: 34px; height: 120px; border-radius: 8px;
  background: linear-gradient(90deg, #b3312a, #e05248 55%, #b3312a);
  border: 1px solid rgba(90,20,16,0.7); box-shadow: 0 10px 26px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.4s ease;
  z-index: 3;
}
.fs-stick span {
  width: 26px; height: 26px; border-radius: 50%; background: #f6ecd2; color: #8f241e;
  font-weight: 700; font-size: 0.95rem; line-height: 26px;
}
.fs-stick.out { transform: translateX(-50%) translateY(-96px) scale(1); opacity: 1; }
.fs-banner { margin: 18px 0 6px; color: var(--cream); font-size: 1.05rem; }
.fs-banner b { color: var(--gold-light); font-size: 1.3rem; margin: 0 2px; }
.fs-hint { color: var(--cream-dim); font-size: 0.88rem; line-height: 1.9; margin: 14px 0 20px; }
.fs-shake { min-height: 56px; padding: 0 44px; font-size: 1.08rem; border-radius: 999px; cursor: pointer; }
.fs-shake:disabled { opacity: 0.55; cursor: wait; }

.fs-steps { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 10px 0 26px; }
.fs-step {
  flex: 1 1 200px; max-width: 280px; padding: 22px 18px; border-radius: 18px;
  background: var(--ink-card); border: 1px solid var(--line); text-align: center;
}
.fs-step b { display: inline-block; color: var(--gold); font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 10px; border: 1px solid rgba(201,162,39,0.5); border-radius: 999px; padding: 5px 14px; }
.fs-step p { color: var(--cream-dim); font-size: 0.9rem; line-height: 1.8; margin: 0; }
.fs-note { text-align: center; color: var(--cream-dim); font-size: 0.85rem; line-height: 2; }
.fs-note a { color: var(--gold-light); }

/* ---------- 점괘지 모달 ---------- */
.fs-modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(5,4,2,0.78); padding: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.fs-modal.visible { opacity: 1; pointer-events: auto; }
.fs-slip {
  width: 420px; max-width: 94vw; max-height: 88vh; overflow-y: auto; text-align: center;
  background: #f6f1e3; color: #2e2318; border-radius: 6px; padding: 34px 30px 28px; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65), inset 0 0 60px rgba(150,110,50,0.12);
  transform: translateY(26px); transition: transform 0.35s ease;
  border-top: 6px solid var(--red); border-bottom: 6px solid var(--red);
}
.fs-modal.visible .fs-slip { transform: translateY(0); }
.fs-slip-rank {
  display: inline-block; min-width: 84px; padding: 8px 20px; margin-bottom: 14px;
  background: var(--red); color: #f8efdc; font-size: 1.5rem; font-weight: 700; letter-spacing: 6px;
  border-radius: 4px; transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(248,239,220,0.55), 0 4px 10px rgba(0,0,0,0.2); margin-right: -6px;
}
.fs-slip-rank[data-rank="흉"] { background: #2e2e34; }
.fs-slip-rank[data-rank="평"] { background: #6b6250; }
.fs-slip h3 { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 4px; color: #241a10; }
.fs-slip-sub { color: #8a7a5c; font-size: 0.85rem; letter-spacing: 5px; margin: 0 0 6px; }
.fs-slip-rule { height: 1px; background: linear-gradient(90deg, transparent, #b89b5e, transparent); margin: 16px 0; }
.fs-slip-poem p { font-family: var(--font-serif); font-size: 1.08rem; line-height: 2.1; margin: 0; color: #3a2c1a; }
.fs-slip-meaning { text-align: left; font-size: 0.92rem; line-height: 1.95; color: #4a3a26; margin: 0; }
.fs-slip-seeker { margin: 16px 0 0; font-size: 0.82rem; color: #8a7a5c; }
.fs-slip-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.fs-slip-btns .btn-gold, .fs-slip-btns .btn-ghost {
  min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 0.95rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.fs-slip-btns .btn-ghost { border: 1px solid #b89b5e; color: #6b5320; background: transparent; }

@media (max-width: 640px) {
  .fs-hero h1 { font-size: 1.6rem; }
  .fs-tube-wrap { transform: scale(0.88); transform-origin: top center; height: 270px; margin-bottom: -18px; }
}
