:root { color-scheme: light; font: 100%/1.5 "Segoe UI",system-ui,sans-serif; color:#192736; background:#edf3f2; --accent:#07584a; --border:#d5e1df; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.wrap { width:min(1120px,calc(100% - 2rem)); margin-inline:auto; }
header { background:#102e2b; color:white; }
.masthead { min-height:66px; display:flex; align-items:center; gap:.75rem; }
.mark { display:grid; place-items:center; border-radius:10px; width:34px; height:34px; background:#cef17d; color:#102e2b; }
.hero { background:linear-gradient(115deg,#09564b,#123834); color:white; padding:clamp(1.5rem,5vw,3.5rem); border-radius:25px; margin:1.5rem 0; display:flex; gap:2rem; align-items:center; justify-content:space-between; flex-wrap:wrap; }
h1,h2,p,dl,dd { margin:0; }
h1 { font-size:clamp(2rem,5vw,3.55rem); line-height:1.08; letter-spacing:-.055em; }
h2 { font-size:1.375rem; letter-spacing:-.025em; }
p { margin-top:.6rem; color:#43585d; }
.hero p,.draw p { color:#d3ebe4; }
dl { display:flex; gap:1rem 1.5rem; flex-wrap:wrap; }
dt { font-size:.9rem; color:#d3ebe4; }
dd { font-size:2rem; font-weight:750; color:#cef17d; }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem; }
.card { background:white; border:1px solid var(--border); border-radius:20px; padding:1.35rem; min-width:0; }
.draw { background:#123834; color:white; border-color:#123834; }
.section-head,.upload,footer { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; }
.upload { justify-content:flex-start; margin-top:1rem; }
button,.button { border:1px solid transparent; border-radius:9px; padding:.6rem .85rem; min-height:42px; font:inherit; font-size:.9rem; font-weight:650; background:var(--accent); color:white; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; }
.secondary { background:#edf6f2; color:#115145; border-color:#c9dfd8; }
.draw button { background:#cef17d; color:#102e2b; }
button:disabled { opacity:.48; cursor:default; }
:focus-visible { outline:3px solid #e29531; outline-offset:3px; }
#employees { position:absolute; width:1px; height:1px; opacity:0; }
.upload:focus-within label { outline:3px solid #e29531; outline-offset:3px; }
form,.draw label { margin-top:.85rem; }
label,summary { font-weight:650; font-size:.9rem; }
.draw label { display:block; }
input:not([type=file],[type=checkbox]),select { width:100%; border:1px solid #aabfba; border-radius:9px; padding:.6rem; font:inherit; background:white; color:#192736; margin-top:.3rem; }
select { appearance:none; padding-right:2.5rem; background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23192e2b' stroke-width='2'/%3E%3C/svg%3E") right .65rem center / 18px no-repeat; }
.check { display:flex; align-items:center; gap:.5rem; margin:.65rem 0; }
input[type=checkbox] { accent-color:var(--accent); width:18px; height:18px; }
.prizes { list-style:none; padding:0; margin:.65rem 0 0; }
.prizes li { display:flex; justify-content:space-between; align-items:center; gap:.5rem; padding:.55rem 0; border-top:1px solid var(--border); overflow-wrap:anywhere; }
.prizes small { display:block; color:#43585d; }
#draw { margin-top:.75rem; }
#draw-status:not(:empty) { border-left:3px solid #cef17d; padding:.5rem .75rem; background:#204c45; font-weight:650; overflow-wrap:anywhere; }
.error { color:#9a2a22; }
.feedback:empty { display:none; }
.employee-form { padding:1rem; border:1px solid var(--border); border-radius:12px; background:#f4f9f7; }
.employee-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
@media(max-width:450px) { .employee-fields { grid-template-columns:1fr; } }
details { margin-top:.7rem; }
summary { cursor:pointer; }
.scroll { overflow:auto; max-height:290px; }
table { width:100%; text-align:left; border-collapse:collapse; margin-top:.6rem; font-size:.9rem; overflow-wrap:anywhere; }
td,th { padding:.45rem .35rem; border-bottom:1px solid var(--border); }
footer { padding:1rem 0 2rem; }
footer p { margin:0; font-size:.9rem; }
@media(max-width:700px) { .grid { grid-template-columns:1fr; } }
.access { display:grid; place-items:start center; padding:clamp(2rem,8vh,6rem) 0; }
.access .card { width:min(100%,460px); padding:clamp(1.35rem,4vw,2.25rem); }
.access h1,.accounts h1 { font-size:clamp(1.9rem,5vw,2.7rem); }
.access label,.accounts form > label:not(.check) { display:block; margin-top:.75rem; }
.access button { margin-top:1rem; }
.access input,.accounts input:not([type=checkbox]) { width:100%; }
.accounts { padding-top:1.5rem; }
.accounts .grid { margin:1rem 0; }
.account-nav { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-left:auto; padding:.4rem 0; font-size:.9rem; }
.account-nav a { color:white; }
.account-nav form { margin:0; }
.account-nav button { min-height:36px; }
.wheel-dialog { width:min(34rem,calc(100% - 2rem)); max-height:calc(100% - 2rem); padding:clamp(1rem,4vw,2rem); border:1px solid var(--border); border-radius:24px; background:#fff; color:#192736; text-align:center; box-shadow:0 24px 68px #102e2b60; }
.wheel-dialog::backdrop { background:#0b2523c9; }
.wheel-dialog h2 { font-size:clamp(1.35rem,4vw,2rem); overflow-wrap:anywhere; }
.wheel-stage { width:min(100%,22rem,51dvh); aspect-ratio:1; margin:1.4rem auto 1rem; display:grid; place-items:center; position:relative; }
.wheel-stage canvas { display:block; width:100%; height:100%; border-radius:50%; box-shadow:0 0 0 5px #123834, 0 9px 26px #12383440; }
.wheel-pointer { position:absolute; top:-.55rem; left:50%; transform:translateX(-50%); width:2.15rem; height:1.75rem; background:#f4a83e; clip-path:polygon(0 0,100% 0,50% 100%); }
.wheel-center { position:absolute; display:grid; place-items:center; width:15%; aspect-ratio:1; border-radius:50%; background:#123834; border:3px solid white; color:#cef17d; font-size:clamp(.8rem,3vw,1.35rem); }
#wheel-result { min-height:2em; margin-bottom:.7rem; color:var(--accent); font-size:1.13rem; font-weight:700; overflow-wrap:anywhere; }
