:root{--berry:#8f3450;--red:#e85f7c;--pink:#ff9db0;--blush:#ffe1e4;--cream:#fff9e9;--yellow:#ffd87d;--brown:#67404a;--muted:#a47f86;--line:#f3bdc5;--shadow:0 18px 45px rgba(134,62,78,.18)}
*{box-sizing:border-box}html{min-height:100%;background:#fff4e7}body{margin:0;min-height:100vh;color:var(--brown);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:radial-gradient(circle at 8% 8%,rgba(255,196,207,.5),transparent 18rem),radial-gradient(circle at 95% 30%,rgba(255,222,144,.45),transparent 20rem),linear-gradient(180deg,#fff8ed,#fff0ee 55%,#fff9e9);overflow-x:hidden}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.5;background-image:radial-gradient(#ef9caf 1.5px,transparent 1.5px);background-size:26px 26px;mask-image:linear-gradient(#000,transparent 60%)}button,input{font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.page-shell{width:min(100%,580px);margin:auto;padding:24px 14px 54px;position:relative}.hero{text-align:center;padding:27px 0 24px;position:relative}.hero-orbit{position:absolute;right:7%;top:12px;width:58px;height:58px;display:grid;place-items:center;border-radius:50%;color:#d47b8f;background:#fff0a9;box-shadow:0 7px 0 #efbb7d,0 12px 25px rgba(196,111,92,.2);font-size:35px;font-weight:900;transform:rotate(-10deg)}.hero-orbit:before,.hero-orbit:after{content:"";position:absolute;top:-19px;width:17px;height:32px;border:3px solid #d47b8f;border-bottom:0;border-radius:50% 50% 0 0;background:#ffd4db}.hero-orbit:before{left:9px;transform:rotate(-9deg)}.hero-orbit:after{right:9px;transform:rotate(9deg)}.eyebrow{margin:0 0 10px;display:flex;align-items:center;justify-content:center;gap:10px;color:#c87a8c;font:800 9px/1 Arial,sans-serif;letter-spacing:.26em}.eyebrow span{color:#eda0af;font-size:11px}.hero h1{margin:0;line-height:1}.hero h1 small{display:block;color:#903a52;font-size:clamp(32px,9vw,47px);font-weight:950;letter-spacing:.12em;transform:translateX(.06em);text-shadow:0 4px 0 #fff,0 8px 18px rgba(170,74,95,.15)}.hero h1 b{display:block;margin-top:13px;color:#e05e78;font-size:clamp(20px,5.8vw,27px);font-weight:900;letter-spacing:.2em;transform:translateX(.1em)}.festival-copy{margin:14px 0 0;display:flex;align-items:center;justify-content:center;gap:9px;color:#ad7c84;font-size:11px;letter-spacing:.2em}.festival-copy i{color:#eb8ba0;font-style:normal}.lottery-card,.history-card{position:relative;border:2px solid #f4c4ca;border-radius:30px;background:rgba(255,252,242,.92);box-shadow:var(--shadow),inset 0 0 0 6px rgba(255,223,226,.38)}.lottery-card{padding:24px 7px 23px;overflow:hidden}.lottery-card:before{content:"";position:absolute;inset:8px;border:2px dashed rgba(236,143,161,.19);border-radius:22px;pointer-events:none}.chance-pill{position:relative;z-index:2;width:max-content;margin:0 auto 13px;padding:8px 16px;border:2px solid #f2bcc5;border-radius:100px;color:#9c6672;background:#fff;font-size:12px;box-shadow:0 5px 0 #f8d7da}.chance-pill span{padding-right:9px;margin-right:8px;border-right:1px solid #f2c8cf;color:#d28a99;font:800 8px Arial,sans-serif;letter-spacing:.12em}.chance-pill strong{margin:0 4px;color:#e95775;font:900 20px Arial,sans-serif}.wheel-stage{width:min(91vw,490px);aspect-ratio:1;margin:auto;position:relative;display:grid;place-items:center}.halo{position:absolute;inset:.5%;border:2px dotted rgba(230,106,133,.2);border-radius:50%}.halo-two{inset:-1.7%;border-color:rgba(242,179,104,.28);animation:slowturn 25s linear infinite}@keyframes slowturn{to{transform:rotate(360deg)}}.wheel{width:91%;height:91%;border-radius:50%;position:relative;transition:transform 5.6s cubic-bezier(.11,.68,.11,1);filter:drop-shadow(0 14px 13px rgba(134,62,78,.26))}#wheel-canvas{display:block;width:100%;height:100%}.pointer{position:absolute;z-index:4;top:-.3%;width:48px;height:73px;display:flex;justify-content:center;filter:drop-shadow(0 5px 3px rgba(128,55,70,.25))}.pointer:before{content:"♡";width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:#d85572;background:#fff3b9;border:3px solid #fff;box-shadow:0 0 0 3px #e7a561;font-style:normal;font-weight:900}.pointer i{position:absolute;top:30px;width:26px;height:38px;background:linear-gradient(100deg,#f5bd73,#d87970);clip-path:polygon(0 0,100% 0,50% 100%)}.spin-button{position:absolute;z-index:5;width:98px;height:98px;border-radius:50%;border:5px solid #fff;outline:4px solid #e5966d;cursor:pointer;color:#fff;background:linear-gradient(145deg,#ff8ea4,#dd4f6e);box-shadow:0 9px 0 #b9435f,0 15px 25px rgba(145,57,78,.28),inset 0 3px rgba(255,255,255,.38);transition:.18s}.spin-button span{display:block;font-size:25px;font-weight:950;letter-spacing:.08em;transform:translateX(.04em)}.spin-button small{display:block;margin-top:4px;font-size:9px;font-weight:700;letter-spacing:.08em}.spin-button:hover:not(:disabled){transform:translateY(-2px) scale(1.03);filter:brightness(1.04)}.spin-button:active:not(:disabled){transform:translateY(5px);box-shadow:0 4px 0 #b9435f}.spin-button:disabled{cursor:not-allowed;filter:grayscale(.65);opacity:.65}.status-text{min-height:22px;margin:14px 8px 0;text-align:center;color:#8f5a68;font-size:13px;font-weight:800}.fair-note{margin:7px 0 0;text-align:center;color:#c3969f;font-size:10px;letter-spacing:.12em}.history-card{margin-top:18px;padding:22px 18px 17px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:0 2px 15px;border-bottom:2px dashed #f3d4d7}.section-heading p{margin:0 0 4px;color:#d493a1;font:800 8px Arial,sans-serif;letter-spacing:.2em}.section-heading h2{margin:0;color:#8f4055;font-size:21px;font-weight:950;letter-spacing:.1em}.section-heading>span{padding:5px 11px;border-radius:20px;color:#d45f79;background:#ffe7e9;font-size:10px;font-weight:800}.history-list{padding-top:5px}.empty-state{padding:31px 8px 25px;text-align:center;color:#b98d96}.empty-state span{display:grid;place-items:center;width:45px;height:45px;margin:0 auto 12px;border:2px solid #f3bdc7;border-radius:14px;color:#dc6e85;background:#fff0f1;font-weight:900;transform:rotate(-5deg)}.empty-state p{margin:0 0 6px;color:#9b6974;font-size:13px;font-weight:700}.empty-state small{color:#c3a0a6;font-size:10px}.record-item{display:grid;grid-template-columns:39px 1fr auto;align-items:center;gap:11px;padding:13px 2px;border-bottom:1px dashed #f1d4d7;animation:recordIn .4s ease both}.record-item:last-child{border:0}@keyframes recordIn{from{opacity:0;transform:translateY(7px)}}.record-index{width:35px;height:35px;display:grid;place-items:center;border-radius:12px;color:#fff;background:#ee7991;box-shadow:0 4px 0 #d35a74;font:800 11px Arial,sans-serif}.record-result{margin:0 0 4px;color:#814354;font-size:13px;font-weight:800}.record-time{margin:0;color:#bd929a;font-size:10px}.record-luck{color:#e58699;font-weight:900;font-size:16px}footer{padding:28px 0 0;text-align:center;color:#ba9198}footer>span{font-size:9px;font-weight:700;letter-spacing:.12em}footer i{display:inline-block;width:5px;height:5px;margin:0 9px 1px;border-radius:50%;background:#ee94a6}footer p{margin:7px 0 0;font-size:9px}.modal[hidden]{display:none}.modal{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:22px}.modal-backdrop{position:absolute;inset:0;background:rgba(96,41,54,.55);backdrop-filter:blur(7px);animation:fadeIn .25s}.result-panel{position:relative;width:min(100%,380px);padding:56px 24px 25px;text-align:center;border:3px solid #fff;border-radius:30px;color:#714251;background:linear-gradient(145deg,#fffdf2,#ffe4e7);box-shadow:0 24px 70px rgba(99,40,54,.35),0 0 0 5px #f2aeb9;animation:resultIn .45s cubic-bezier(.18,.89,.32,1.25)}@keyframes fadeIn{from{opacity:0}}@keyframes resultIn{from{opacity:0;transform:scale(.78) translateY(16px)}}.result-panel:before,.result-panel:after{content:"♡";position:absolute;top:18px;color:#e76f88;font-size:18px}.result-panel:before{left:24px}.result-panel:after{right:24px}.close-modal{position:absolute;right:10px;top:7px;width:36px;height:36px;border:0;color:#b56d7c;background:transparent;font-size:25px;cursor:pointer}.seal{position:absolute;top:-35px;left:calc(50% - 35px);width:70px;height:70px;display:grid;place-items:center;border:4px solid #fff;border-radius:50%;color:#fff;background:#ec7189;box-shadow:0 0 0 4px #f3ae67,0 8px 20px rgba(133,49,69,.22);font-size:29px;font-weight:950}.result-kicker{margin:0 0 10px;color:#d46a7f;font-size:11px;font-weight:900;letter-spacing:.28em}.result-panel h2{margin:0;color:#8e3650;font-size:clamp(25px,7vw,35px);line-height:1.3;font-weight:950}.result-panel>p:last-of-type{margin:12px 0 22px;color:#9e727a;font-size:12px}.confirm-button{width:100%;padding:14px;border:0;border-radius:15px;color:#fff;background:linear-gradient(90deg,#e96781,#f18ba0);box-shadow:0 6px 0 #c94865;font-weight:900;cursor:pointer}.confetti-layer{position:fixed;z-index:30;inset:0;pointer-events:none;overflow:hidden}.confetti{position:absolute;top:-20px;width:9px;height:15px;border-radius:4px;animation:confettiFall 2.7s ease-in forwards}@keyframes confettiFall{to{transform:translate(var(--drift),110vh) rotate(760deg);opacity:.2}}
/* reception */.admin-page{display:grid;place-items:start center}.admin-shell{width:min(100%,520px);padding:42px 17px 60px;position:relative}.admin-header{display:flex;align-items:center;gap:14px;margin-bottom:23px}.admin-mark{width:58px;height:58px;display:grid;place-items:center;border:3px solid #fff;border-radius:18px;color:#fff;background:#eb7189;box-shadow:0 5px 0 #c9536b,0 0 0 3px #f5b8c1;font-weight:950}.admin-header p{margin:0 0 5px;color:#d18d9a;font:800 8px Arial,sans-serif;letter-spacing:.2em}.admin-header h1{margin:0;color:#8d4054;font-size:26px}.generator-card{position:relative;padding:29px 21px 23px;border:2px solid #f2bec5;border-radius:27px;background:rgba(255,252,243,.94);box-shadow:var(--shadow)}.admin-badge{position:absolute;right:17px;top:17px;padding:5px 10px;border-radius:20px;color:#d35f78;background:#ffe5e8;font-size:9px;font-weight:800}.generator-card h2{margin:2px 0 9px;color:#8e4356;font-size:21px}.admin-description{margin:0 0 25px;max-width:310px;color:#ab7e87;font-size:12px;line-height:1.7}.generator-card label{display:block;margin-bottom:9px;color:#a65c6d;font-size:12px;font-weight:800}.number-field{height:56px;display:grid;grid-template-columns:56px 1fr 56px;border:2px solid #f2c3c9;border-radius:15px;overflow:hidden;background:#fff}.number-field button{border:0;color:#dc6981;background:#fff1f2;font-size:23px;cursor:pointer}.number-field input{min-width:0;border:0;border-inline:1px solid #f4d2d6;outline:0;text-align:center;color:#8b4053;background:#fff;font:900 21px Arial,sans-serif;appearance:textfield}.number-field input::-webkit-inner-spin-button{appearance:none}.input-error{min-height:18px;margin:7px 2px 2px;color:#dc526e;font-size:10px}.generate-button,.copy-button,.open-button{width:100%;min-height:49px;border-radius:14px;cursor:pointer;font-weight:900}.generate-button,.copy-button{border:0;color:#fff;background:linear-gradient(120deg,#f08ca0,#df5c78);box-shadow:0 5px 0 #c74965}.generated-area{margin-top:23px;padding-top:23px;text-align:center;border-top:2px dashed #f2d4d7}.success-icon{width:35px;height:35px;display:grid;place-items:center;margin:0 auto 9px;border-radius:50%;color:#fff;background:#eb7189}.generated-area h3{margin:0 0 12px;color:#995466;font-size:14px}.url-box{padding:12px;margin-bottom:11px;border-radius:11px;text-align:left;background:#fff1f2;color:#a3737c;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.open-button{margin-top:9px;border:2px solid #f1bdc5;color:#d15b74;background:#fff}.admin-tip{margin-top:15px;padding:16px 17px;border-radius:16px;color:#a77b83;background:#fff8ed;border:1px solid #f1d0d3;font-size:10px;line-height:1.65}.admin-tip strong{display:block;margin-bottom:3px;color:#d0647a}.admin-tip p{margin:0}.toast{position:fixed;left:50%;bottom:26px;z-index:20;padding:10px 17px;border-radius:99px;color:#fff;background:#dc5d77;box-shadow:var(--shadow);font-size:11px;transform:translate(-50%,30px);opacity:0;transition:.25s}.toast.show{transform:translate(-50%,0);opacity:1}@media(min-width:700px){.page-shell{padding-top:35px}.history-card{padding-inline:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important}.wheel{transition-duration:.01ms!important}}
