.okan-widget { position: fixed; z-index: 40; right: 22px; bottom: max(18px, env(safe-area-inset-bottom)); width: 146px; color: #29382f; font: 14px/1.65 'Noto Sans JP', 'Yu Gothic', sans-serif; pointer-events: none; }
.okan-widget[hidden], .okan-widget [hidden] { display: none !important; }
.okan-toggle { display: block; width: 100%; aspect-ratio: 1145 / 1374; border: 0; background: transparent; padding: 0; cursor: pointer; pointer-events: auto; border-radius: 40%; transform-origin: 50% 90%; }
.okan-toggle img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px #29382f12); }
.okan-toggle:hover { transform: rotate(-3deg); }
.okan-toggle:focus-visible, .okan-dismiss:focus-visible, .okan-panel a:focus-visible { outline: 3px solid #98573e; outline-offset: 3px; }
.okan-dismiss { position: absolute; top: 8px; right: 0; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #29382f24; border-radius: 50%; background: #fdfcf9f2; font: 24px/1 sans-serif; color: #29382f; pointer-events: auto; cursor: pointer; }
.okan-note { position: absolute; width: 226px; right: 128px; top: 20px; padding: 14px 18px; border: 1px solid #d9d8ce; border-radius: 20px 20px 3px 20px; background: #fdfcf9; box-shadow: 0 8px 25px #29382f0d; }
.okan-note p { margin: 0; white-space: normal; line-height: 1.6; overflow-wrap: normal; }
.okan-panel { position: absolute; bottom: 157px; right: 0; width: 252px; max-width: calc(100vw - 30px); padding: 22px; border: 1px solid #d9d8ce; border-radius: 18px; background: #fdfcf9; box-shadow: 0 12px 40px #29382f1a; pointer-events: auto; }
.okan-panel p { margin: 0 0 14px; font-size: 14px; white-space: normal; line-height: 1.6; }
.okan-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 9px 0; border-top: 1px solid #29382f24; color: #29382f; text-decoration: none; font-size: 14px; }
.okan-panel a::after { content: '↗'; color: #98573e; }
.okan-panel a:hover { color: #98573e; }
.okan-widget.is-entering { animation: okan-enter .6s cubic-bezier(.2,.8,.25,1) both; }
.okan-toggle.is-reacting { animation: okan-present .7s ease-out; }
.okan-widget[data-pose="welcome"] .okan-toggle.is-reacting { animation-name: okan-greet; }
.okan-widget[data-pose="icecream"] .okan-toggle.is-reacting { animation-name: okan-taste; }
@keyframes okan-enter { from { opacity: 0; transform: translateY(24px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes okan-present { 0%, 100% { transform: none; } 35% { transform: translateY(-7px) rotate(-3deg); } 65% { transform: translateY(-2px) rotate(2deg); } }
@keyframes okan-greet { 0%, 100% { transform: none; } 30% { transform: rotate(-5deg); } 65% { transform: rotate(3deg); } }
@keyframes okan-taste { 0%, 100% { transform: none; } 40% { transform: rotate(-4deg) translateY(-3px); } 75% { transform: rotate(-2deg); } }
@media (max-width: 600px) { .okan-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 112px; } .okan-dismiss { top: 0; width: 32px; height: 32px; } .okan-note { width: 188px; max-width: calc(100vw - 122px); right: 98px; top: 12px; padding: 11px 13px; font-size: 12px; } .okan-panel { bottom: 124px; width: 238px; } }
@media (prefers-reduced-motion: reduce) { .okan-widget.is-entering, .okan-toggle.is-reacting { animation: none; } .okan-toggle:hover { transform: none; } }
