* { box-sizing: border-box }
body { margin: 0; background: #f1efec; color: #302721; font: 1rem/1.55 system-ui, sans-serif }
main { max-width: 620px; min-height: 100vh; margin: auto; padding: 0 clamp(12px,4vw,24px) 36px; background: #fff9f2 }
header { display: flex; align-items: center; justify-content: space-between; min-height: 60px }
header strong { color: #ac400a; font-size: 1.18rem }
header a { padding: 10px 0 10px 12px; color: #81421c; text-decoration: none }
.check, article { background: white; border: 1px solid #e7d9cb; border-radius: 16px }
.check { padding: clamp(16px,4vw,24px); border-top: 4px solid #d85b16 }
h1 { margin: 0 0 16px; font-size: clamp(1.28rem,5vw,1.65rem); line-height: 1.35 }
.dates { border: 1px solid #d8bc9c; border-radius: 12px; overflow: hidden }
.dates summary { position: relative; cursor: pointer; list-style: none; padding: 9px 42px 9px 14px; background: #fff3e3 }
.dates summary::-webkit-details-marker { display: none }
.dates summary span { display: block; color: #774729; font-size: .86rem }
.dates summary::after { content: ""; position: absolute; right: 18px; top: 42%; width: 8px; height: 8px; border: solid #84451d; border-width: 0 2px 2px 0; transform: rotate(45deg) }
.dates[open] summary::after { transform: rotate(225deg) }
.dates nav { display: grid; max-height: min(40vh,19rem); overflow-y: auto }
.dates a { padding: 11px 14px; color: inherit; text-decoration: none; border-top: 1px solid #efe3d7 }
.dates a[aria-current] { background: #fff6ea; color: #89390e; font-weight: 700 }
label { display: block; margin: 16px 0 6px; font-weight: 600 }
.input-row { display: grid; gap: 10px }
input, button { width: 100%; min-height: 48px; border-radius: 10px; font: inherit }
input { border: 1px solid #bda894; text-align: center; font-size: 1.4rem; letter-spacing: .2em; font-variant-numeric: tabular-nums }
button { background: #ac400a; color: white; border: 0; font-weight: 700; cursor: pointer }
button:disabled { background: #746b62; cursor: default }
.check p { margin: 10px 0 0; color: #71492b }
output:not(:empty) { display: block; margin-top: 14px; padding: 12px; border-left: 4px solid #b95314; background: #fff2de }
.section-title { margin: 22px 0 10px; font-size: 1.2rem }
.results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px }
article { grid-column: 1/-1; padding: 14px }
article:nth-child(3), article:nth-child(4) { grid-column: auto }
article:first-child { background: #ffefda; text-align: center }
article:first-child .numbers { justify-content: center; color: #883709; font-size: 2rem; letter-spacing: .12em }
h3 { margin: 0 0 5px; color: #744325; font-size: .98rem }
.numbers { display: flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; font-size: 1.12rem }
.numbers span { color: #736456 }
:focus-visible { outline: 3px solid #256f80; outline-offset: -3px }
/* Centered draw sheet */
main { max-width: 430px; padding-inline: 12px; background: #fffaf4 }
header { position: relative; justify-content: center; min-height: 62px }
header strong { display: inline-flex; align-items: center; gap: 8px }
header img { border-radius: 7px }
header a { position: absolute; inset-inline-end: 0; font-size: .9rem }
.check { text-align: center; padding: 20px clamp(14px,4vw,26px); border: 1px solid #e8d5c5; box-shadow: 0 5px 20px #6830080a }
.check h1 { color: #542710; margin-bottom: 14px }
.dates summary { padding-inline: 44px; text-align: center }
.dates nav a { text-align: center }
#ticket-form { max-width: 25rem; margin-inline: auto }
input { padding-inline-start: .2em }
button { background: linear-gradient(100deg,#ad3d09,#c04d0e); box-shadow: 0 2px 4px #93451120 }
button:disabled { background: #746b62; box-shadow: none }
.section-title { display: flex; align-items: center; justify-content: center; gap: 12px }
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: #e6d6c6 }
.results { gap: 0; border: 1px solid #e4d0bd; border-radius: 16px; overflow: hidden; background: white }
.results article { text-align: center; border: 0; border-radius: 0; border-top: 1px dashed #decbb8; background: transparent; padding: 15px 10px }
.results article:first-child { position: relative; overflow: hidden; border: 0; background: radial-gradient(ellipse at 50% 120%,#fff8db,transparent 72%),repeating-linear-gradient(130deg,#ffe3b9 0 1px,#ffebcf 1px 9px); padding-block: 18px }
.results article:first-child .numbers { font-size: clamp(2.15rem,9vw,3rem); letter-spacing: .11em; line-height: 1.25 }
.results article:nth-child(4) { border-inline-start: 1px solid #eadccd }
.numbers { justify-content: center; align-items: baseline; gap: 4px 12px }
.results article:nth-child(n+5) .numbers { gap: 4px 0; max-width: 34rem; margin-inline: auto }
.results article:nth-child(n+5) .numbers b { flex: 0 0 25%; font: 600 clamp(.96rem,3.8vw,1.15rem)/1.7 ui-monospace,Consolas,monospace }
@media (min-width: 500px) { .results article:nth-child(n+5) .numbers b { flex-basis: 20% } }
@media (max-width: 340px) { .results article:nth-child(n+5) .numbers b { flex-basis: 33.333% } }
#answer:not(:empty) {
    display: grid; gap: 8px; text-align: center; padding: 16px 12px;
    border: 1px solid #dfd6cc; border-radius: 12px; background: #faf6f0; color: #55483f;
}
#answer[data-result="win"]:not(:empty) {
    border: 2px solid #b99642; background: linear-gradient(125deg,#124539,#21614b); color: #fff;
}
#answer strong { font-size: 1.18rem; line-height: 1.4 }
#answer[data-result="win"] strong { font-size: 1.45rem; color: #ffe9a9 }
.answer-ticket { font-size: .88rem }
.answer-prizes { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px }
.answer-prizes span { background: #fff2ca; color: #533b14; border-radius: 8px; padding: 3px 10px; font-weight: 600 }
.company-footer { margin-top: 24px; padding: 20px 12px 0; border-top: 1px solid #e6d6c6; text-align: center; color: #664e40 }
.company-footer strong { color: #883709; font-size: 1.08rem }
.company-footer p { margin: 4px 0; font-size: .94rem }
.company-footer address { font-style: normal; font-size: .92rem; overflow-wrap: anywhere }
.company-footer address a { display: inline-flex; align-items: center; min-height: 44px; color: #8a390c }
.company-footer address span, .company-footer small { display: block }
.company-footer small { margin-top: 12px }