/* 예/아니오 결정 */
.yn-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .yn-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.yn-stage {
  position: relative; display: grid; place-items: center; min-height: 290px; padding: 24px 12px 34px;
  border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
.yn-stage.is-orb { background: radial-gradient(ellipse at 50% 45%, #2a2350 0%, #151327 75%); border-color: #2a2745; }
.yn-stage:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* 예/아니오 원판 */
.yn-disc-wrap { position: relative; width: clamp(170px, 50vw, 220px); height: clamp(170px, 50vw, 220px); perspective: 900px; }
.yn-disc { position: absolute; inset: 0; transform-style: preserve-3d; }
.yn-side {
  position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #fff;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .28), inset 0 -10px 24px rgba(0, 0, 0, .18), 0 10px 26px rgba(0, 0, 0, .18);
}
.yn-side b { font-size: clamp(34px, 11vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; text-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.yn-mark { font-size: clamp(24px, 7vw, 32px); line-height: 1; }
.yn-yes { background: radial-gradient(circle at 35% 30%, #4fd39b 0%, #17a673 60%, #0f7f57 100%); }
.yn-no { background: radial-gradient(circle at 35% 30%, #ff8a7a 0%, #e5383b 60%, #b8232a 100%); transform: rotateY(180deg); }
.yn-disc-shadow {
  position: absolute; left: 15%; right: 15%; bottom: -22px; height: 14px; border-radius: 50%;
  background: rgba(0, 0, 0, .22); filter: blur(5px);
}
.yn-stage.is-busy .yn-disc-shadow { animation: bb-pulse .5s ease-in-out infinite; }
.yn-land { animation: yn-land .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes yn-land { 0% { scale: .9; } 100% { scale: 1; } }

/* 결정 구슬 */
.yn-orb-wrap { position: relative; width: clamp(200px, 60vw, 250px); height: clamp(200px, 60vw, 250px); }
.yn-orb {
  --glow: #8b7bff;
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, #3b2f86 0%, #1e1747 62%, #0f0c26 100%);
  box-shadow: 0 0 36px color-mix(in srgb, var(--glow) 60%, transparent), inset 0 0 40px color-mix(in srgb, var(--glow) 45%, transparent);
  transition: box-shadow .6s ease; animation: bb-float 3s ease-in-out infinite;
}
.yn-orb-swirl {
  position: absolute; inset: -30%; opacity: .55; filter: blur(14px);
  background: conic-gradient(from 0deg, transparent 0 15%, var(--glow) 25%, transparent 40% 60%, #ff7ad9 72%, transparent 85%);
  animation: bb-spin 9s linear infinite; transition: background .6s;
}
.yn-orb-shine {
  position: absolute; left: 18%; top: 12%; width: 34%; height: 22%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .55), transparent 70%); transform: rotate(-24deg);
}
.yn-orb-text {
  position: relative; z-index: 1; max-width: 70%; text-align: center; color: #fff; word-break: keep-all;
  font-weight: 800; font-size: clamp(16px, 4.6vw, 20px); line-height: 1.35; text-shadow: 0 0 12px rgba(0, 0, 0, .5);
}
.yn-orb.is-thinking .yn-orb-swirl { animation-duration: 1.1s; opacity: .85; }
.yn-orb.is-thinking { animation: bb-pulse .7s ease-in-out infinite; }
.yn-orb.is-thinking .yn-orb-text { opacity: .6; }
.yn-orb.tone-pos { --glow: #34d399; }
.yn-orb.tone-neu { --glow: #fbbf24; }
.yn-orb.tone-neg { --glow: #fb7185; }
.yn-orb-base {
  position: absolute; left: 22%; right: 22%; bottom: -26px; height: 22px; border-radius: 50% 50% 10px 10px;
  background: linear-gradient(180deg, #5b4a3a, #3a2d22); box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
}

/* 답 */
.yn-answer { text-align: center; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }
.yn-q { margin: 0 0 4px; color: var(--text-2); font-weight: 700; font-size: 15px; word-break: break-word; }
.yn-a { margin: 0 0 6px; font-size: clamp(22px, 6vw, 30px); font-weight: 900; letter-spacing: -0.02em; word-break: keep-all; }
.tone-pos.yn-a, .yn-ha.tone-pos { color: var(--green); }
.tone-neg.yn-a, .yn-ha.tone-neg { color: var(--red); }
.tone-neu.yn-a, .yn-ha.tone-neu { color: #c98a00; }
.yn-hist { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.yn-hist li { line-height: 1.4; }
.yn-hq { display: block; color: var(--text-2); font-size: 13.5px; word-break: break-word; }
.yn-ha { display: block; font-weight: 800; }
