.lottery{--lottery-border:#e4d4bd;--lottery-ink:#30271e;--lottery-paper:#fffdf8}.lottery fieldset{min-width:0}.lottery legend{font-size:17px;font-weight:900}.lottery-setup{display:grid;gap:20px}.lottery-count{margin-top:6px;font-weight:800}.lottery-prize-list{display:grid;gap:9px;margin-top:8px}.lottery-prize{display:grid;grid-template-columns:minmax(0,1fr) 5.2rem auto;gap:7px;align-items:end}.lottery-prize label{display:grid;gap:2px;font-size:13px;font-weight:700}.lottery input:not([type=radio]){width:100%;min-height:44px;border:1px solid #b6a28c;border-radius:10px;background:#fff;padding:4px 8px;font-size:16px}.lottery :is(input,.lottery-results button):focus-visible{outline:3px solid #166864;outline-offset:2px}.lottery :is(input,textarea):disabled{background:#f7f3eb}@media (max-width:480px){.lottery-prize{grid-template-columns:5.2rem minmax(0,1fr)}.lottery-prize label:first-child{grid-column:1/-1}}.lottery .lottery-prize-actions{margin:0;flex-wrap:nowrap;gap:4px}.lottery .lottery-prize-actions button{padding-inline:6px;min-width:32px}.lottery-count-input{display:flex;align-items:center;gap:8px;margin-top:10px;font-weight:700}.lottery-count-input input:not([type=radio]){width:6rem}.lottery-draw{margin-top:22px;border:1px solid #efdbc1;border-radius:18px;padding:14px 16px;background:#fff4df}.lottery .kuji-actions .kuji-primary[aria-disabled=true]{opacity:.55;cursor:default;background:#ffcf79}.lottery-next{font-weight:800}.lottery-now .kuji-winner{line-height:1.35;margin-top:4px}.lottery-mode{display:flex;gap:16px;flex-wrap:wrap}.lottery-mode label{display:flex;align-items:center;gap:4px;min-height:38px;font-weight:700}.lottery-mode input{accent-color:#853626}.lottery-results{margin-top:22px}.lottery-results h2{font-size:22px;font-weight:900}.lottery-group{margin-top:10px;border-radius:14px;border:1px solid var(--lottery-border);background:#fff}.lottery-group h3{padding:8px 12px 4px;font-weight:900;font-size:17px}.lottery-group h3 span{font-size:13px;color:#68574a;font-weight:700;margin-inline-start:8px}.lottery-group ol{list-style:none;padding:3px 12px}.lottery-group li{display:flex;gap:10px;justify-content:space-between;align-items:center;padding-block:2px}.lottery-group li+li{border-top:1px solid #f2e9dc}.lottery-group li span{min-width:0}.lottery-group button{flex:none;min-height:44px;padding-inline:5px;color:#853626;font-size:13px;font-weight:700}.lottery-group button:disabled{color:#68574a;opacity:.6}.lottery-storage{margin-top:18px;border-top:1px solid var(--lottery-border);padding-top:8px}.lottery-storage .kuji-actions{margin-bottom:0}.lottery-display[open]{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;background:var(--lottery-paper)}.lottery-display::backdrop,.lottery-projection::backdrop{background:var(--lottery-paper)}.lottery-projection{display:flex;flex-direction:column;width:100%;height:100%;background:var(--lottery-paper);color:var(--lottery-ink);padding:clamp(16px,4vw,48px)}.lottery-projection:fullscreen{display:flex}.lottery-display-body{display:flex;flex:1;flex-direction:column;overflow:auto;text-align:center}.lottery-display-content{margin-block:auto;padding-block:16px}.lottery-display-body h2{font-size:clamp(25px,5vw,76px);font-weight:900}.lottery-display-name,.lottery-display-winners{font-size:clamp(32px,7vw,110px);font-weight:900;color:#853626;line-height:1.25}.lottery-display-winners li+li{margin-top:.25em}.lottery .lottery-display-actions{justify-content:center}.lottery-print{display:none}@media (min-width:780px){.lottery-setup{grid-template-columns:1fr 1fr;gap:24px}}@media print{@page lottery{size:A4 portrait;margin:12mm}.lottery{page:lottery}body :has(.lottery-print)>:not(:has(.lottery-print),.lottery-print),body:has(.lottery-print)>:not(:has(.lottery-print)){display:none!important}body :has(.lottery-print),body:has(.lottery-print){display:block!important;position:static!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}.lottery-print{display:block;color:#000}.lottery-print h1{font-size:17pt;font-weight:900;margin-bottom:3mm}.lottery-print>div{-moz-columns:var(--lottery-columns);columns:var(--lottery-columns);-moz-column-gap:3mm;column-gap:3mm;font-size:var(--lottery-font);line-height:1.15}.lottery-print section{break-inside:avoid-page}.lottery-print h2{-moz-column-break-after:avoid;break-after:avoid;margin-block:.35em .1em;font-size:inherit;font-weight:900}.lottery-print li{-moz-column-break-inside:avoid;break-inside:avoid;overflow-wrap:anywhere}}