@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#233d32;--muted:#748176;--paper:#f4f1e9;--green:#214f3b;--lime:#d6ed98}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',sans-serif}header{max-width:1200px;margin:auto;padding:30px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dcded3}.brand{text-decoration:none;color:var(--ink);font-weight:800;font-size:20px;display:flex;align-items:center;gap:10px}.logo{font-size:34px}.en{font-size:10px;letter-spacing:2px;margin-left:8px;font-weight:500}.tag{font-size:12px;color:var(--muted)}main{max-width:1080px;margin:auto;padding:48px 32px 0}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:700;color:#7b8974}h1{font-size:46px;letter-spacing:-2px;margin:13px 0}.intro p{font-size:14px;line-height:1.9;color:#67756b;margin:0 0 30px}.layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.draw-panel{background:#e5ebdb;border-radius:22px;padding:25px 32px 20px;overflow:hidden}.panel-top{display:flex;justify-content:space-between;font-size:11px;color:#5b705b}.live{display:flex;align-items:center;gap:7px;font-weight:600}.live i{width:6px;height:6px;background:#46704c;border-radius:50%}.stage{height:285px;position:relative;display:flex;align-items:center;justify-content:center}.orbit{position:absolute;border:1px solid #cfdbc2;border-radius:50%;width:270px;height:270px}.o2{width:210px;height:210px}.ticket{background:#fefcf5;width:200px;min-height:170px;padding:24px 18px;text-align:center;border-radius:12px;transform:rotate(-7deg);box-shadow:10px 14px 0 #bdccb355,0 12px 25px #233d3214;position:relative;display:flex;flex-direction:column;justify-content:center}.ticket:before,.ticket:after{content:'';position:absolute;top:65%;width:18px;height:18px;border-radius:50%;background:#e5ebdb}.ticket:before{left:-9px}.ticket:after{right:-9px}.ticket-small{font-size:8px;letter-spacing:2px;color:#8b967f}#result{font-size:62px;font-weight:800;line-height:1.4;overflow-wrap:anywhere}#result.chosen{font-size:27px;padding:12px 0}.ticket-bottom{border-top:1px dashed #d5dbcd;padding-top:12px;font-size:10px;color:#7c876f}.spark{position:absolute;font-size:36px;color:#66834c}.s1{right:12%;top:35px}.s2{left:12%;bottom:40px}.primary{width:100%;border:0;border-radius:12px;background:var(--green);color:#fff;padding:20px;font-size:17px;font-weight:700;display:flex;justify-content:center;gap:35px;cursor:pointer;box-shadow:0 5px 0 #163b2c}.primary:hover{background:#306348}.primary:disabled{opacity:.55;cursor:default}.draw-note{text-align:center;font-size:10px;color:#697b61;margin:15px 0 0}.settings{background:#fdfcf8;border:1px solid #e2e3d9;padding:27px;border-radius:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.section-heading h2{font-size:16px;margin:0}.section-heading>span{font-size:9px;letter-spacing:1.5px;color:#8b927f}label{display:block;font-size:12px;font-weight:600}label small{float:right;color:#8b927f;font-size:10px;font-weight:400}textarea{margin-top:10px;resize:vertical;min-height:140px;max-height:320px;width:100%;border:1px solid #dddfd3;border-radius:10px;padding:13px 15px;font:14px/1.8 inherit;font-family:inherit;background:#fafaf5;color:var(--ink)}textarea:focus{outline:2px solid #9db687;outline-offset:2px}.input-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#84907d;margin-top:7px}.text-button{border:0;background:none;color:#657c54;font:inherit;font-size:11px;cursor:pointer;padding:4px}.text-button:hover{text-decoration:underline}.divider{height:1px;background:#e7e8de;margin:20px 0}.switch-row{display:flex;align-items:center;justify-content:space-between;position:relative;cursor:pointer}.switch-row strong{font-size:12px}.switch-row p{font-size:9px;font-weight:400;color:#87907e;line-height:1.8;margin:5px 0 0}.switch-row input{position:absolute;right:0;opacity:0;width:40px;height:30px}.switch{width:36px;height:21px;background:#d7dcd0;border-radius:30px;flex-shrink:0;margin-left:8px}.switch:after{content:'';display:block;width:15px;height:15px;background:white;border-radius:50%;margin:3px;transition:transform .2s}input:checked+.switch{background:#446c47}input:checked+.switch:after{transform:translateX(15px)}input:focus-visible+.switch{outline:2px solid var(--green);outline-offset:3px}.secondary{width:100%;margin-top:20px;background:transparent;border:1px solid #d6ddcc;border-radius:8px;padding:11px;color:#5c7054;cursor:pointer}.save-note{font-size:9px;text-align:center;color:#929b8a;margin:12px 0 0}#error{font-size:11px;color:#a34230;margin:6px 0 0}.history{margin-top:35px;padding:0 5px}.history .section-heading{margin-bottom:14px}.badge{font-size:10px;font-weight:500;background:#e4e8da;border-radius:5px;padding:2px 7px;margin-left:7px}.empty{padding:25px;text-align:center;border:1px dashed #d6dace;border-radius:12px;font-size:12px;color:#8b9582}.record{display:flex;align-items:center;gap:18px;padding:14px 16px;border-bottom:1px solid #dfe3d6}.record-num{font-size:10px;color:#89987c}.record-name{font-size:14px;font-weight:600;flex:1;overflow-wrap:anywhere}.record time{font-size:10px;color:#89987c}footer{display:flex;justify-content:space-between;border-top:1px solid #dcded3;margin-top:42px;padding:24px 0;font-size:10px;color:#86907e}button:focus-visible{outline:2px solid #739c55;outline-offset:4px}.drawing{animation:wobble .12s infinite alternate}@keyframes wobble{to{transform:rotate(7deg) translateY(-5px)}}#confetti{pointer-events:none;position:fixed;inset:0;overflow:hidden}.confetti{position:absolute;top:-20px;width:8px;height:14px;animation:fall 1.8s ease-in forwards}@keyframes fall{to{transform:translateY(110vh) rotate(560deg)}}@media(max-width:720px){header{padding:19px 22px}.en,.tag{display:none}main{padding:32px 18px 0}h1{font-size:36px}.layout{grid-template-columns:1fr}.draw-panel{padding:22px}.stage{height:260px}.settings{padding:23px}footer{gap:20px;line-height:1.8}footer span:last-child{text-align:right}.intro p br{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
