:root { color-scheme: dark; font-family: Georgia, "Times New Roman", serif; color: #f0eee7; background: #050304; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
/* Living background: blood-threshold.js draws it; without WebGL2 the gradient stands in. */
.blood { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.blood.ready { opacity: 1; }
html.blood-still body { background: radial-gradient(ellipse at 35% 30%, #3c050c 0%, transparent 60%), radial-gradient(ellipse at 70% 75%, #2a0309 0%, transparent 60%), #050304; }
html.blood-still .blood { display: none; }
main { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 44px; padding: 40px 20px 70px; }
h1 { margin: 0; text-align: center; font-size: clamp(38px, 5rem, 64px); line-height: 1.1; font-weight: 400; text-shadow: 0 2px 18px #000; }
form { width: min(360px, calc(100vw - 40px)); padding: 25px 28px 28px; background: #0a0204d9; border: 1px solid #d9aaa060; }
h2 { font-size: 20px; font-weight: 400; margin: 0 0 22px; }
label { display: block; font-size: 14px; margin: 17px 0 7px; }
input { display: block; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #a79a8a; border-radius: 2px; background: #150306; color: inherit; font: 16px/1.3 Arial, sans-serif; }
input:focus-visible, button:focus-visible { outline: 2px solid #e5cfb6; outline-offset: 3px; }
#message { min-height: 20px; margin: 12px 0 2px; color: #f4a0a3; font-size: 14px; line-height: 1.4; }
button { display: block; width: 100%; min-height: 44px; border: 1px solid #b8997d; border-radius: 2px; background: #3a0d12; color: #f0eee7; font: 16px Georgia, serif; cursor: pointer; transition: background .2s, border-color .2s; }
button:hover:not(:disabled) { background: #521419; border-color: #e5cfb6; }
button:disabled { cursor: wait; opacity: .7; }
@media (max-width: 600px) { h1 { font-size: 42px; } }
@media (max-width: 360px) { h1 { font-size: 36px; } form { padding-inline: 20px; } }
@media (max-height: 650px) { main { gap: 20px; padding-block: 24px; } }
