:root{color-scheme:dark;--bg:#080d1b;--panel:#101929;--ink:#edf4ff;--muted:#8192ac;--line:#ffffff15;--cyan:#81e8fb;--gold:#edd6a6;--violet:#a396ef}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 12% 0%,#152d483d,transparent 45%),radial-gradient(ellipse at 95% 30%,#45306b30,transparent 45%),var(--bg);color:var(--ink);font-family:"Segoe UI","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif}body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background-image:radial-gradient(circle at 16% 22%,#a1ddff90 0 1px,transparent 2px),radial-gradient(circle at 82% 10%,#edd6a650 0 1px,transparent 2px),radial-gradient(circle at 72% 66%,#a396ef60 0 1px,transparent 2px);background-size:430px 430px,550px 550px,340px 340px}a{color:inherit}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}[hidden]{display:none!important}.masthead{height:78px;max-width:1280px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:750;letter-spacing:3px;text-decoration:none}.brand-symbol{width:32px;height:32px;color:var(--cyan);filter:drop-shadow(0 0 12px #81e8fb55)}.edition{color:#8c9ab1;font:9px Consolas,monospace;letter-spacing:2px}main{max-width:1280px;margin:auto;padding:0 32px}.intro{display:flex;align-items:center;justify-content:space-between;padding:38px 0 32px;position:relative}.eyebrow{font:10px Consolas,monospace;letter-spacing:3px;color:var(--cyan);margin:0 0 12px}h1{margin:0;font-size:clamp(32px,3.4vw,47px);letter-spacing:1px;line-height:1.3;font-weight:700}h1 span{color:var(--gold)}.hero-sigil{position:relative;width:86px;height:86px;display:grid;place-items:center;margin-right:30px;color:var(--gold);filter:drop-shadow(0 0 18px #edd6a633)}.hero-sigil i{position:absolute;width:60px;height:60px;border:1px solid #edd6a638;transform:rotate(45deg)}.hero-sigil i:nth-child(2){width:82px;height:82px;border-color:#81e8fb22;transform:rotate(25deg)}.hero-sigil span{font-size:44px;line-height:1}.journey{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:22px;border-bottom:1px solid var(--line)}.journey-step{display:flex;justify-content:center;align-items:center;gap:9px;padding:16px 8px;position:relative;color:#617089;font-size:12px;letter-spacing:1px}.journey-step>span:first-child{font:9px Consolas,monospace;border:1px solid #ffffff14;border-radius:50%;width:23px;height:23px;display:grid;place-items:center}.journey-step.active{color:var(--cyan);background:linear-gradient(0deg,#81e8fb0d,transparent)}.journey-step.active:after{content:"";height:2px;position:absolute;bottom:-1px;left:14%;right:14%;background:var(--cyan);box-shadow:0 0 16px #81e8fb66}.journey-step.active>span:first-child{border-color:#81e8fb50;background:#81e8fb10;box-shadow:0 0 15px #81e8fb15}.journey-step.done{color:#a3b2c9}.journey-step.done>span:first-child{border-color:#ffffff25}.workspace{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(340px,1fr);border:1px solid #7fb9ee2c;position:relative;border-radius:18px;overflow:hidden;background:var(--panel);min-height:510px;box-shadow:0 20px 65px #0005,0 0 0 5px #ffffff02}.workspace:after{content:"";position:absolute;top:0;left:8%;right:8%;height:1px;background:linear-gradient(90deg,transparent,#81e8fb66,transparent);pointer-events:none;z-index:700}.is-summoning .workspace{box-shadow:0 20px 65px #0005,0 0 40px #81e8fb0d}.map-panel{position:relative;overflow:hidden;min-height:510px;background:#0b1424}.map-panel #map{width:100%;height:100%;min-height:510px;position:absolute;inset:0;background:radial-gradient(ellipse at center,#142a42,#0b1424)}.map-panel:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 90px #070d184d;border:1px solid #ffffff04;z-index:400}.map-heading{position:absolute;top:23px;left:25px;right:25px;pointer-events:none;z-index:450;display:flex;flex-direction:column;gap:9px}.map-kicker{font:9px Consolas,monospace;letter-spacing:2px;color:var(--cyan)}.map-heading>span:last-child{font-size:14px;font-weight:600;text-shadow:0 2px 12px #000;max-width:90%}.map-overview{position:absolute;bottom:53px;right:19px;z-index:450;padding:8px 13px;border:1px solid #81e8fb25;background:#0a1426e6;border-radius:6px;color:#bdd7ef;font-size:11px}.map-overview:hover{border-color:#81e8fb80}.map-caption{position:absolute;bottom:22px;left:25px;right:23px;z-index:450;display:flex;justify-content:space-between;gap:16px;pointer-events:none;font:9px Consolas,monospace;color:#8fa6c0;text-shadow:0 1px 5px #000}.map-network-status{position:absolute;z-index:450;top:74px;left:65px;right:18px;background:#0b1529e6;border:1px solid #ffffff15;border-radius:5px;padding:8px 10px;font-size:9px;color:var(--muted);pointer-events:none}.leaflet-container{font-family:inherit}.leaflet-tile-pane{filter:invert(.92) hue-rotate(180deg) saturate(.45) brightness(.75)}.leaflet-control-attribution{background:#0b1328db!important;color:#8b9db6!important;font-size:8px!important}.leaflet-control-attribution a{color:#adc8e1!important}.leaflet-control-zoom{border:1px solid #81e8fb26!important;box-shadow:none!important;border-radius:6px!important;overflow:hidden;margin-top:95px!important;margin-left:23px!important}.leaflet-control-zoom a{background:#101e33!important;color:#b8d6e9!important;border-bottom-color:#ffffff10!important;width:27px!important;height:27px!important;line-height:27px!important;font-size:17px!important}.leaflet-tooltip.pref-tooltip,.place-tooltip{background:#111f35;border:1px solid #81e8fb44;color:var(--ink);font-size:11px;border-radius:6px;box-shadow:0 6px 24px #0005}.leaflet-tooltip.pref-tooltip:before{display:none}.place-tooltip{white-space:normal;max-width:270px;width:max-content}.map-pin,.map-draw-pin{border:0;background:none}.pin-head{width:38px;height:38px;background:var(--gold);border:3px solid #fff3d3;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 0 24px #edd6a660;animation:pinDrop .7s cubic-bezier(.22,1,.36,1)}.pin-head:after{content:"";position:absolute;inset:10px;background:#1c2231;border-radius:50%}.map-draw-pin{pointer-events:none}.draw-pin-head{display:block;position:absolute;inset:1px 0 7px;background:#14273e;border:2px solid var(--cyan);border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 0 24px #81e8fb50}.draw-pin-head:after{content:"";position:absolute;inset:9px;background:var(--cyan);border-radius:50%}.draw-pin-ring{position:absolute;width:48px;height:48px;left:-6px;top:-5px;border:1px solid var(--cyan);border-radius:50%;opacity:0}.is-drawing .draw-pin-ring{animation:drawPulse 1s ease-out infinite}.is-settled .draw-pin-ring{animation:drawPulse .8s ease-out 2}.is-settled .draw-pin-head{background:var(--cyan);border-color:#e0faff;animation:drawPinSettle .55s cubic-bezier(.22,1,.36,1)}.is-settled .draw-pin-head:after{background:#102139}.leaflet-tooltip.draw-place-tooltip{width:max-content;max-width:240px;white-space:normal;background:#10203a;border:1px solid #81e8fb50;border-radius:6px;color:var(--ink);box-shadow:0 0 20px #81e8fb15;padding:8px 12px;text-align:center;pointer-events:none}.draw-place-tooltip small{display:block;font-size:9px;color:var(--cyan);margin-bottom:4px}.draw-place-tooltip strong{font-size:13px;overflow-wrap:anywhere}.leaflet-tooltip-top.draw-place-tooltip:before{border-top-color:#81e8fb70}.control-panel{padding:28px 31px;display:flex;flex-direction:column;min-width:0;position:relative;border-left:1px solid #81e8fb1c;background:radial-gradient(ellipse at 85% 0%,#3c356427,transparent 70%),linear-gradient(140deg,#142033,#0e1728)}.panel-top{display:flex;justify-content:space-between;align-items:center;font:10px Consolas,monospace;letter-spacing:2px;color:#8da3c2}.phase-gem{font-size:18px;color:var(--gold);filter:drop-shadow(0 0 8px #edd6a655)}h2{font-size:29px;letter-spacing:2px;line-height:1.4;margin:23px 0 28px;font-weight:650}.address-progress{margin:8px 0 28px}.address-progress>div{display:grid;grid-template-columns:22px 73px minmax(0,1fr);gap:9px;align-items:center;min-height:53px;border-bottom:1px solid #ffffff0c}.level-number{font:9px Consolas,monospace;color:#5b718d}.level-label{font-size:11px;color:#8195b1}.address-progress strong{font-size:15px;text-align:right;font-weight:600;overflow-wrap:anywhere}.address-progress>div.waiting strong{color:#465a75;font-weight:400}.address-progress>div.drawing{background:linear-gradient(90deg,transparent,#81e8fb12);border-bottom-color:#81e8fb66}.address-progress>div.drawing strong{color:var(--cyan)}.address-progress>div.settled strong{animation:settle .4s ease-out}.status{font-size:10px;color:var(--muted);line-height:1.7;min-height:17px;margin:4px 0 12px}.status:empty{visibility:hidden}.actions{margin-top:auto}.primary,.secondary{width:100%;min-height:52px;font-family:inherit;font-size:13px;font-weight:600;border-radius:8px;padding:13px 20px;letter-spacing:1px}.primary{position:relative;display:flex;justify-content:space-between;align-items:center;overflow:hidden;color:#13233b;background:linear-gradient(110deg,#f7e9c6,#e4c78e);border:1px solid #fff2cb;box-shadow:0 3px 18px #edd6a61c,inset 0 1px 0 #fff6;transition:box-shadow .2s,translate .2s}.primary:before{content:"";position:absolute;top:0;bottom:0;left:-45%;width:35%;transform:skewX(-25deg);background:linear-gradient(90deg,transparent,#fff8,transparent);pointer-events:none}.primary:hover:not(:disabled){translate:0 -2px;box-shadow:0 5px 27px #edd6a633}.primary:hover:before{animation:buttonSweep .65s ease-out}.primary:disabled{color:#bbc9df;background:linear-gradient(110deg,#263952,#1c2d47);border-color:#81e8fb35;box-shadow:0 0 18px #81e8fb09}.primary:disabled:before{background:linear-gradient(90deg,transparent,#81e8fb22,transparent);animation:buttonSweep 2.4s ease-in-out infinite}.primary span{font-size:22px;font-weight:400}.secondary{background:#ffffff04;border:1px solid #ffffff1c;color:#b3c1d7;margin-top:10px;font-size:12px;min-height:44px}.secondary:hover:not(:disabled){border-color:#81e8fb50;background:#81e8fb08}.name-stage,.birthday-stage{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;min-height:250px;padding:26px 15px 32px;text-align:center;margin:0 0 22px;border:1px solid #81e8fb1e;border-radius:12px;background:radial-gradient(ellipse at center,#6ca5d515,transparent 70%)}.name-stage:before,.birthday-stage:before{content:"";height:1px;background:linear-gradient(90deg,transparent,#81e8fb88,transparent);position:absolute;top:-1px;left:10%;right:10%}.stage-star{font-size:32px;color:var(--gold);filter:drop-shadow(0 0 22px #edd6a655);margin-bottom:12px}#nameValue{font-size:40px;letter-spacing:1px;font-weight:650;margin:10px 0;min-height:52px;text-shadow:0 0 30px #81e8fb28}#nameReading{font-size:11px;min-height:16px;letter-spacing:1px;color:var(--muted);margin:7px 0}.name-stage.drawing #nameValue{color:#9eaed0;filter:blur(.35px)}.name-stage.is-settled{border-color:#edd6a649;animation:stageLight .8s ease-out}.birthday-slots{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:10px;margin:12px 0 20px}.birthday-reel{min-width:0}.birthday-reel-window{height:64px;overflow:hidden;position:relative;border:1px solid #81e8fb28;border-radius:8px;background:linear-gradient(#0a1223,#152640,#0a1223);box-shadow:inset 0 4px 8px #0005}.birthday-reel-window:after{content:"";position:absolute;inset:0;background:linear-gradient(#0a122377,transparent 28%,transparent 72%,#0a122377);pointer-events:none}.birthday-reel-strip{will-change:transform}.birthday-reel-strip>span{height:64px;display:flex;align-items:center;justify-content:center;font:700 clamp(25px,2.6vw,36px) Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:#d6e9ff}.birthday-reel>b{display:block;color:var(--muted);font-weight:400;font-size:10px;margin-top:11px}.birthday-reel.is-spinning .birthday-reel-strip{filter:blur(.5px)}.birthday-reel.is-stopped .birthday-reel-window{background:linear-gradient(#2b2b38,#272b40);border-color:#edd6a680;box-shadow:0 0 20px #edd6a612,inset 0 0 15px #edd6a60a;animation:birthdayStop .4s ease-out}.birthday-reel.is-stopped .birthday-reel-strip>span{color:var(--gold);text-shadow:0 0 15px #edd6a630}.birthday-reel.is-stopped .birthday-reel-strip{will-change:auto}#birthdayValue{font-size:13px;color:var(--gold);min-height:20px;margin:0}.avatar-stage{flex:1;text-align:center;min-height:270px;margin:0 0 20px;display:flex;align-items:center;justify-content:center;flex-direction:column}.avatar-stage #avatarPreview{width:185px;height:216px;position:relative;border-radius:12px;border:1px solid #edd6a678;overflow:hidden;box-shadow:0 0 40px #a396ef20,0 0 0 7px #ffffff02}.avatar-stage #avatarPreview:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,#fff2,transparent 35%,transparent 70%,#81e8fb20)}.avatar-stage svg{width:100%;height:100%;display:block}.avatar-stage p{font-size:10px;color:var(--muted);margin:20px 0 0}.avatar-stage.drawing #avatarPreview{filter:brightness(.85)}.avatar-stage.is-settled #avatarPreview{animation:stageLight .7s ease-out}.summary{display:flex;align-items:center;gap:18px;flex:1;margin:15px 0 30px;padding:25px 0;border-block:1px solid #edd6a62b}.summary>div:last-child{min-width:0}#summaryAvatar{width:91px;height:107px;flex-shrink:0;border:1px solid #edd6a655;border-radius:9px;overflow:hidden;box-shadow:0 0 30px #a396ef20}#summaryAvatar svg{width:100%;height:100%;display:block}.summary strong{display:block;font-size:24px;margin-bottom:10px;font-weight:650}.summary p{font-size:10px;color:var(--muted);line-height:1.8;margin:4px 0}#summaryBirthday{color:#bdcbe0}.reveal-banner{position:absolute;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at center,#173b57f0,#080d1bf2);opacity:0;pointer-events:none;transition:opacity .4s;text-align:center;padding:35px}.reveal-banner:before{content:"✦";font-size:72px;color:var(--gold);filter:drop-shadow(0 0 40px #edd6a655);margin-bottom:25px}.reveal-banner.show{opacity:1}.reveal-banner small{font:10px Consolas,monospace;letter-spacing:3px;color:var(--cyan);margin-bottom:16px}.reveal-banner strong{font-size:36px;letter-spacing:3px;font-weight:650}.reveal-banner p{font-size:14px;color:#c5d8ec;line-height:1.8;margin:18px 0 0}.reveal-banner.pin-view{background:linear-gradient(0deg,#0a1429f5,transparent 70%);justify-content:flex-end;padding-bottom:75px}.reveal-banner.pin-view:before,.reveal-banner.pin-view small{display:none}.reveal-banner.pin-view strong{font-size:24px}.result-section{padding:65px 0 30px;position:relative;overflow:clip}.result-heading{text-align:center}.result-heading h2{font-size:31px;margin:12px 0 35px}.result-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:50px;align-items:center;max-width:1080px;margin:0 auto;position:relative}.card-shell{position:relative;isolation:isolate}.card-shell:before{content:"";position:absolute;inset:-35%;z-index:-1;background:radial-gradient(ellipse,#81e8fb15,transparent 60%);pointer-events:none}.card-shell:after{content:"";position:absolute;inset:-5px;z-index:-1;border:1px solid #edd6a633;border-radius:23px;transform:rotate(-3deg);pointer-events:none}.card-mount{position:relative;transform:rotate(-3deg);filter:drop-shadow(0 20px 26px #0006) drop-shadow(0 0 18px #81e8fb12);transition:transform .3s}.card-mount:hover{transform:rotate(0deg)}.card-mount>svg{width:100%;height:auto;display:block}.result-section.revealed .card-mount{animation:cardReveal 1.1s cubic-bezier(.16,1,.3,1)}.new-badge{display:inline-block;font:10px Consolas,monospace;letter-spacing:2px;color:var(--gold);border:1px solid #edd6a64d;border-radius:4px;padding:5px 10px;background:#edd6a60a}.result-actions h3{font-size:30px;line-height:1.5;letter-spacing:1px;margin:14px 0 17px;font-weight:650}.result-actions p{font-size:11px;color:var(--muted);line-height:1.9;margin:7px 0}.result-actions #finalBirthday{color:#bdcbe0}.text-link{display:inline-block;font-size:11px;color:var(--cyan);text-decoration:none;margin-top:7px;border-bottom:1px solid #81e8fb40;padding-bottom:3px}.result-actions .primary{margin-top:27px}.result-actions .save-note{font-size:10px;color:#849ab5;min-height:16px;margin-top:12px}.about{font-size:10px;color:#72839e;border-top:1px solid var(--line);margin:45px 0 0;padding-top:19px}.about summary{cursor:pointer;width:max-content;font-size:10px;letter-spacing:1px}.about-content{padding-top:10px;max-width:940px}.about p{line-height:1.9;margin:8px 0}.about p:empty{display:none}.about a{color:#91adc7;text-underline-offset:3px}footer{max-width:1280px;margin:auto;padding:25px 32px 30px;display:flex;justify-content:space-between;color:#4d607e;font-size:9px;letter-spacing:1px}#welcomeName,#summaryName,#nameValue{overflow-wrap:anywhere}.confetti{position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:5}.confetti i{position:absolute;left:50%;top:50%;width:5px;height:5px;background:var(--gold);box-shadow:0 0 10px currentColor;opacity:0;animation:shardBurst 1.4s var(--delay) ease-out forwards}
@keyframes shardBurst{0%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.3)}20%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(var(--distance)) scale(.15)}}@keyframes cardReveal{from{opacity:0;transform:translateY(25px) rotate(-3deg) scale(.92);filter:brightness(1.9) drop-shadow(0 0 35px #81e8fb66)}to{opacity:1;transform:translateY(0) rotate(-3deg) scale(1)}}@keyframes buttonSweep{0%{left:-45%}70%,100%{left:145%}}@keyframes pinDrop{from{translate:0 -55px;opacity:0}to{translate:0 0;opacity:1}}@keyframes drawPulse{from{transform:scale(.6);opacity:.6}to{transform:scale(1.8);opacity:0}}@keyframes drawPinSettle{from{translate:0 -30px;scale:.7}to{translate:0 0;scale:1}}@keyframes settle{from{text-shadow:0 0 18px #81e8fb;translate:0 3px}to{text-shadow:none;translate:0 0}}@keyframes stageLight{from{filter:brightness(1.65);box-shadow:0 0 35px #81e8fb25}to{filter:brightness(1)}}@keyframes birthdayStop{from{translate:0 4px;box-shadow:0 0 26px #edd6a64d}to{translate:0 0}}
.workspace.is-complete{grid-template-columns:1fr;min-height:0}.workspace.is-complete .control-panel{display:none}.workspace.is-complete .map-panel,.workspace.is-complete #map{height:320px;min-height:320px}
@media(max-width:1000px){main,.masthead{padding-inline:24px}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr)}.control-panel{padding:25px}.result-layout{gap:35px;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)}h1{font-size:36px}.hero-sigil{margin-right:10px}}
@media(max-width:680px){.masthead{height:65px;padding-inline:20px}.brand{font-size:19px;gap:9px;letter-spacing:2px}.brand-symbol{width:27px;height:27px}.edition{font-size:8px;letter-spacing:1px}main{padding-inline:17px}.intro{padding:28px 0 24px}.eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:10px}h1{font-size:clamp(26px,7vw,34px);letter-spacing:0}.hero-sigil{width:45px;height:45px;margin:0 6px 0 10px}.hero-sigil i{width:33px;height:33px}.hero-sigil i:nth-child(2){width:46px;height:46px}.hero-sigil span{font-size:25px}.journey{margin-bottom:18px}.journey-step{flex-direction:column;gap:7px;font-size:9px;padding:10px 3px;letter-spacing:0}.journey-step>span:first-child{font-size:8px;width:19px;height:19px}.workspace{grid-template-columns:1fr;border-radius:13px}.map-panel,.map-panel #map{height:285px;min-height:285px}.map-heading{top:18px;left:18px;right:18px}.map-kicker{font-size:8px}.map-heading>span:last-child{font-size:12px}.leaflet-control-zoom{margin-left:17px!important;margin-top:81px!important}.map-caption{bottom:19px;left:18px;right:17px;font-size:8px}.map-caption>span:last-child{max-width:50%;text-align:right}.map-overview{bottom:43px;right:16px;font-size:10px}.map-network-status{top:72px;font-size:8px;left:58px;padding:6px 8px}.control-panel{border-left:0;border-top:1px solid #81e8fb22;padding:25px 23px;min-height:370px}.panel-top{font-size:9px}h2{font-size:26px;margin:17px 0 22px}.address-progress{margin:0 0 22px}.address-progress>div{min-height:45px;grid-template-columns:19px 66px minmax(0,1fr);gap:7px}.address-progress strong{font-size:13px}.level-label{font-size:10px}.status{font-size:9px}.primary{min-height:49px;font-size:12px}.name-stage,.birthday-stage{min-height:200px;padding:22px 12px;margin-bottom:18px}.stage-star{font-size:28px}.birthday-slots{gap:9px}.birthday-reel-strip>span{font-size:28px}.avatar-stage{min-height:240px}.avatar-stage #avatarPreview{width:168px;height:196px}.summary{padding-block:22px;gap:14px}.summary strong{font-size:22px}#summaryAvatar{width:76px;height:89px}.reveal-banner{padding:25px}.reveal-banner:before{font-size:45px;margin-bottom:20px}.reveal-banner strong{font-size:28px}.reveal-banner small{font-size:8px}.reveal-banner p{font-size:12px}.reveal-banner.pin-view{padding-bottom:62px}.reveal-banner.pin-view strong{font-size:22px}.result-section{padding-top:45px}.result-heading h2{font-size:27px;margin-bottom:30px}.result-layout{grid-template-columns:1fr;gap:35px}.card-shell{margin:0 5px}.result-actions{text-align:center;padding-inline:10px}.result-actions h3{font-size:28px;margin-bottom:12px}.result-actions .primary{margin-top:23px}.result-actions p{font-size:11px}.about{margin-top:30px}footer{padding-inline:17px;padding-bottom:24px}.leaflet-tooltip.draw-place-tooltip{max-width:190px}.draw-place-tooltip strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.card-mount{transform:none}.card-shell:after{transform:none}.confetti{display:none}.map-draw-pin .draw-pin-ring{opacity:.25;transform:scale(1.2)}}

