[data-oracle-widget] { width: 100%; display: grid; justify-items: end; gap: 16px; scroll-margin-bottom: 18px; }
[data-oracle-widget][data-transition="entering"] { animation: arg-oracle-materialise .65s ease-out both; }
[data-oracle-widget][data-transition="exiting"] { animation: arg-oracle-dematerialise .32s ease-in both; pointer-events: none; }
[data-oracle-widget] .oracle-avatar { padding: 0; border: 0; background: transparent; filter: drop-shadow(0 0 9px #d9b66155); }
[data-oracle-widget] .oracle-art { display: block; position: relative; overflow: hidden; width: 160px; aspect-ratio: 1010 / 1348; }
[data-oracle-widget] .oracle-art img { position: absolute; max-width: none; width: 202.7723%; height: auto; left: -50.5941%; top: -29.0059%; }
[data-oracle-widget] .oracle-bubble { position: relative; width: 100%; padding: 22px; border: 1px solid #ae8d4c; border-radius: 20px; background: #17130ff5; color: #f4e7c8; box-shadow: 0 8px 35px #0005, inset 0 0 14px #b69a5620; font: 1.12rem/1.5 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
[data-oracle-widget] .oracle-bubble::after { content: ''; position: absolute; right: 67px; bottom: -8px; width: 14px; height: 14px; transform: rotate(45deg); background: #17130f; border-right: 1px solid #ae8d4c; border-bottom: 1px solid #ae8d4c; }
[data-oracle-widget] .oracle-bubble p { margin: 0 0 16px; }
[data-oracle-widget] .oracle-bubble-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
[data-oracle-widget] .oracle-wishes { flex: 0 0 auto; margin-left: auto; font: .72rem/1.5 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #bda76f; white-space: nowrap; }
[data-oracle-widget] .oracle-bubble .oracle-final-message { font-size: .95rem; font-style: italic; color: #d4bd85; }
[data-oracle-widget] .oracle-bubble .controls { gap: 10px; }
[data-oracle-widget] .oracle-bubble button { padding: 8px 12px; font: .75rem/1.3 system-ui, sans-serif; color: #f1d693; background: #b3964d12; border-color: #8e7544; }
[data-oracle-widget] .oracle-bubble button:hover { background: #b3964d30; }
[data-oracle-widget][hidden], [data-oracle-widget] .oracle-bubble[hidden], [data-oracle-widget] .oracle-bubble [hidden] { display: none; }
@keyframes arg-oracle-materialise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes arg-oracle-dematerialise { from { opacity: var(--oracle-departure-opacity, 1); transform: var(--oracle-departure-transform, none); } to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) {
  [data-oracle-widget] .oracle-art { width: 110px; }
  [data-oracle-widget] .oracle-bubble { padding: 18px; font-size: 1.05rem; }
  [data-oracle-widget] .oracle-bubble::after { right: 45px; }
}
@media (max-height: 650px) {
  [data-oracle-widget] .oracle-art { width: 90px; }
  [data-oracle-widget] .oracle-bubble { padding: 14px; font-size: 1rem; line-height: 1.35; }
  [data-oracle-widget] .oracle-bubble::after { right: 35px; }
  [data-oracle-widget] { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { [data-oracle-widget][data-transition] { animation: none; } }
