:root { --bg:#eef3e0; --ink:#4a3a2a; --green:#5f7a45; --brown:#6b4a2f; --card:#fbfdf4; --line:#d9c9a8; --sand:#e9dfc6; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:'Avenir Next','Century Gothic','Trebuchet MS',sans-serif; line-height:1.5; }
header { text-align:center; padding:1.6rem 1rem 0; position:relative; }
.sign { display:inline-block; margin:.6rem 0 .4rem; padding:1.2rem 2rem; border-radius:18px 14px 20px 12px; background:linear-gradient(180deg,#d9b98c,#c19a6b); border:3px solid #8a6a46; box-shadow:0 4px 0 #8a6a46,0 8px 18px rgba(0,0,0,.18); position:relative; }
.sign::before,.sign::after { content:''; position:absolute; top:-26px; width:3px; height:26px; background:#a58a5c; }
.sign::before { left:22%; } .sign::after { right:22%; }
h1, h2 { font-family:'Chalkboard SE','Marker Felt','Comic Sans MS','Trebuchet MS',sans-serif; color:var(--green); }
.sign h1 { color:#3f4d2c; }
h1 { margin:.2rem 0; font-size:2.2rem; }
.westie { display:block; width:170px; height:auto; margin:.4rem auto .6rem; }
.countdown { font-size:1.2rem; color:var(--green); font-weight:bold; }
main { max-width:520px; margin:1.5rem auto 3rem; padding:0 1rem; }
.card { background:var(--card); border-radius:14px; padding:1.5rem; box-shadow:0 2px 12px rgba(0,0,0,.08); }
label { display:block; margin:.8rem 0; font-size:.95rem; }
input, textarea, select { display:block; width:100%; margin-top:.25rem; padding:.6rem; font:inherit; border:1px solid var(--line); border-radius:8px; background:#fff; }
fieldset { border:1px solid var(--line); border-radius:8px; margin:.8rem 0; }
.radio { display:inline-block; margin-right:1rem; }
.radio input { display:inline; width:auto; }
button[type=submit] { width:100%; padding:.8rem; border:0; border-radius:8px; background:var(--green); color:#fff; font:inherit; font-size:1.05rem; cursor:pointer; }
button[type=submit]:disabled { opacity:.6; }
textarea { resize: vertical; }
.prize { margin-bottom: 1rem; text-align: center; background: var(--sand); font-size: 1.05rem; }
.prize p { margin: 0; }
.slider { margin: 1rem 0; }
.slider-q { display: block; font-size: .95rem; }
.slider input[type=range] { padding: 0; border: 0; background: none; accent-color: var(--green); }
.slider-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--brown); }
.slider-ends span { display: flex; flex-direction: column; max-width: 48%; line-height: 1.25; }
.slider-ends span:last-child { text-align: right; }
.slider-ends small { font-size: .78rem; color: #8a7b6b; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.muted { color:#8a7b6b; font-size:.9rem; }
.center { text-align:center; }
.msg { text-align:center; min-height:1.4em; }
.msg.ok { color:var(--green); } .msg.err { color:#b3402e; }

.linkbtn { background: none; border: 0; color: var(--brown); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }

/* Thank-you popup after sending a guess */
.modal { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
         padding: 1rem; background: rgba(59,50,40,.45); }
.modal[hidden] { display: none; }
.modal-card { background: var(--card); border-radius: 16px; padding: 1.8rem 1.5rem; max-width: 420px; text-align: center;
              box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.modal-card p { margin: 0 0 1.2rem; font-size: 1.1rem; }
.modal-card button { padding: .7rem 1.8rem; border: 0; border-radius: 8px; background: var(--green); color: #fff; font: inherit; cursor: pointer; }

/* Basis: bord en kaarten */
html, body { overflow-x: clip; }
body { position: relative; min-height: 100vh; }
header, main { position: relative; z-index: 1; }
.sign { z-index: 2; animation: sway 6s ease-in-out infinite; transform-origin: 50% -26px; }
@keyframes sway { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
.card { border: 1px solid rgba(138,106,70,.15); }
.card h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: .35rem; border-radius: 4px; background: linear-gradient(90deg, #8a6a46, var(--green)); }
.formcard { position: relative; }
@media (prefers-reduced-motion: reduce) { .sign { animation: none; } }

/* Versiering: een krans van verweven wilgentakjes rond de westie, een slinger onderaan */
.sprig { position: absolute; z-index: 0; pointer-events: none; user-select: none; height: auto; }
.pup { position: relative; width: 300px; height: 285px; margin: .6rem auto 0; display: grid; place-items: center; }
.pup .wreath { inset: 0; width: 100%; height: 100%; }
.pup .westie { position: relative; z-index: 1; width: 150px; margin: 0; }
.foot { padding: 1.4rem 0 2.5rem; text-align: center; }
.foot p { margin: 0 0 .4rem; }
.garland { display: block; width: min(260px, 80%); height: auto; margin: 0 auto; }
@media (min-width: 760px) { .pup { width: 340px; height: 323px; } .pup .westie { width: 170px; } }
