:root{--paper:#f7f0e6;--ink:#46382d;--gold:#ae8650;--line:#dfcfb7;--green:#43785a;--red:#b84b49}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 0%,#fffdf8,transparent 55%),var(--paper);color:var(--ink);font:16px/1.55 system-ui,sans-serif;min-height:100vh}header{max-width:1440px;margin:auto;padding:26px 5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:20px}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:12px;font-size:26px;color:var(--gold)}.brand span{font-size:11px;letter-spacing:2px;color:var(--ink)}#connection{font-size:10px;letter-spacing:1.4px;color:#88745e}main{max-width:1280px;margin:0 auto;padding:48px 30px}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.08;margin:12px 0 22px}h1{font-size:clamp(42px,5vw,76px);letter-spacing:-2px}h2{font-size:34px}h3{font-size:24px}p{color:#877461}.eyebrow{color:var(--gold);font-size:11px;letter-spacing:3px;text-transform:uppercase}.hero{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:70px}.hero-image{width:100%;max-height:520px;object-fit:cover;border-radius:180px 180px 20px 20px;mix-blend-mode:multiply}.intro{font-size:18px;max-width:450px}.card{background:#fffcf6c9;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 16px 55px #7656230a}form{display:grid;gap:16px}label{font-size:12px;letter-spacing:.4px;display:grid;gap:7px}input{width:100%;font:inherit;border:1px solid var(--line);background:#fffdf8;padding:14px 16px;border-radius:10px;color:var(--ink);min-width:0}input:focus{outline:2px solid var(--gold);outline-offset:2px}button,.button{font:inherit;cursor:pointer;padding:13px 22px;border:1px solid var(--gold);border-radius:10px;background:var(--ink);color:#fffaf2;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-align:center;min-height:48px}button:hover,.button:hover{filter:brightness(1.12)}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button:disabled{opacity:.45;cursor:default}.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.small{font-size:12px;color:#8a7662}.steps{display:flex;gap:22px;margin:28px 0;font-size:12px;color:#8a7662}.steps b{color:var(--gold);margin-right:6px}.stack{display:grid;gap:20px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.screen-head{text-align:center;margin-bottom:30px}.screen-head h1{font-size:clamp(36px,4vw,60px)}.board{display:grid;grid-template-columns:1.05fr 1fr;gap:35px;align-items:center}.showcase{text-align:center}.showcase img{width:100%;max-height:470px;object-fit:cover;mix-blend-mode:multiply}.pill{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border:1px solid var(--line);border-radius:99px;font-size:11px;letter-spacing:.6px}.live{color:var(--green)}.live:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.ranking{display:grid;gap:10px;max-height:440px;overflow:auto}.rank{display:flex;align-items:center;gap:14px;border-bottom:1px solid #e8dece;padding:15px 0}.rank .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.number{font-family:Georgia,serif;color:var(--gold);font-size:23px;width:22px}.dots{display:flex;gap:5px}.dot{width:12px;height:12px;border:1px solid #d0c3b2;background:#eee5d8;border-radius:50%}.dot.on{background:var(--green);border-color:var(--green)}.qr-row{display:flex;align-items:center;gap:22px;margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}.qr{width:126px;height:126px;border-radius:12px;background:white}.guest{max-width:430px;margin:auto;text-align:center}.guest h1{font-size:42px}.guest .mini-image{height:150px;width:200px;object-fit:cover;mix-blend-mode:multiply;margin:-10px 0}.slots{display:flex;gap:8px;margin:22px 0 8px}.slot{flex:1;aspect-ratio:.76;display:flex;align-items:center;justify-content:center;font:32px Georgia,serif;background:linear-gradient(#f5ead8,#e9dbc4);border:1px solid #cfb68e;border-radius:10px;color:#b7a183;transition:background .15s}.slot.correct{background:var(--green);color:white;border-color:#376447}.slot.wrong{background:var(--red);color:white;border-color:var(--red);animation:shake .25s}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 12px}.keypad button{height:68px;border-radius:50px;background:linear-gradient(#fffcf8,#efe4d2);color:var(--ink);border:1px solid #d3ba98;box-shadow:0 4px 6px #76562312;font:30px Georgia,serif;touch-action:manipulation}.keypad button:last-child{grid-column:2}.message{min-height:44px;font-size:14px;color:var(--green);padding:8px}.message.error{color:var(--red)}.host{margin-top:35px;border-top:1px solid var(--line);padding-top:25px}.host h2{font-size:26px}.host-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.winner{text-align:center;padding:20px}.winner h1{color:#92703a}.winner img{max-width:430px;width:100%;max-height:350px;object-fit:cover;mix-blend-mode:multiply}.winner-name{font:clamp(36px,6vw,80px) Georgia,serif;overflow-wrap:anywhere}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:4}.confetti i{position:absolute;top:-20px;width:8px;height:14px;background:#bc975b;animation:fall 4s ease-in forwards}.empty{text-align:center;padding:35px 10px;color:#9b8a75}footer{text-align:center;color:#aa9680;font-size:11px;padding:25px;letter-spacing:1px}.ornament{position:absolute;top:120px;left:2%;color:#c7ac77;font-size:40px;pointer-events:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 22px;border-radius:12px;z-index:10;display:none;max-width:90vw}.help{margin-top:16px;font-size:12px;color:#927c64}.warning{background:#f3e5ce;border-radius:12px;padding:12px;font-size:13px}summary{cursor:pointer;color:#92703a}.welcome-form{margin-top:28px}.full-button{position:absolute;right:25px;bottom:20px;font-size:12px}.board-mode footer{display:none}@keyframes fall{to{transform:translateY(110vh) rotate(580deg)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(min-width:1500px){.board-mode main{max-width:1600px}.board-mode .rank{font-size:22px}.board-mode .dot{width:18px;height:18px}.board-mode .qr{width:160px;height:160px}}@media(max-width:760px){header{padding:18px 20px}#connection{font-size:9px;max-width:110px;text-align:right}.brand span{font-size:9px;letter-spacing:1px}main{padding:28px 20px}.hero,.board,.host-grid{grid-template-columns:1fr;gap:25px}.hero .hero-art{order:-1;height:220px;overflow:hidden;text-align:center}.hero-image{height:280px;width:280px;object-position:center}.hero h1{font-size:47px;margin-bottom:15px}.intro{font-size:16px}.card{padding:22px}.showcase img{max-height:220px;width:260px}.screen-head{margin-bottom:15px}.steps{gap:12px;flex-wrap:wrap}.ornament{display:none}.full-button{position:static;margin-top:20px}.guest .card{padding:18px}.slot{font-size:28px}.rank{gap:10px}.dots{gap:4px}.dot{width:10px;height:10px}.qr-row{gap:15px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.confetti .c0{left:0.0%;animation-delay:0.0s}.confetti .c1{left:2.3%;animation-delay:0.13s}.confetti .c2{left:4.6%;animation-delay:0.26s}.confetti .c3{left:6.8999999999999995%;animation-delay:0.39s}.confetti .c4{left:9.2%;animation-delay:0.52s}.confetti .c5{left:11.5%;animation-delay:0.65s}.confetti .c6{left:13.799999999999999%;animation-delay:0.78s}.confetti .c7{left:16.099999999999998%;animation-delay:0.0s}.confetti .c8{left:18.4%;animation-delay:0.13s}.confetti .c9{left:20.7%;animation-delay:0.26s}.confetti .c10{left:23.0%;animation-delay:0.39s}.confetti .c11{left:25.299999999999997%;animation-delay:0.52s}.confetti .c12{left:27.599999999999998%;animation-delay:0.65s}.confetti .c13{left:29.9%;animation-delay:0.78s}.confetti .c14{left:32.199999999999996%;animation-delay:0.0s}.confetti .c15{left:34.5%;animation-delay:0.13s}.confetti .c16{left:36.8%;animation-delay:0.26s}.confetti .c17{left:39.099999999999994%;animation-delay:0.39s}.confetti .c18{left:41.4%;animation-delay:0.52s}.confetti .c19{left:43.699999999999996%;animation-delay:0.65s}.confetti .c20{left:46.0%;animation-delay:0.78s}.confetti .c21{left:48.3%;animation-delay:0.0s}.confetti .c22{left:50.599999999999994%;animation-delay:0.13s}.confetti .c23{left:52.9%;animation-delay:0.26s}.confetti .c24{left:55.199999999999996%;animation-delay:0.39s}.confetti .c25{left:57.49999999999999%;animation-delay:0.52s}.confetti .c26{left:59.8%;animation-delay:0.65s}.confetti .c27{left:62.099999999999994%;animation-delay:0.78s}.confetti .c28{left:64.39999999999999%;animation-delay:0.0s}.confetti .c29{left:66.69999999999999%;animation-delay:0.13s}.confetti .c30{left:69.0%;animation-delay:0.26s}.confetti .c31{left:71.3%;animation-delay:0.39s}.confetti .c32{left:73.6%;animation-delay:0.52s}.confetti .c33{left:75.89999999999999%;animation-delay:0.65s}.confetti .c34{left:78.19999999999999%;animation-delay:0.78s}.confetti .c35{left:80.5%;animation-delay:0.0s}.confetti .c36{left:82.8%;animation-delay:0.13s}.confetti .c37{left:85.1%;animation-delay:0.26s}.confetti .c38{left:87.39999999999999%;animation-delay:0.39s}.confetti .c39{left:89.69999999999999%;animation-delay:0.52s}.confetti .c40{left:92.0%;animation-delay:0.65s}.confetti .c41{left:94.3%;animation-delay:0.78s}.confetti .c42{left:96.6%;animation-delay:0.0s}.confetti .c43{left:98.89999999999999%;animation-delay:0.13s}.confetti .c44{left:101.19999999999999%;animation-delay:0.26s}
.results{animation:reveal .65s ease-out}.results-note{text-align:center}.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:35px auto;max-width:1050px}.podium-card{text-align:center;overflow-wrap:anywhere}.podium-card .dots{justify-content:center}.podium-card.leader{border:2px solid var(--gold);background:linear-gradient(145deg,#fffdf7,#f0e2c8);box-shadow:0 15px 55px #b38c4320}.podium-card h2{font-size:clamp(24px,3vw,40px)}.final-ranking{max-width:900px;margin:auto}.results .winner h1{font-size:38px}.results .winner img{max-height:230px;max-width:280px}.results .winner-name{font-size:48px}@keyframes reveal{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@media(max-width:650px){.podium{grid-template-columns:1fr}.podium-card{padding:20px}.results .winner-name{font-size:36px}}
