/* Compact purple demo cards, matching Relic Ruins. */
html body .covenant-demo-panel{
 position:fixed!important;inset:var(--demo-card-top,170px) max(12px,env(safe-area-inset-right)) auto auto!important;
 width:230px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - var(--demo-card-top,170px) - 110px)!important;
 height:auto!important;min-height:0!important;display:block!important;overflow:auto!important;padding:12px!important;margin:0!important;box-sizing:border-box!important;pointer-events:auto!important;
 border:1px solid #b58cff!important;border-radius:14px!important;background:rgba(40,20,70,.94)!important;
 box-shadow:0 8px 24px #0006!important;backdrop-filter:blur(8px);color:#f1e9ff!important;z-index:8!important;
 font:13px/1.4 system-ui,-apple-system,'Segoe UI',sans-serif!important;white-space:normal!important;text-align:left!important;
}
html body .covenant-demo-panel[hidden],html body .covenant-demo-panel [hidden]{display:none!important}
html body .covenant-demo-panel .demo-panel-toggle{
 display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%!important;padding:0!important;margin:0!important;
 border:0!important;border-radius:4px!important;box-shadow:none!important;background:transparent!important;color:#d9c2ff!important;
 min-height:28px!important;font:700 12px/1.3 system-ui,sans-serif!important;letter-spacing:.12em;cursor:pointer;
}
html body .demo-panel-toggle b{font:inherit!important;color:inherit!important;letter-spacing:inherit!important}
html body .demo-panel-toggle>span{font:22px/1 system-ui!important;letter-spacing:0}
html body .covenant-demo-panel .demo-panel-body{display:grid;gap:8px;padding-top:5px}
html body .covenant-demo-panel .demo-panel-note{margin:0 0 2px!important;padding:0!important;color:#e8ddf4!important;font:12px/1.45 system-ui,sans-serif!important;opacity:.86}
html body .covenant-demo-panel label{display:block!important;min-width:0!important;width:100%!important;margin:0!important}
html body .covenant-demo-panel select,html body .covenant-demo-panel .btn,html body .covenant-demo-panel .demo-btn{
 display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:40px!important;box-sizing:border-box!important;
 margin:0!important;padding:8px 12px!important;border:1px solid #d9c2ff80!important;border-radius:999px!important;
 background:#ffffff12!important;color:#f1e9ff!important;box-shadow:none!important;font:13px/1.25 system-ui,sans-serif!important;
 letter-spacing:0!important;text-align:center!important;white-space:normal!important;cursor:pointer;
}
html body .covenant-demo-panel select{text-align:left!important;white-space:nowrap!important;text-overflow:ellipsis}
html body .covenant-demo-panel option{background:#2a1944;color:#f1e9ff}
html body .covenant-demo-panel .demo-panel-exit{background:#d9c2ff!important;color:#24123e!important;border-color:#d9c2ff!important;font-weight:700!important}
html body .covenant-demo-panel :disabled{opacity:.45;cursor:default}
html body .covenant-demo-panel :focus-visible{outline:3px solid #a8e5ff!important;outline-offset:2px}
html body .covenant-demo-panel .demo-panel-more{border-top:1px solid #d9c2ff33;margin-top:3px;padding-top:7px}
html body .covenant-demo-panel summary{min-height:30px;cursor:pointer;color:#d9c2ff;font:12px/1.5 system-ui,sans-serif}
html body .covenant-demo-panel .demo-panel-tools{display:grid;gap:8px;padding-top:4px}
html body .covenant-demo-panel.demo-panel-small{width:180px!important;padding:8px 10px!important}
html body.playing.demo:not(.phone-layout) #app{grid-template-rows:minmax(0,1fr)!important}
html body.demo-active.playing-rpg #app{display:block!important;height:100svh!important}
html body.demo-active.playing-rpg .rpg-shell{height:100svh!important;min-height:0!important}
@media(max-height:500px){html body .covenant-demo-panel{max-height:calc(100dvh - var(--demo-card-top,82px) - 75px)!important}}
