@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:light;--ink:#38284c;--purple:#7543bf;--cream:#f6f2e9}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Noto Sans KR',sans-serif;-webkit-font-smoothing:antialiased}body:has(dialog[open]){overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #b9a1e0;outline-offset:6px}button:disabled{cursor:default}main:focus{outline:none}.game-only{width:100%;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 20px 36px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#fffdf8 0,transparent 62%)}.play-area{width:100%;max-width:560px}.scene{position:relative;width:100%;height:590px;display:grid;place-items:center;isolation:isolate}.halo{position:absolute;width:460px;height:460px;border:1px solid #e4dccf;border-radius:50%;top:64px;z-index:-2}.halo:after{content:'';position:absolute;inset:21px;border:1px solid #ece4d8;border-radius:50%}.stage-shadow{position:absolute;bottom:8px;width:330px;height:43px;border-radius:50%;background:radial-gradient(ellipse,#35224136,transparent 70%);filter:blur(8px);z-index:-1}.machine{position:relative;width:390px;height:585px;transform-origin:50% 95%;filter:drop-shadow(8px 16px 12px #46304d12)}.machine-art{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}.chamber{position:absolute;left:14%;top:18.7%;width:72%;height:32%;overflow:hidden;border-radius:8% 8% 12% 12%;background:linear-gradient(90deg,#ddd5e029,#fffdf555 45%,#e2d8eb40);z-index:1}#balls{position:absolute;inset:0}.ball{position:absolute;left:0;top:0;width:22.2%;aspect-ratio:1;background:url('/assets/capsule.webp') center/contain no-repeat;will-change:transform;filter:hue-rotate(var(--hue));transform-origin:center}.glass-glint{position:absolute;z-index:3;top:21%;left:17%;width:5%;height:27%;background:linear-gradient(90deg,#fff8,#fff0);border-radius:100%;pointer-events:none;opacity:.45}.dial{position:absolute;z-index:3;left:22.5%;top:58.1%;width:18.3%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}.dial span{width:25%;height:87%;display:block;transform:rotate(38deg);border-radius:12px;background:linear-gradient(90deg,#b8a58e,#fff9e9 26%,#e7dcc9 65%,#b7a58c);border:1px solid #e7d8be;box-shadow:4px 4px 3px #3b254b55,inset 1px 1px 1px white}.outlet{position:absolute;left:29%;top:78%;width:42%;height:12.7%;z-index:3;overflow:hidden;border-radius:15% 15% 10% 10%}.dropped-ball{position:absolute;width:44%;left:28%;bottom:0;opacity:0;transform:translateY(-130%) rotate(-20deg)}.prize-tag{position:absolute;top:66px;right:3px;width:106px;padding:12px 8px 14px;background:#fff9e9;box-shadow:0 3px 0 #e7dbc2,0 12px 26px #6c4e3b10;border:1px solid #e9ddc4;border-radius:7px;transform:rotate(9deg);z-index:4;text-align:center}.tag-pin{position:absolute;left:48%;top:6px;width:5px;height:5px;border-radius:50%;background:#b0a18a;box-shadow:0 1px 1px white}.prize-tag img{width:86px;height:72px;object-fit:contain;display:block;margin:auto}.prize-tag>span:not(.tag-pin){font-size:9px;letter-spacing:1px;color:#9b8062}.prize-tag strong{display:block;font-size:11px;font-weight:700;color:#6f543b;margin-top:3px}.scene-spark{position:absolute;color:#a88dc7;line-height:1}.spark-one{left:30px;top:204px;font-size:34px;transform:rotate(15deg)}.spark-two{right:40px;bottom:110px;font-size:29px;color:#baa478}.play-controls{max-width:350px;margin:22px auto 0;text-align:center}.status{font-size:12px;line-height:1.7;color:#8a7e91;min-height:41px;margin-bottom:13px;word-break:keep-all}.primary{border:1px solid #794bb7;border-radius:14px;width:100%;min-height:62px;padding:15px 22px;display:flex;gap:10px;align-items:center;justify-content:center;font-weight:800;font-size:17px;color:#fffaf2;background:linear-gradient(180deg,#a277df,#8250c5);box-shadow:inset 0 1px 0 #d5b8ff,0 5px 0 #633895,0 12px 20px #60368a1c;transition:transform .16s,box-shadow .16s,filter .2s}.primary:not(:disabled):hover{filter:brightness(1.06);transform:translateY(-2px);box-shadow:inset 0 1px 0 #d5b8ff,0 7px 0 #633895,0 15px 25px #60368a24}.primary:not(:disabled):active{transform:translateY(4px);box-shadow:inset 0 1px 0 #d5b8ff,0 1px 0 #633895}.primary:disabled{background:#eee8f2;color:#9989aa;border-color:#ded4e8;box-shadow:inset 0 1px 0 #fff,0 3px 0 #e0d7e6;font-size:15px}.button-ticket{font-size:10px;font-weight:500;border-left:1px solid #ffffff45;padding-left:14px;margin-left:auto}.primary>span:first-child{font-size:15px;color:#f4dfa2}#signin{margin-top:20px;color:var(--purple);font-size:13px}#signin[hidden]{display:none}.mixing{animation:machine-rattle .17s infinite alternate}.mixing .dial{animation:crank-turn 1s cubic-bezier(.4,0,.3,1) infinite}.dropping .dropped-ball{animation:capsule-drop .85s cubic-bezier(.3,.1,.7,1) forwards}.dropping .outlet{filter:drop-shadow(0 0 8px #f6dcaa80)}@keyframes crank-turn{to{transform:rotate(360deg)}}@keyframes machine-rattle{0%{transform:rotate(-1.1deg) translate(-2px,0)}50%{transform:rotate(.6deg) translate(3px,-2px)}100%{transform:rotate(1.1deg) translate(-1px,1px)}}@keyframes capsule-drop{0%{opacity:1;transform:translateY(-130%) rotate(-50deg)}55%{opacity:1;transform:translateY(0) rotate(15deg)}73%{transform:translateY(-26%) rotate(-8deg)}90%,100%{opacity:1;transform:translateY(0) rotate(0)}}
dialog{border:1px solid #f7efe0;border-radius:28px;padding:24px 32px 32px;width:min(410px,calc(100vw - 36px));max-height:calc(100svh - 32px);overflow-x:hidden;background:radial-gradient(ellipse at 50% 20%,#fffdf5,#f5efe5 80%);box-shadow:0 24px 90px #21102c33;color:var(--ink);text-align:center}dialog::backdrop{background:#28173475;backdrop-filter:blur(9px)}dialog[open]{animation:result-enter .45s cubic-bezier(.16,1,.3,1)}.close{position:absolute;right:14px;top:12px;z-index:8;border:0;background:transparent;color:#9e8ca5;font-size:27px;width:36px;height:36px}.result-visual{height:258px;position:relative;display:grid;place-items:center}.reward-halo{position:absolute;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,#f9e1a677,transparent 69%);opacity:0}.win .reward-halo{opacity:1;animation:halo-breathe 2.5s ease-in-out infinite}.reveal-capsule{position:relative;width:200px;height:200px}.capsule-top,.capsule-bottom{position:absolute;inset:0;background:url('/assets/capsule.webp') center/contain no-repeat;z-index:3;transition:transform .9s cubic-bezier(.2,.8,.2,1),opacity .9s;transition-delay:.3s}.capsule-top{clip-path:inset(0 0 44% 0)}.capsule-bottom{clip-path:inset(56% 0 0 0)}.opened .capsule-top{transform:translate(-38px,-70px) rotate(-26deg) scale(.75);opacity:.15}.opened .capsule-bottom{transform:translate(32px,63px) rotate(17deg) scale(.75);opacity:.25}.result-icon{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transform:translateY(20px) scale(.55);transition:opacity .5s .7s,transform .8s .6s cubic-bezier(.16,1,.3,1);z-index:4}.opened .result-icon{opacity:1;transform:translateY(0) scale(1)}.chicken-reward{width:240px;max-width:none;filter:drop-shadow(0 16px 12px #97714222)}.lose .chicken-reward,.win .empty-ticket{display:none}.empty-ticket{width:125px;height:151px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;border:1px solid #d5c8df;background:linear-gradient(140deg,#fdf9ff,#ede2f5);border-radius:10px;box-shadow:0 7px 0 #c3b4ce,0 15px 20px #3a25471a;transform:rotate(-8deg)}.empty-ticket span,.empty-ticket i{font:500 8px sans-serif;letter-spacing:2px;color:#94829f}.empty-ticket b{font-size:54px;line-height:1;color:#aa8cc2}.empty-ticket i{border-top:1px dashed #c9b7d5;padding-top:12px;width:100%}#result-tag{font-size:10px;letter-spacing:3px;font-weight:700;color:#96743c}dialog.lose #result-tag{color:#9d8ba8}dialog h2{font-size:24px;letter-spacing:-1.1px;margin:13px 0 10px;font-weight:900}dialog p{font-size:13px;line-height:1.8;color:#8c7d92;margin:0;word-break:keep-all}.result-delivery{min-height:36px;padding-top:10px;margin-bottom:24px!important;font-size:11px!important}dialog .primary{font-size:15px;min-height:54px;justify-content:space-between}.result-particle{position:absolute;left:50%;top:32%;pointer-events:none;z-index:5;width:7px;height:12px;border-radius:2px;animation:particle-burst 1.9s ease-out var(--delay) both}.puff{width:30px;height:30px;border-radius:50%;filter:blur(8px);opacity:.4}#confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:10}@keyframes particle-burst{from{transform:translate(0,0) rotate(0);opacity:1}to{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}@keyframes result-enter{from{opacity:0;transform:translateY(24px) scale(.92)}to{opacity:1;transform:none}}@keyframes halo-breathe{50%{transform:scale(1.15);opacity:.7}}
@media(max-width:540px){.game-only{padding:26px 20px 32px}.scene{height:auto;aspect-ratio:360/535}.machine{width:100%;height:auto;aspect-ratio:2/3;max-width:357px}.halo{width:100%;height:auto;aspect-ratio:1;top:18%}.stage-shadow{bottom:0;width:85%}.prize-tag{top:10%;right:-4px;transform:rotate(10deg) scale(.85);transform-origin:top right}.spark-one{left:-2px;top:40%;font-size:25px}.spark-two{right:5px;bottom:16%;font-size:25px}.play-controls{margin-top:22px;max-width:330px}.status{font-size:11px;margin-bottom:12px;min-height:38px}.primary{min-height:58px}.result-visual{height:238px}dialog{padding:20px 24px 28px}dialog h2{font-size:22px}}
@media(min-width:541px) and (max-height:800px){.scene{height:510px}.machine{width:340px;height:510px}.halo{width:420px;height:420px;top:45px}.play-controls{margin-top:14px}.game-only{padding-top:20px;padding-bottom:24px}.prize-tag{right:35px;top:45px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0ms!important}}
.ball{filter:none}.ball:before{content:'';position:absolute;inset:0;background:url('/assets/capsule.webp') center/contain no-repeat;clip-path:inset(0 0 44% 0);filter:hue-rotate(var(--hue)) saturate(.72)}
@media(max-width:540px){.prize-tag{top:25%;right:-7px;transform:rotate(9deg) scale(.72)}}
/* One material language: violet enamel, ivory edges, restrained brass. */
.halo{border:0;background:radial-gradient(ellipse,#e8def066 0,#fdfaf2 55%,transparent 72%);width:520px;height:520px;top:30px}.halo:after{display:none}
.scene-spark{display:none}.glass-glint{opacity:.12}.machine-art{filter:saturate(.84)}
.stage-shadow{height:37px;width:350px;bottom:2px;background:radial-gradient(ellipse,#78637a40 5%,#a7988d24 45%,transparent 72%);filter:blur(5px)}
.back-capsules{position:absolute;inset:0;opacity:.65;filter:brightness(.84) saturate(.7)}.back-capsules i{position:absolute;width:21%;aspect-ratio:1;background:url('/assets/capsule.webp') center/contain;bottom:27%;left:7%;transform:rotate(24deg)}.back-capsules i:nth-child(2){left:29%;bottom:8%;transform:rotate(-30deg)}.back-capsules i:nth-child(3){left:51%;bottom:29%;transform:rotate(65deg)}.back-capsules i:nth-child(4){left:74%;bottom:7%;transform:rotate(-14deg)}
.ball{filter:drop-shadow(2px 4px 2px #43324730)}.mixing .back-capsules{animation:rear-tumble .55s ease-in-out infinite alternate}.settling{animation:machine-settle .6s ease-out forwards}.mixing .dial{animation:crank-weight 1.1s cubic-bezier(.45,0,.25,1) 2}.prize-tag{border-radius:12px;background:linear-gradient(140deg,#fffdf5,#f3e9d7);border:1px solid #dac8a9;box-shadow:inset 0 0 0 3px #fff9ec,0 3px 0 #d3c2a4,5px 13px 20px #684f3b12}.prize-tag:after{content:'';position:absolute;inset:7px;border:1px solid #d8c6a366;border-radius:7px;pointer-events:none}
.primary{border:2px solid #e6d6b7;border-radius:18px;background:linear-gradient(175deg,#a780d7,#8254ba 72%,#7645aa);box-shadow:inset 0 1px 1px #ead8ff,0 4px 0 #694292,0 6px 0 #d8c8ae,0 14px 20px #60368a14;font-size:16px}.primary:not(:disabled):hover{box-shadow:inset 0 1px 1px #ead8ff,0 6px 0 #694292,0 8px 0 #d8c8ae,0 17px 20px #60368a1c}.primary:not(:disabled):active{box-shadow:inset 0 1px 1px #ead8ff,0 1px 0 #694292,0 3px 0 #d8c8ae}.primary:disabled{border-color:#ddd4e2;background:#eee8f0;box-shadow:inset 0 1px 0 #fff,0 3px 0 #d9cfe1}.primary>span:first-child{width:28px;height:28px;display:grid;place-items:center;border:1px solid #e7d7b8;border-radius:50%;box-shadow:inset 0 1px 2px #57397840;background:#e9dcc4;color:#8555b2;text-shadow:0 1px 0 #fff;font-size:17px}.button-ticket{border:1px dashed #f1e7fa66;border-radius:5px;padding:5px 9px;font-size:10px;letter-spacing:.2px}.is-playing .prize-tag{opacity:.45;transition:opacity .6s}.is-playing .primary{color:#7b6095}.status{color:#817286}
/* The same capsule travels from the outlet into a quiet opening stage. */
dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;padding:20px;background:transparent;box-shadow:none;overflow-y:auto;overflow-x:hidden}dialog[open]{display:grid;place-items:center;animation:none}dialog::backdrop{background:#30213d7a;backdrop-filter:blur(7px);transition:background .4s}dialog.anticipation::backdrop{background:#30213dc4;backdrop-filter:blur(5px)}
.result-card{position:relative;isolation:isolate;width:min(410px,100%);border:1px solid #dfcfb4;border-radius:28px;padding:26px 30px 30px;background:radial-gradient(ellipse at 50% 20%,#fffef8,#f3ecdf 85%);box-shadow:inset 0 0 0 5px #fffcf4,0 8px 0 #d7c7b0,0 24px 90px #21102c33;transition:background .5s,border-color .5s,box-shadow .5s}.result-card:after{content:'';position:absolute;inset:10px;border:1px solid #e0d0b355;border-radius:19px;pointer-events:none;z-index:-1}.result-visual{height:270px}.reveal-capsule{width:220px;height:220px;filter:drop-shadow(0 18px 12px #3f2a461c)}.capsule-top,.capsule-bottom{transition-delay:0s;transition-duration:.85s}.capsule-top{clip-path:inset(0 0 44% 0)}.capsule-bottom{clip-path:inset(55.8% 0 0 0)}
.capsule-light{position:absolute;inset:42% 5% 40%;border-radius:50%;background:#fff6d1;filter:blur(7px);z-index:2;opacity:0}.unsealing .capsule-light{animation:seam-light .42s ease-in forwards}.unsealing .reveal-capsule{animation:seal-shiver .1s linear infinite alternate}.opened .capsule-light{animation:reveal-light .65s ease-out both}.opened .capsule-top{transform:translate(-43px,-62px) rotate(-24deg) scale(.75);opacity:.2}.opened .capsule-bottom{transform:translate(40px,72px) rotate(20deg) scale(.73);opacity:.3}.result-icon{transition-delay:.18s;transition-duration:.75s}.result-icon[hidden]{display:none}.chicken-reward{width:260px;filter:drop-shadow(0 16px 12px #97714233)}
.anticipation .result-card{background:transparent;border-color:transparent;box-shadow:none}.anticipation .result-card:after{display:none}.anticipation .result-visual{height:270px}.anticipation .close{color:#d5c7df}.anticipation #result-title{font-size:18px;font-weight:500;letter-spacing:-.5px;color:#fff6e4;margin-top:16px}.anticipation #result-tag{color:#d7c2a1;letter-spacing:4px;font-family:Georgia,serif;font-size:12px}.anticipation #result-copy,.anticipation #result-delivery{display:none}.anticipation .reward-halo{opacity:1;width:310px;height:310px;background:radial-gradient(circle,#b094cf30,transparent 68%);animation:halo-breathe 3s ease-in-out infinite}.anticipation:not(.arriving):not(.unsealing) .reveal-capsule{animation:capsule-breathe 2.8s ease-in-out infinite}.arriving #result-title,.arriving #result-tag{opacity:0}#result-title,#result-tag{transition:opacity .3s}
#open-capsule{position:absolute;inset:-14px;z-index:7;border:0;border-radius:50%;background:transparent;touch-action:manipulation}#open-capsule:hover:not(:disabled){background:radial-gradient(circle,transparent 56%,#fff6dd14 69%,transparent 72%)}#open-capsule:focus-visible{outline:2px solid #ead4ad;outline-offset:8px}#open-capsule[hidden],#done[hidden]{display:none}
.win .reward-halo{width:310px;height:310px;background:radial-gradient(circle,#ffe1a4aa,transparent 69%)}.win .result-card{border-color:#d7b982}.win #result-title{color:#584023}.win .result-icon:after{content:'';position:absolute;inset:-10%;z-index:-1;border:1px solid #d8bc7b55;border-radius:50%;box-shadow:0 0 0 14px #ebd9ae16}.empty-ticket{background:linear-gradient(140deg,#fffaf1,#eee4d4);border-color:#dac9ae;box-shadow:0 5px 0 #c7b6a3,0 16px 20px #3a25471a}.empty-ticket b{color:#9b7eb3}.empty-ticket i{border-color:#d2bfa5}.result-card h2{font-size:23px}.result-card .primary>span{width:auto;height:auto;background:none;border:0;box-shadow:none;color:#f2dfbd}.result-particle{top:30%}
@keyframes capsule-breathe{50%{transform:translateY(-7px) rotate(2deg)}}@keyframes rear-tumble{to{transform:translate(7px,-27px) rotate(9deg)}}@keyframes crank-weight{0%{transform:rotate(0)}15%{transform:rotate(-12deg)}45%{transform:rotate(140deg)}80%,100%{transform:rotate(360deg)}}@keyframes machine-settle{0%{transform:rotate(-1.3deg)}40%{transform:rotate(.8deg)}75%{transform:rotate(-.3deg)}100%{transform:none}}@keyframes seal-shiver{to{transform:translateX(2px) rotate(1deg)}}@keyframes seam-light{to{opacity:1;transform:scaleX(1.2)}}@keyframes reveal-light{0%{opacity:1;transform:scale(1)}45%{opacity:.85;transform:scale(1.7,6)}100%{opacity:0;transform:scale(2.3,9)}}
@media(max-width:540px){.halo{width:115%;height:auto;aspect-ratio:1;top:8%}.stage-shadow{width:90%;bottom:-3px}.result-card{padding:20px 24px 26px;border-radius:24px}.result-visual,.anticipation .result-visual{height:250px}.reveal-capsule{width:210px;height:210px}.chicken-reward{width:245px}.result-card h2{font-size:21px}.anticipation #result-title{font-size:16px}.prize-tag{transform:rotate(7deg) scale(.72)}}
@media(max-height:650px){.result-visual,.anticipation .result-visual{height:200px}.reveal-capsule{width:170px;height:170px}.chicken-reward{width:205px}.result-card{padding-top:14px;padding-bottom:20px}.result-delivery{margin-bottom:14px!important}.result-card h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0ms!important}}
/* Approved A / Soft Toy art and motion. */
:root{--cream:#fcf3e9;--ink:#654375;--purple:#a274bf}
body{background:var(--cream)}.game-only{background:radial-gradient(ellipse at 50% 38%,#fffaf3 0,#fcf3e9 70%);padding-top:20px;padding-bottom:34px}.play-area{max-width:520px}.scene{height:575px}.machine{width:390px;height:585px;filter:drop-shadow(0 16px 12px #6a3c5812)}.machine-art{filter:none}.halo{display:none}.stage-shadow{width:330px;bottom:14px;background:radial-gradient(ellipse,#6e4b653a,transparent 70%)}
.chamber{left:9.6%;top:24%;width:80.8%;height:34.5%;border-radius:4% 4% 10% 10%;background:linear-gradient(180deg,#a77bb82a,#fffaf100 30%,#d9b8de25)}.ball{width:26%;filter:drop-shadow(1px 3px 2px #3f284f24)}.ball:before{clip-path:inset(0 0 49% 0);filter:hue-rotate(var(--hue)) saturate(.82)}.back-capsules{opacity:.82;filter:brightness(.91)}.back-capsules i{width:24%;bottom:28%}.back-capsules i:nth-child(2){bottom:12%}.back-capsules i:nth-child(3){bottom:36%}.glass-glint{display:none}
.dial{left:38.3%;top:60.5%;width:23.5%;aspect-ratio:1;display:block;transform:rotate(-12deg);transform-origin:50% 50%}.dial .crank-arm{position:absolute;top:34%;left:37%;width:99%;height:32%;transform:none;border:1px solid #eee0ca;border-radius:50px;background:linear-gradient(180deg,#fff8ec,#f2e3ce 65%,#ddc6ad);box-shadow:inset 0 2px 2px #fffdf5,1px 5px 4px #6c49512e;display:block}.crank-arm i{position:absolute;right:-12%;top:-27%;width:51%;height:155%;border-radius:50%;background:radial-gradient(ellipse at 30% 20%,#fffaf0,#f0dfc6 65%,#d8bfa3);box-shadow:inset 1px 2px 1px #fffef5,2px 4px 3px #6f4b4f20}.outlet{left:33%;top:79%;width:34%;height:11.2%;border-radius:20% 20% 12% 12%}.dropped-ball{width:53%;left:23.5%;bottom:0}.dropping .outlet{filter:drop-shadow(0 0 9px #e4cef390)}
.prize-tag{top:34px;right:12px;width:99px;height:97px;padding:10px 8px;border:1px solid #c8d77d;border-radius:7px;background:linear-gradient(145deg,#e6f5aa,#d7e889);box-shadow:inset 0 1px 2px #faffcf,0 4px 0 #bfd06c,4px 8px 10px #684f3b12;transform:rotate(17deg);transform-origin:20% 80%}.prize-tag:after{inset:8px auto 8px 18px;width:1px;border:0;border-left:1px dashed #a8b957;border-radius:0}.prize-tag:before{content:'';position:absolute;right:-5px;top:43%;width:11px;height:11px;border-radius:50%;background:var(--cream);box-shadow:-1px 0 0 #c4d278}.prize-tag svg{width:64px;height:57px;margin-left:9px}.prize-tag>span:not(.tag-pin){display:block;color:#6b783e;font-size:9px;letter-spacing:0;margin-left:9px;font-weight:600}.is-playing .prize-tag{opacity:1}.scene:has(.mixing) .prize-tag{animation:ticket-flutter .4s ease-in-out infinite alternate}
.play-controls{margin-top:12px;max-width:350px}.status{min-height:24px;margin-bottom:19px;color:#9d81a6;font-size:12px}body[data-state=ready] .status{color:#9670a7}body[data-state=ready] .status:before{content:'✓';display:inline-grid;place-items:center;width:17px;height:17px;margin-right:7px;border-radius:50%;background:#b58bca;color:#fff7f0;font-size:10px}
.primary{position:relative;min-height:76px;border:1px solid #c6a5d6;border-radius:29px;padding:12px 24px;flex-direction:column;gap:4px;background:linear-gradient(165deg,#c19bd9,#ac7fc6 60%,#9869b5);color:#fffcf7;box-shadow:inset 0 2px 3px #ead3f6,inset 0 -3px 5px #9360ae40,0 4px 0 #9263aa,0 12px 18px #744b8b22;font-weight:800;transition:transform .18s,filter .2s,box-shadow .18s}.primary>span:first-child{display:block;background:none;border:0;border-radius:0;box-shadow:none;width:auto;height:auto;color:inherit;text-shadow:0 2px 0 #83579c33;font-size:21px;letter-spacing:-.5px}.primary .button-ticket{margin:0;border:1px solid #d9bee7;border-radius:20px;padding:3px 14px;background:#e0c6ee;color:#84589c;box-shadow:inset 0 1px 1px #f2e1fc,0 2px 2px #80559626;font-size:10px;font-weight:600;letter-spacing:0}.primary:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.025);box-shadow:inset 0 2px 3px #ead3f6,0 6px 0 #9263aa,0 15px 20px #744b8b26}.primary:not(:disabled):active{transform:translateY(3px) scale(.99);box-shadow:inset 0 1px 2px #ead3f6,0 1px 0 #9263aa,0 5px 8px #744b8b22}.primary:disabled{min-height:64px;background:#eee2f1;color:#a48cac;border-color:#e0cce6;box-shadow:inset 0 1px 2px #fff9fc,0 3px 0 #d8c3e0;font-weight:600;font-size:14px}.is-playing .primary{color:#936da7}
/* Anticipation, impact, recoil and follow-through stay on the same object. */
.windup .dial{animation:toy-windup .42s ease-in-out both}.mixing .dial{animation:toy-crank 1.05s cubic-bezier(.4,0,.2,1) 2}.mixing{animation:toy-rattle .16s ease-in-out infinite alternate}.settling{animation:toy-settle .6s ease-out forwards}.motion-lines{position:absolute;inset:23% -4% 38%;pointer-events:none;opacity:0}.motion-lines i{position:absolute;left:0;top:20%;width:10px;height:35%;border-left:2px solid #bea0cd;border-radius:50%;transform:rotate(-9deg)}.motion-lines i:nth-child(2){left:auto;right:0;top:35%;transform:rotate(9deg);border-left:0;border-right:2px solid #bea0cd}.motion-lines i:nth-child(3){left:-3%;top:35%;height:18%;opacity:.5}.mixing:not(.settling) .motion-lines{animation:motion-ticks .32s ease-in-out infinite alternate}.scene:has(.mixing) .stage-shadow{animation:shadow-bounce .16s ease-in-out infinite alternate}
@keyframes toy-windup{0%{transform:rotate(-12deg)}70%{transform:rotate(-35deg)}100%{transform:rotate(-20deg)}}
@keyframes toy-crank{0%{transform:rotate(-20deg)}20%{transform:rotate(0deg)}65%{transform:rotate(255deg)}100%{transform:rotate(348deg)}}
@keyframes toy-rattle{0%{transform:translate(-3px,1px) rotate(-1.3deg) scale(1.003,.998)}50%{transform:translate(2px,-2px) rotate(.5deg)}100%{transform:translate(3px,0) rotate(1.2deg) scale(.999,1.002)}}
@keyframes toy-settle{0%{transform:rotate(-1.3deg)}35%{transform:rotate(.9deg)}65%{transform:rotate(-.4deg)}85%{transform:rotate(.15deg)}100%{transform:none}}
@keyframes ticket-flutter{to{transform:rotate(24deg) translateY(-2px)}}@keyframes motion-ticks{to{opacity:.75;transform:scaleX(1.03)}}@keyframes shadow-bounce{to{transform:scaleX(.96);opacity:.8}}
/* Soft-toy result stage, matching the new capsule seam and material. */
.result-card{border-color:#e2cee7;background:radial-gradient(ellipse at 50% 12%,#fffaf3,#fbf0e9);box-shadow:inset 0 1px 0 #fff,0 7px 0 #ddc8e2,0 24px 80px #39254335;border-radius:34px}.result-card:after{display:none}.result-card h2{color:#704784}.result-card p{color:#9d80a3}.result-card .primary{min-height:57px;flex-direction:row;justify-content:center;border-radius:24px;font-size:15px}.result-card .primary>span{position:absolute;right:21px;font-size:17px}.win .result-card{border-color:#e3d7b6}.win #result-title{color:#704784}.capsule-top{clip-path:inset(0 0 47% 0)}.capsule-bottom{clip-path:inset(52.8% 0 0 0)}.capsule-light{inset:45% 5% 39%}.anticipation #result-tag{font-family:inherit;font-size:10px;font-weight:800;color:#dbc2e4;letter-spacing:2.5px}.anticipation #result-title{color:#f5e7f6}.anticipation:not(.arriving):not(.unsealing) .reveal-capsule{animation:toy-hover 2.6s ease-in-out infinite}.anticipation .reward-halo{background:radial-gradient(circle,#dfbbf13a,transparent 68%)}.opened .capsule-top{transform:translate(-47px,-72px) rotate(-24deg) scale(.78);opacity:.18}.opened .capsule-bottom{transform:translate(40px,73px) rotate(18deg) scale(.72);opacity:.25}.win .result-icon:after{display:none}.win .reward-halo{background:radial-gradient(circle,#f5e8bba0,transparent 70%)}
.reward-rays{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-conic-gradient(from 0deg,#efd58d30 0deg 9deg,transparent 9deg 30deg);mask-image:radial-gradient(circle,transparent 12%,#000 28%,transparent 66%)}.win .reward-rays{animation:reward-rays-in .8s ease-out both,ray-turn 30s linear infinite}.opening-ring{position:absolute;left:50%;top:50%;width:170px;height:170px;border:2px solid #f7e9c8;border-radius:50%;transform:translate(-50%,-50%) scale(.4);opacity:0;pointer-events:none}.win .opening-ring{animation:ring-bloom .9s ease-out both}.empty-ticket{border-color:#d7bfdf;background:linear-gradient(145deg,#fff8f5,#efe0f2);box-shadow:0 5px 0 #cbb0d6,0 14px 20px #70448616;border-radius:14px}.empty-ticket i{border-color:#d6bfdf}.empty-ticket b{color:#b18ac5}.result-particle.celebration:nth-child(3n){clip-path:polygon(50% 0,62% 35%,100% 50%,62% 65%,50% 100%,38% 65%,0 50%,38% 35%);width:15px;height:15px}.result-particle.puff{background:#dcc6e5!important}
@keyframes toy-hover{50%{transform:translateY(-9px) rotate(2deg)}}@keyframes reward-rays-in{to{opacity:1}}@keyframes ray-turn{to{rotate:360deg}}@keyframes ring-bloom{0%{opacity:.9;transform:translate(-50%,-50%) scale(.4)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@media(max-width:540px){.game-only{padding:20px 20px 30px}.scene{height:auto;aspect-ratio:360/530}.machine{width:100%;height:auto;aspect-ratio:2/3;max-width:357px}.prize-tag{top:3%;right:1%;transform:rotate(17deg) scale(.72);transform-origin:top right}.stage-shadow{bottom:3%;width:88%}.play-controls{margin-top:10px}.status{font-size:11px;min-height:24px;margin-bottom:17px}.primary{min-height:73px}.primary>span:first-child{font-size:20px}.result-card{border-radius:30px}.result-card h2{font-size:21px}.scene:has(.mixing) .prize-tag{animation:ticket-flutter-mobile .4s ease-in-out infinite alternate}}
@keyframes ticket-flutter-mobile{to{transform:rotate(24deg) scale(.72) translateY(-2px)}}
@media(min-width:541px) and (max-height:800px){.scene{height:510px}.machine{width:350px;height:525px}.prize-tag{top:22px;right:30px}.play-controls{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0ms!important}}
.ball{width:30%}.back-capsules i{width:28%}.back-capsules i:first-child{left:15%;bottom:40%;filter:hue-rotate(150deg)}.back-capsules i:nth-child(2){left:35%;bottom:12%;filter:hue-rotate(280deg)}.back-capsules i:nth-child(3){left:57%;bottom:41%;filter:hue-rotate(95deg)}.back-capsules i:nth-child(4){left:72%;bottom:8%}
.ball{width:29.5%}.back-capsules i:first-child,.back-capsules i:nth-child(2),.back-capsules i:nth-child(3){filter:none}.back-capsules i{--rear-hue:0deg}.back-capsules i:first-child{--rear-hue:150deg}.back-capsules i:nth-child(2){--rear-hue:280deg}.back-capsules i:nth-child(3){--rear-hue:95deg}.back-capsules i:before{content:'';position:absolute;inset:0;background:inherit;clip-path:inset(0 0 49% 0);filter:hue-rotate(var(--rear-hue)) saturate(.82)}
.result-delivery:empty{display:none}.result-copy{margin-bottom:0}#result-delivery:empty ~ #done{margin-top:24px}
/* Three server-owned tickets, individual or batch play. */
[hidden]{display:none!important}.ticket-wallet{display:flex;align-items:center;justify-content:center;gap:6px;color:#9672a5;font-size:11px;margin:0 0 17px}.ticket-wallet b{color:#784d8f}.ticket-stubs{display:flex;gap:3px;margin-right:6px}.ticket-stubs i{width:13px;height:19px;display:block;background:#c3a0d5;border-radius:3px;border:1px solid #b38ac8;box-shadow:inset 0 1px 0 #ead4f4;transform:rotate(-8deg)}.ticket-stubs i:nth-child(2){transform:none}.ticket-stubs i:nth-child(3){transform:rotate(8deg)}.ticket-stubs i.spent{background:#eee4ef;border-color:#e1d3e7;box-shadow:none}.draw-actions{display:flex;gap:10px;align-items:stretch}.draw-actions .primary{flex:1;min-height:62px;font-size:15px;padding:12px 8px;border-radius:23px}.draw-actions .primary:disabled{font-size:13px}.draw-actions .batch-draw{background:linear-gradient(160deg,#eee1f4,#dfc7ec);color:#815797;border-color:#d7bce5;box-shadow:inset 0 2px 2px #fff6ff,0 4px 0 #c3a1d3,0 10px 16px #744b8b12}.draw-actions .batch-draw:not(:disabled):hover{box-shadow:inset 0 2px 2px #fff6ff,0 6px 0 #c3a1d3,0 13px 20px #744b8b18}.play-controls .status{margin-bottom:11px}.draw-actions:has(#draw-all[hidden]) #draw{min-height:64px}
.batch-capsules{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;position:relative;z-index:4}.batch-capsule{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:10px 0;border:0;border-radius:18px;background:transparent;color:#f8eafa;min-width:0;transition:transform .18s}.batch-capsule:not(:disabled):hover{transform:translateY(-6px)}.batch-capsule:not(:disabled):active{transform:scale(.96)}.mini-capsule{width:100%;aspect-ratio:1;position:relative;display:grid;place-items:center}.mini-top,.mini-bottom{position:absolute;inset:0;background:url('/assets/capsule.webp') center/contain no-repeat;transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .6s;z-index:2}.mini-top{clip-path:inset(0 0 47% 0)}.mini-bottom{clip-path:inset(52.8% 0 0 0)}.mini-prize{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transform:scale(.4);transition:opacity .35s .15s,transform .6s .12s cubic-bezier(.16,1,.3,1);color:#b18ac5;font-size:34px;font-weight:900;z-index:3}.mini-prize img{width:130%;max-width:none;filter:drop-shadow(0 5px 5px #4d324320)}.revealed .mini-top{transform:translate(-12%,-34%) rotate(-22deg) scale(.8);opacity:.15}.revealed .mini-bottom{transform:translate(10%,32%) rotate(15deg) scale(.8);opacity:.2}.revealed .mini-prize{transform:scale(1);opacity:1}.mini-label{font-size:11px;font-weight:600;white-space:nowrap}.batch-mode .result-visual{height:245px}.batch-mode.anticipation #result-title{font-size:17px}.batch-mode.anticipation #open-all{margin-top:22px;min-height:56px}.batch-mode.anticipation .mini-prize{color:#e6c8f5}.batch-mode:not(.anticipation) .mini-label{color:#94719f}.batch-mode:not(.anticipation) .mini-win .mini-label{color:#b58d46}.batch-mode #result-copy{margin-bottom:0}.batch-mode .reward-rays{opacity:.5}.batch-mode .result-card{max-width:440px}.batch-mode .result-visual .reward-halo{width:100%;height:100%}.batch-mode .batch-capsule:not(.revealed) .mini-capsule{animation:mini-float 2.5s ease-in-out infinite}.batch-capsule:nth-child(2) .mini-capsule{animation-delay:.2s}.batch-capsule:nth-child(3) .mini-capsule{animation-delay:.4s}@keyframes mini-float{50%{transform:translateY(-5px)}}
@media(max-width:540px){.ticket-wallet{margin-bottom:13px}.draw-actions .primary{font-size:14px;min-height:61px}.batch-mode .result-visual{height:220px}.mini-label{font-size:10px}.batch-mode.anticipation #result-title{font-size:16px}}
@media(max-height:650px){.batch-mode .result-visual{height:185px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0ms!important}}

.batch-capsules{display:flex;justify-content:center}.batch-capsule{width:calc((100% - 10px)/3);flex:none}
/* ---- 번호 확인 화면 (구글 앱스 스크립트 웹앱용 추가) ---- */
.login{display:flex;flex-direction:column;gap:10px;text-align:left}
.login label{font-size:12px;font-weight:700;color:#7a5b8c;padding-left:6px}
.login input{width:100%;height:58px;border:1px solid #dcc8e6;border-radius:20px;padding:0 20px;background:#fffdf8;color:var(--ink);font:700 20px 'Noto Sans KR',sans-serif;letter-spacing:.5px;box-shadow:inset 0 2px 4px #7a5b8c14;-webkit-appearance:none;appearance:none;transition:border-color .2s,box-shadow .2s}
.login input::placeholder{color:#cdbdd6;font-weight:500}
.login input:focus{outline:none;border-color:#a67cc4;box-shadow:inset 0 2px 4px #7a5b8c14,0 0 0 4px #c9aee655}
.login.has-error input{border-color:#d98a8a}
.login .primary{min-height:62px;font-size:17px;margin-top:2px}
.login-message{margin:0;padding:11px 14px;border-radius:14px;font-size:12px;line-height:1.65;word-break:keep-all;background:#fbeceb;color:#a4504f;border:1px solid #f1d2d0}
.login-message.notice{background:#f3ecf8;color:#75568a;border-color:#e3d3ee}
.login-message a{display:inline-block;margin-top:4px;color:#7543bf;font-weight:700;text-underline-offset:3px}
.login-note{margin:2px 0 0;text-align:center;font-size:11px;line-height:1.7;color:#9d8ba8;word-break:keep-all}
.history{margin:14px 0 0;font-size:12px;line-height:1.7;color:#8a7694;word-break:keep-all}
.history b{color:#6f4a86}
.history span{display:block;font-size:11px;color:#9d8ba8}
.switch-number{margin-top:14px;border:0;background:none;color:#9d81a6;font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:8px}
.test-badge{display:inline-block;margin:0 0 10px;padding:4px 12px;border-radius:20px;background:#e6f5aa;border:1px solid #c8d77d;color:#5d6a2f;font-size:10px;font-weight:700}
/* ---- 설문 (구글 폼 질문을 뽑기 디자인으로) ---- */
body[data-state=survey] .scene{display:none}
body[data-state=survey] .game-only{justify-content:flex-start}
body[data-state=survey] .play-controls{max-width:460px;margin-top:0;text-align:left}
.survey{display:flex;flex-direction:column;gap:14px}
#survey-items{display:flex;flex-direction:column;gap:12px}
.survey-hero{display:flex;justify-content:center;gap:2px;margin:4px 0 -6px}
.survey-hero img{width:64px;height:64px}
.survey-hero img:nth-child(1){transform:rotate(-14deg) translateY(6px);filter:hue-rotate(95deg)}
.survey-hero img:nth-child(3){transform:rotate(12deg) translateY(6px);filter:hue-rotate(150deg)}
.survey-step{margin:0;text-align:center;font-size:11px;font-weight:700;letter-spacing:.3px;color:#9670a7}
.survey h1{margin:0;text-align:center;font-size:21px;line-height:1.4;letter-spacing:-.6px;font-weight:900;color:#5b3a70;word-break:keep-all}
.survey-desc{margin:0 0 6px;text-align:center;font-size:12px;line-height:1.75;color:#8a7694;white-space:pre-line;word-break:keep-all}
.survey-desc:empty{display:none}
.q{margin:0;padding:18px 18px 16px;border:1px solid #e6d8ec;border-radius:22px;background:#fffdf8;box-shadow:0 3px 0 #eadff0;min-width:0}
.q.invalid{border-color:#e0a3a1;box-shadow:0 3px 0 #f3d9d7}
.q-title{display:block;padding:0;margin:0 0 4px;font-size:14px;line-height:1.55;font-weight:700;color:#4d3560;word-break:keep-all}
.q-title .must{margin-left:4px;color:#c2577a;font-weight:800}
.q-help{margin:0 0 4px;font-size:11px;line-height:1.65;color:#9d8ba8;white-space:pre-line;word-break:keep-all}
.q-body{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.opt{position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 14px;border:1px solid #e3d5ea;border-radius:14px;background:#fbf6fc;font-size:14px;color:#553d66;cursor:pointer;transition:border-color .15s,background .15s}
.opt input{flex:none;width:18px;height:18px;margin:0;accent-color:#9869b5}
.opt:has(input:checked){border-color:#a67cc4;background:#f1e4f8;font-weight:700}
.opt:has(input:focus-visible){outline:3px solid #b9a1e0;outline-offset:2px}
.q input[type=text],.q input[type=tel],.q textarea{width:100%;border:1px solid #dcc8e6;border-radius:14px;padding:12px 14px;background:#fff;color:var(--ink);font:500 15px/1.6 'Noto Sans KR',sans-serif;box-shadow:inset 0 2px 4px #7a5b8c10;-webkit-appearance:none;appearance:none}
.q textarea{min-height:104px;resize:vertical}
.q input:focus,.q textarea:focus{outline:none;border-color:#a67cc4;box-shadow:0 0 0 4px #c9aee655}
.q input[readonly]{background:#f3ecf8;color:#75568a;font-weight:700}
.q input::placeholder,.q textarea::placeholder{color:#cdbdd6}
.q-other{margin-top:-2px}
.q-error{margin:8px 0 0;font-size:12px;font-weight:600;color:#b4504f}
.q-error:empty{display:none}
.section-title{margin:8px 4px 0;font-size:13px;font-weight:800;color:#6f4a86}
.section-title small{display:block;margin-top:2px;font-size:11px;font-weight:500;color:#9d8ba8;white-space:pre-line}
.survey .primary{min-height:64px;font-size:17px;margin-top:4px}
.survey .login-note{text-align:center}
/* ---- 당첨자 번호 입력 (결과 창 안, 그리고 다시 들어왔을 때의 배너) ---- */
.gift{min-width:0;margin:14px 0 4px;padding:14px 14px 12px;border:1px solid #ecd9a6;border-radius:18px;background:#fff8e3;text-align:left}
.gift.banner{margin:0 0 14px;box-shadow:0 3px 0 #f0e0b4}
.gift-title{margin:0 0 9px;font-size:13px;font-weight:800;color:#7a5a12;line-height:1.5;word-break:keep-all}
.gift-row{display:flex;gap:8px}
.gift input{flex:1;min-width:0;width:0;height:48px;border:1px solid #e2cf9c;border-radius:14px;padding:0 14px;background:#fff;color:var(--ink);font:700 17px 'Noto Sans KR',sans-serif;letter-spacing:.3px;-webkit-appearance:none;appearance:none}
.gift input::placeholder{color:#d8cba9;font-weight:500}
.gift input:focus{outline:none;border-color:#c9a23a;box-shadow:0 0 0 4px #f3dc9a88}
.gift-save{flex:none;height:48px;padding:0 13px;white-space:nowrap;border:1px solid #c6a5d6;border-radius:14px;background:linear-gradient(165deg,#c19bd9,#9869b5);color:#fffcf7;font-weight:800;font-size:14px;box-shadow:0 3px 0 #9263aa}
.gift-save:disabled{opacity:.6}
.gift-error{margin:8px 2px 0;font-size:12px;font-weight:600;color:#b4504f}
.gift-error:empty{display:none}
.gift-done{margin:0;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.6;color:#6b5320;word-break:keep-all}
.gift-done b{color:#4d3560;font-size:15px}
.gift-edit{flex:none;padding:4px 2px;border:0;background:none;color:#8a63a6;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.gift-help{margin:8px 2px 0;font-size:11px;line-height:1.6;color:#a08a55}
dialog .gift{margin:4px 0 16px}
.test-id{margin:0 0 12px;padding:9px 12px;border:1px dashed #c8d77d;border-radius:12px;background:#f4fad9;color:#5d6a2f;font-size:11px;line-height:1.6;text-align:left;word-break:break-all;user-select:all;-webkit-user-select:all}
.test-id b{user-select:all;-webkit-user-select:all}
/* ---- 화면 맨 아래 사업자 정보 ---- */
.play-area{margin-block:auto}
.biz{width:100%;max-width:560px;margin-top:28px;text-align:center;font-size:10px;line-height:1.7;color:#b3a6ba;word-break:keep-all}
.biz a{color:inherit;text-underline-offset:2px}
.biz a:not([href]){text-decoration:none}
.gift-reward{width:150px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fffaf1,#f1e2f6);box-shadow:0 6px 0 #d8c3e0,0 16px 22px #70448618}
.gift-reward span{font-size:58px;line-height:1}
.gift-reward b{font-size:14px;color:#6f4a86}
.lose .gift-reward{display:none}
.checking .status{min-height:24px;margin-bottom:14px}
.checking .status:after{content:'';display:inline-block;width:12px;height:12px;margin-left:8px;border:2px solid #d9c3e6;border-top-color:#9869b5;border-radius:50%;vertical-align:-2px;animation:spin .8s linear infinite}
.skeleton{display:flex;flex-direction:column;gap:10px}
.skeleton i{display:block;height:54px;border-radius:18px;background:linear-gradient(100deg,#efe4f3 30%,#f8f1fa 50%,#efe4f3 70%);background-size:300% 100%;animation:shimmer 1.4s ease-in-out infinite}
.skeleton i:nth-child(2){height:40px;width:82%}.skeleton i:nth-child(3){height:40px;width:64%}
.kakao-button.going{filter:brightness(.95);pointer-events:none}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}
@media(prefers-reduced-motion:reduce){.skeleton i,.checking .status:after{animation:none}}
.kakao{display:flex;flex-direction:column;gap:12px}
/* 카카오 로그인 버튼 디자인 가이드: 컨테이너 #FEE500, 심볼 #000, 레이블 #000 85%, 모서리 12px */
.kakao-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;border-radius:12px;background:#FEE500;color:rgba(0,0,0,.85);font:600 17px -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;text-decoration:none;transition:filter .15s,transform .15s}
.kakao-button svg{width:22px;height:22px;flex:none}
.kakao-button:hover{filter:brightness(.97)}
.kakao-button:active{transform:translateY(1px);filter:brightness(.94)}
.kakao-button:focus-visible{outline:3px solid #b9a1e0;outline-offset:4px}
.kakao.unavailable .kakao-button,.kakao.unavailable .login-note{display:none}
.coffee-reward{width:230px}
@media(max-width:540px){.login input{height:54px;font-size:18px}.login .primary{min-height:58px}.coffee-reward{width:200px}}
@media(max-height:650px){.coffee-reward{width:180px}}
/* ---- 결과 창: 꽝은 차분하게(빈 캡슐 하나), 여러 장은 같은 크기의 칩으로 ---- */
.ecap{position:absolute;inset:0;display:none;pointer-events:none;filter:saturate(.42) brightness(1.04)}
.ecap i{position:absolute;display:block}
.ecap-shadow{left:20%;right:20%;bottom:-2%;height:7%;border-radius:50%;background:#4a355526;filter:blur(6px)}
.ecap-base{inset:0;background:url('/assets/capsule.webp') center/contain no-repeat;clip-path:inset(52.8% 0 0 0)}
.ecap-hole{left:7%;right:7%;top:44%;height:17.5%;border-radius:50%;background:radial-gradient(ellipse at 50% 22%,#b9a3b0,#d9c8c4 62%,#e9dcd3);box-shadow:inset 0 4px 7px #5b46553d,0 0 0 2px #f8efe3}
.ecap-lid{inset:0;transform-origin:9% 52%;transform:translate(2%,-8%) rotate(-18deg)}
.ecap-lid-in{left:7%;right:7%;top:45.5%;height:13%;border-radius:50%;background:linear-gradient(180deg,#b79acb,#9c7fb3);box-shadow:inset 0 -3px 5px #4d386233}
.ecap-lid-top{inset:0;background:url('/assets/capsule.webp') center/contain no-repeat;clip-path:inset(0 0 47% 0)}
.lose:not(.batch-mode) #reveal .capsule-top,.lose:not(.batch-mode) #reveal .capsule-bottom,.lose:not(.batch-mode) #reveal .capsule-light{display:none}
.lose:not(.batch-mode) #reveal .ecap{display:block;inset:9% 4.5% 0}
.lose #reveal .ecap,.mini-lose .ecap{animation:ecap-calm .34s ease-out both}
.lose #reveal .ecap-lid,.mini-lose .ecap-lid{animation:ecap-pop .34s cubic-bezier(.3,1.5,.5,1) both}
@keyframes ecap-pop{from{transform:none}}
@keyframes ecap-calm{from{filter:none}}
.lose .reward-rays,.lose .opening-ring,.batch-mode .reward-rays,.batch-mode .opening-ring{display:none}
.lose .reward-halo{width:280px;height:280px;background:radial-gradient(circle,#e9dfee66,transparent 68%)}
.lose .reveal-capsule{filter:none}
.lose #result-title{color:#66506f}.lose #result-copy{color:#9a8a9f}
/* 여러 장: 연 캡슐은 그 자리에서 칩이 된다 */
.mini-lose .mini-top,.mini-lose .mini-bottom{display:none}
.mini-lose .mini-prize{transform:none;opacity:1;transition:none}
.mini-lose .ecap{display:block}
.batch-capsule.revealed .mini-top,.batch-capsule.revealed .mini-bottom{opacity:0}
.mini-prize img{width:100%;filter:drop-shadow(0 4px 4px #4d324320)}.mini-prize img.mini-chicken{width:122%}
.batch-mode:not(.anticipation) .result-visual{height:auto;padding:50px 0 28px}
.batch-mode:not(.anticipation) .reward-halo{display:none}
.batch-mode:not(.anticipation) .batch-capsules{gap:8px;align-items:stretch}
.batch-mode:not(.anticipation) .batch-capsule{width:calc((100% - 16px)/3);max-width:112px;gap:10px;padding:10px 6px 12px;justify-content:flex-start;border:1px solid #ebe0ea;border-radius:18px;background:#fffdf9;box-shadow:0 2px 0 #eee2ec;opacity:1}
.batch-mode:not(.anticipation) .mini-capsule{width:68%;margin-top:14%}
.batch-mode:not(.anticipation) .mini-label{font-size:12px;font-weight:500;letter-spacing:-.2px}
.batch-mode:not(.anticipation) .mini-lose{background:#fbf7f4;border-color:#eee6e6;box-shadow:none}
.batch-mode:not(.anticipation) .mini-lose .mini-capsule{opacity:.72}
.batch-mode:not(.anticipation) .mini-lose .mini-label{color:#b3a6b6}
.batch-mode:not(.anticipation) .mini-win{border:2px solid #a277df;background:linear-gradient(180deg,#fffaf0,#fbf0ff);box-shadow:0 3px 0 #d5bfe8,0 10px 18px #7543bf1f;transform:scale(1.06);z-index:1}
.batch-mode:not(.anticipation) .mini-win .mini-label{color:#5d3a78;font-weight:800;font-size:13px}
.batch-mode.lose .result-card h2,.batch-mode.win .result-card h2{margin-top:0}
@media(max-width:540px){.batch-mode:not(.anticipation) .result-visual{height:auto;padding:46px 0 24px}}
@media(max-height:650px){.batch-mode:not(.anticipation) .result-visual{height:auto;padding:40px 0 16px}}
/* ---- 뽑기 화면: 테스트 표시 한 줄, 다 쓴 뒤의 차분한 안내, 내 결과 칩 ---- */
.test-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 8px;margin:0 0 12px;font-size:11px;color:#6f7741}
.test-bar .test-badge{margin:0;padding:3px 10px}
.test-actions,.test-confirm{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.test-retry{border:1px solid #c8d77d;border-radius:20px;background:#fbfee9;color:#55622a;font-size:11px;font-weight:700;padding:4px 12px;min-height:28px}
.test-retry:active{transform:translateY(1px)}
.test-link{border:0;background:none;padding:4px 2px;color:#8a936a;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.test-confirm{width:100%;font-size:12px;color:#55622a}
.test-more{width:100%;font-size:10px;color:#a3a98a}
.test-more summary{display:inline-block;cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px;padding:2px 6px}
.test-more summary::-webkit-details-marker{display:none}
.test-more code{display:block;margin-top:4px;font:inherit;font-size:11px;color:#6f7741;word-break:break-all;user-select:all;-webkit-user-select:all}
.status.all-done{min-height:0;margin:4px 0 0;font-size:13px;color:#7a6485}
.history{margin:16px 0 0;font-size:11px;color:#a595ab}
.history .past-label{display:block;font-size:11px;color:#a595ab;margin-bottom:8px;letter-spacing:.5px}
.history .past-chips{display:flex;justify-content:center;gap:8px}
.history .past-chip{width:calc((100% - 16px)/3);max-width:88px;display:flex;flex-direction:column;align-items:center;gap:8px;padding:9px 6px 10px;border:1px solid #eee6e6;border-radius:16px;background:#fbf7f4;color:#b3a6b6;font-size:12px;font-weight:500}.history .past-chip>span:last-child{display:block;font-size:12px;color:inherit}
.history .past-pic{display:grid;width:62%;aspect-ratio:1;margin-top:12%;position:relative;display:grid;place-items:center;font-size:28px}
.past-chip .ecap{display:block;opacity:.72}
.past-pic img{width:100%;filter:drop-shadow(0 3px 3px #4d324320)}.past-pic img.mini-chicken{width:122%}
.history .past-chip.win{border:2px solid #a277df;background:linear-gradient(180deg,#fffaf0,#fbf0ff);box-shadow:0 2px 0 #d5bfe8;color:#5d3a78;font-weight:800}
/* ---- 쿠폰: 기계에 붙은 태그, 당첨 창의 교환권, 칩 속 작은 교환권 (크기는 font-size 하나로 정한다) ---- */
.prize-tag{width:100px;height:auto;padding:0;border:0;border-radius:10px;background:#fffdf9;box-shadow:none;filter:drop-shadow(0 3px 0 #dccbe6) drop-shadow(4px 9px 9px #5a3c6e24);overflow:hidden;display:flex;flex-direction:column;align-items:stretch;-webkit-mask:radial-gradient(circle 6px at 0 69%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 6px at 100% 69%,#0000 96%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 6px at 0 69%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 6px at 100% 69%,#0000 96%,#000) right/51% 100% no-repeat}
.prize-tag:before,.prize-tag:after{display:none}
.prize-tag>span.tag-cap{display:block;margin:0;padding:5px 0 5px;background:#8b62b8;color:#fffaf2;font-size:8px;font-weight:800;letter-spacing:2.2px;text-indent:2.2px}
.prize-tag>span.tag-pic{display:grid;place-items:center;height:66px;margin:0;background:linear-gradient(180deg,#f6ecfd,#fdf4ec);font-size:34px;line-height:1}
.prize-tag .tag-pic img{width:70px;height:70px;object-fit:contain;margin:-2px 0 -4px}
.prize-tag .tag-pic svg{width:54px;height:46px;margin:0}
.prize-tag>span.tag-name{display:block;margin:0;padding:8px 6px 10px;border-top:1.5px dashed #dccde6;background:#fffdf9;color:#573a70;font-size:11.5px;font-weight:800;letter-spacing:-.3px;line-height:1.25;word-break:keep-all}
@media(max-width:540px){.prize-tag{transform:rotate(15deg) scale(.74);top:2%;right:-3%}}
/* 색종이는 그림(쿠폰·상품·칩) 뒤로 지나간다. 그림 위에는 아무것도 겹치지 않는다. */
.result-particle{z-index:0}.result-visual{z-index:1}
/* ---- 당첨 연출: 플래시 → 색종이(그림 뒤) → 그림이 톡 튀어나옴 + 별 반짝임 → 제목. 1.5초 안에 끝나고 반복하지 않는다 ---- */
.coffee-reward{width:252px;filter:drop-shadow(0 14px 12px #5a2f1a2b)}
.hero-ribbon{position:absolute;left:50%;bottom:-10%;z-index:2;transform:translateX(-50%) rotate(-3deg);padding:6px 16px 7px;border-radius:9px;background:#fffdfa;color:#4f3566;font-size:13px;font-weight:800;letter-spacing:-.3px;white-space:nowrap;box-shadow:0 2px 0 #dccbe6,0 8px 14px #5a3c6e26;-webkit-mask:radial-gradient(circle 5px at 0 50%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 5px at 100% 50%,#0000 96%,#000) right/51% 100% no-repeat;mask:radial-gradient(circle 5px at 0 50%,#0000 96%,#000) left/51% 100% no-repeat,radial-gradient(circle 5px at 100% 50%,#0000 96%,#000) right/51% 100% no-repeat}
.hero-ribbon:before{content:'';position:absolute;inset:3px 9px;border:1px dashed #dccde6;border-radius:5px;pointer-events:none}
.win .reward-rays{animation:reward-rays-in .5s ease-out both}
.win .reward-halo{animation:win-flash .55s ease-out both}
.win .opened .result-icon{transition:opacity .12s linear;transform:none}
.win .opened .result-icon>img:not([hidden]),.win .opened .gift-reward:not([hidden]){animation:hero-pop .5s cubic-bezier(.3,1.4,.5,1) .08s both}
.win .opened .hero-ribbon{animation:ribbon-in .32s cubic-bezier(.3,1.4,.5,1) .46s both}
.win #result-title{animation:title-pop .34s cubic-bezier(.3,1.5,.5,1) .5s both}
.win #result-copy,.win #result-delivery{animation:copy-in .3s ease-out .7s both}
.result-particle.celebration{top:96%;z-index:-1;width:8px;height:13px;animation:confetti-pop 1.15s cubic-bezier(.2,.7,.3,1) var(--delay) both}
.result-particle.hero-spark{width:16px;height:16px;border-radius:0;background:#f4cf6b;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);z-index:3;animation:spark-once .55s ease-out var(--delay) both}
.batch-mode .result-particle.hero-spark{display:none}
/* 캡슐이 열리는 순간의 짧은 빛 번짐 */
.win .result-visual:after{content:'';position:absolute;left:50%;top:50%;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;background:radial-gradient(circle,#fffdf2 0,#fff3c9cc 34%,#fff3c900 70%);pointer-events:none;z-index:6;animation:flash-once .42s ease-out both}
.batch-mode.win .result-visual:after{display:none}
@keyframes flash-once{0%{opacity:0;transform:scale(.3)}25%{opacity:.95}100%{opacity:0;transform:scale(1.7)}}
@keyframes win-flash{0%{opacity:0;transform:scale(.4);filter:brightness(1.9)}35%{opacity:1;transform:scale(1.25);filter:brightness(1.5)}100%{opacity:1;transform:scale(1);filter:none}}
@keyframes hero-pop{0%{opacity:0;transform:scale(.6)}60%{opacity:1;transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
@keyframes ribbon-in{from{opacity:0;transform:translateX(-50%) rotate(-9deg) scale(.7)}}
@keyframes title-pop{from{opacity:0;transform:translateY(8px) scale(.86)}}
@keyframes copy-in{from{opacity:0}}
@keyframes confetti-pop{0%{opacity:0;transform:translate(0,0) scale(.4) rotate(0)}12%{opacity:1}62%{opacity:1;transform:translate(var(--dx),var(--dy)) scale(1) rotate(calc(var(--rot)*.7))}100%{opacity:0;transform:translate(calc(var(--dx)*1.12),calc(var(--dy) + 70px)) scale(.9) rotate(var(--rot))}}
@keyframes spark-once{0%{opacity:0;transform:scale(0) rotate(0)}45%{opacity:1;transform:scale(1) rotate(40deg)}100%{opacity:0;transform:scale(.2) rotate(90deg)}}
.mini-prize img.mini-coffee,.past-pic img.mini-coffee{width:114%;max-width:none;margin-top:-10%}
@media(max-width:540px){.coffee-reward{width:240px}}
@media(max-height:650px){.coffee-reward{width:196px}.hero-ribbon{font-size:11px;padding:4px 12px 5px}}
/* ---- 번호 상자의 동의 줄과 번호 안내 ---- */
.consent{margin:6px 0 2px;padding:0;border-radius:14px;text-align:left}
.consent-line{display:flex;align-items:center;gap:4px}
.consent-row{flex:1;min-width:0;display:flex;align-items:center;gap:9px;min-height:44px;padding:4px 2px;cursor:pointer;font-size:12.5px;line-height:1.45;color:#5d4a2a;word-break:keep-all}
.consent-row input{position:absolute;opacity:0;width:1px;height:1px}
.consent-box{flex:none;width:24px;height:24px;border:1.5px solid #bfa6d2;border-radius:8px;background:#fffdf8;display:grid;place-items:center;transition:background .15s,border-color .15s}
.consent-box:after{content:'';width:11px;height:6px;border-left:2.5px solid #fffaf2;border-bottom:2.5px solid #fffaf2;transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform .15s}
.consent-row input:checked+.consent-box{background:#8b62b8;border-color:#8b62b8}
.consent-row input:checked+.consent-box:after{transform:translateY(-1px) rotate(-45deg) scale(1)}
.consent-row input:focus-visible+.consent-box{outline:3px solid #b9a1e0;outline-offset:3px}
.consent-text em{font-style:normal;font-weight:800;color:#7a4fa6;margin-right:2px}
.consent-more{flex:none;min-height:44px;padding:0 4px 0 6px;border:0;background:none;color:#9a8455;font-size:12px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.consent-more:after{content:'';display:inline-block;width:6px;height:6px;margin:0 0 3px 6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.consent-more.open:after{transform:translateY(3px) rotate(-135deg)}
.consent-detail{margin:2px 0 6px;padding:10px 12px;border-radius:12px;background:#fbf3dc;color:#7a6539;font-size:11.5px;line-height:1.7;white-space:pre-line;word-break:keep-all}
.consent-error{margin:0 0 6px 35px;font-size:12px;font-weight:700;color:#5b3a86}
.consent.invalid .consent-box{border-color:#5b3a86;box-shadow:0 0 0 3px #e3d3f3}
.consent.shake{animation:consent-shake .32s ease-in-out}
@keyframes consent-shake{20%{transform:translateX(-5px)}45%{transform:translateX(5px)}70%{transform:translateX(-3px)}100%{transform:none}}
.gift-help{color:#7a5a12;font-weight:600}
.gift-note{margin:3px 2px 0;font-size:10.5px;line-height:1.6;color:#a79468;word-break:keep-all}
.close-confirm{margin-top:16px;padding:14px 14px 6px;border:1px solid #e3d5ea;border-radius:18px;background:#fbf6fc}
.close-confirm p{margin:0 0 12px;font-size:13px;line-height:1.6;color:#553d66;font-weight:600;word-break:keep-all}
.close-confirm .primary{width:100%}
.confirm-leave{display:block;width:100%;min-height:44px;margin-top:2px;border:0;background:none;color:#8a7694;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.gift-save.off{opacity:.45;filter:saturate(.6)}
/* ---- 한국어 줄바꿈: 낱말 중간에서 끊지 않고, 안내 글은 문장마다 한 줄. 긴 주소·숫자만 예외로 끊는다 ---- */
body{word-break:keep-all;overflow-wrap:break-word;line-break:strict}
/* 주인이 적은 글(폼 제목·설명, 안내 문구)에 긴 주소나 숫자가 있어도 화면 밖으로 나가지 않게 */
.q-title,.q-help,.survey-desc,#survey-title,.login-message,.consent-detail,.opt span{overflow-wrap:anywhere}
p,li,label,h1,h2,.status,.gift-title,.q-title,.q-help{text-wrap:pretty}
.ln{display:block;text-wrap:balance}
.consent-detail{white-space:normal}
.login-note,.login-message,.gift-help,.gift-note,.gift-title,.gift-done,.close-confirm p,.consent-text,.consent-detail,.consent-error,.test-confirm,.survey-desc,.survey-step,.status,#result-title,#result-copy,#result-delivery,.past-label,.ticket-wallet,.biz{text-wrap:balance}
.gift-help .ln+.ln,.login-message .ln+.ln,.status .ln+.ln{margin-top:1px}
@media(max-width:380px){.gift .consent-row{font-size:11.5px;letter-spacing:-.4px;gap:7px}.gift .consent-more{font-size:11px;padding:0 0 0 2px}.gift .consent-box{width:22px;height:22px}}
.history .past-note{display:block;margin-top:12px;font-size:12px;color:#7a6485;text-wrap:balance}
.gift-done{flex-wrap:wrap;row-gap:0}.gift-done .gift-edit{margin-left:auto}.gift.banner .gift-title+.gift-done{margin-top:-2px}
