.heart-panel{margin-top:18px;padding:18px;border:1px solid rgba(176,128,201,.4);border-radius:14px;background:rgba(80,49,103,.12);line-height:1.65;min-width:0}
.heart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.heart-heading h3{margin:0;font-family:var(--serif,serif);font-size:1.2em}.heart-panel p{margin:9px 0;overflow-wrap:anywhere}.heart-panel .heart-meter{margin-top:12px}.heart-meter i{background:linear-gradient(90deg,#8b71be,#ce6983)}.heart-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.heart-actions button{white-space:normal;min-width:0;max-width:100%}
.heart-dialog{width:min(760px,92vw)!important;max-width:92vw}.heart-encounter{padding:18px;line-height:1.7}.heart-choice-grid{display:grid;gap:12px}.heart-choice-grid button{display:flex;flex-direction:column;gap:8px;text-align:left;white-space:normal;padding:14px 18px}.heart-choice-grid small{display:block;line-height:1.6;overflow-wrap:anywhere}.heart-corrupted{border-color:#e16464;box-shadow:0 0 20px #a5292930}.heart-warning{color:#ed9292}
html[data-demonic="true"] .character,html[data-demonic="true"] .journey,html[data-demonic="true"] .mobile-page,html[data-demonic="true"] .cave-stage,html[data-demonic="true"] .five-hub{border-color:rgba(226,74,74,.65);box-shadow:inset 0 0 24px rgba(146,26,33,.12),0 0 18px rgba(188,40,47,.25);animation:demon-breath 4s ease-in-out infinite}
html[data-demonic="true"] .realm-name{color:#ed8383;text-shadow:0 0 12px #dc454580}@keyframes demon-breath{50%{box-shadow:inset 0 0 32px rgba(146,26,33,.2),0 0 26px rgba(188,40,47,.4)}}
@media(max-width:600px){.heart-panel{padding:13px;margin-top:14px}.heart-heading{gap:8px}.heart-choice-grid button{padding:12px}.heart-encounter{padding:10px}.heart-actions button{flex:1 1 140px;font-size:.9em}.heart-heading h3{font-size:1.05em}}
@media(prefers-reduced-motion:reduce){html[data-demonic="true"] .character,html[data-demonic="true"] .journey,html[data-demonic="true"] .mobile-page,html[data-demonic="true"] .cave-stage,html[data-demonic="true"] .five-hub{animation:none}}
