@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{color-scheme:dark;--bg:#211a2e;--paper:#fbf3e9;--muted:#b7aebe;--purple:#bea3ef;--orange:#ff967e;--line:#ffffff1c;--green:#b9d9b0;font-family:'DM Sans',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--paper);min-height:100svh;overflow-x:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--orange);outline-offset:6px}button:disabled{cursor:default}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 43%,#77549123,transparent 52%);z-index:-1}.topbar{width:min(1120px,100%);height:98px;margin:auto;padding:0 44px;display:flex;align-items:center;justify-content:space-between}.brand{font-family:'Playfair Display',serif;font-size:40px;line-height:1;text-decoration:none;color:var(--paper);font-weight:600}.brand span{color:var(--orange)}.edition{font-size:11px;letter-spacing:2.4px;color:var(--muted)}.icon-button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--paper);font-size:22px;position:relative}.sound-slash{position:absolute;left:17px;top:7px;font-size:26px}.icon-button[aria-pressed=true] .sound-slash{display:none}#app{min-height:calc(100svh - 160px);display:flex;justify-content:center;align-items:center;padding:15px 22px 28px}.intro,.game,.finale{width:min(100%,540px);text-align:center}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:600;color:var(--orange);margin:0 0 20px}.pill{display:inline-flex;gap:8px;align-items:center;border:1px solid #ff967e38;background:#ff967e09;border-radius:30px;padding:8px 13px;letter-spacing:1.6px}.intro h1,.finale h1{font:500 clamp(38px,6vw,62px)/1.11 'Playfair Display',Georgia,serif;letter-spacing:-1.8px;margin:0}.intro h1 em,.finale h1 em{font-weight:500;color:var(--purple)}.subtitle{color:var(--muted);font-size:15px;line-height:1.7;margin:18px auto 0;max-width:350px}.hero-art{height:280px;position:relative;display:grid;place-items:center;margin:12px 0 6px}.hero-art img{width:320px;max-width:90%;height:100%;object-fit:contain;filter:drop-shadow(0 25px 24px #0003);animation:float 5s ease-in-out infinite}.hero-emoji{font-size:150px;filter:drop-shadow(0 24px 20px #0004);animation:float 5s ease-in-out infinite}.orbit-note{position:absolute;right:10px;top:32px;font-size:12px;border:1px solid #bda3ef65;color:var(--purple);padding:10px 13px;border-radius:9px;transform:rotate(10deg);background:var(--bg);line-height:1.4}.twinkle{position:absolute;color:var(--orange);font-size:27px}.twinkle.one{top:45px;left:58px;transform:rotate(10deg)}.twinkle.two{bottom:45px;right:57px;color:var(--purple);font-size:18px}.primary{border:0;background:var(--orange);color:#291e29;padding:17px 30px;min-height:54px;border-radius:14px;font-weight:700;font-size:15px;box-shadow:0 5px 0 #b55f5040;transition:transform .2s,background .2s}.primary:hover{background:#ffa78f;transform:translateY(-2px)}.primary:active{transform:translateY(2px)}.intro .primary{width:min(100%,290px)}.microcopy{font-size:12px;color:#a398af;margin-top:18px}.footer{width:min(1120px,100%);margin:auto;padding:15px 44px 24px;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.6px;color:#a398af}.footer-star{font-size:21px;color:var(--purple)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.step-head{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:1.5px}.step-head strong{color:var(--purple);font-weight:500}.segments{display:flex;gap:5px;margin:14px 0 32px}.segment{height:3px;background:#ffffff17;flex:1;border-radius:2px}.segment.done{background:var(--orange)}.segment.current{background:var(--purple)}.game h1{font:500 clamp(29px,5vw,39px)/1.15 'Playfair Display',Georgia,serif;letter-spacing:-.6px;margin:0}.instruction{font-size:14px;color:var(--muted);line-height:1.6;min-height:44px;margin:14px auto 12px;max-width:340px}.stage{position:relative;height:330px;display:grid;place-items:center;isolation:isolate}.stage img{max-width:100%;max-height:100%;object-fit:contain}.stage-caption{margin:14px 0;min-height:44px;font-size:14px;color:var(--purple);font-style:italic;line-height:1.5}.help{border:0;background:none;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:10px}.drag-handle{border:1px solid #ffbca9;background:var(--orange);color:#32232c;border-radius:28px;padding:15px 20px;touch-action:none;font-weight:600;box-shadow:0 6px 24px #0002}.ribbon-control{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);white-space:nowrap}.scene-enter{animation:enter .5s both}#confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:100}.stage.cleared{animation:clear .65s ease both}.stage.cleared *{pointer-events:none!important}.success-mark{color:var(--green)}
@keyframes float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-10px) rotate(2deg)}}@keyframes enter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}@keyframes clear{to{opacity:0;transform:scale(.85) translateY(-20px)}}
@media(max-width:600px){.topbar{height:75px;padding:0 24px}.brand{font-size:34px}.edition{font-size:9px;letter-spacing:1.7px}#app{min-height:calc(100svh - 135px);padding:14px 24px 24px;align-items:center}.intro h1,.finale h1{font-size:43px}.hero-art{height:250px;margin:8px 0}.subtitle{font-size:14px}.eyebrow{margin-bottom:20px}.orbit-note{right:0;top:35px;font-size:10px}.twinkle.one{left:16px}.twinkle.two{right:10px}.footer{padding:14px 24px 20px;font-size:8px;letter-spacing:1.2px}.game{max-width:390px}.segments{margin-bottom:25px}.stage{height:310px}.instruction{margin-bottom:4px}}
@media(max-height:740px){.topbar{height:65px}.hero-art{height:215px}.intro h1{font-size:39px}.intro .subtitle{margin-top:12px}.intro .eyebrow{margin-bottom:16px}.stage{height:275px}.segments{margin-bottom:20px}}
/* Keep the floating artwork outside the button hit area. */
.hero-art{pointer-events:none}.hero-art img{max-height:100%}.intro .primary{position:relative;z-index:2}
/* The stage is the touch surface; scrolling remains available around it. */
.stage button,.stage canvas{touch-action:none;user-select:none;-webkit-user-select:none}.stage img{user-select:none;-webkit-user-drag:none}.game h1:focus{outline:none}.instruction{font-size:16px}.actions{min-height:65px}.hint{color:var(--muted);font-size:14px;line-height:1.5;margin:2px auto 14px;max-width:340px}.tap-option{border:1px solid var(--line);color:var(--paper);background:#ffffff08;border-radius:10px;padding:12px 16px;font-size:14px}.stage.is-solved{filter:drop-shadow(0 0 20px #bea3ef19);transition:transform .5s;transform:scale(.96)}.stage.is-solved:after{content:'✓ FREIGEGEBEN';position:absolute;top:15px;left:50%;translate:-50% 0;background:var(--green);color:#263826;padding:9px 15px;border-radius:20px;font-size:11px;letter-spacing:2px;box-shadow:0 3px 15px #0003;z-index:20;animation:enter .3s}.ribbon-gift{width:280px;height:290px;transition:transform .1s;display:grid;place-items:center}.ribbon-control{bottom:8px}.fly-away{opacity:0;transition:opacity .3s}.parcel-surface{width:280px;height:245px;border:1px solid #e9ca9b;position:relative;background:#d8bc93;box-shadow:12px 14px 0 #a7896945,0 20px 40px #0003;border-radius:5px;transform:rotate(-4deg)}.parcel-label{position:absolute;left:63px;top:77px;padding:20px 16px;background:#f6eddb;color:#51443b;font-size:22px;font-weight:700;transform:rotate(6deg);box-shadow:2px 3px 0 #0001}.parcel-label small{font-size:7px;letter-spacing:1px}.tape-strip{--peel:0%;position:absolute;left:-10px;width:300px;height:42px;display:flex;align-items:center;gap:12px;overflow:hidden;color:#4a2e35;background:linear-gradient(100deg,#ffb897,#f4977d);border:1px dashed #743c5144;font-size:9px;letter-spacing:1.5px;white-space:nowrap;clip-path:inset(0 0 0 var(--peel));box-shadow:0 2px 4px #0002;transition:opacity .4s}.tape-0{top:30px;rotate:4deg}.tape-1{top:112px;rotate:-10deg}.tape-2{top:193px;rotate:3deg}.peel-tab{display:grid;place-items:center;height:100%;width:40px;flex:none;background:#ffe0b9;font-size:21px}.tape-strip.peeled{opacity:0;pointer-events:none}.bubble-sheet{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:22px;border:1px solid #cbb6f53b;border-radius:18px;background:#bda3ef0d;transform:rotate(-3deg);box-shadow:0 20px 30px #0001}.bubble{width:52px;height:52px;border-radius:50%;border:1px solid #e2d1ff65;background:radial-gradient(circle at 34% 26%,#e9deff91 0,#c1a3ee45 21%,#9073bb1a 50%,#bea3ef69 86%);box-shadow:inset -2px -4px 7px #1b122e66,2px 3px 4px #0003;position:relative;transition:scale .2s,background .2s}.bubble:before{content:'';position:absolute;left:12px;top:8px;width:17px;height:9px;border-radius:50%;background:#ffffff77;rotate:-30deg}.bubble.popped{background:#bea3ef0a;box-shadow:inset 0 0 9px #0003;border-color:#bea3ef25;scale:.92;opacity:.48}.bubble.popped:before{width:18px;height:1px;top:24px;left:16px;background:#bea3ef60;rotate:40deg}.stage-counter{position:absolute;bottom:2px;font-size:10px;letter-spacing:2px;color:var(--muted)}.wood-panel{width:290px;height:238px;border:9px solid #ad7e51;border-radius:7px;background:repeating-linear-gradient(0deg,#bc976d 0,#bc976d 75px,#997249 77px,#c6a57e 80px);box-shadow:9px 10px 0 #6e4c3370,0 20px 40px #0003;position:relative;rotate:3deg}.wood-label{position:absolute;inset:30px 43px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f5e7cc;color:#63472f;padding:12px;rotate:-7deg;box-shadow:3px 4px 0 #694a2933}.wood-label span{font-size:9px;letter-spacing:1.6px}.wood-label strong{font:60px 'Playfair Display',serif}.wood-label small{font-size:7px;letter-spacing:1px}.screw{position:absolute;width:52px;height:52px;border-radius:50%;border:3px solid #acb1b8;background:linear-gradient(135deg,#eef1f3,#9ca3ae);color:#515c6b;box-shadow:3px 4px 0 #4e413c66;font-size:36px;line-height:1}.screw-0{left:8px;top:9px}.screw-1{right:8px;top:9px}.screw-2{bottom:8px;left:112px}.screw.unscrewed{opacity:0;translate:30px 60px;transition:opacity .4s,translate .4s}.scanner-panel{width:290px;padding:19px 22px;border:1px solid #bea3ef4d;border-radius:22px;background:linear-gradient(140deg,#3b304e,#292033);box-shadow:0 20px 40px #0003}.scanner-top{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:var(--muted)}#scan-state{color:var(--green)}.scan-pad{display:block;position:relative;margin:20px auto;width:145px;height:157px;border:1px solid #bea3ef77;background:#bea3ef10;border-radius:20px;color:var(--purple);overflow:hidden}.scan-pad svg{width:95px;height:108px}.scan-line{position:absolute;left:0;right:0;top:0;height:2px;background:#d7c4fa;box-shadow:0 0 20px 9px #bea3ef55;opacity:0}.scanning .scan-line{opacity:1;animation:scan 1.4s linear infinite}.scan-track{height:4px;border-radius:8px;background:#ffffff16;overflow:hidden}.scan-track span{display:block;height:100%;width:0;background:var(--green)}#scan-copy{font-size:12px;color:var(--muted);margin:15px 0 0;min-height:16px}.captcha-panel{width:270px;background:#f4edde;border-radius:15px;padding:12px;box-shadow:0 16px 35px #0003;color:#362942}.captcha-heading{text-align:left;font-weight:700;font-size:15px;padding:2px 3px 10px}.captcha-heading small{display:block;font-weight:400;font-size:10px;margin-top:5px;color:#756581}.captcha-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.captcha-tile{background:#e6dced;border:2px solid transparent;border-radius:7px;position:relative;font-size:33px;height:64px}.captcha-tile:nth-child(3n+2){background:#eedacb}.captcha-tile[aria-pressed=true]{border-color:#665082;background:#c6b0e0}.tile-check{position:absolute;right:3px;bottom:1px;font-size:12px;background:#57416f;color:white;border-radius:50%;width:16px;height:16px;display:none}.captcha-tile[aria-pressed=true] .tile-check{display:block}.captcha-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#756581;margin-top:11px}.mini-button{border:0;border-radius:6px;background:#594372;color:white;padding:9px 14px;font-size:12px}.guard-wrap{position:relative;width:265px;height:265px;margin-top:-42px;transition:rotate .6s,translate .6s}.guard-wrap img{width:100%;height:100%;object-fit:contain}.guard-badge{position:absolute;left:-20px;top:32px;color:var(--purple);font-size:9px;letter-spacing:1.6px;line-height:1.5;rotate:-10deg;padding:8px;border:1px solid #bea3ef50;border-radius:8px}.guard-badge strong{font-size:16px;font-weight:500}.cookie{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);background:none;border:0;color:var(--muted);z-index:5;padding:0 20px;min-height:75px}.cookie>span{font-size:47px;display:block;line-height:1.1;filter:drop-shadow(0 4px 4px #0004)}.cookie small{font-size:10px;display:block;margin-top:4px}.cookie.eaten{opacity:0;transition:opacity .3s}.sleepy{display:none;position:absolute;right:0;top:25px;font:28px 'Playfair Display',serif;color:var(--purple);letter-spacing:8px}.sleeping{rotate:13deg;translate:15px 10px}.sleeping .sleepy{display:block;animation:float 3s infinite}.permit{background:#f9efdf;color:#403445;padding:18px 20px 12px;width:280px;box-shadow:0 20px 35px #0003;rotate:-3deg;border-radius:3px}.permit-header{border-bottom:1px solid #baaabb;padding-bottom:9px;display:flex;justify-content:space-between;text-align:left}.permit-header span{font-size:7px;letter-spacing:.7px}.permit-header small{font-size:7px;color:#928092}.permit h2{text-align:left;font:23px/1.1 'Playfair Display',serif;margin:14px 0}.permit-row{display:grid;grid-template-columns:1fr 1fr 70px;align-items:center;gap:4px;border-top:1px solid #d9cbd5;min-height:53px;text-align:left;font-size:10px}.permit-row>span{color:#807180}.permit-row strong{font-size:11px}.stamp-target{width:67px;height:43px;border:1px dashed #bcabbc;background:none;color:#ad9bae;font-size:7px;letter-spacing:1.2px;line-height:1.6;border-radius:4px;padding:0}.stamp-target.stamped{border-color:transparent}.stamp-target b{color:#b95360;font-size:23px;display:block;line-height:.85;rotate:-10deg;animation:stamp .25s}.stamp-target b small{display:block;font-size:6px;border:1px solid #b95360;padding:3px;margin:3px;letter-spacing:.8px}.permit-foot{display:block;text-align:left;font-size:8px;margin-top:9px;color:#998297}.stamp-tool{position:absolute;right:0;bottom:3px;border:3px solid #ffd1a8;background:#fba382;color:#713c44;padding:12px 8px;rotate:9deg;font-size:9px;letter-spacing:1.4px;border-radius:7px;box-shadow:0 5px 0 #a74e5566;z-index:5}.stamp-tool>span{display:block;font-size:27px;line-height:1.1}.safe-wrap{position:relative;width:300px;height:300px;margin-top:-25px;transition:transform .8s,opacity .8s}.safe-wrap img{width:100%;height:100%}.safe-dial{position:absolute;left:49.5%;top:47.8%;transform:translate(-50%,-50%);width:92px;height:92px;border-radius:50%;border:9px solid #dfc498;background:radial-gradient(circle,#352a42 45%,#514058 80%);color:#ffefcd;box-shadow:inset 0 0 0 2px #b4936b,0 3px 5px #0003;font-size:30px;font-variant-numeric:tabular-nums;display:grid;place-items:center}.dial-notch{position:absolute;inset:4px;border-radius:50%;border-top:3px solid var(--orange);pointer-events:none}.safe-dial.unlocked{color:var(--green);box-shadow:0 0 18px #b9d9b044}.safe-handle{position:absolute;right:15%;top:40%;width:49px;height:76px;border:1px solid #e4c592;background:#74554418;border-radius:9px;color:#473144}.safe-handle span{position:absolute;bottom:-23px;left:50%;translate:-50% 0;font-size:8px;letter-spacing:1px;background:#ead4b0;padding:5px 7px;border-radius:5px}.safe-handle.ready{box-shadow:0 0 15px var(--green)}.safe-open{transform:perspective(600px) rotateY(-23deg) scale(.92);transform-origin:10% 50%}.dial-controls{position:absolute;bottom:0;left:50%;translate:-50% 0;display:flex;align-items:center;gap:14px;white-space:nowrap}.dial-controls button{width:42px;height:38px;border:1px solid #bca0f044;background:#bea3ef15;color:var(--paper);border-radius:10px;font-size:22px}.dial-controls span{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.scratch-card{width:280px;height:230px;position:relative;border-radius:15px;overflow:hidden;box-shadow:0 18px 40px #0003;rotate:-3deg}.scratch-reveal{position:absolute;inset:0;background:#f8eedf;color:#4d385e;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.scratch-reveal>span{color:#d09a58;font-size:20px}.scratch-reveal strong{font:38px/1.05 'Playfair Display',serif;font-weight:500}.scratch-reveal em{color:#a069a1}.scratch-reveal small{font-size:9px;letter-spacing:2px}.scratch-card canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}.birthday-line{font-size:13px;color:var(--muted);margin:17px 0 25px}.cat-polaroid{position:relative;width:275px;margin:0 auto 25px;padding:11px 11px 17px;background:#f8efdf;box-shadow:0 14px 35px #0004;rotate:-4deg;animation:photo-in .8s both}.cat-polaroid img{width:100%;height:255px;object-fit:cover;object-position:50% 33%;display:block}.cat-polaroid figcaption{color:#675369;font:italic 14px/1.3 'Playfair Display',serif;padding-top:13px}.cat-polaroid figcaption span{color:#bd765f;font-size:21px}.birthday-sticker{position:absolute;right:-27px;top:-12px;background:var(--orange);color:#382133;border-radius:50%;width:85px;height:85px;display:flex;flex-direction:column;justify-content:center;font:36px/.7 'Playfair Display',serif;rotate:15deg;box-shadow:0 3px 8px #0002;border:1px dashed #66354555}.birthday-sticker small{font:9px 'DM Sans',sans-serif;margin-top:8px}.birthday-greeting{font-size:16px;line-height:1.7;max-width:360px;margin:0 auto 20px;color:#d8ccdf}.final-buttons{display:flex;flex-direction:column;align-items:center;gap:7px}.finale h1{font-size:48px}.finale .eyebrow{margin-bottom:17px}.wiggle{animation:wiggle .35s}
@keyframes scan{0%{top:0}100%{top:100%}}@keyframes stamp{from{scale:1.7;opacity:0}to{scale:1;opacity:1}}@keyframes photo-in{from{opacity:0;transform:translateY(30px) rotate(10deg)}to{opacity:1;transform:none}}@keyframes wiggle{0%,100%{translate:0}25%,75%{translate:-5px}50%{translate:5px}}
@media(max-width:600px){.hero-art img{width:265px}.step-head{font-size:9px;gap:12px}.step-head strong{max-width:65%;text-align:right}.stage-caption{font-size:14px}.instruction{font-size:15px}.stage{height:310px}.guard-wrap{height:250px;width:250px}.safe-wrap{width:285px;height:285px}.safe-dial{width:88px;height:88px;font-size:28px}.permit{width:270px}.stamp-tool{right:-5px}.finale h1{font-size:43px}.cat-polaroid{width:245px}.cat-polaroid img{height:220px}.birthday-sticker{right:-18px;width:72px;height:72px;font-size:31px}.birthday-sticker small{font-size:8px}.birthday-greeting{font-size:15px}.finale .eyebrow{font-size:10px}.stage.is-solved:after{top:0}}
@media(max-width:355px){#app{padding-left:14px;padding-right:14px}.intro h1{font-size:38px}.pill{font-size:9px}.parcel-surface{scale:.9}.wood-panel{scale:.9}.guard-badge{left:0}.bubble-sheet{gap:10px;padding:17px}.bubble{width:49px;height:49px}.stamp-tool{right:0}.cat-polaroid{width:220px}.microcopy{font-size:10px}}
@media(max-height:740px){.stage{height:295px}.game .segments{margin-bottom:18px}.stage-caption{margin:10px 0;min-height:38px}.instruction{min-height:40px}.finale{padding-top:8px}.finale h1{font-size:37px}.cat-polaroid{width:220px;margin-bottom:20px}.cat-polaroid img{height:190px}.birthday-line{margin:12px 0 22px}.hero-art{height:215px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
