:root { font-family: system-ui, sans-serif; color: #18283b; background: #eef2f6; }
body { margin: 0; }
main { max-width: 880px; margin: 48px auto; padding: 0 20px; }
h1 { font-size: 1.8rem; margin-bottom: 24px; }
form { max-width: 340px; padding: 22px; background: white; border-radius: 10px; }
label { display: block; margin: 0 0 14px; }
input:not([type=range]) { box-sizing: border-box; display: block; width: 100%; margin-top: 6px; }
input:not([type=range]), button { font: inherit; padding: 8px 10px; border: 1px solid #a6b4c4; border-radius: 5px; }
input[type=range] { width: 100%; max-width: 300px; margin: 10px 0; }
.puzzle { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 130; }
.puzzle img, .puzzle canvas { width: 100%; height: 100%; position: absolute; }
.buttons { display: flex; gap: 10px; }
button { cursor: pointer; color: #172946; background: #f5f8fc; }
button:disabled { cursor: default; opacity: .5; }
#submit { background: #1f52a4; color: white; }
#nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
article { background: white; padding: 16px; border-radius: 8px; overflow-wrap: anywhere; }
article h2 { margin: 0 0 8px; font-size: 1.1rem; }
article p { margin: 6px 0; }