@media(max-width:680px){.workspace.is-complete .map-panel,.workspace.is-complete #map{height:240px;min-height:240px}}

.workspace.is-complete .map-network-status{top:auto;bottom:45px;right:75px}
/* Actual administrative boundaries, synchronized with the city roulette. */
.municipality-context{pointer-events:none}
.municipality-outline{pointer-events:none;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #7adeef99);transition:stroke .18s,fill .18s,fill-opacity .18s}
.municipality-outline.is-drawing{filter:drop-shadow(0 0 4px #b9f5ff) drop-shadow(0 0 9px #57cbe7aa);animation:municipality-pulse .7s ease-in-out infinite alternate}
.municipality-outline.is-settled{filter:drop-shadow(0 0 6px #f4d695bb)}
@keyframes municipality-pulse{from{stroke-opacity:.75}to{stroke-opacity:1}}
@media(prefers-reduced-motion:reduce){.municipality-outline{animation:none!important;transition:none}}
/* The same card accumulates each confirmed field throughout generation. */
.live-card-panel{position:relative;margin:0 0 20px;min-width:0}
.live-card-caption{display:flex;justify-content:space-between;gap:15px;color:#9fb4cd;font:9px Consolas,"Yu Gothic",sans-serif;letter-spacing:2px;margin-bottom:11px}
.live-card-frame{position:relative;width:100%;max-width:760px;isolation:isolate}
.live-card-mount{position:relative;width:100%;filter:drop-shadow(0 8px 18px #0006)}
.live-card-mount>svg{display:block;width:100%;height:auto}
.live-card-mount .card-field[data-ready="false"]{opacity:.3}
.live-card-panel.is-writing{position:fixed;inset:0;z-index:2500;margin:0;padding:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#213c5fe8,#080d1bf5 65%);backdrop-filter:blur(12px);overflow:hidden}
.live-card-panel.is-writing .live-card-caption{width:min(100%,760px);color:#edd6a6;font-size:13px;margin-bottom:24px;letter-spacing:4px}
.live-card-panel.is-writing .live-card-frame{animation:cardWriteArrival .6s cubic-bezier(.16,1,.3,1) both}
.live-card-panel.is-writing .live-card-frame:before{content:"";position:absolute;inset:-8px;border:1px solid #edd6a688;border-radius:28px;box-shadow:0 0 25px #81e8fb66,inset 0 0 25px #edd6a633;animation:cardWriteRing 1.7s ease-out both;pointer-events:none}
.live-card-panel.is-writing .live-card-frame:after{content:"";position:absolute;inset:-60%;z-index:-1;background:repeating-conic-gradient(from 0deg,#81e8fb00 0deg 8deg,#81e8fb18 9deg 10deg,#81e8fb00 11deg 20deg);mask-image:radial-gradient(ellipse,#000 15%,transparent 60%);animation:cardWriteRays 1.8s ease-out both;pointer-events:none}
.live-card-mount .card-field.is-new{animation:cardFieldWrite 1.4s ease-out both}
.live-card-mount .card-field.is-new .field-impact{animation:cardFieldImpact 1.3s ease-out both}
@keyframes cardWriteArrival{from{opacity:0;transform:translateY(35px) scale(.86) rotate(-4deg);filter:brightness(2.2)}to{opacity:1;transform:translateY(0) scale(1) rotate(0);filter:brightness(1)}}
@keyframes cardWriteRing{0%{opacity:0;transform:scale(.92)}30%{opacity:1}100%{opacity:0;transform:scale(1.16)}}
@keyframes cardWriteRays{from{opacity:0;transform:rotate(-15deg) scale(.75)}30%{opacity:1}to{opacity:0;transform:rotate(15deg) scale(1.15)}}
@keyframes cardFieldWrite{0%{opacity:0;filter:brightness(3) drop-shadow(0 0 12px #81e8fb);transform:translateY(4px)}25%{opacity:1;filter:brightness(2) drop-shadow(0 0 9px #edd6a6)}100%{opacity:1;filter:brightness(1);transform:translateY(0)}}
@keyframes cardFieldImpact{0%{fill-opacity:.65;stroke-opacity:1;stroke-width:2}100%{fill-opacity:0;stroke-opacity:0;stroke-width:0}}
@media(max-width:680px){.live-card-panel.is-writing{padding:22px}.live-card-panel.is-writing .live-card-caption{font-size:11px}.live-card-panel{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.live-card-panel.is-writing{position:relative;inset:auto;padding:0;display:block;background:none;backdrop-filter:none;overflow:visible}.live-card-panel.is-writing .live-card-caption{font-size:9px;letter-spacing:2px;margin-bottom:11px}.live-card-panel.is-writing .live-card-frame:before,.live-card-panel.is-writing .live-card-frame:after{display:none}.live-card-mount .card-field.is-new{filter:none}}
/* Completion is a new scene, rather than a section scrolled into view. */
body.is-result{background:radial-gradient(ellipse at 50% 40%,#213958,#080d1b 65%)}
body.is-result>.masthead,body.is-result>footer,body.is-result main>:not(#resultSection){display:none!important}
body.is-result main{max-width:none;margin:0;padding:0}
body.is-result .result-section{min-height:100svh;padding:35px;display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate}
body.is-result .result-section:before{content:"";position:absolute;inset:-40%;z-index:-1;background:repeating-conic-gradient(#81e8fb00 0deg 10deg,#81e8fb18 11deg 12deg,#81e8fb00 13deg 24deg);mask-image:radial-gradient(ellipse,#000 5%,transparent 60%);animation:finalSceneLight 2.4s ease-out both;pointer-events:none}
body.is-result .result-layout{display:flex;flex-direction:column;gap:30px;max-width:none;width:min(900px,100%,calc((100svh - 160px) * 1.6));margin:0}
body.is-result .card-shell{width:100%;margin:0;perspective:1200px}
body.is-result .card-shell:after{transform:rotate(0);border-color:#edd6a66b;box-shadow:0 0 40px #81e8fb1a}
body.is-result .card-mount{transform:none;filter:drop-shadow(0 25px 45px #0009) drop-shadow(0 0 25px #81e8fb25)}
body.is-result .result-section.revealed .card-mount{animation:finalCardArrival 1.5s cubic-bezier(.16,1,.3,1) both}
body.is-result .result-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;width:100%;padding:0;text-align:center;animation:finalActionArrival .5s 1.5s ease-out both}
body.is-result .result-actions .primary,body.is-result .result-actions .secondary{width:auto;min-width:145px;min-height:42px;margin:0;padding:12px 17px;font-size:11px;border:1px solid #edd6a647;background:#edd6a60b;color:#edd6a6;box-shadow:none}
body.is-result .result-actions .primary:after{display:none}
body.is-result .result-actions .secondary{color:#a7b9d2;border-color:#a7b9d233;background:#a7b9d207}
body.is-result .result-actions .save-note{flex-basis:100%;min-height:0;margin:0}
body.is-result .result-actions .save-note:empty{display:none}
@keyframes finalCardArrival{from{opacity:0;transform:translateY(25px) rotateY(-18deg) rotateX(12deg) scale(.72);filter:brightness(2.5) drop-shadow(0 0 65px #81e8fb)}to{opacity:1;transform:translateY(0) rotateY(0) rotateX(0) scale(1);filter:brightness(1) drop-shadow(0 25px 45px #0009) drop-shadow(0 0 25px #81e8fb25)}}
@keyframes finalSceneLight{0%{opacity:0;transform:rotate(-12deg) scale(.65)}30%{opacity:1}100%{opacity:.2;transform:rotate(12deg) scale(1)}}
@keyframes finalActionArrival{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){body.is-result .result-section{padding:24px}body.is-result .result-layout{gap:25px}body.is-result .result-actions{gap:9px}body.is-result .result-actions .primary,body.is-result .result-actions .secondary{min-width:128px;font-size:10px}}
@media(prefers-reduced-motion:reduce){body.is-result .result-section:before{animation:none;opacity:.15}body.is-result .result-section.revealed .card-mount,body.is-result .result-actions{animation:none;transform:none;opacity:1}}
/* A visual spotlight around the candidate point, independent of map zoom. */
.address-highlight{pointer-events:none;filter:drop-shadow(0 0 7px #81e8fbbb) drop-shadow(0 0 16px #81e8fb66);transition:stroke .15s,fill .15s}
.address-highlight-ring{pointer-events:none;transform-origin:center;transform-box:fill-box;filter:drop-shadow(0 0 5px #81e8fb99);animation:addressAreaPulse 1.1s ease-out infinite}
.address-highlight.is-settled{filter:drop-shadow(0 0 8px #f4d695cc) drop-shadow(0 0 18px #f4d69577)}
.address-highlight-ring.is-settled{animation:addressAreaLock .6s ease-out both;filter:drop-shadow(0 0 7px #f4d695aa)}
@keyframes addressAreaPulse{from{transform:scale(.72);opacity:.85}to{transform:scale(1.35);opacity:0}}
@keyframes addressAreaLock{from{transform:scale(1.3);opacity:1}to{transform:scale(1);opacity:.6}}
@media(prefers-reduced-motion:reduce){.address-highlight,.address-highlight-ring{animation:none;transition:none;transform:none;opacity:.7}}

/* Keep the interface focused on the current draw and the accumulating card. */
.masthead{height:76px;border-bottom:0;gap:24px}
.brand{font-size:18px;letter-spacing:2px;gap:9px}
.brand-symbol{width:25px;height:25px}
.journey{display:flex;gap:14px;align-items:center;margin:0;border:0}
.journey-step{width:7px;height:7px;flex:none;padding:0;border-radius:50%;background:#52627a55;transition:background .3s,box-shadow .3s}
.journey-step>span{position:absolute;width:1px!important;height:1px!important;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0!important}
.journey-step.active{background:var(--cyan);box-shadow:0 0 12px #81e8fb88}
.journey-step.done{background:#c6b58d}
.journey-step.active:after{display:none}
.workspace{min-height:540px}
.map-panel,.map-panel #map{min-height:540px}
.control-panel{padding:30px;gap:0}
.control-panel h2{font-size:12px;letter-spacing:1px;color:var(--muted);font-weight:500;margin:0 0 24px}
.address-progress{flex:1;display:flex;align-items:center;min-height:160px;margin:0 0 28px}
.address-progress>div{display:none;border:0;min-height:0;width:100%;background:none!important}
.address-progress>div.is-current{display:block}
.address-progress .level-number,.address-progress .level-label{display:none}
.address-progress strong{display:block;text-align:left;font-size:clamp(25px,2.7vw,38px);line-height:1.5;letter-spacing:1px;font-weight:600}
.address-progress>div.waiting strong{color:#a6bed6;font-weight:600}
.address-progress>div.drawing strong{color:var(--cyan);text-shadow:0 0 28px #81e8fb33}
.live-card-panel{margin:0 0 26px}
.live-card-caption{display:none}
.live-card-panel.is-writing .live-card-caption{display:flex;justify-content:center;letter-spacing:2px}
.live-card-panel.is-writing #cardFillProgress{display:none}
.name-stage,.birthday-stage{min-height:190px;padding:16px 0;border:0;background:none;margin-bottom:28px}
.name-stage:before,.birthday-stage:before,.stage-star{display:none}
.birthday-slots{margin:12px 0;gap:10px}
.avatar-stage{min-height:215px;margin-bottom:28px}
.summary{display:none!important}
.status:empty{display:none}
.is-summoning .status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.actions{position:relative;min-height:52px}
.is-summoning .actions .primary{visibility:hidden}
.is-summoning .actions:after{content:"";position:absolute;left:calc(50% - 2px);top:24px;width:4px;height:4px;border-radius:50%;background:var(--cyan);box-shadow:-13px 0 #81e8fb55,13px 0 #81e8fb55;animation:drawWait 1.4s ease-in-out infinite}
.leaflet-control-zoom{margin-top:20px!important;margin-left:20px!important}
.map-overview{bottom:29px;width:34px;height:34px;padding:0;display:grid;place-items:center;font-size:17px;border-radius:50%}
.map-network-status{top:20px;left:62px;right:auto;font-size:9px;padding:7px 10px}
.about{margin:18px 0 22px;padding:0;border:0;color:#596b85}
.about summary{font-size:9px;letter-spacing:0}
@keyframes drawWait{0%,100%{opacity:.35}50%{opacity:1;filter:drop-shadow(0 0 6px #81e8fb)}}
@media(max-width:680px){.masthead{height:64px;padding-inline:20px;gap:16px}.brand{font-size:16px}.brand-symbol{width:22px;height:22px}.journey{gap:11px}.journey-step{width:6px;height:6px}.workspace{min-height:0}.map-panel,.map-panel #map{height:280px;min-height:280px}.control-panel{padding:22px 24px;min-height:0}.control-panel h2{margin-bottom:12px;font-size:11px}.address-progress{min-height:65px;margin-bottom:20px}.address-progress strong{font-size:28px}.live-card-panel{margin-bottom:20px}.name-stage,.birthday-stage{min-height:155px;margin-bottom:20px}.avatar-stage{min-height:205px;margin-bottom:20px}.leaflet-control-zoom{margin-top:17px!important;margin-left:17px!important}.map-network-status{top:17px;left:57px;font-size:8px}.map-overview{bottom:25px}.about{margin:15px 0 20px}}
@media(prefers-reduced-motion:reduce){.live-card-panel.is-writing .live-card-caption{display:none}.is-summoning .actions:after{animation:none;opacity:.6}}
.debug-controls{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:10px;color:var(--muted)}
.debug-controls>span{margin-right:auto;color:var(--cyan)}
.debug-controls button{border:1px solid #81e8fb25;border-radius:5px;background:#81e8fb06;color:#a7c6dd;width:27px;height:25px;font-size:16px;line-height:1}
.debug-controls button:disabled{opacity:.4}
.debug-controls a{text-decoration:none;color:#a7c6dd}
.debug-controls a:hover{color:var(--cyan)}
#nameValue{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:6px 10px}
.name-part{min-width:0;max-width:100%;overflow-wrap:anywhere;transition:color .2s}
.name-stage[data-part="family"] #nameGivenValue,.name-stage[data-part="family"] #nameSeparator,#nameSeparator:empty{display:none}
#nameFamilyValue{order:0}#nameSeparator{order:1}#nameGivenValue{order:2}
#nameValue[data-order="given-first"] #nameGivenValue{order:0}
#nameValue[data-order="given-first"] #nameFamilyValue{order:2}
.name-part.is-drawing{color:var(--cyan);text-shadow:0 0 28px #81e8fb44;filter:blur(.25px)}
.name-part.is-settled{color:var(--gold);animation:settle .4s ease-out}
.avatar-stage #avatarPreview{width:206px;height:240px;border-color:#81e8fb40}
.avatar-stage.drawing #avatarPreview{filter:none}
.avatar-stage p{margin:14px 0 0;color:#a9bed7;font-size:11px;letter-spacing:1px}
.avatar-layer{transition:opacity .2s}
.avatar-layer.is-pending{opacity:.25}
.avatar-layer.is-drawing{filter:drop-shadow(0 0 3px #81e8fb);animation:avatarPartPulse .4s ease-in-out infinite alternate}
.avatar-layer.is-new{animation:avatarPartSettle .35s ease-out both}
.avatar-progress{display:flex;justify-content:center;gap:7px;margin:13px 0 0}
.avatar-progress i{width:4px;height:4px;border-radius:50%;background:#586b8744}
.avatar-progress i.active{background:var(--cyan);box-shadow:0 0 8px #81e8fb88}
.avatar-progress i.done{background:var(--gold)}
@keyframes avatarPartPulse{from{opacity:.7}to{opacity:1}}
@keyframes avatarPartSettle{from{filter:brightness(1.6) drop-shadow(0 0 4px #edd6a6)}to{filter:none}}
@media(max-width:680px){.avatar-stage #avatarPreview{width:185px;height:216px}}

/* One full-screen scene at a time: execute, draw, engrave, result. */
html,body{min-height:100%;overscroll-behavior:none}
body>.masthead,body>footer,main>.about{display:none!important}
body main{max-width:none;padding:0;margin:0}
body .workspace{min-height:100svh;border:0;border-radius:0;background:none;box-shadow:none;display:flex;align-items:center;justify-content:center;overflow:hidden}
.workspace:after{display:none}
body .control-panel{width:min(800px,100%);border:0;background:none;padding:32px;min-height:0;align-items:center}
.control-panel>h2{font-size:12px;letter-spacing:3px;text-align:center;color:var(--muted);margin:0 0 30px}
.control-panel>.panel-top,.control-panel>#addressProgress,.control-panel>.summary{display:none!important}
body .map-panel,body #liveCardPanel,body .actions,body .debug-controls{display:none}
body .status{width:100%;text-align:center;font-size:12px;margin:0}
body .status:empty{display:none}
body[data-scene="start"] .control-panel>:not(.actions):not(#status){display:none!important}
body[data-scene="start"] .actions{display:block;min-height:0;width:min(280px,100%)}
body[data-scene="start"] .primary{height:64px;justify-content:center;font-size:18px;letter-spacing:4px;box-shadow:0 0 45px #edd6a628,inset 0 1px 0 #fff6}
body[data-scene="start"] #status:not(:empty){margin-bottom:24px;color:#d3b3ad}
body[data-scene="map"] .map-panel,body[data-scene="map"] .map-panel #map{display:block;position:absolute;inset:0;width:100%;height:100svh;min-height:100svh}
body[data-scene="map"] .control-panel{display:contents}
body[data-scene="map"] .control-panel>:not(.actions):not(#debugControls):not(#status){display:none!important}
body[data-scene="map"] .map-panel:after{border:0;box-shadow:inset 0 0 100px #070d1833}
body[data-scene="map"] .map-heading{top:auto;bottom:52px;left:70px;right:70px;align-items:center;text-align:center}
body[data-scene="map"] .map-heading #mapTitle{font-size:20px;max-width:100%;color:#dceeff}
body[data-scene="map"] .map-heading #mapTitle{overflow-wrap:anywhere;line-height:1.5}
body.is-debug[data-scene="map"] .map-heading{bottom:142px}
body[data-scene="name"] .control-panel,body[data-scene="birthday"] .control-panel,body[data-scene="avatar"] .control-panel{animation:drawSceneArrival .55s ease-out both}
body .name-stage,body .birthday-stage,body .avatar-stage{flex:none;width:100%;margin:0;padding:0;min-height:0;background:none;border:0}
body .name-stage.is-settled{animation:none}
#nameValue{margin:0;min-height:90px;letter-spacing:2px}
#nameReading{margin-top:18px;color:#9bb2ca;font-size:13px}
body[data-scene="birthday"] .birthday-stage{max-width:660px;--reel-height:96px}
body[data-scene="birthday"] .birthday-slots{gap:18px;margin:0}
body[data-scene="birthday"] .birthday-reel-window,body[data-scene="birthday"] .birthday-reel-strip>span{height:var(--reel-height)}
body[data-scene="birthday"] .birthday-reel-strip>span{font-size:58px}
body[data-scene="birthday"] .birthday-reel>b{font-size:12px;letter-spacing:2px;margin-top:18px}
body[data-scene="avatar"] #phaseTitle{display:none}
body[data-scene="avatar"] #avatarPreview{width:min(320px,65vw,calc((100svh - 230px) * .85));height:auto;aspect-ratio:6/7;box-shadow:0 0 75px #81e8fb22,0 0 0 8px #ffffff02}
body[data-scene="avatar"] .avatar-progress{margin-top:18px;gap:9px}
body[data-scene="engrave"] .control-panel>:not(#liveCardPanel):not(.actions):not(#debugControls){display:none!important}
body[data-scene="engrave"] #liveCardPanel{position:fixed;inset:0;z-index:2500;margin:0;padding:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#213c5fe8,#080d1b 65%);overflow:hidden}
body[data-scene="engrave"] .live-card-frame{width:min(760px,100%,calc((100svh - 120px) * 1.6))}
body[data-scene="engrave"] .live-card-caption{display:flex;justify-content:center;width:100%;font-size:12px;color:var(--gold);letter-spacing:4px;margin-bottom:24px;min-height:16px}
.engrave-beam{stroke:#fff3c8;stroke-width:2;fill:none;opacity:0;filter:drop-shadow(0 0 5px #81e8fb) drop-shadow(0 0 12px #81e8fb);animation:engraveSweep 1.35s .1s ease-in-out both;pointer-events:none}
.card-field.is-new text{animation:engraveLetters 1.5s ease-out both}
body.is-debug:not(.is-summoning):not([data-scene="start"]):not([data-scene="result"]):not([data-scene="engrave"]) .actions{display:block;position:fixed;z-index:1000;left:50%;bottom:65px;transform:translateX(-50%);width:min(280px,calc(100% - 48px));min-height:0}
body.is-debug:not(.is-summoning):not([data-scene="start"]):not([data-scene="result"]):not([data-scene="engrave"]) .debug-controls{display:flex;position:fixed;z-index:1000;bottom:18px;left:50%;transform:translateX(-50%);width:min(280px,calc(100% - 48px));margin:0}
body.is-debug.is-card-paused:not(.is-summoning) .actions{display:block;position:fixed;z-index:2600;left:50%;bottom:65px;transform:translateX(-50%);width:min(280px,calc(100% - 48px));min-height:0}
body.is-debug.is-card-paused:not(.is-summoning) .debug-controls{display:flex;position:fixed;z-index:2600;bottom:18px;left:50%;transform:translateX(-50%);width:min(280px,calc(100% - 48px));margin:0}
body.is-debug:not([data-scene="start"]) .control-panel{padding-bottom:140px}
body.is-debug[data-scene="map"] #status:not(:empty){position:fixed;z-index:1000;left:70px;right:70px;top:24px;bottom:auto;width:auto;padding:10px;background:#101929eb;font-size:11px}
.is-summoning .actions:after{display:none}
@keyframes drawSceneArrival{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes engraveSweep{0%{opacity:0;transform:translateX(0)}12%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateX(var(--engrave-distance))}}
@keyframes engraveLetters{0%{opacity:0;clip-path:inset(0 100% 0 0);filter:brightness(3) drop-shadow(0 0 5px #81e8fb)}65%{opacity:1;clip-path:inset(0 0 0 0);filter:brightness(1.8)}100%{opacity:1;clip-path:inset(0 0 0 0);filter:none}}
@media(max-width:680px){body .control-panel{padding:24px}.control-panel>h2{margin-bottom:24px}body[data-scene="birthday"] .birthday-stage{--reel-height:76px}body[data-scene="birthday"] .birthday-slots{gap:9px}body[data-scene="birthday"] .birthday-reel-strip>span{font-size:34px}body[data-scene="engrave"] #liveCardPanel{padding:24px}body[data-scene="map"] .map-heading #mapTitle{font-size:16px}}
@media(prefers-reduced-motion:reduce){.engrave-beam{display:none}.card-field.is-new text{clip-path:none;filter:none}body[data-scene="engrave"] #liveCardPanel{position:fixed;inset:0;background:radial-gradient(ellipse at center,#213c5f,#080d1b 65%)}body[data-scene="engrave"] .live-card-caption{font-size:12px;margin-bottom:24px}}
