/* Bever Bram: the few rules the game itself needs, whatever theme is active.
   Everything about the looks lives in themes/<name>/style.css. Don't put styling here. */
[hidden] { display: none !important; }

/* characters drawn by the game itself (only used when the theme has no picture for them) */
.doodle { display: block; width: 100%; height: 100%; overflow: visible; }
img.doodle { object-fit: contain; -webkit-user-drag: none; user-select: none; pointer-events: none; }
svg.doodle .halo * { fill: #fff !important; stroke: #fff !important; stroke-width: 7px !important; stroke-linejoin: round; stroke-linecap: round; opacity: 1 !important; }
svg.doodle .halo [fill="none"] { fill: none !important; }
svg.doodle .halo .keep[fill="none"] { stroke-width: 13px !important; }
svg.doodle .art *:not(.keep) { stroke: none; }
svg.doodle .art [fill="none"]:not(.keep) { stroke: #463c3c; stroke-width: 2.4px; stroke-linecap: round; stroke-linejoin: round; }
svg.doodle .art .keep { stroke-linecap: round; stroke-linejoin: round; }

/* a background picture from the theme fills the screen and stays anchored at the bottom */
.bd-layer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* the living picture (live.js): a canvas over the still scene picture, shown once it has drawn its first frame */
.scene-live { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.scene-live.on { opacity: 1; }

/* a text button (the other way to log in) and the password form */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
#pwForm { display: grid; gap: 10px; }
#pwForm > input { height: auto; min-height: 0; flex: none; }
#loginPw > input + input { margin-top: 8px; }
#pwForm input:disabled, #pwForm button:disabled { opacity: .5; }
