.emotion-launch {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: -6px 0 18px; padding: 13px 16px;
  border: 1px solid #eed4b8; border-radius: 15px;
  color: #ad7439; background: linear-gradient(125deg, #fefbf8, #fdf6ef);
  font-size: 13px; font-weight: 850;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
}
.emotion-launch:hover { transform: translateY(-2px); border-color: #e5b584; box-shadow: 0 10px 22px #c7884720; }
.emotion-launch span { font-size: 19px; line-height: 1; }

.emotion-dialog, .wheel-stage {
  border: 0; color: #3f2f1e; box-shadow: 0 35px 100px #492d1070;
}
.emotion-dialog::backdrop, .wheel-stage::backdrop { background: #36261580; backdrop-filter: blur(12px); }
.emotion-dialog {
  width: min(880px, calc(100% - 26px)); max-height: min(92vh, 980px);
  padding: 0; border-radius: 28px; background: #fffdfd; overflow: auto;
}
.emotion-dialog[open], .wheel-stage[open] { animation: emotion-enter .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes emotion-enter { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.emotion-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid #f6eee6; background: #fffdfded; backdrop-filter: blur(12px); }
.emotion-dialog-head strong { display: block; font-family: Georgia,serif; font-size: 25px; line-height: 1.12; }
.emotion-dialog-head small { display: block; margin-top: 4px; color: #82778d; font-size: 12px; }
.emotion-close { display: grid; place-items: center; width: 37px; height: 37px; flex: none; border: 0; border-radius: 12px; color: #a3774a; background: #fcf4eb; font-size: 25px; line-height: 1; }
.emotion-close:hover { background: #fae9d8; }
.emotion-dialog-body { padding: 24px 28px 30px; }
.emotion-intro { margin: 0 0 18px; color: #6d6279; font-size: 14px; line-height: 1.6; }
.emotion-wheel-preview { display: block; width: min(260px, 68vw); aspect-ratio: 1; margin: 0 auto 14px; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: white; box-shadow: 0 18px 36px #774d212e; transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.emotion-wheel-preview:hover { transform: scale(1.055) rotate(4deg); box-shadow: 0 23px 44px #774d2143; }
.emotion-wheel-preview svg { display: block; width: 100%; height: 100%; }
.emotion-wheel-hint { margin: 0 0 26px; text-align: center; color: #b68d63; font-size: 12px; }
.emotion-question { margin: 0 0 16px; padding: 18px; border: 1px solid #f5efe8; border-radius: 17px; background: #fff; }
.emotion-question legend { max-width: 100%; padding: 0 6px; color: #543e27; font-weight: 800; font-size: 14px; }
.emotion-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.emotion-option { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 11px; border: 1px solid #f1eae2; border-radius: 11px; background: #fff; color: #876440; font-size: 12px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.emotion-option:hover { transform: translateY(-1px); border-color: #ebccac; }
.emotion-option:has(input:checked) { color: #9d652b; border-color: #e7b785; background: #fef8f1; font-weight: 800; }
.emotion-option input { margin: 0; accent-color: #c78949; }
.emotion-question-note { margin: 2px 0 0; color: #887c96; font-size: 12px; line-height: 1.5; }
.emotion-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.emotion-find { min-width: 160px; padding: 12px 20px; border: 0; border-radius: 13px; color: white; background: #cb8b48; box-shadow: 0 12px 24px #cb8b4830; font-size: 14px; font-weight: 850; }
.emotion-find:hover { background: #b77938; }
.emotion-form-status { color: #956e46; font-size: 12px; }
.emotion-launch { border-color: #f3b77d; color: #bd4e14; background: linear-gradient(120deg, #fff4e4, #ffe5c6); }
.emotion-launch:hover { border-color: #ec7b2c; box-shadow: 0 10px 22px #d85c2926; }
.emotion-dialog { background: #fffaf3; }
.emotion-dialog-head { background: #fff7ebed; border-bottom-color: #f4dcc5; }
.emotion-option:has(input:checked) { color: #ad430c; border-color: #ef842f; background: #ffecd6; }
.emotion-option input { accent-color: #e96518; }
.emotion-find { background: #e96518; box-shadow: 0 12px 24px #cf5b2238; }
.emotion-find:hover { background: #c54f10; }

.wheel-stage {
  width: min(100vw, 900px); max-width: 100vw; max-height: 100vh;
  padding: 26px 20px 30px; border-radius: 30px; text-align: center;
  background: radial-gradient(circle at 50% 38%, #fef9f4, #faf0e6 72%, #f7eadc);
}
.wheel-stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; text-align: left; }
.wheel-stage-head strong { display: block; font-family: Georgia,serif; font-size: clamp(22px,3vw,31px); }
.wheel-stage-head p { margin: 5px 0 0; color: #987148; font-size: 13px; }
.wheel-rotor {
  position: relative; display: block; width: min(70vh, 73vw, 680px); aspect-ratio: 1;
  margin: 13px auto; padding: 0; border: 0; border-radius: 50%; overflow: hidden;
  background: #ede0d2; box-shadow: 0 22px 60px #71492040, 0 0 0 8px #ffffff90;
  cursor: pointer; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.wheel-rotor:hover:not(:disabled) { transform: scale(1.018); box-shadow: 0 27px 68px #71492050, 0 0 0 9px #ffffffa0; }
.wheel-rotor:disabled { cursor: default; }
.wheel-rotor svg { display: block; width: 100%; height: 100%; }
.wheel-track { opacity: 0; transition: opacity .45s ease, stroke .45s ease; }
.wheel-stage.core-picked .wheel-track { opacity: 1; }
.wheel-core-group, .wheel-middle-group, .wheel-outer-group { transform-origin: 400px 400px; will-change: transform; }
.wheel-sector { transition: opacity .65s cubic-bezier(.22,1,.36,1), filter .45s ease; }
.wheel-sector path { stroke: #7c5c3a; stroke-width: 1.5; stroke-linejoin: round; }
.wheel-sector text { pointer-events: none; fill: #443220; font-family: "Avenir Next", Avenir, sans-serif; font-weight: 750; }
.wheel-core-segment text { font-size: 25px; font-weight: 900; }
.wheel-middle-segment text { font-size: 14px; }
.wheel-outer-segment text { font-size: 13px; }
.wheel-frame { fill: none; stroke: #885117; stroke-width: 24; }
.wheel-stage.core-picked .wheel-core-segment:not(.picked) { opacity: 0; }
.wheel-stage.core-picked .wheel-middle-segment:not(.family-picked) { opacity: 0; }
.wheel-stage.core-picked:not(.middle-picked) .wheel-outer-segment { opacity: 0; }
.wheel-stage.middle-picked .wheel-middle-segment:not(.picked) { opacity: 0; }
.wheel-stage.middle-picked .wheel-outer-segment:not(.family-picked) { opacity: 0; }
.wheel-stage.outer-picked .wheel-outer-segment:not(.picked) { opacity: 0; }
.wheel-stage .wheel-sector.picked { filter: drop-shadow(0 0 10px #ffe463) drop-shadow(0 0 18px #fff091); }
.wheel-stage .wheel-sector.picked path { stroke: none; }
.wheel-stage .wheel-sector.picked text { fill: #623f1b; }
.wheel-pointer { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translateX(-50%); border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #fff; filter: drop-shadow(0 3px 3px #472d1180); }
.wheel-stage-status { min-height: 54px; margin: 4px 0 0; color: #8a6136; font-size: 15px; font-weight: 750; line-height: 1.5; }
.wheel-selected { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wheel-selected span, .emotion-flyer { display: inline-grid; place-items: center; padding: 8px 13px; border: 1px solid #ebc59e; border-radius: 99px; color: #a77037; background: #fff9; box-shadow: 0 7px 19px #ac753c2b; font-size: 12px; font-weight: 900; white-space: nowrap; }
.wheel-selected span { animation: selected-pop .55s cubic-bezier(.18,1.4,.38,1) both; }
@keyframes selected-pop { from { transform: scale(.65); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.emotion-flyer { position: fixed; z-index: 1000; left: 0; top: 0; pointer-events: none; }
.search-button.emotion-bounce { animation: emotion-button-bounce .75s cubic-bezier(.22,1,.36,1) both; }
@keyframes emotion-button-bounce { 0%,100% { transform: scale(1); } 38% { transform: scale(1.085); } 68% { transform: scale(.97); } }
@media (max-width: 620px) {
  .emotion-dialog-head { padding: 17px 20px; }.emotion-dialog-body { padding: 20px; }
  .emotion-options { grid-template-columns: 1fr; }.emotion-question { padding: 15px; }
  .wheel-stage { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; padding: 21px 14px; }
  .wheel-rotor { width: min(86vw, 65vh); margin: 8vh auto 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .emotion-dialog[open], .wheel-stage[open], .wheel-selected span, .search-button.emotion-bounce { animation-duration: .01ms !important; }
  .emotion-wheel-preview, .wheel-rotor, .wheel-sector { transition-duration: .01ms !important; }
}
