
:root{--bg:#fbf6ec;--ink:#3b2f2a;--card:#fffdf8;--line:#e5d8c3;--sky1:#fdf1dc;--sky2:#f6dfc4;--wood:#a8754a;--wood2:#7d5130;--acc:#b5483a;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#1d1814;--ink:#f1e6d6;--card:#2a221c;--line:#4a3d33;--sky1:#2c2740;--sky2:#473a52}}
:root[data-theme="dark"]{--bg:#1d1814;--ink:#f1e6d6;--card:#2a221c;--line:#4a3d33;--sky1:#2c2740;--sky2:#473a52}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;max-width:520px;margin:0 auto;padding:12px 14px 40px}
header{display:flex;align-items:center;justify-content:space-between;gap:10px}
h1{font-size:19px;margin:0}
header small{display:block;opacity:.7;font-size:12px;margin-top:2px}
#jar{position:relative;width:74px;height:92px;flex:none;border:3px solid #9fc7d6aa;border-top-width:6px;border-radius:10px 10px 22px 22px;background:linear-gradient(90deg,#ffffff33,#ffffff10 40%,#ffffff33);overflow:hidden}
#jar::before{content:"";position:absolute;left:8px;top:6px;width:6px;height:60%;border-radius:4px;background:#ffffff66;z-index:3}
.mini{position:absolute;width:26px;height:18px;border-radius:3px;box-shadow:0 1px 2px #0003}
#scene{position:relative;aspect-ratio:1/1;margin-top:10px;border-radius:18px;overflow:hidden;background:linear-gradient(var(--sky1),var(--sky2));border:1px solid var(--line)}
.slot{position:absolute;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;z-index:2}
.slot.big{border-radius:14px}
.slot i{display:none}
.slot.on{border:0}
.slot.on i{display:none}
.slot img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.slot .em{font-size:min(7vw,34px)}
.slot.on{animation:pop .5s}
@keyframes pop{50%{transform:translate(-50%,-50%) scale(1.08)}}
.bar{display:flex;justify-content:space-between;align-items:center;margin:12px 2px 6px;font-size:13px}
/* Pixel brick house: the window buttons remain real, accessible buttons. */
#church{position:relative;margin:16px 0 4px;padding:24px 12px 15px;background-color:#a66651;background-image:linear-gradient(90deg,#e7c9a099 2px,transparent 2px),linear-gradient(#e7c9a099 2px,transparent 2px),linear-gradient(90deg,transparent 0 24px,#e7c9a099 24px 26px,transparent 26px),linear-gradient(180deg,#c98c71 0 14px,#ac705a 14px 28px);background-size:48px 28px,48px 14px,48px 28px,48px 28px;background-position:0 0,0 0,0 14px,0 0;border:4px solid #754b3e;border-top:0;box-shadow:0 4px 0 #69483a,0 7px 12px #54352622;isolation:isolate}
#roof{position:absolute;left:-9px;right:-9px;top:-8px;height:20px;background:repeating-linear-gradient(90deg,#6b443b 0 15px,#805348 15px 28px);border:3px solid #573a35;box-shadow:0 4px 0 #734b3b;z-index:2}
#roof:before{content:"";position:absolute;left:-3px;right:-3px;top:-5px;height:13px;background:#fff9eb;clip-path:polygon(0 0,100% 0,100% 68%,94% 68%,94% 100%,83% 100%,83% 55%,71% 55%,71% 86%,60% 86%,60% 50%,45% 50%,45% 100%,33% 100%,33% 65%,20% 65%,20% 94%,10% 94%,10% 55%,0 55%);filter:drop-shadow(0 2px 0 #c6d8dc)}
#roof:after{content:"";position:absolute;left:5px;right:5px;bottom:-9px;height:8px;background:repeating-linear-gradient(90deg,transparent 0 12px,#f6cf75 12px 15px,transparent 15px 25px);filter:drop-shadow(0 0 3px #ffc75a)}
#grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px 8px;padding:10px 3px 5px;position:relative;z-index:1}
#base{position:absolute;bottom:-3px;left:-5px;right:-5px;height:10px;background:#ddc3a0;border:2px solid #a78365;box-shadow:0 3px 0 #77533f}
.dr{position:relative;aspect-ratio: .82;min-height:54px;min-width:0;padding:0;cursor:pointer;border:0;background:transparent;isolation:isolate;touch-action:manipulation;outline-offset:4px}
.dr .fr{display:block;position:absolute;inset:5px 2px 5px;background:#473a37;border:4px solid #e6c58a;box-shadow:0 0 0 2px #6f4836,inset 0 0 0 2px #94613c,2px 3px 0 #744b37;overflow:hidden}
.dr:before{content:"";position:absolute;z-index:2;top:0;left:-2px;right:-2px;height:8px;background:#f5e1b8;border-bottom:2px solid #aa815a;clip-path:polygon(0 45%,13% 45%,13% 15%,33% 15%,33% 0,67% 0,67% 15%,87% 15%,87% 45%,100% 45%,100% 100%,0 100%);pointer-events:none}
.dr:after{content:"";position:absolute;bottom:1px;left:-1px;right:-1px;height:5px;background:#eed8b4;box-shadow:0 2px 0 #957052;pointer-events:none;z-index:3}
.dr .pane{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 75%,#ffdf8d,#d78d3c 70%);box-shadow:inset 0 0 8px #855527;opacity:.68}
.dr .curtain{position:absolute;top:0;bottom:0;width:51%;z-index:2;background:repeating-linear-gradient(90deg,#84474e 0 3px,#ae6467 3px 6px,#995458 6px 9px);box-shadow:inset 0 -3px 0 #e0b06c;transition:transform .56s cubic-bezier(.25,.8,.3,1);border-bottom:2px solid #d8ae70}
.dr .curtain.l{left:0;border-right:1px solid #63383d;transform-origin:left center}.dr .curtain.r{right:0;border-left:1px solid #63383d;transform-origin:right center}
.dr .rod{position:absolute;z-index:4;top:0;left:0;right:0;height:3px;background:#e3bf7a;box-shadow:0 1px 0 #906333}
.dr .num{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);min-width:24px;padding:3px 2px 2px;text-align:center;font:700 clamp(15px,4.7vw,22px)/1 Galmuri11,'Courier New','Apple SD Gothic Neo','Malgun Gothic',monospace;color:#fff0c9;text-shadow:1px 2px #533831;transition:top .45s,color .3s;pointer-events:none}
.dr .letter{position:absolute;z-index:1;top:28%;left:21%;width:58%;height:41%;background:#fff2d1;border:1px solid #ad7c43;box-shadow:2px 2px 0 #9d682f;transform:translateY(110%) rotate(-5deg);opacity:0;transition:transform .54s .08s,opacity .3s;display:grid;place-items:center;font:14px/1 serif;color:#c48a37;pointer-events:none}
.dr .peek{position:absolute;left:4px;right:4px;top:6px;bottom:6px;display:none;place-items:end center;overflow:hidden;z-index:1;border-radius:8px;background:linear-gradient(180deg,#ffd98e 0%,#f7cb74 44%,#e9b560 100%)}
.dr.done .peek,.dr.out .peek{display:grid}
.dr.done .letter,.dr.out .letter{display:none}
.dr .peek .inside{position:relative;width:100%;height:100%}
.dr .peek .wallstar{position:absolute;color:#fff7c6;text-shadow:0 0 5px #fff3b0,0 0 9px #ffda71;font-size:8px;animation:twinkle 1.8s infinite alternate}
.dr[data-week="1"] .curtain{background:repeating-linear-gradient(90deg,#5e3a81 0 3px,#7b56a8 3px 6px,#68448d 6px 9px)}
.dr[data-week="2"] .curtain{background:repeating-linear-gradient(90deg,#9e88cb 0 3px,#c0afe1 3px 6px,#ab96d4 6px 9px)}
.dr[data-week="3"] .curtain{background:repeating-linear-gradient(90deg,#c96a9b 0 3px,#df8cb6 3px 6px,#d277a6 6px 9px)}
.dr[data-week="4"] .curtain{background:repeating-linear-gradient(90deg,#f5f2ec 0 3px,#ffffff 3px 6px,#ece3d8 6px 9px);box-shadow:inset 0 -3px 0 #dbc693}
.dr[data-week="4"] .num{color:#7a5a35;text-shadow:0 1px #fff7d4}
.dr.today .pane,.dr.done .pane,.dr.out .pane{opacity:1;background:radial-gradient(ellipse at 50% 65%,#fff2bf,#f4c16b 65%,#d38a35);box-shadow:inset 0 0 7px #c58335}
.dr.today .curtain.l{transform:translateX(-8%)}.dr.today .curtain.r{transform:translateX(8%)}.dr.today .fr{box-shadow:0 0 0 2px #a57540,0 0 12px #ffda77,inset 0 0 0 2px #94613c}.dr.today .num{color:#fff5bb}
.dr.done .curtain.l,.dr.out .curtain.l{transform:translateX(-79%)}.dr.done .curtain.r,.dr.out .curtain.r{transform:translateX(79%)}.dr.done .letter,.dr.out .letter{opacity:1;transform:translateY(0) rotate(-5deg)}.dr.done .num,.dr.out .num{top:82%;color:#68442d;text-shadow:0 1px #ffe8b2;font-size:clamp(12px,3.5vw,16px)}
.dr.lock .curtain{filter:saturate(.72) brightness(.92)}.dr.lock .pane{opacity:.45}.dr:focus-visible{outline:3px solid #ffe5a2}.dr:last-child .fr{border-color:#f5d37b;box-shadow:0 0 0 2px #b6955a,inset 0 0 0 2px #94613c,2px 3px 0 #744b37}.dr:last-child:before{background:#f8e2a5}.dr:last-child .letter{color:#a5413b}
.brick-garland{height:12px;margin:0 12px;position:relative;background:repeating-linear-gradient(135deg,transparent 0 5px,#355d48 5px 9px,#628463 9px 12px,transparent 12px 17px);border-bottom:2px solid #527051;z-index:1}.brick-garland:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 22px,#d6a34e 22px 25px,transparent 25px 41px,#ab4244 41px 44px,transparent 44px 63px)}

.peek-generic{position:absolute;inset:0;display:grid;place-items:center;font-size:18px}
.peek-generic.small{font-size:15px}
.peek .spark{position:absolute;left:50%;top:14%;transform:translateX(-50%);font-size:9px;color:#ffe79b;text-shadow:0 0 5px #fff4b2}
.peek .tiny-shelf{position:absolute;left:12%;right:12%;bottom:16%;height:4px;background:#9f6237;box-shadow:0 1px 0 #eec987}
.peek .wand-stick{position:absolute;left:48%;top:30%;width:3px;height:28px;background:#f7f2ff;transform:rotate(24deg);box-shadow:0 0 0 1px #c48bd1}
.peek .wand-star{position:absolute;left:48%;top:18%;transform:translateX(-50%);font-size:13px;color:#ff90da;text-shadow:0 0 5px #ffd0f0,0 0 10px #ffc5ea}
.peek .wand-ribbon{position:absolute;left:58%;top:43%;font-size:8px;color:#ff9ecf}
.peek .boy{position:absolute;bottom:6px;left:50%;transform:translateX(-50%)}
.peek .boy .head{width:12px;height:12px;border-radius:50%;background:#f7d1b3;position:absolute;left:50%;top:0;transform:translateX(-50%);border:1px solid #8f6040}
.peek .boy .hair{position:absolute;left:50%;top:-1px;transform:translateX(-50%);width:13px;height:6px;background:#2f211a;border-radius:8px 8px 3px 3px}
.peek .boy .body{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:12px;height:17px;background:#2a2230;border-radius:4px 4px 2px 2px}
.peek .boy .robe{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:15px;height:15px;background:#121212;clip-path:polygon(28% 0,72% 0,100% 100%,0 100%)}
.peek .boy .hands{position:absolute;left:50%;top:14px;transform:translateX(-50%);font-size:8px;color:#f7d1b3}
.peek .boy .beads{position:absolute;left:50%;top:16px;transform:translateX(-50%);font-size:9px;color:#f1e1b3}
.peek .boy .feet{position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);font-size:8px;color:#442d1f}
.peek .boy.walking{animation:walk45 2.4s ease-in-out infinite alternate}
@keyframes walk45{0%{transform:translateX(-88%)}100%{transform:translateX(-5%)}}
.peek .crownkid{position:absolute;bottom:5px;left:50%;transform:translateX(-50%)}
.peek .crownkid .crown{position:absolute;left:50%;top:-2px;transform:translateX(-50%);font-size:10px}
.peek .crownkid .head{width:13px;height:13px;border-radius:50%;background:#f7d1b3;position:absolute;left:50%;top:6px;transform:translateX(-50%);border:1px solid #8f6040}
.peek .crownkid .body{position:absolute;left:50%;top:17px;transform:translateX(-50%);width:15px;height:14px;background:#845ec2;clip-path:polygon(25% 0,75% 0,100% 100%,0 100%)}
.peek .crownkid .tears{position:absolute;left:50%;top:12px;transform:translateX(-50%);font-size:8px;color:#7fc8ff}
.peek .bubble{position:absolute;background:#fff9f3;border:1px solid #b98772;border-radius:8px;padding:2px 4px;font-size:7px;line-height:1.1;color:#86463a;box-shadow:1px 1px 0 #e0b8a2}
.peek .bubble:after{content:"";position:absolute;bottom:-3px;left:10px;border:4px solid transparent;border-top-color:#fff9f3;filter:drop-shadow(0 1px 0 #b98772)}
.peek .whale{position:absolute;left:8px;bottom:9px;font-size:22px;filter:saturate(1.1)}
.peek .tissue{position:absolute;right:11px;bottom:18px;font-size:10px}
.peek .giverboy{position:absolute;right:8px;bottom:5px;transform:scale(.8)}
.peek .rocker{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);font-size:20px}
.peek .rocker .glasses{position:absolute;left:50%;top:3px;transform:translateX(-50%);font-size:7px;color:#1e1e1e}
.peek .rocker .mic{position:absolute;right:-3px;top:14px;font-size:10px;color:#454545}
.peek .rocker .sound{position:absolute;left:-5px;top:-1px;font-size:6px;color:#fff5cf;white-space:nowrap;text-shadow:0 0 5px #ffd967}
#scene .skyfx{position:absolute;inset:0;pointer-events:none;z-index:1;display:none}
#scene.starry .skyfx{display:block}
#scene .skyfx .tw{position:absolute;color:#fff0ab;text-shadow:0 0 6px #ffe471,0 0 12px #ffdf82;animation:skyblink 2.2s ease-in-out infinite alternate}
@keyframes skyblink{0%{opacity:.35;transform:scale(.85)}100%{opacity:1;transform:scale(1.18)}}

.window-interior{position:absolute;inset:0;display:block;overflow:hidden}
.window-interior.placeholder{display:grid;place-items:center}
.window-interior.placeholder .window-sprite{width:82%;height:82%;object-fit:contain;image-rendering:pixelated}
.dr[data-week="4"] .num,.dr[data-week="4"].today .num,.dr[data-week="4"].done .num,.dr[data-week="4"].out .num{color:#d3a73e!important;text-shadow:1px 1px 0 #6e5731,0 0 3px #fff3cb}
.bigbubble,.risebubble{position:absolute;background:#fffef8;border:2px solid #b88762;border-radius:12px;padding:4px 6px;color:#6b3d28;font:700 10px/1.15 Galmuri11,'Courier New','Apple SD Gothic Neo','Malgun Gothic',monospace;box-shadow:2px 2px 0 #ebc7aa;white-space:nowrap;z-index:4}
.bigbubble:after,.risebubble:after{content:"";position:absolute;border:5px solid transparent}
.char{position:absolute;z-index:2}
.char .head,.catpet .cathead{position:absolute;border-radius:50%;background:#f6c8a8;border:1px solid #70472d}
.char .body{position:absolute}
.d2 .wand{position:absolute;width:16px;height:30px;animation:twinkwand 1.1s infinite alternate}
.d2 .wand:before{content:"";position:absolute;left:7px;top:11px;width:3px;height:17px;background:#f5efff;border:1px solid #d9b8ea;border-radius:2px;transform:rotate(25deg)}
.d2 .wand:after{content:"🎀";position:absolute;right:-1px;top:16px;font-size:8px}
.d2 .core{position:absolute;left:2px;top:0;font-size:15px;color:#ff8fd6;text-shadow:0 0 4px #fff0ff,0 0 8px #ffd2f1}
.d2 .w1{left:8%;top:16%;animation-delay:-.1s}.d2 .w2{left:30%;top:34%;animation-delay:-.4s}.d2 .w3{left:56%;top:20%;animation-delay:-.7s}.d2 .w4{left:71%;top:39%;animation-delay:-1s}
@keyframes twinkwand{0%{transform:scale(.92);filter:brightness(.95)}100%{transform:scale(1.08);filter:brightness(1.25)}}
.d3 .woman{left:13%;bottom:5%;width:48px;height:56px}.d3 .woman .head{width:17px;height:17px;left:15px;top:3px}.d3 .woman .hair{position:absolute;left:12px;top:0;width:23px;height:11px;background:#1b1b1b;border-radius:9px 9px 4px 4px}.d3 .woman .body{left:10px;top:18px;width:28px;height:32px;background:#1a1a1a;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%)}.d3 .woman .arm{position:absolute;width:14px;height:5px;background:#f6c8a8;top:25px;border-radius:4px}.d3 .woman .arm1{left:0;transform:rotate(-18deg)}.d3 .woman .arm2{right:-1px;transform:rotate(25deg)}
.d3 .loop3{right:6px;top:8px;animation:bubble3 4s infinite}.d3 .loop3:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes bubble3{0%,24%,100%{opacity:0;transform:translateY(2px)}25%,74%{opacity:1;transform:translateY(0)}}
.d4 .prayerboy{left:8%;bottom:2%;width:54px;height:60px}.d4 .prayerboy .head{width:17px;height:17px;left:18px;top:2px}.d4 .prayerboy .hair{position:absolute;left:15px;top:0;width:22px;height:9px;background:#2a1f18;border-radius:10px 10px 3px 3px}.d4 .prayerboy .body{left:11px;top:18px;width:30px;height:36px;background:#111;clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}.d4 .prayerboy .arm{position:absolute;width:6px;height:15px;background:#f6c8a8;top:22px;border-radius:4px}.d4 .prayerboy .arm1{left:21px;transform:rotate(8deg)}.d4 .prayerboy .arm2{left:27px;transform:rotate(-8deg)}.d4 .prayerboy .rosary{position:absolute;left:23px;top:30px;width:10px;height:12px;border:2px dotted #e9d7a7;border-top-color:transparent;border-left-color:transparent;border-radius:50%;transform:rotate(25deg)}
.d4 .walk{animation:walkinside 3.4s ease-in-out infinite alternate}.d4 .bubbleA{right:4px;top:7px;animation:bubblealtA 2s infinite}.d4 .bubbleB{right:2px;top:7px;animation:bubblealtB 2s infinite}.d4 .bigbubble:after{left:12px;bottom:-8px;border-top-color:#fffef8}
@keyframes walkinside{0%{transform:translateX(0)}100%{transform:translateX(22px)}}
@keyframes bubblealtA{0%,48%{opacity:1}50%,100%{opacity:0}} @keyframes bubblealtB{0%,48%{opacity:0}50%,100%{opacity:1}}
.d5 .baseballboy{left:18%;bottom:4%;width:55px;height:58px}.d5 .baseballboy .head{width:17px;height:17px;left:20px;top:5px}.d5 .baseballboy .cap{position:absolute;left:16px;top:0;width:24px;height:10px;background:#2f6dce;border-radius:10px 10px 2px 2px}.d5 .baseballboy .body{left:16px;top:22px;width:24px;height:18px;background:#2f6dce;border-radius:5px}.d5 .baseballboy .pant{position:absolute;left:18px;top:39px;width:20px;height:13px;background:#f5f5f5;border-radius:0 0 4px 4px}.d5 .bubbleA{right:5px;top:8px;animation:bubblealtA 2s infinite}.d5 .bubbleB{right:3px;top:8px;animation:bubblealtB 2s infinite}.d5 .bigbubble:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d6 .risebubble{font-size:9px;padding:3px 6px;animation:floatup 3s linear infinite}.d6 .left{left:3px;bottom:2px}.d6 .left:after{left:10px;bottom:-8px;border-top-color:#fffef8}.d6 .right{right:3px;bottom:2px;animation-delay:1.5s}.d6 .right:after{right:10px;bottom:-8px;border-top-color:#fffef8}
@keyframes floatup{0%{opacity:0;transform:translateY(0)}10%,70%{opacity:1}100%{opacity:0;transform:translateY(-42px)}}
.d7 .catgirl{left:9%;bottom:6%;width:48px;height:52px}.d7 .catgirl .head{width:16px;height:16px;left:15px;top:3px}.d7 .catgirl .hair{position:absolute;left:11px;top:0;width:23px;height:12px;background:#111;border-radius:10px 10px 4px 4px}.d7 .catgirl .body{left:8px;top:18px;width:30px;height:28px;background:#111;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}
.d7 .catpet{position:absolute;left:32%;bottom:10%;width:34px;height:28px;animation:nuzzle 1.8s ease-in-out infinite alternate}.d7 .catpet .cathead{width:14px;height:13px;left:16px;top:2px;background:#b89062;clip-path:polygon(0 22%,18% 0,34% 18%,66% 18%,82% 0,100% 22%,100% 100%,0 100%)}.d7 .catpet .catbody{position:absolute;left:5px;top:12px;width:24px;height:12px;background:#c59c70;border-radius:8px}
@keyframes nuzzle{0%{transform:translateX(0) scale(1)}100%{transform:translateX(-4px) scale(1.04)}}
.d7 .heartpop{position:absolute;font-size:14px;color:#ff6faa;text-shadow:0 0 4px #ffd4e6;animation:heartpop 2s infinite;z-index:4}.d7 .heartpop i{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-style:normal;font-size:5px;color:#fff}.d7 .h1{left:40%;bottom:34%}.d7 .h2{left:55%;bottom:46%;animation-delay:1s}
@keyframes heartpop{0%,100%{opacity:0;transform:translateY(8px) scale(.6)}25%,55%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:0;transform:translateY(-8px) scale(1.1)}}
.d8 .cryking{left:18%;bottom:3%;width:55px;height:60px}.d8 .cryking .crown{position:absolute;left:20px;top:-1px;font-size:12px}.d8 .cryking .head{width:18px;height:18px;left:19px;top:8px}.d8 .cryking .hair{position:absolute;left:17px;top:6px;width:22px;height:8px;background:#53341a;border-radius:8px 8px 2px 2px}.d8 .cryking .body{left:15px;top:25px;width:26px;height:24px;background:#7f59c9;clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}.d8 .cryking .tear{position:absolute;width:4px;height:9px;background:#7fd3ff;border-radius:3px;top:21px;animation:tearfall 1s infinite}.d8 .cryking .t1{left:20px}.d8 .cryking .t2{left:34px;animation-delay:.25s}.d8 .cry{right:3px;top:8px;font-size:10px;padding:5px 7px}.d8 .cry:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes tearfall{0%{transform:translateY(0);opacity:0}30%{opacity:1}100%{transform:translateY(10px);opacity:0}}
.d9{background:linear-gradient(180deg,#6ec8ff 0%,#2490d0 55%,#1169ab 100%)}.d9 .sea{position:absolute;inset:auto 0 0 0;height:22%;background:rgba(255,255,255,.08)}.d9 .kelp{position:absolute;bottom:-2px;width:8px;height:34px;background:#2a8f64;border-radius:12px 12px 0 0;transform-origin:bottom center;animation:sway 1.9s ease-in-out infinite}.d9 .k1{left:15%}.d9 .k2{left:72%;animation-delay:-.9s}.d9 .whale-king{position:absolute;left:16%;bottom:17%;font-size:28px;animation:whalebob 1.8s ease-in-out infinite}.d9 .tissuepull{position:absolute;right:9px;top:13px;font-size:13px;animation:tissuewig 1.3s ease-in-out infinite alternate}
@keyframes sway{0%{transform:rotate(-8deg)}100%{transform:rotate(8deg)}} @keyframes whalebob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}} @keyframes tissuewig{0%{transform:rotate(-8deg)}100%{transform:rotate(8deg)}}

.d11{background:linear-gradient(180deg,#1c2147 0%,#0f1430 55%,#080b17 100%)}
.d11 .karaoke-bg{position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,#2f4072 0%,#171c3c 40%,#080b17 100%)}
.d11 .mirrorball{position:absolute;left:50%;top:4px;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff 0%,#d7ebff 20%,#96b8da 45%,#dcecff 70%,#98b6d7 100%);box-shadow:0 0 6px #d9ecff;animation:spinball 2s linear infinite;z-index:2}
.d11 .mirrorball:before{content:"";position:absolute;left:7px;top:-7px;width:2px;height:8px;background:#d8d8d8}
.d11 .beam{position:absolute;top:10px;width:24px;height:44px;opacity:.35;filter:blur(1px);transform-origin:top center;animation:beamflash 1.4s ease-in-out infinite alternate}
.d11 .b1{left:3px;background:linear-gradient(180deg,#7bd6ff00,#7bd6ffaa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%)}
.d11 .b2{left:28px;background:linear-gradient(180deg,#ff8fd600,#ff8fd6aa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);animation-delay:-.4s}
.d11 .b3{right:4px;background:linear-gradient(180deg,#ffe37d00,#ffe37daa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);animation-delay:-.9s}
.d11 .spark{position:absolute;font-size:8px;color:#fff5ae;text-shadow:0 0 6px #fff7c8,0 0 10px #ffe45a;animation:clubspark 1.1s infinite alternate;z-index:2}
.d11 .s1{left:8px;top:18px}.d11 .s2{right:8px;top:16px;animation-delay:-.45s}.d11 .s3{left:52px;top:28px;animation-delay:-.8s}
@keyframes spinball{0%{transform:translateX(-50%) rotate(0deg)}100%{transform:translateX(-50%) rotate(360deg)}}
@keyframes beamflash{0%{opacity:.15}100%{opacity:.55}}
@keyframes clubspark{0%{opacity:.25;transform:scale(.8)}100%{opacity:1;transform:scale(1.18)}}
.d11 .rocker{left:16%;bottom:3%;width:56px;height:60px;z-index:3}.d11 .rocker .head{width:18px;height:18px;left:18px;top:6px}.d11 .rocker .hair{position:absolute;left:13px;top:3px;width:28px;height:11px;background:#6d3e19;border-radius:12px}.d11 .rocker .glasses{position:absolute;left:18px;top:13px;width:18px;height:5px;border-top:2px solid #151515;border-bottom:2px solid #151515}.d11 .rocker .glasses:before,.d11 .rocker .glasses:after{content:"";position:absolute;top:-1px;width:6px;height:6px;border:2px solid #151515;border-radius:50%}.d11 .rocker .glasses:before{left:0}.d11 .rocker .glasses:after{right:0}.d11 .rocker .body{left:14px;top:26px;width:28px;height:23px;background:#1d1d1d;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d11 .rocker .mic{position:absolute;right:2px;top:26px;width:4px;height:18px;background:#555;border-radius:2px}.d11 .rocker .mic:before{content:"";position:absolute;left:-3px;top:-5px;width:10px;height:10px;background:#737373;border-radius:50%}.d11 .sing{right:2px;top:8px;z-index:4}.d11 .sing:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d12 .pianoman{left:7%;bottom:5%;width:50px;height:58px}.d12 .pianoman .head{width:17px;height:17px;left:16px;top:5px}.d12 .pianoman .hair{position:absolute;left:13px;top:2px;width:23px;height:11px;background:#35231a;border-radius:10px 10px 4px 4px}.d12 .pianoman .body{left:11px;top:21px;width:28px;height:27px;background:#3d6ca8;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d12 .pianoman .arm{position:absolute;width:14px;height:5px;background:#f6c8a8;top:28px;border-radius:4px}.d12 .pianoman .arm1{left:2px;transform:rotate(10deg)}.d12 .pianoman .arm2{right:0;transform:rotate(-8deg)}
.d12 .piano{position:absolute;right:4px;bottom:8px;width:38px;height:26px;background:#2d2624;border:2px solid #5b4740;border-radius:4px 4px 2px 2px;box-shadow:0 2px 0 #1e1918}.d12 .piano .keys{position:absolute;left:3px;right:3px;bottom:3px;height:9px;background:repeating-linear-gradient(90deg,#fffdf9 0 4px,#e6e1dc 4px 5px,#151515 5px 7px,#fffdf9 7px 11px);border-radius:1px}
.d12 .lyric{right:2px;top:8px;z-index:4}.d12 .lyric:after{left:20px;bottom:-8px;border-top-color:#fffef8}.d12 .l1{animation:lyric4a 4s infinite}.d12 .l2{animation:lyric4b 4s infinite}.d12 .l3{animation:lyric4c 4s infinite}.d12 .l4{animation:lyric4d 4s infinite}
@keyframes lyric4a{0%,24%{opacity:1}25%,100%{opacity:0}} @keyframes lyric4b{0%,24%{opacity:0}25%,49%{opacity:1}50%,100%{opacity:0}} @keyframes lyric4c{0%,49%{opacity:0}50%,74%{opacity:1}75%,100%{opacity:0}} @keyframes lyric4d{0%,74%{opacity:0}75%,99%{opacity:1}100%{opacity:0}}
.d16 .tigercollar{left:11%;bottom:6%;width:60px;height:58px}.d16 .tigercollar .head{width:26px;height:24px;left:16px;top:6px;background:#ee9a3b}.d16 .tigercollar .ear{position:absolute;top:1px;width:10px;height:10px;background:#ee9a3b;clip-path:polygon(50% 0,100% 100%,0 100%)}.d16 .tigercollar .e1{left:15px}.d16 .tigercollar .e2{left:33px}.d16 .tigercollar .stripe{position:absolute;background:#5a2f17;border-radius:3px;z-index:2}.d16 .tigercollar .st1{left:21px;top:12px;width:4px;height:8px;transform:rotate(20deg)}.d16 .tigercollar .st2{left:29px;top:11px;width:4px;height:9px}.d16 .tigercollar .st3{left:37px;top:12px;width:4px;height:8px;transform:rotate(-20deg)}.d16 .tigercollar .body{left:10px;top:27px;width:38px;height:24px;background:#ee9a3b;border-radius:10px 10px 14px 14px}.d16 .tigercollar .collar{position:absolute;left:18px;top:29px;width:20px;height:14px;background:#181818;border-radius:4px}.d16 .tigercollar .collar:before{content:"";position:absolute;left:6px;top:2px;width:8px;height:9px;background:#fff;border-radius:0 0 2px 2px}.d16 .tigercollar .head:before,.d16 .tigercollar .head:after{content:"";position:absolute;top:13px;width:4px;height:2px;background:#43200f}.d16 .tigercollar .head:before{left:6px}.d16 .tigercollar .head:after{right:6px}.d16 .tigercollar .head i{display:none}.d16 .tigercry{right:2px;top:8px;z-index:4}.d16 .tigercry:after{left:17px;bottom:-8px;border-top-color:#fffef8}



.d14{background:linear-gradient(180deg,#b8d9ff 0%,#f7e8b6 100%)}
.d14 .monitorangel{left:24%;bottom:6%;width:42px;height:54px;z-index:3}.d14 .monitorangel .screen{position:absolute;left:9px;top:2px;width:24px;height:19px;background:linear-gradient(180deg,#dfe7ef,#95a6ba);border:2px solid #505f70;border-radius:3px;box-shadow:0 0 5px #fff}.d14 .monitorangel .screen:before{content:"";position:absolute;left:7px;top:4px;width:10px;height:7px;background:#f7fbff;border:1px solid #8fa4bc}.d14 .monitorangel .body{position:absolute;left:9px;top:23px;width:24px;height:24px;background:#fff5f2;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%)}
.d14 .halo{position:absolute;left:34%;top:6px;width:20px;height:7px;border:2px solid #f6d267;border-radius:50%;box-shadow:0 0 6px #ffef9f;z-index:2}
.d14 .wing{position:absolute;top:20px;width:22px;height:22px;background:radial-gradient(circle at 30% 30%,#fff,#e9eef9 70%);clip-path:ellipse(45% 50% at 50% 50%);z-index:1}.d14 .wl{left:12px;transform:rotate(-25deg)}.d14 .wr{left:46px;transform:rotate(25deg)}
.d14 .announcer{right:2px;top:8px;animation:glowbubble 1.2s ease-in-out infinite alternate}.d14 .announcer:after{left:18px;bottom:-8px;border-top-color:#fffef8}.d14 .shine{position:absolute;font-size:10px;color:#fff7b9;text-shadow:0 0 6px #fff6c2,0 0 10px #ffd85c;animation:shimmer 1.2s infinite alternate;z-index:4}.d14 .sh1{left:7px;top:10px}.d14 .sh2{right:6px;top:24px;animation-delay:-.4s}.d14 .sh3{left:50px;bottom:10px;animation-delay:-.8s}
@keyframes glowbubble{0%{box-shadow:2px 2px 0 #ebc7aa,0 0 0 rgba(255,240,170,0)}100%{box-shadow:2px 2px 0 #ebc7aa,0 0 10px rgba(255,240,170,.9)}} @keyframes shimmer{0%{opacity:.4;transform:scale(.85)}100%{opacity:1;transform:scale(1.2)}}
.d17{background:linear-gradient(180deg,#f4d7ae 0%,#efc27d 100%)}
.d17 .windowframe{position:absolute;right:7px;top:8px;width:28px;height:38px;border:3px solid #8a5e41;box-shadow:inset 0 0 0 2px #e7c89f}.d17 .windowframe:before,.d17 .windowframe:after{content:"";position:absolute;background:#8a5e41}.d17 .windowframe:before{left:11px;top:0;width:3px;height:100%}.d17 .windowframe:after{left:0;top:17px;width:100%;height:3px}
.d17 .praygirl{left:10%;bottom:5%;width:45px;height:56px}.d17 .praygirl .head{width:16px;height:16px;left:15px;top:5px}.d17 .praygirl .hair{position:absolute;left:12px;top:2px;width:22px;height:12px;background:#231812;border-radius:10px 10px 4px 4px}.d17 .praygirl .hair:after{content:"";position:absolute;right:-3px;top:5px;width:8px;height:10px;background:#231812;border-radius:6px 6px 8px 8px}.d17 .praygirl .body{left:9px;top:20px;width:28px;height:26px;background:#d4a0c8;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d17 .praygirl .hands{position:absolute;left:20px;top:26px;width:8px;height:12px;background:#f6c8a8;border-radius:5px}
.d17 .wish{right:2px;top:7px;font-size:9px;line-height:1.1}.d17 .wish:after{left:16px;bottom:-8px;border-top-color:#fffef8}.d17 .note{position:absolute;color:#fff6b6;text-shadow:0 0 5px #ffef92,0 0 8px #ffdf5c;font-size:11px;animation:notepop 1.5s infinite alternate;z-index:4}.d17 .n1{left:46px;bottom:14px}.d17 .n2{left:55px;bottom:28px;animation-delay:-.5s}.d17 .n3{left:40px;bottom:34px;animation-delay:-1s}
@keyframes notepop{0%{opacity:.3;transform:scale(.75)}100%{opacity:1;transform:scale(1.15)}}
.d19{background:linear-gradient(180deg,#ffd59e 0%,#efbb77 100%)}
.d19 .potterygirl{left:8%;bottom:4%;width:48px;height:56px}.d19 .potterygirl .head{width:16px;height:16px;left:15px;top:3px}.d19 .potterygirl .hair{position:absolute;left:11px;top:1px;width:23px;height:12px;background:#4c311f;border-radius:9px}.d19 .potterygirl .body{left:11px;top:19px;width:26px;height:25px;background:#7aa8ce;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d19 .potterygirl .arm{position:absolute;width:12px;height:4px;background:#f6c8a8;top:27px;border-radius:4px}.d19 .potterygirl .arm1{left:0;transform:rotate(10deg)}.d19 .potterygirl .arm2{right:-1px;transform:rotate(-10deg)}
.d19 .wheel{position:absolute;right:5px;bottom:9px;width:34px;height:22px;background:#8d6243;border-radius:50% 50% 40% 40%;box-shadow:0 5px 0 #6f4c33;animation:wheelspin 1.2s linear infinite}.d19 .wheel .pot{position:absolute;left:10px;top:-9px;width:14px;height:16px;background:#bf8a58;border-radius:40% 40% 30% 30% / 20% 20% 80% 80%;box-shadow:inset -2px 0 0 rgba(90,50,20,.25)}
@keyframes wheelspin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.d21{background:linear-gradient(180deg,#ffe4a7 0%,#f4c376 100%)}
.d21 .macaman{left:18%;bottom:4%;width:54px;height:58px;animation:macarena 1.8s infinite}.d21 .macaman .head{width:18px;height:18px;left:18px;top:4px}.d21 .macaman .hair{position:absolute;left:15px;top:1px;width:24px;height:10px;background:#5a341f;border-radius:10px}.d21 .macaman .body{left:12px;top:22px;width:30px;height:24px;background:#3c86d5;border-radius:12px 12px 8px 8px}.d21 .macaman .arm{position:absolute;width:16px;height:5px;background:#f6c8a8;top:25px;border-radius:4px;transform-origin:left center}.d21 .macaman .arm1{left:-2px;transform:rotate(-25deg)}.d21 .macaman .arm2{right:-2px;transform:rotate(25deg)}.d21 .macaman .leg{position:absolute;width:6px;height:14px;background:#4b3321;top:43px}.d21 .macaman .l1{left:18px}.d21 .macaman .l2{left:30px}
.d21 .maca1{right:2px;top:8px}.d21 .maca1:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d22{background:linear-gradient(180deg,#ead7bf 0%,#d6b893 100%)}
.d22 .macapigeon{left:21%;bottom:8%;width:50px;height:50px;animation:macarena 1.8s infinite}.d22 .macapigeon .body{position:absolute;left:12px;top:20px;width:24px;height:20px;background:#9da9b5;border-radius:55% 55% 48% 48%}.d22 .macapigeon .head{position:absolute;left:18px;top:8px;width:15px;height:15px;background:#aeb8c2;border-radius:50%}.d22 .macapigeon .beak{position:absolute;left:29px;top:15px;width:0;height:0;border-left:9px solid #e09b41;border-top:4px solid transparent;border-bottom:4px solid transparent}.d22 .macapigeon .wing{position:absolute;left:18px;top:23px;width:14px;height:10px;background:#8594a3;border-radius:50%}.d22 .macapigeon .leg{position:absolute;width:12px;height:4px;background:#aeb8c2;top:28px;border-radius:4px;transform-origin:left center}.d22 .macapigeon .l1{left:4px;transform:rotate(-25deg)}.d22 .macapigeon .l2{right:2px;transform:rotate(25deg)}
.d22 .maca2{right:3px;top:8px}.d22 .maca2:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes macarena{0%,100%{transform:translateY(0)}25%{transform:translateY(-1px) rotate(-2deg)}50%{transform:translateY(0) rotate(2deg)}75%{transform:translateY(-1px) rotate(-2deg)}}
.d24{background:linear-gradient(180deg,#ffd9b6 0%,#f0b77a 100%)}
.d24 .bishop{left:25%;bottom:5%;width:42px;height:58px}.d24 .bishop .hat{position:absolute;left:11px;top:0;width:20px;height:18px;background:#c63b39;border-radius:8px 8px 4px 4px}.d24 .bishop .hat:after{content:"";position:absolute;left:9px;top:5px;width:2px;height:9px;background:#f3d57b}.d24 .bishop .head{width:16px;height:16px;left:13px;top:14px}.d24 .bishop .body{position:absolute;left:7px;top:28px;width:28px;height:24px;background:#c63b39;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d24 .bishop .cross{position:absolute;left:19px;top:33px;width:4px;height:12px;background:#f3d57b}.d24 .bishop .cross:before{content:"";position:absolute;left:-4px;top:3px;width:12px;height:4px;background:#f3d57b}
.d25{background:linear-gradient(180deg,#f7ecd3 0%,#ecd3a8 100%)}
.d25 .glasscup{position:absolute;left:25%;bottom:7%;width:36px;height:36px;border:3px solid rgba(186,213,227,.95);border-top-width:2px;border-radius:5px 5px 10px 10px;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(180,215,234,.18));box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}.d25 .candlebody{position:absolute;left:36%;bottom:14%;width:14px;height:18px;background:#f8f0d3;border-radius:2px}.d25 .flame{position:absolute;left:39%;bottom:31%;width:8px;height:14px;border-radius:50% 50% 55% 55% / 70% 70% 30% 30%;transform:rotate(8deg);animation:flicker 1s ease-in-out infinite alternate}.d25 .outer{background:#ffb347;filter:blur(.5px)}.d25 .inner{left:40%;bottom:32%;width:4px;height:8px;background:#fff2a0}.d25 .glow{position:absolute;left:24%;bottom:10%;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle,#fff1a8 0%,rgba(255,221,117,.6) 35%,rgba(255,214,98,0) 70%);animation:glowpulse 1.1s ease-in-out infinite alternate}
@keyframes flicker{0%{transform:translateY(0) rotate(6deg) scale(.95)}100%{transform:translateY(-1px) rotate(12deg) scale(1.08)}} @keyframes glowpulse{0%{opacity:.55}100%{opacity:1}}

@media(max-width:365px){#church{padding-left:8px;padding-right:8px}#grid{gap:11px 5px}.dr .fr{border-width:3px}.dr .num{min-width:18px}}
@media(prefers-reduced-motion:reduce){.dr .curtain,.dr .letter,.dr .num{transition:none}}
#modal{position:fixed;inset:0;background:#0007;display:none;align-items:center;justify-content:center;padding:18px;z-index:50}
.card{width:100%;max-width:380px;max-height:92vh;overflow:auto;background:var(--card);border-radius:18px;padding:16px;text-align:center}
.card h2{margin:0 0 8px;font-size:16px}
#mp{width:130px;height:130px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:70px}
#mp[hidden]{display:none}
#loginForm input{max-width:100%;padding:9px;margin:5px;border:1px solid var(--line);border-radius:8px}
#mp img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal;image-rendering:auto}
#np{background:#fff3b8;color:#3b2f2a;border-radius:8px;padding:12px;text-align:left;font-size:14px;line-height:1.55;box-shadow:0 2px 6px #0003;transform:rotate(-1deg)}
#np b{display:block;font-size:12px;color:#8a5a35;margin-top:8px}
textarea{width:100%;min-height:62px;margin:4px 0;border:1px solid var(--line);border-radius:8px;padding:8px;font:inherit;background:#fffef5;color:#3b2f2a}
button.b{border:0;border-radius:10px;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer;background:var(--acc);color:#fff;margin:10px 4px 0}
button.b.g{background:var(--line);color:var(--ink)}
.fl{position:fixed;z-index:99;pointer-events:none;display:flex;align-items:center;justify-content:center;overflow:hidden}
.fl img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.fl.n{background:#fff3b8;border-radius:6px;box-shadow:0 2px 6px #0004}
#adm{display:none;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-size:13px;line-height:1.6}
#toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:#000c;color:#fff;padding:9px 16px;border-radius:20px;font-size:13px;opacity:0;transition:opacity .3s;z-index:120;pointer-events:none}
#jar{cursor:pointer} #mp[hidden]{display:none} .tools{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:18px}.tools button{margin:0;font-size:13px}.guide{font-size:12px;line-height:1.7;opacity:.8;text-align:center}.note-list{text-align:left;display:grid;gap:10px}.note-list article{background:#e6f3ff;color:#314152;padding:12px;border-radius:12px;white-space:pre-wrap;box-shadow:inset 0 0 0 1px #cde4fb}.note-list b{display:block;margin:6px 0} #np{white-space:pre-wrap}
#scene{aspect-ratio:3/2;background:#faf2e3}#scene .artlayer,#scene .finalart{image-rendering:auto;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}#scene [hidden]{display:none!important}#scene .slot{opacity:0;pointer-events:none}#jar{width:84px;height:108px;border:0;background:url(images/jar.webp) center/contain no-repeat;overflow:visible}#jar:before{display:none}#jar .mini{background:none!important;box-shadow:none;line-height:1;width:auto;height:auto;color:#fff7bf;font-size:14px;text-shadow:0 0 6px #ffd86e,0 0 12px #ffcf52;filter:drop-shadow(0 0 5px #ffd36f);animation:twinkle 2s infinite alternate}#jar.full{filter:drop-shadow(0 0 14px #ffd06c)}@keyframes twinkle{0%{opacity:.8;transform:scale(1) rotate(var(--rot))}100%{opacity:1;transform:scale(1.15) rotate(var(--rot));filter:brightness(1.45)}}.fl.n{background:transparent!important;box-shadow:none!important;color:#ffe16c;font-size:32px;text-shadow:0 0 9px #ffb000;text-align:center;border:0!important}.tools{flex-wrap:nowrap;gap:4px}.tools button{flex:1;min-width:0;padding:9px 3px;font-size:clamp(9px,2.7vw,13px);white-space:nowrap}.tools button[hidden]{display:none!important}.preview-art{display:block;width:100%;border-radius:10px} #jar .mini{transform:rotate(var(--rot))}#jar .stardust{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff1b6;box-shadow:0 0 6px #ffd86e,0 0 12px #ffcd54;animation:twinkle 2.5s infinite alternate;pointer-events:none}#scene .artlayer{animation:revealArt .8s ease both}@keyframes revealArt{from{opacity:0}to{opacity:1}}
/* Two-sided Advent card: artwork is separate from editable content. */
#card.advent-modal{max-width:min(390px,calc((100dvh - 112px)*.75));padding:0;background:transparent;overflow:visible;border-radius:12px;color:#58371d}
.advent-face{position:relative;width:100%;aspect-ratio:3/4;background-size:100% 100%;background-position:center;background-repeat:no-repeat;container-type:inline-size;border-radius:8px;box-shadow:0 9px 28px #0005;overflow:hidden;font-family:"Nanum Myeongjo","Noto Serif KR","Batang",serif;animation:card-in .25s ease-out}
@keyframes card-in{from{opacity:.55;transform:scale(.985) rotateY(10deg)}to{opacity:1;transform:none}}
.advent-face .field{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap;overflow:hidden;scrollbar-width:none;word-break:keep-all;color:#58371d}
.advent-face .day{left:33%;width:34%;top:32%;height:8%;font-size:7cqw;font-weight:700}
.advent-face #np{left:10%;width:80%;top:47%;height:26%;background:none;box-shadow:none;transform:none;border-radius:0;padding:0;font-size:5.8cqw;flex-direction:column;gap:2cqw;white-space:normal;line-height:1.6;text-align:center}
.advent-face #np .verse-body{white-space:pre-wrap;max-width:100%;margin:auto 0;line-height:1.6;text-align:center}
.advent-face #np .verse-ref{font-size:.72em;white-space:pre-wrap;margin-top:1.5cqw;display:block}
.advent-face #mp{position:absolute;left:28.5%;top:13%;width:43%;height:29.4%;margin:0;clip-path:inset(0 round 48% 48% 0 0);font-size:18cqw}
.advent-face #mp img{max-width:100%;max-height:100%;object-fit:contain}
.advent-face .symbol-name{left:28%;width:44%;top:46%;height:6%;font-size:5.5cqw;font-weight:700}
.advent-face .symbol-desc{left:13%;width:74%;top:55.2%;height:11.5%;font-size:4.5cqw;padding:0 1.2cqw}
.advent-face .mission{left:13%;width:74%;top:81.8%;height:8.8%;font-size:4.5cqw;padding:0 1.2cqw}
.advent-face .field.long{font-size:3.6cqw;line-height:1.5;align-items:safe center}
.advent-face #np.long{font-size:4.5cqw}
.advent-face #np.xlong{font-size:3.8cqw}
.card-actions{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:8px}.card-actions button.b{font-size:12px;margin:0;padding:9px 12px;background:#fff7e9;color:#58371d}.card-actions button.primary{background:#986139;color:white}
@media(max-height:550px){#card.advent-modal{max-width:min(340px,calc((100dvh - 90px)*.75))}.card-actions button.b{padding:6px 8px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.advent-face{animation:none}}
#adm label.field-label{display:block;margin-top:8px;font-weight:600}#adm input[type=text]{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;font:inherit}#adminImagePreview{display:block;max-width:110px;max-height:110px;object-fit:contain;margin:8px 0}#adminImagePreview[hidden]{display:none}#adminSymbolImage{max-width:100%}

#jar .mini{position:absolute;z-index:2;color:#fff3ab;text-shadow:0 0 2px #fff,0 0 5px #ffdb71,0 0 10px #f2b742;filter:none;animation:jarGlow var(--dur,2s) ease-in-out infinite alternate;transform:translate(-50%,50%) rotate(var(--rot,0deg));pointer-events:none}#jar .stardust{z-index:1;width:2px;height:2px;background:#fff7cd;box-shadow:0 0 3px #ffe486,0 0 6px #eebd48;animation:jarDust 2.5s ease-in-out infinite alternate}@keyframes jarGlow{from{opacity:.68;transform:translate(-50%,50%) rotate(var(--rot,0deg)) scale(.86)}to{opacity:1;transform:translate(-50%,50%) rotate(var(--rot,0deg)) scale(1.08)}}@keyframes jarDust{from{opacity:.25}to{opacity:1}}.note-list article{background:#e6f3ff;color:#314152;border:1px solid #d1e5f7}.advent-face #mp img{image-rendering:auto;max-width:94%;max-height:94%;object-fit:contain}@media(prefers-reduced-motion:reduce){#jar .mini,#jar .stardust{animation:none}}

#jar.full{background-image:url(images/jar-full.webp);filter:drop-shadow(0 0 8px #f3cd68)}#jar.full .mini{opacity:.75;font-size:5px!important}#jar.full .stardust{opacity:.7}

body{font-family:'Gowun Dodum','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif}h1,#cnt,.advent-face .day{font-family:Galmuri11,'Gowun Dodum','Apple SD Gothic Neo','Malgun Gothic',sans-serif}.advent-face{font-family:'Gowun Batang','Batang','Noto Serif CJK KR',serif}.advent-face .symbol-desc,.advent-face .mission,.advent-face .symbol-name{font-family:'Gowun Dodum','Apple SD Gothic Neo',sans-serif}.advent-face .symbol-name{font-size:4.4cqw;line-height:1.2}.advent-face .symbol-desc{font-size:4.1cqw;line-height:1.45}.advent-face .mission{font-size:4.2cqw;line-height:1.4}.stats-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;text-align:left}.stats-summary div{background:#e6f3ff;color:#314152;padding:10px;border-radius:9px}.stats-summary strong{display:block;font-size:23px}.stat-row{display:grid;grid-template-columns:44px 1fr 42px;gap:8px;align-items:center;text-align:left;font-size:12px;margin:5px 0}.stat-row i{height:8px;background:#e9e2d4;border-radius:6px;overflow:hidden}.stat-row em{display:block;height:100%;background:#9abfd0}.stats-daily{text-align:left;font-size:13px}.stats-daily p{margin:5px 0}.preview-flag{font-size:12px;color:#b5483a}

.read-large{text-align:left;font-size:16px;line-height:1.75;white-space:pre-wrap}.read-large h3{font-size:14px;margin:14px 0 0;color:#9a6337}.read-large p{margin:6px 0 12px}.card-actions{flex-wrap:wrap}.card-actions button.b{white-space:nowrap}
.peek-generic{position:absolute;inset:0;display:grid;place-items:center;font-size:18px}
.peek-generic.small{font-size:15px}
.peek .spark{position:absolute;left:50%;top:14%;transform:translateX(-50%);font-size:9px;color:#ffe79b;text-shadow:0 0 5px #fff4b2}
.peek .tiny-shelf{position:absolute;left:12%;right:12%;bottom:16%;height:4px;background:#9f6237;box-shadow:0 1px 0 #eec987}
.peek .wand-stick{position:absolute;left:48%;top:30%;width:3px;height:28px;background:#f7f2ff;transform:rotate(24deg);box-shadow:0 0 0 1px #c48bd1}
.peek .wand-star{position:absolute;left:48%;top:18%;transform:translateX(-50%);font-size:13px;color:#ff90da;text-shadow:0 0 5px #ffd0f0,0 0 10px #ffc5ea}
.peek .wand-ribbon{position:absolute;left:58%;top:43%;font-size:8px;color:#ff9ecf}
.peek .boy{position:absolute;bottom:6px;left:50%;transform:translateX(-50%)}
.peek .boy .head{width:12px;height:12px;border-radius:50%;background:#f7d1b3;position:absolute;left:50%;top:0;transform:translateX(-50%);border:1px solid #8f6040}
.peek .boy .hair{position:absolute;left:50%;top:-1px;transform:translateX(-50%);width:13px;height:6px;background:#2f211a;border-radius:8px 8px 3px 3px}
.peek .boy .body{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:12px;height:17px;background:#2a2230;border-radius:4px 4px 2px 2px}
.peek .boy .robe{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:15px;height:15px;background:#121212;clip-path:polygon(28% 0,72% 0,100% 100%,0 100%)}
.peek .boy .hands{position:absolute;left:50%;top:14px;transform:translateX(-50%);font-size:8px;color:#f7d1b3}
.peek .boy .beads{position:absolute;left:50%;top:16px;transform:translateX(-50%);font-size:9px;color:#f1e1b3}
.peek .boy .feet{position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);font-size:8px;color:#442d1f}
.peek .boy.walking{animation:walk45 2.4s ease-in-out infinite alternate}
@keyframes walk45{0%{transform:translateX(-88%)}100%{transform:translateX(-5%)}}
.peek .crownkid{position:absolute;bottom:5px;left:50%;transform:translateX(-50%)}
.peek .crownkid .crown{position:absolute;left:50%;top:-2px;transform:translateX(-50%);font-size:10px}
.peek .crownkid .head{width:13px;height:13px;border-radius:50%;background:#f7d1b3;position:absolute;left:50%;top:6px;transform:translateX(-50%);border:1px solid #8f6040}
.peek .crownkid .body{position:absolute;left:50%;top:17px;transform:translateX(-50%);width:15px;height:14px;background:#845ec2;clip-path:polygon(25% 0,75% 0,100% 100%,0 100%)}
.peek .crownkid .tears{position:absolute;left:50%;top:12px;transform:translateX(-50%);font-size:8px;color:#7fc8ff}
.peek .bubble{position:absolute;background:#fff9f3;border:1px solid #b98772;border-radius:8px;padding:2px 4px;font-size:7px;line-height:1.1;color:#86463a;box-shadow:1px 1px 0 #e0b8a2}
.peek .bubble:after{content:"";position:absolute;bottom:-3px;left:10px;border:4px solid transparent;border-top-color:#fff9f3;filter:drop-shadow(0 1px 0 #b98772)}
.peek .whale{position:absolute;left:8px;bottom:9px;font-size:22px;filter:saturate(1.1)}
.peek .tissue{position:absolute;right:11px;bottom:18px;font-size:10px}
.peek .giverboy{position:absolute;right:8px;bottom:5px;transform:scale(.8)}
.peek .rocker{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);font-size:20px}
.peek .rocker .glasses{position:absolute;left:50%;top:3px;transform:translateX(-50%);font-size:7px;color:#1e1e1e}
.peek .rocker .mic{position:absolute;right:-3px;top:14px;font-size:10px;color:#454545}
.peek .rocker .sound{position:absolute;left:-5px;top:-1px;font-size:6px;color:#fff5cf;white-space:nowrap;text-shadow:0 0 5px #ffd967}
#scene .skyfx{position:absolute;inset:0;pointer-events:none;z-index:1;display:none}
#scene.starry .skyfx{display:block}
#scene .skyfx .tw{position:absolute;color:#fff0ab;text-shadow:0 0 6px #ffe471,0 0 12px #ffdf82;animation:skyblink 2.2s ease-in-out infinite alternate}
@keyframes skyblink{0%{opacity:.35;transform:scale(.85)}100%{opacity:1;transform:scale(1.18)}}

.window-interior{position:absolute;inset:0;display:block;overflow:hidden}
.window-interior.placeholder{display:grid;place-items:center}
.window-interior.placeholder .window-sprite{width:82%;height:82%;object-fit:contain;image-rendering:pixelated}
.dr[data-week="4"] .num,.dr[data-week="4"].today .num,.dr[data-week="4"].done .num,.dr[data-week="4"].out .num{color:#d3a73e!important;text-shadow:1px 1px 0 #6e5731,0 0 3px #fff3cb}
.bigbubble,.risebubble{position:absolute;background:#fffef8;border:2px solid #b88762;border-radius:12px;padding:4px 6px;color:#6b3d28;font:700 10px/1.15 Galmuri11,'Courier New','Apple SD Gothic Neo','Malgun Gothic',monospace;box-shadow:2px 2px 0 #ebc7aa;white-space:nowrap;z-index:4}
.bigbubble:after,.risebubble:after{content:"";position:absolute;border:5px solid transparent}
.char{position:absolute;z-index:2}
.char .head,.catpet .cathead{position:absolute;border-radius:50%;background:#f6c8a8;border:1px solid #70472d}
.char .body{position:absolute}
.d2 .wand{position:absolute;width:16px;height:30px;animation:twinkwand 1.1s infinite alternate}
.d2 .wand:before{content:"";position:absolute;left:7px;top:11px;width:3px;height:17px;background:#f5efff;border:1px solid #d9b8ea;border-radius:2px;transform:rotate(25deg)}
.d2 .wand:after{content:"🎀";position:absolute;right:-1px;top:16px;font-size:8px}
.d2 .core{position:absolute;left:2px;top:0;font-size:15px;color:#ff8fd6;text-shadow:0 0 4px #fff0ff,0 0 8px #ffd2f1}
.d2 .w1{left:8%;top:16%;animation-delay:-.1s}.d2 .w2{left:30%;top:34%;animation-delay:-.4s}.d2 .w3{left:56%;top:20%;animation-delay:-.7s}.d2 .w4{left:71%;top:39%;animation-delay:-1s}
@keyframes twinkwand{0%{transform:scale(.92);filter:brightness(.95)}100%{transform:scale(1.08);filter:brightness(1.25)}}
.d3 .woman{left:13%;bottom:5%;width:48px;height:56px}.d3 .woman .head{width:17px;height:17px;left:15px;top:3px}.d3 .woman .hair{position:absolute;left:12px;top:0;width:23px;height:11px;background:#1b1b1b;border-radius:9px 9px 4px 4px}.d3 .woman .body{left:10px;top:18px;width:28px;height:32px;background:#1a1a1a;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%)}.d3 .woman .arm{position:absolute;width:14px;height:5px;background:#f6c8a8;top:25px;border-radius:4px}.d3 .woman .arm1{left:0;transform:rotate(-18deg)}.d3 .woman .arm2{right:-1px;transform:rotate(25deg)}
.d3 .loop3{right:6px;top:8px;animation:bubble3 4s infinite}.d3 .loop3:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes bubble3{0%,24%,100%{opacity:0;transform:translateY(2px)}25%,74%{opacity:1;transform:translateY(0)}}
.d4 .prayerboy{left:8%;bottom:2%;width:54px;height:60px}.d4 .prayerboy .head{width:17px;height:17px;left:18px;top:2px}.d4 .prayerboy .hair{position:absolute;left:15px;top:0;width:22px;height:9px;background:#2a1f18;border-radius:10px 10px 3px 3px}.d4 .prayerboy .body{left:11px;top:18px;width:30px;height:36px;background:#111;clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}.d4 .prayerboy .arm{position:absolute;width:6px;height:15px;background:#f6c8a8;top:22px;border-radius:4px}.d4 .prayerboy .arm1{left:21px;transform:rotate(8deg)}.d4 .prayerboy .arm2{left:27px;transform:rotate(-8deg)}.d4 .prayerboy .rosary{position:absolute;left:23px;top:30px;width:10px;height:12px;border:2px dotted #e9d7a7;border-top-color:transparent;border-left-color:transparent;border-radius:50%;transform:rotate(25deg)}
.d4 .walk{animation:walkinside 3.4s ease-in-out infinite alternate}.d4 .bubbleA{right:4px;top:7px;animation:bubblealtA 2s infinite}.d4 .bubbleB{right:2px;top:7px;animation:bubblealtB 2s infinite}.d4 .bigbubble:after{left:12px;bottom:-8px;border-top-color:#fffef8}
@keyframes walkinside{0%{transform:translateX(0)}100%{transform:translateX(22px)}}
@keyframes bubblealtA{0%,48%{opacity:1}50%,100%{opacity:0}} @keyframes bubblealtB{0%,48%{opacity:0}50%,100%{opacity:1}}
.d5 .baseballboy{left:18%;bottom:4%;width:55px;height:58px}.d5 .baseballboy .head{width:17px;height:17px;left:20px;top:5px}.d5 .baseballboy .cap{position:absolute;left:16px;top:0;width:24px;height:10px;background:#2f6dce;border-radius:10px 10px 2px 2px}.d5 .baseballboy .body{left:16px;top:22px;width:24px;height:18px;background:#2f6dce;border-radius:5px}.d5 .baseballboy .pant{position:absolute;left:18px;top:39px;width:20px;height:13px;background:#f5f5f5;border-radius:0 0 4px 4px}.d5 .bubbleA{right:5px;top:8px;animation:bubblealtA 2s infinite}.d5 .bubbleB{right:3px;top:8px;animation:bubblealtB 2s infinite}.d5 .bigbubble:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d6 .risebubble{font-size:9px;padding:3px 6px;animation:floatup 3s linear infinite}.d6 .left{left:3px;bottom:2px}.d6 .left:after{left:10px;bottom:-8px;border-top-color:#fffef8}.d6 .right{right:3px;bottom:2px;animation-delay:1.5s}.d6 .right:after{right:10px;bottom:-8px;border-top-color:#fffef8}
@keyframes floatup{0%{opacity:0;transform:translateY(0)}10%,70%{opacity:1}100%{opacity:0;transform:translateY(-42px)}}
.d7 .catgirl{left:9%;bottom:6%;width:48px;height:52px}.d7 .catgirl .head{width:16px;height:16px;left:15px;top:3px}.d7 .catgirl .hair{position:absolute;left:11px;top:0;width:23px;height:12px;background:#111;border-radius:10px 10px 4px 4px}.d7 .catgirl .body{left:8px;top:18px;width:30px;height:28px;background:#111;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}
.d7 .catpet{position:absolute;left:32%;bottom:10%;width:34px;height:28px;animation:nuzzle 1.8s ease-in-out infinite alternate}.d7 .catpet .cathead{width:14px;height:13px;left:16px;top:2px;background:#b89062;clip-path:polygon(0 22%,18% 0,34% 18%,66% 18%,82% 0,100% 22%,100% 100%,0 100%)}.d7 .catpet .catbody{position:absolute;left:5px;top:12px;width:24px;height:12px;background:#c59c70;border-radius:8px}
@keyframes nuzzle{0%{transform:translateX(0) scale(1)}100%{transform:translateX(-4px) scale(1.04)}}
.d7 .heartpop{position:absolute;font-size:14px;color:#ff6faa;text-shadow:0 0 4px #ffd4e6;animation:heartpop 2s infinite;z-index:4}.d7 .heartpop i{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-style:normal;font-size:5px;color:#fff}.d7 .h1{left:40%;bottom:34%}.d7 .h2{left:55%;bottom:46%;animation-delay:1s}
@keyframes heartpop{0%,100%{opacity:0;transform:translateY(8px) scale(.6)}25%,55%{opacity:1;transform:translateY(0) scale(1)}80%{opacity:0;transform:translateY(-8px) scale(1.1)}}
.d8 .cryking{left:18%;bottom:3%;width:55px;height:60px}.d8 .cryking .crown{position:absolute;left:20px;top:-1px;font-size:12px}.d8 .cryking .head{width:18px;height:18px;left:19px;top:8px}.d8 .cryking .hair{position:absolute;left:17px;top:6px;width:22px;height:8px;background:#53341a;border-radius:8px 8px 2px 2px}.d8 .cryking .body{left:15px;top:25px;width:26px;height:24px;background:#7f59c9;clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}.d8 .cryking .tear{position:absolute;width:4px;height:9px;background:#7fd3ff;border-radius:3px;top:21px;animation:tearfall 1s infinite}.d8 .cryking .t1{left:20px}.d8 .cryking .t2{left:34px;animation-delay:.25s}.d8 .cry{right:3px;top:8px;font-size:10px;padding:5px 7px}.d8 .cry:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes tearfall{0%{transform:translateY(0);opacity:0}30%{opacity:1}100%{transform:translateY(10px);opacity:0}}
.d9{background:linear-gradient(180deg,#6ec8ff 0%,#2490d0 55%,#1169ab 100%)}.d9 .sea{position:absolute;inset:auto 0 0 0;height:22%;background:rgba(255,255,255,.08)}.d9 .kelp{position:absolute;bottom:-2px;width:8px;height:34px;background:#2a8f64;border-radius:12px 12px 0 0;transform-origin:bottom center;animation:sway 1.9s ease-in-out infinite}.d9 .k1{left:15%}.d9 .k2{left:72%;animation-delay:-.9s}.d9 .whale-king{position:absolute;left:16%;bottom:17%;font-size:28px;animation:whalebob 1.8s ease-in-out infinite}.d9 .tissuepull{position:absolute;right:9px;top:13px;font-size:13px;animation:tissuewig 1.3s ease-in-out infinite alternate}
@keyframes sway{0%{transform:rotate(-8deg)}100%{transform:rotate(8deg)}} @keyframes whalebob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}} @keyframes tissuewig{0%{transform:rotate(-8deg)}100%{transform:rotate(8deg)}}

.d11{background:linear-gradient(180deg,#1c2147 0%,#0f1430 55%,#080b17 100%)}
.d11 .karaoke-bg{position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,#2f4072 0%,#171c3c 40%,#080b17 100%)}
.d11 .mirrorball{position:absolute;left:50%;top:4px;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff 0%,#d7ebff 20%,#96b8da 45%,#dcecff 70%,#98b6d7 100%);box-shadow:0 0 6px #d9ecff;animation:spinball 2s linear infinite;z-index:2}
.d11 .mirrorball:before{content:"";position:absolute;left:7px;top:-7px;width:2px;height:8px;background:#d8d8d8}
.d11 .beam{position:absolute;top:10px;width:24px;height:44px;opacity:.35;filter:blur(1px);transform-origin:top center;animation:beamflash 1.4s ease-in-out infinite alternate}
.d11 .b1{left:3px;background:linear-gradient(180deg,#7bd6ff00,#7bd6ffaa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%)}
.d11 .b2{left:28px;background:linear-gradient(180deg,#ff8fd600,#ff8fd6aa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);animation-delay:-.4s}
.d11 .b3{right:4px;background:linear-gradient(180deg,#ffe37d00,#ffe37daa);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);animation-delay:-.9s}
.d11 .spark{position:absolute;font-size:8px;color:#fff5ae;text-shadow:0 0 6px #fff7c8,0 0 10px #ffe45a;animation:clubspark 1.1s infinite alternate;z-index:2}
.d11 .s1{left:8px;top:18px}.d11 .s2{right:8px;top:16px;animation-delay:-.45s}.d11 .s3{left:52px;top:28px;animation-delay:-.8s}
@keyframes spinball{0%{transform:translateX(-50%) rotate(0deg)}100%{transform:translateX(-50%) rotate(360deg)}}
@keyframes beamflash{0%{opacity:.15}100%{opacity:.55}}
@keyframes clubspark{0%{opacity:.25;transform:scale(.8)}100%{opacity:1;transform:scale(1.18)}}
.d11 .rocker{left:16%;bottom:3%;width:56px;height:60px;z-index:3}.d11 .rocker .head{width:18px;height:18px;left:18px;top:6px}.d11 .rocker .hair{position:absolute;left:13px;top:3px;width:28px;height:11px;background:#6d3e19;border-radius:12px}.d11 .rocker .glasses{position:absolute;left:18px;top:13px;width:18px;height:5px;border-top:2px solid #151515;border-bottom:2px solid #151515}.d11 .rocker .glasses:before,.d11 .rocker .glasses:after{content:"";position:absolute;top:-1px;width:6px;height:6px;border:2px solid #151515;border-radius:50%}.d11 .rocker .glasses:before{left:0}.d11 .rocker .glasses:after{right:0}.d11 .rocker .body{left:14px;top:26px;width:28px;height:23px;background:#1d1d1d;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d11 .rocker .mic{position:absolute;right:2px;top:26px;width:4px;height:18px;background:#555;border-radius:2px}.d11 .rocker .mic:before{content:"";position:absolute;left:-3px;top:-5px;width:10px;height:10px;background:#737373;border-radius:50%}.d11 .sing{right:2px;top:8px;z-index:4}.d11 .sing:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d12 .pianoman{left:7%;bottom:5%;width:50px;height:58px}.d12 .pianoman .head{width:17px;height:17px;left:16px;top:5px}.d12 .pianoman .hair{position:absolute;left:13px;top:2px;width:23px;height:11px;background:#35231a;border-radius:10px 10px 4px 4px}.d12 .pianoman .body{left:11px;top:21px;width:28px;height:27px;background:#3d6ca8;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d12 .pianoman .arm{position:absolute;width:14px;height:5px;background:#f6c8a8;top:28px;border-radius:4px}.d12 .pianoman .arm1{left:2px;transform:rotate(10deg)}.d12 .pianoman .arm2{right:0;transform:rotate(-8deg)}
.d12 .piano{position:absolute;right:4px;bottom:8px;width:38px;height:26px;background:#2d2624;border:2px solid #5b4740;border-radius:4px 4px 2px 2px;box-shadow:0 2px 0 #1e1918}.d12 .piano .keys{position:absolute;left:3px;right:3px;bottom:3px;height:9px;background:repeating-linear-gradient(90deg,#fffdf9 0 4px,#e6e1dc 4px 5px,#151515 5px 7px,#fffdf9 7px 11px);border-radius:1px}
.d12 .lyric{right:2px;top:8px;z-index:4}.d12 .lyric:after{left:20px;bottom:-8px;border-top-color:#fffef8}.d12 .l1{animation:lyric4a 4s infinite}.d12 .l2{animation:lyric4b 4s infinite}.d12 .l3{animation:lyric4c 4s infinite}.d12 .l4{animation:lyric4d 4s infinite}
@keyframes lyric4a{0%,24%{opacity:1}25%,100%{opacity:0}} @keyframes lyric4b{0%,24%{opacity:0}25%,49%{opacity:1}50%,100%{opacity:0}} @keyframes lyric4c{0%,49%{opacity:0}50%,74%{opacity:1}75%,100%{opacity:0}} @keyframes lyric4d{0%,74%{opacity:0}75%,99%{opacity:1}100%{opacity:0}}
.d16 .tigercollar{left:11%;bottom:6%;width:60px;height:58px}.d16 .tigercollar .head{width:26px;height:24px;left:16px;top:6px;background:#ee9a3b}.d16 .tigercollar .ear{position:absolute;top:1px;width:10px;height:10px;background:#ee9a3b;clip-path:polygon(50% 0,100% 100%,0 100%)}.d16 .tigercollar .e1{left:15px}.d16 .tigercollar .e2{left:33px}.d16 .tigercollar .stripe{position:absolute;background:#5a2f17;border-radius:3px;z-index:2}.d16 .tigercollar .st1{left:21px;top:12px;width:4px;height:8px;transform:rotate(20deg)}.d16 .tigercollar .st2{left:29px;top:11px;width:4px;height:9px}.d16 .tigercollar .st3{left:37px;top:12px;width:4px;height:8px;transform:rotate(-20deg)}.d16 .tigercollar .body{left:10px;top:27px;width:38px;height:24px;background:#ee9a3b;border-radius:10px 10px 14px 14px}.d16 .tigercollar .collar{position:absolute;left:18px;top:29px;width:20px;height:14px;background:#181818;border-radius:4px}.d16 .tigercollar .collar:before{content:"";position:absolute;left:6px;top:2px;width:8px;height:9px;background:#fff;border-radius:0 0 2px 2px}.d16 .tigercollar .head:before,.d16 .tigercollar .head:after{content:"";position:absolute;top:13px;width:4px;height:2px;background:#43200f}.d16 .tigercollar .head:before{left:6px}.d16 .tigercollar .head:after{right:6px}.d16 .tigercollar .head i{display:none}.d16 .tigercry{right:2px;top:8px;z-index:4}.d16 .tigercry:after{left:17px;bottom:-8px;border-top-color:#fffef8}



.d14{background:linear-gradient(180deg,#b8d9ff 0%,#f7e8b6 100%)}
.d14 .monitorangel{left:24%;bottom:6%;width:42px;height:54px;z-index:3}.d14 .monitorangel .screen{position:absolute;left:9px;top:2px;width:24px;height:19px;background:linear-gradient(180deg,#dfe7ef,#95a6ba);border:2px solid #505f70;border-radius:3px;box-shadow:0 0 5px #fff}.d14 .monitorangel .screen:before{content:"";position:absolute;left:7px;top:4px;width:10px;height:7px;background:#f7fbff;border:1px solid #8fa4bc}.d14 .monitorangel .body{position:absolute;left:9px;top:23px;width:24px;height:24px;background:#fff5f2;clip-path:polygon(22% 0,78% 0,100% 100%,0 100%)}
.d14 .halo{position:absolute;left:34%;top:6px;width:20px;height:7px;border:2px solid #f6d267;border-radius:50%;box-shadow:0 0 6px #ffef9f;z-index:2}
.d14 .wing{position:absolute;top:20px;width:22px;height:22px;background:radial-gradient(circle at 30% 30%,#fff,#e9eef9 70%);clip-path:ellipse(45% 50% at 50% 50%);z-index:1}.d14 .wl{left:12px;transform:rotate(-25deg)}.d14 .wr{left:46px;transform:rotate(25deg)}
.d14 .announcer{right:2px;top:8px;animation:glowbubble 1.2s ease-in-out infinite alternate}.d14 .announcer:after{left:18px;bottom:-8px;border-top-color:#fffef8}.d14 .shine{position:absolute;font-size:10px;color:#fff7b9;text-shadow:0 0 6px #fff6c2,0 0 10px #ffd85c;animation:shimmer 1.2s infinite alternate;z-index:4}.d14 .sh1{left:7px;top:10px}.d14 .sh2{right:6px;top:24px;animation-delay:-.4s}.d14 .sh3{left:50px;bottom:10px;animation-delay:-.8s}
@keyframes glowbubble{0%{box-shadow:2px 2px 0 #ebc7aa,0 0 0 rgba(255,240,170,0)}100%{box-shadow:2px 2px 0 #ebc7aa,0 0 10px rgba(255,240,170,.9)}} @keyframes shimmer{0%{opacity:.4;transform:scale(.85)}100%{opacity:1;transform:scale(1.2)}}
.d17{background:linear-gradient(180deg,#f4d7ae 0%,#efc27d 100%)}
.d17 .windowframe{position:absolute;right:7px;top:8px;width:28px;height:38px;border:3px solid #8a5e41;box-shadow:inset 0 0 0 2px #e7c89f}.d17 .windowframe:before,.d17 .windowframe:after{content:"";position:absolute;background:#8a5e41}.d17 .windowframe:before{left:11px;top:0;width:3px;height:100%}.d17 .windowframe:after{left:0;top:17px;width:100%;height:3px}
.d17 .praygirl{left:10%;bottom:5%;width:45px;height:56px}.d17 .praygirl .head{width:16px;height:16px;left:15px;top:5px}.d17 .praygirl .hair{position:absolute;left:12px;top:2px;width:22px;height:12px;background:#231812;border-radius:10px 10px 4px 4px}.d17 .praygirl .hair:after{content:"";position:absolute;right:-3px;top:5px;width:8px;height:10px;background:#231812;border-radius:6px 6px 8px 8px}.d17 .praygirl .body{left:9px;top:20px;width:28px;height:26px;background:#d4a0c8;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d17 .praygirl .hands{position:absolute;left:20px;top:26px;width:8px;height:12px;background:#f6c8a8;border-radius:5px}
.d17 .wish{right:2px;top:7px;font-size:9px;line-height:1.1}.d17 .wish:after{left:16px;bottom:-8px;border-top-color:#fffef8}.d17 .note{position:absolute;color:#fff6b6;text-shadow:0 0 5px #ffef92,0 0 8px #ffdf5c;font-size:11px;animation:notepop 1.5s infinite alternate;z-index:4}.d17 .n1{left:46px;bottom:14px}.d17 .n2{left:55px;bottom:28px;animation-delay:-.5s}.d17 .n3{left:40px;bottom:34px;animation-delay:-1s}
@keyframes notepop{0%{opacity:.3;transform:scale(.75)}100%{opacity:1;transform:scale(1.15)}}
.d19{background:linear-gradient(180deg,#ffd59e 0%,#efbb77 100%)}
.d19 .potterygirl{left:8%;bottom:4%;width:48px;height:56px}.d19 .potterygirl .head{width:16px;height:16px;left:15px;top:3px}.d19 .potterygirl .hair{position:absolute;left:11px;top:1px;width:23px;height:12px;background:#4c311f;border-radius:9px}.d19 .potterygirl .body{left:11px;top:19px;width:26px;height:25px;background:#7aa8ce;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d19 .potterygirl .arm{position:absolute;width:12px;height:4px;background:#f6c8a8;top:27px;border-radius:4px}.d19 .potterygirl .arm1{left:0;transform:rotate(10deg)}.d19 .potterygirl .arm2{right:-1px;transform:rotate(-10deg)}
.d19 .wheel{position:absolute;right:5px;bottom:9px;width:34px;height:22px;background:#8d6243;border-radius:50% 50% 40% 40%;box-shadow:0 5px 0 #6f4c33;animation:wheelspin 1.2s linear infinite}.d19 .wheel .pot{position:absolute;left:10px;top:-9px;width:14px;height:16px;background:#bf8a58;border-radius:40% 40% 30% 30% / 20% 20% 80% 80%;box-shadow:inset -2px 0 0 rgba(90,50,20,.25)}
@keyframes wheelspin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.d21{background:linear-gradient(180deg,#ffe4a7 0%,#f4c376 100%)}
.d21 .macaman{left:18%;bottom:4%;width:54px;height:58px;animation:macarena 1.8s infinite}.d21 .macaman .head{width:18px;height:18px;left:18px;top:4px}.d21 .macaman .hair{position:absolute;left:15px;top:1px;width:24px;height:10px;background:#5a341f;border-radius:10px}.d21 .macaman .body{left:12px;top:22px;width:30px;height:24px;background:#3c86d5;border-radius:12px 12px 8px 8px}.d21 .macaman .arm{position:absolute;width:16px;height:5px;background:#f6c8a8;top:25px;border-radius:4px;transform-origin:left center}.d21 .macaman .arm1{left:-2px;transform:rotate(-25deg)}.d21 .macaman .arm2{right:-2px;transform:rotate(25deg)}.d21 .macaman .leg{position:absolute;width:6px;height:14px;background:#4b3321;top:43px}.d21 .macaman .l1{left:18px}.d21 .macaman .l2{left:30px}
.d21 .maca1{right:2px;top:8px}.d21 .maca1:after{left:18px;bottom:-8px;border-top-color:#fffef8}
.d22{background:linear-gradient(180deg,#ead7bf 0%,#d6b893 100%)}
.d22 .macapigeon{left:21%;bottom:8%;width:50px;height:50px;animation:macarena 1.8s infinite}.d22 .macapigeon .body{position:absolute;left:12px;top:20px;width:24px;height:20px;background:#9da9b5;border-radius:55% 55% 48% 48%}.d22 .macapigeon .head{position:absolute;left:18px;top:8px;width:15px;height:15px;background:#aeb8c2;border-radius:50%}.d22 .macapigeon .beak{position:absolute;left:29px;top:15px;width:0;height:0;border-left:9px solid #e09b41;border-top:4px solid transparent;border-bottom:4px solid transparent}.d22 .macapigeon .wing{position:absolute;left:18px;top:23px;width:14px;height:10px;background:#8594a3;border-radius:50%}.d22 .macapigeon .leg{position:absolute;width:12px;height:4px;background:#aeb8c2;top:28px;border-radius:4px;transform-origin:left center}.d22 .macapigeon .l1{left:4px;transform:rotate(-25deg)}.d22 .macapigeon .l2{right:2px;transform:rotate(25deg)}
.d22 .maca2{right:3px;top:8px}.d22 .maca2:after{left:18px;bottom:-8px;border-top-color:#fffef8}
@keyframes macarena{0%,100%{transform:translateY(0)}25%{transform:translateY(-1px) rotate(-2deg)}50%{transform:translateY(0) rotate(2deg)}75%{transform:translateY(-1px) rotate(-2deg)}}
.d24{background:linear-gradient(180deg,#ffd9b6 0%,#f0b77a 100%)}
.d24 .bishop{left:25%;bottom:5%;width:42px;height:58px}.d24 .bishop .hat{position:absolute;left:11px;top:0;width:20px;height:18px;background:#c63b39;border-radius:8px 8px 4px 4px}.d24 .bishop .hat:after{content:"";position:absolute;left:9px;top:5px;width:2px;height:9px;background:#f3d57b}.d24 .bishop .head{width:16px;height:16px;left:13px;top:14px}.d24 .bishop .body{position:absolute;left:7px;top:28px;width:28px;height:24px;background:#c63b39;clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}.d24 .bishop .cross{position:absolute;left:19px;top:33px;width:4px;height:12px;background:#f3d57b}.d24 .bishop .cross:before{content:"";position:absolute;left:-4px;top:3px;width:12px;height:4px;background:#f3d57b}
.d25{background:linear-gradient(180deg,#f7ecd3 0%,#ecd3a8 100%)}
.d25 .glasscup{position:absolute;left:25%;bottom:7%;width:36px;height:36px;border:3px solid rgba(186,213,227,.95);border-top-width:2px;border-radius:5px 5px 10px 10px;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(180,215,234,.18));box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}.d25 .candlebody{position:absolute;left:36%;bottom:14%;width:14px;height:18px;background:#f8f0d3;border-radius:2px}.d25 .flame{position:absolute;left:39%;bottom:31%;width:8px;height:14px;border-radius:50% 50% 55% 55% / 70% 70% 30% 30%;transform:rotate(8deg);animation:flicker 1s ease-in-out infinite alternate}.d25 .outer{background:#ffb347;filter:blur(.5px)}.d25 .inner{left:40%;bottom:32%;width:4px;height:8px;background:#fff2a0}.d25 .glow{position:absolute;left:24%;bottom:10%;width:38px;height:38px;border-radius:50%;background:radial-gradient(circle,#fff1a8 0%,rgba(255,221,117,.6) 35%,rgba(255,214,98,0) 70%);animation:glowpulse 1.1s ease-in-out infinite alternate}
@keyframes flicker{0%{transform:translateY(0) rotate(6deg) scale(.95)}100%{transform:translateY(-1px) rotate(12deg) scale(1.08)}} @keyframes glowpulse{0%{opacity:.55}100%{opacity:1}}

@media(max-width:365px){.card-actions button.b{padding:7px 6px;font-size:11px}}

/* Card readability: preserve artwork and layout; smaller, stronger scripture. */
.advent-face .field{color:#3e2819}
.advent-face #np{font-family:'Gowun Batang','Noto Serif KR','NanumMyeongjo','Batang',serif;font-weight:700;font-size:5.2cqw;line-height:1.5}
.advent-face #np.long{font-size:4.15cqw}
.advent-face #np.xlong{font-size:3.5cqw}
.advent-face #np .verse-body{line-height:1.5}
.advent-face #np .verse-ref{font-size:.78em;font-weight:700;margin-top:1.5cqw}
.advent-face .symbol-name{font-weight:700}
.advent-face .symbol-desc,.advent-face .mission{font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR','NanumGothic',sans-serif;font-weight:600;line-height:1.38;letter-spacing:-.015em}
.advent-face .symbol-desc{font-size:4.1cqw;padding:0 .6cqw}
.advent-face .mission{font-size:4.2cqw;padding:0 .6cqw}
.read-large{font-weight:600;color:var(--ink)}

/* Window sprites: real image assets with measurable boxes, not emoji glyphs. */
.dr .peek{left:2px;right:2px;top:3px;bottom:18%;border-radius:0;background:transparent;overflow:hidden;place-items:stretch;pointer-events:none}
.dr .window-interior{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.dr .window-sprite{position:absolute;left:50%;bottom:1%;transform:translateX(-50%);width:82%;height:92%;object-fit:contain;image-rendering:pixelated;pointer-events:none;display:block}
.dr .placeholder .window-sprite{width:65%;height:70%;bottom:12%;image-rendering:auto}
.dr .has-bubble .window-sprite{height:72%;bottom:0}
.dr .window-bubble{position:absolute;top:4%;left:50%;transform:translateX(-50%);padding:1px 2px;background:#fff8e8;border:1px solid #b48360;border-radius:5px;z-index:1;font:700 clamp(7px,2.1vw,10px)/1.2 'Noto Sans KR',sans-serif;white-space:nowrap;color:#63433b;box-shadow:1px 1px #d6a263}
.dr.done .num,.dr.out .num{top:88%;font-size:clamp(10px,3vw,15px)}
#d8 .window-sprite{width:100%;height:88%}
#grid.prayer-walk #d4 .window-sprite{width:68%;animation:prayerPace 3.2s ease-in-out infinite alternate}
@keyframes prayerPace{0%{left:36%;transform:translateX(-50%) translateY(0)}25%{transform:translateX(-50%) translateY(-1px)}50%{transform:translateX(-50%) translateY(0)}75%{transform:translateX(-50%) translateY(-1px)}100%{left:64%;transform:translateX(-50%) translateY(0)}}
#scene .skyfx{z-index:31}#scene .skyfx .tw{animation-duration:2.6s;font-size:8px}
@media(prefers-reduced-motion:reduce){#grid.prayer-walk #d4 .window-sprite,#scene .skyfx .tw{animation:none}}

/* Responsive pixel vignettes, independent of the collected Nativity. */
.dr .new-scene {container-type:inline-size; background:linear-gradient(#ffe4ad,#efbc70);}
.dr .new-scene .mini-art{position:absolute;width:98%;height:82%;bottom:0;left:1%;overflow:visible;pointer-events:none}
.dr .new-scene:not(:has(.scene-bubble)) .mini-art{height:96%;bottom:1%}
.dr .scene-bubble{position:absolute;z-index:6;left:1%;right:1%;top:0;box-sizing:border-box;padding:2px 1px;background:#fffdf4;color:#4a2c22;border:1px solid #916041;border-radius:5px;text-align:center;font:800 clamp(9px,17cqw,12px)/1.12 'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;box-shadow:1px 1px #b88762;pointer-events:none}
.dr .scene-bubble:after{content:"";position:absolute;bottom:-4px;left:45%;width:5px;height:5px;transform:rotate(45deg);background:#fffdf4;border-right:1px solid #916041;border-bottom:1px solid #916041}
.dr .new-scene .swap-a{animation:newSayA 2s steps(1,end) infinite}.dr .new-scene .swap-b{animation:newSayB 2s steps(1,end) infinite}
@keyframes newSayA{0%{visibility:visible}50%,100%{visibility:hidden}}@keyframes newSayB{0%{visibility:hidden}50%{visibility:visible}100%{visibility:hidden}}
.dr .nd10{background:linear-gradient(#cceaf9,#8fc9ee 62%,#e5f6ff)}.nd10 .ice{animation:newIce 1.5s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}.nd10 .ice1,.nd10 .ice3{animation-delay:-.7s}@keyframes newIce{0%{opacity:.3}100%{opacity:1;filter:drop-shadow(0 0 2px white)}}
.dr .nd13{background:linear-gradient(#d3997a,#f7d49a 70%,#bc8259 71%)}.latin-a{animation:newLatinA .8s steps(1,end) infinite}.latin-b{animation:newLatinB .8s steps(1,end) infinite}.nd13 .mini-art{animation:newLatinSway .8s ease-in-out infinite alternate;transform-origin:50% 85%}@keyframes newLatinA{0%{opacity:1}50%,100%{opacity:0}}@keyframes newLatinB{0%{opacity:0}50%,100%{opacity:1}}@keyframes newLatinSway{from{transform:translateX(-3%) rotate(-5deg)}to{transform:translateX(3%) rotate(5deg)}}
.nd18 .anger-mark{animation:newAnger .8s ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}@keyframes newAnger{from{opacity:.5;transform:scale(.85)}to{opacity:1;transform:scale(1.15)}}
.nd20 .camera-flash{animation:newFlash 2.4s linear infinite}@keyframes newFlash{0%,89%,100%{opacity:0}90%,93%{opacity:1}96%{opacity:.1}}
.nd24 .bell-swing{transform-box:fill-box;transform-origin:50% 10%;animation:newBell .6s ease-in-out infinite alternate}@keyframes newBell{from{transform:rotate(-16deg)}to{transform:rotate(16deg)}}
@media(prefers-reduced-motion:reduce){.new-scene *{animation:none!important}.new-scene .swap-b,.latin-b{display:none}.new-scene .camera-flash{opacity:1}}


/* Give speech and artwork separate space, including narrow phones. */
.dr{aspect-ratio:.62}
.dr .new-scene{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:stretch;justify-content:stretch}
.dr .new-scene .mini-art{position:relative;grid-column:1;grid-row:2;inset:auto;width:100%;height:100%;min-height:0;overflow:visible}
.dr .new-scene:not(:has(.scene-bubble)){grid-template-rows:minmax(0,1fr)}
.dr .new-scene:not(:has(.scene-bubble)) .mini-art{grid-row:1;width:100%;height:100%;bottom:auto}
.dr .scene-bubble{position:relative;grid-row:1;grid-column:1;inset:auto;margin:0 0 3px;align-self:start;z-index:6}
.dr .bigbubble{left:1px!important;right:1px!important;top:1px!important;padding:2px 1px!important;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;text-align:center;font:800 clamp(8px,2.3vw,11px)/1.15 'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;border-radius:5px;border-width:1px}
.dr .bigbubble:after{left:45%!important;right:auto!important;bottom:-5px!important;border-width:3px}
.dr .risebubble{max-width:96%;box-sizing:border-box;font:700 clamp(8px,2.2vw,11px)/1.12 'Noto Sans KR',sans-serif;padding:2px;white-space:normal;overflow-wrap:anywhere}
.dr .legacy-stage{position:absolute;left:50%;bottom:0;width:76px;height:84px;transform:translateX(-50%) scale(var(--mini-scale,.75));transform-origin:50% 100%;pointer-events:none}
.dr .legacy-stage .bigbubble{font-size:12px;top:2px!important}
.dr .legacy-stage .risebubble{font-size:12px}
.dr .legacy-stage .char{bottom:0}
.dr .legacy-stage .woman,.dr .legacy-stage .prayerboy,.dr .legacy-stage .baseballboy,.dr .legacy-stage .cryking,.dr .legacy-stage .rocker,.dr .legacy-stage .pianoman,.dr .legacy-stage .tigercollar,.dr .legacy-stage .praygirl,.dr .legacy-stage .potterygirl,.dr .legacy-stage .macaman,.dr .legacy-stage .macapigeon,.dr .legacy-stage .bishop{left:50%;margin-left:-26px}
.dr .legacy-stage .woman,.dr .legacy-stage .prayerboy,.dr .legacy-stage .baseballboy,.dr .legacy-stage .cryking,.dr .legacy-stage .rocker,.dr .legacy-stage .pianoman,.dr .legacy-stage .tigercollar,.dr .legacy-stage .praygirl,.dr .legacy-stage .macaman,.dr .legacy-stage .macapigeon{bottom:0}
.dr .legacy-stage .catgirl{left:6%;bottom:0}
.dr .legacy-stage .walk{animation:legacyWalk 2.5s ease-in-out infinite alternate}@keyframes legacyWalk{from{transform:translateX(-8px)}to{transform:translateX(8px)}}

/* V7: illustrated sprites, separate live speech and animation layers */
.dr .polished{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch;gap:2px;overflow:hidden;container-type:inline-size;background:radial-gradient(ellipse at 50% 75%,#ad7761,#513a55);isolation:isolate;}
.dr .polished .art-stage{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;isolation:isolate;}
.dr .polished .art-character{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:100%;height:100%;object-fit:contain;object-position:center bottom;z-index:2;filter:drop-shadow(0 1px 1px #33223255);pointer-events:none;}
.dr .polished .art-speech{position:relative;display:grid;flex:none;z-index:5;margin:1px 1px 2px;min-height:18px;padding:2px 1px;border:1px solid #a8795c;border-radius:5px;background:#fff9ee;color:#493027;box-shadow:0 1px 2px #58332555;text-align:center;font:800 clamp(9px,18cqw,12px)/1.12 'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;}
.art-speech:after,.float-line:after{content:"";position:absolute;bottom:-3px;left:44%;width:5px;height:5px;background:#fff9ee;border-right:1px solid #a8795c;border-bottom:1px solid #a8795c;transform:rotate(45deg);}
.art-say{grid-area:1/1;display:block;align-self:center;}
.art-speech:has(.art-say:nth-child(2)) .art-say{visibility:hidden;animation:say2 2s steps(1,end) infinite;animation-delay:calc(-1s * (2 - var(--i)));}
.art-speech:has(.art-say:nth-child(4)) .art-say{animation:say4 4s steps(1,end) infinite;animation-delay:calc(-1s * (4 - var(--i)));}
@keyframes say2{0%{visibility:visible}50%,100%{visibility:hidden}}@keyframes say4{0%{visibility:visible}25%,100%{visibility:hidden}}
.art-speech.chant{animation:chant3 3s steps(1,end) infinite;}@keyframes chant3{0%,66%{opacity:1}67%,100%{opacity:0}}
.dr .polished1{background:radial-gradient(ellipse,#8c6c8d,#29233f)}.dr .polished2,.dr .polished6,.dr .polished7{background:radial-gradient(ellipse,#986381,#51314f)}
.dr .polished3,.dr .polished13,.dr .polished16,.dr .polished18{background:radial-gradient(ellipse,#a67564,#593947)}
.dr .polished4,.dr .polished5,.dr .polished8,.dr .polished15,.dr .polished21,.dr .polished22{background:radial-gradient(ellipse,#997b83,#4b3857)}
.dr .polished9{background:linear-gradient(#257ca3,#1c5483 65%,#19486a)}.dr .polished10{background:radial-gradient(ellipse,#90c7e4,#3e548d)}
.dr .polished11{background:radial-gradient(ellipse,#694486,#16192e)}.dr .polished12,.dr .polished19,.dr .polished20{background:linear-gradient(#9c775e,#c69a71 70%,#9f684a)}
.dr .polished14,.dr .polished17{background:radial-gradient(ellipse,#c0a4bd,#6c7199)}.dr .polished23,.dr .polished24,.dr .polished25{background:radial-gradient(ellipse,#bb8b68,#543d4f)}
.art-spark,.art-ice,.art-note,.bell-note{position:absolute;z-index:3;color:#fff4ad;text-shadow:0 0 4px #ffd778;pointer-events:none;font:700 clamp(9px,18cqw,15px)/1 serif;animation:artGlint 1.4s ease-in-out infinite alternate;}
.sp1{left:7%;top:13%}.sp2{right:6%;top:40%;animation-delay:-.6s}.sp3{left:12%;bottom:10%;animation-delay:-1s}@keyframes artGlint{0%{opacity:.25;transform:scale(.65)}100%{opacity:1;transform:scale(1.15)}}
.wand-row{position:absolute;inset:8% 1%;display:flex;align-items:center;justify-content:center;gap:0;}.art-wand{position:relative;width:25%;height:80%;animation:wandBop 1.6s ease-in-out infinite alternate;animation-delay:calc(var(--i)*-.35s);}.art-wand img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 3px #ffb0ee);}.wand-glint{top:4%;left:0;color:#fff8ed;animation-delay:calc(var(--i)*-.3s)}@keyframes wandBop{from{transform:translateY(-2px);filter:brightness(.95)}to{transform:translateY(2px);filter:brightness(1.3)}}
.polished4 .art-character{width:80%;animation:artPace 2.7s ease-in-out infinite alternate;}@keyframes artPace{0%{left:40%;transform:translateX(-50%)}50%{transform:translateX(-50%) translateY(-2px)}100%{left:60%;transform:translateX(-50%)}}
.float-line{position:absolute;max-width:96%;z-index:4;padding:3px 2px;border:1px solid #a8795c;border-radius:6px;background:#fff9ee;color:#493027;font:800 clamp(9px,17cqw,12px)/1.12 'Noto Sans KR',sans-serif;animation:artFloat 3s linear infinite;bottom:0;white-space:normal}.fl1{left:1%}.fl2{right:1%;animation-delay:-1.5s}@keyframes artFloat{0%{opacity:0;transform:translateY(0)}12%,65%{opacity:1}100%{opacity:0;transform:translateY(-58px)}}
.art-heart{position:absolute;z-index:4;color:#ff79b4;line-height:1;font-size:clamp(20px,47cqw,32px);text-shadow:0 0 4px #ffcee7;animation:artHeart 2s infinite;top:12%;left:44%}.art-heart b{position:absolute;font:800 8px/1 sans-serif;left:50%;top:44%;transform:translate(-50%,-50%);color:white;white-space:nowrap}.art-heart.h2{left:15%;animation-delay:-1s}@keyframes artHeart{0%{opacity:0;transform:translateY(9px) scale(.6)}15%,50%{opacity:1;transform:translateY(0) scale(1)}80%,100%{opacity:0;transform:translateY(-10px)}}.polished7 .art-character{animation:artCuddle 1.6s ease-in-out infinite alternate;transform-origin:50% 100%}@keyframes artCuddle{from{transform:translateX(-50%) rotate(-2deg)}to{transform:translateX(-50%) rotate(2deg)}}
.art-tear{position:absolute;z-index:3;width:3px;height:7px;border-radius:60%;background:#80d9ff;box-shadow:0 0 2px white;animation:artTear 1s infinite;top:40%;left:34%}.art-tear.t2{left:58%;animation-delay:-.5s}@keyframes artTear{0%{opacity:0;transform:translateY(0)}25%{opacity:1}100%{opacity:0;transform:translateY(15px)}}
.art-kelp{position:absolute;bottom:0;width:12%;height:58%;background:linear-gradient(90deg,#1e735e,#76aa75);clip-path:polygon(30% 100%,38% 70%,0 45%,30% 23%,19% 0,68% 20%,100% 42%,70% 70%,80% 100%);transform-origin:bottom;animation:artSway 1.7s ease-in-out infinite alternate}.art-kelp.k1{left:0}.art-kelp.k2{right:0;animation-delay:-.7s}@keyframes artSway{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}.art-water{position:absolute;width:4px;height:4px;border:1px solid #96def6;border-radius:50%;animation:artFloat 3s infinite;bottom:5%;left:12%}.art-water.w2{left:75%;animation-delay:-1.5s}.polished9 .art-character{animation:artBob 1.8s ease-in-out infinite alternate}@keyframes artBob{from{transform:translateX(-50%)}to{transform:translateX(-50%) translateY(-3px)}}.paper-flutter{position:absolute;right:9%;bottom:7%;width:13%;height:13%;background:#fff9ec;opacity:.8;animation:artSway .7s infinite alternate;z-index:3}
.art-ice{color:#e3faff;text-shadow:0 0 4px #fff}.art-ice.i1{left:4%;top:9%}.art-ice.i2{right:3%;top:10%;animation-delay:-.5s}.art-ice.i3{right:5%;bottom:10%;animation-delay:-.9s}
.art-ball{position:absolute;width:26%;height:auto;left:37%;top:0;z-index:3;animation:ballTurn 2s linear infinite;filter:drop-shadow(0 0 3px #b4d2ff)}@keyframes ballTurn{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.art-beam{position:absolute;top:0;width:75%;height:100%;opacity:.25;clip-path:polygon(50% 0,0 100%,100% 100%);background:linear-gradient(#e7d6ff00,#cf73e0);animation:artGlint 1.6s infinite alternate}.art-beam.b2{right:0;background:linear-gradient(#b3ebff00,#7dd2ff);animation-delay:-.8s}
.art-note.note1{left:6%;top:12%;color:#ffe3ad}.art-note.note2{right:6%;top:27%;color:#ffc4eb;animation-delay:-.7s}.art-halo{position:absolute;left:35%;top:1%;width:30%;height:9%;border:2px solid #ffe6a7;border-radius:50%;box-shadow:0 0 5px #ffcf63;z-index:4;animation:artGlint 1.5s infinite alternate}
.polished13 .art-character,.polished21 .art-character,.polished22 .art-character{animation:artDance .65s ease-in-out infinite alternate;transform-origin:50% 95%}@keyframes artDance{from{transform:translateX(-50%) rotate(-7deg)}to{transform:translateX(-50%) translateY(-2px) rotate(7deg)}}.art-anger{position:absolute;right:5%;top:8%;font:bold 14px/1 sans-serif;color:#ff7c7b;z-index:3;animation:artGlint .8s infinite alternate}.wheel-shine{position:absolute;bottom:3%;right:12%;width:42%;height:6%;border-bottom:2px dashed #e8c49a;border-radius:50%;z-index:3;animation:wheelShine .8s linear infinite}@keyframes wheelShine{0%{transform:scaleX(.7);opacity:.4}50%{transform:scaleX(1);opacity:1}100%{transform:scaleX(.7);opacity:.4}}
.art-flash{position:absolute;left:23%;top:28%;font-size:30px;line-height:1;color:white;text-shadow:0 0 8px #fff3be;z-index:4;animation:artFlash 2.6s linear infinite}@keyframes artFlash{0%,82%,100%{opacity:0}83%,89%{opacity:1}94%{opacity:0}}
.polished24 .art-character{animation:artCuddle .65s infinite alternate}.bell-note{right:8%;top:20%}.flame-light{position:absolute;width:65%;height:65%;left:18%;top:2%;background:radial-gradient(ellipse,#ffeabd88,transparent 70%);z-index:3;animation:artGlint 1s infinite alternate;mix-blend-mode:screen}
.dr[data-week="4"] .num,.dr[data-week="4"].today .num,.dr[data-week="4"].done .num,.dr[data-week="4"].out .num{color:#b48725!important;text-shadow:0 1px #fff4cf,0 -1px #fff4cf,1px 0 #fff4cf,-1px 0 #fff4cf;}
@media(prefers-reduced-motion:reduce){.polished *{animation:none!important}.art-speech .art-say:not(:first-child){display:none}.art-speech .art-say:first-child{visibility:visible!important}.art-flash{opacity:0}.float-line{opacity:1}.fl2{bottom:45%}}


.dr .polished:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.38;background-image:radial-gradient(circle at 14% 17%,#fff4bd 0 .5px,transparent 1px),radial-gradient(circle at 80% 41%,#ffe2c8 0 .5px,transparent 1px),radial-gradient(circle at 41% 76%,#ffe8a8 0 .5px,transparent 1px);background-size:23px 31px,29px 35px,37px 43px}
.dr .polished .art-character{width:111%;max-width:none}
.dr .polished4 .art-character{width:82%}
.dr .polished1 .art-character,.dr .polished25 .art-character{width:94%}
.dr .polished17 .art-speech{font-size:clamp(8px,16cqw,11px)}
.dr .polished .art-heart b{font-size:clamp(7px,17cqw,10px)}
.dr .polished .art-speech{min-height:16px;padding:2px 0;letter-spacing:-.035em}

/* Original house illustration, preserved at its native 3:2 aspect ratio. */
#church{position:relative;margin:12px 0 8px;padding:0!important;border:0;border-radius:0;box-shadow:none;background: url('window/house.webp') center/100% 100% no-repeat;aspect-ratio:3/2;isolation:isolate;container-type:inline-size;overflow:hidden}
#church #roof,#church .brick-garland,#church #base{display:none!important}
#church #grid{position:absolute;inset:0;display:block;padding:0;gap:0;background:none;box-shadow:none;border:0;border-radius:0}
.picture-window{display:block;position:absolute;appearance:none;border:0;background:none;padding:0;margin:0;cursor:pointer;touch-action:manipulation;outline-offset:1px;overflow:visible;color:inherit;isolation:isolate}
.picture-window:focus-visible{outline:2px solid #fff2a5;z-index:6}
.house-aperture{position:absolute;top:var(--opening);left:0;right:0;bottom:0;display:block;overflow:hidden;isolation:isolate}
.house-curtain{position:absolute;top:0;bottom:0;width:50.3%;z-index:5;background-image:var(--curtain);background-size:100% 100%;background-repeat:no-repeat;transition:transform .62s cubic-bezier(.25,.8,.3,1);box-shadow:inset 0 -2px #edc58c55;pointer-events:none}
.house-left{left:0;transform-origin:left center}.house-right{right:0;transform-origin:right center}
.picture-window.done .house-curtain,.picture-window.out .house-curtain{transform:scaleX(0)}
.picture-window.today:not(.out) .house-aperture{box-shadow:inset 0 0 0 1px #ffe5a6,0 0 6px #ffe7a1}
.house-fx{position:absolute;inset:0;display:none;pointer-events:none;z-index:2}
.picture-window.done .house-fx,.picture-window.out .house-fx{display:block}
.house-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;transform-origin:50% 97%;pointer-events:none}
.motion-4{animation:housePace 3.6s ease-in-out infinite alternate}.motion-13,.motion-21,.motion-22{animation:houseDance 1s ease-in-out infinite alternate}
@keyframes housePace{0%{transform:translateX(0)}50%{transform:translate(7%,-2%)}100%{transform:translateX(16%)}}
@keyframes houseDance{from{transform:rotate(-3deg)}to{transform:rotate(3deg) translateY(-2%)}}
/* Keep the approved wording intact; prevent automatic character-by-character wrapping. */
.house-speech,.house-rise{position:absolute;z-index:4;display:grid;place-items:center;text-align:center;box-sizing:border-box;max-width:98%;min-height:18%;padding:1.3% 2%;background:#fff8e9;color:#482a22;border:1px solid #75492e;border-radius:45%;font:800 clamp(7px,2.35cqw,13px)/1.08 'Noto Sans KR','Apple SD Gothic Neo',sans-serif;letter-spacing:-.045em;white-space:pre;word-break:keep-all;overflow-wrap:normal;box-shadow:0 1px 1px #3e1d2850}
.house-speech:after,.house-rise:after{content:'';position:absolute;bottom:-3px;left:23%;width:5px;height:5px;background:#fff8e9;border-right:1px solid #75492e;border-bottom:1px solid #75492e;transform:rotate(45deg);z-index:-1}
.speech-3{top:1%;left:3%;width:94%;min-height:26%}.speech-4{top:1%;right:1%;width:82%;min-height:25%}.speech-5{top:1%;right:1%;width:70%;min-height:25%}.speech-12{top:1%;right:1%;width:90%;min-height:25%}.speech-15{top:1%;right:1%;width:90%;min-height:25%}.speech-18{top:1%;right:1%;width:72%;min-height:25%}
.house-rise{bottom:6%;width:82%;animation:houseSpeechRise 3s linear infinite}.rise-left{left:1%}.rise-right{right:1%;animation-delay:-1.5s}
@keyframes houseSpeechRise{0%{transform:translateY(0);opacity:0}8%{opacity:1}34%{opacity:1}48%,100%{transform:translateY(-140%);opacity:0}}
@keyframes houseRise{0%{transform:translateY(0);opacity:0}12%,65%{opacity:1}100%{transform:translateY(-180%);opacity:0}}
.house-glint,.house-note,.house-ring,.house-anger{position:absolute;z-index:3;font-style:normal;font-size:clamp(7px,2.4cqw,13px);color:#fff4bd;text-shadow:0 0 4px #ffe3a1,0 0 8px #ffb837;animation:houseTwinkle 1.4s ease-in-out infinite alternate;line-height:1;pointer-events:none}
@keyframes houseTwinkle{from{opacity:.16;transform:scale(.75)}to{opacity:1;transform:scale(1.25)}}
.wand-glow{color:#fff4ff;text-shadow:0 0 5px #ff8bdf,0 0 9px #ffd8ff}.ice{color:#d9f9ff;text-shadow:0 0 6px #86ceff}.star-main{font-size:clamp(12px,4cqw,22px)}
.house-heart{position:absolute;z-index:4;top:8%;left:60%;font:normal clamp(14px,4.9cqw,26px)/1 sans-serif;color:#ff80b4;text-shadow:0 0 3px white;animation:houseHeart 2s infinite}.house-heart b{position:absolute;inset:0;display:grid;place-items:center;font:800 clamp(6px,1.65cqw,9px)/1 sans-serif;color:white;letter-spacing:-.06em}.heart-two{left:23%;top:25%;animation-delay:-1s;font-size:clamp(9px,3cqw,16px)}@keyframes houseHeart{0%,100%{opacity:0;transform:translateY(8px) scale(.7)}20%,50%{opacity:1;transform:translateY(0)}75%{opacity:0;transform:translateY(-8px)}}
.house-tear{position:absolute;width:3%;height:12%;border-radius:60%;background:#a5edff;box-shadow:0 0 2px white;animation:houseTear 1s infinite;top:52%;left:36%;z-index:3}.tear-two{left:54%;animation-delay:-.5s}@keyframes houseTear{0%{opacity:0;transform:translateY(0)}20%{opacity:1}100%{opacity:0;transform:translateY(15px)}}
.house-kelp{position:absolute;bottom:0;width:8%;height:48%;background:linear-gradient(90deg,#235e49,#74b47d);clip-path:polygon(45% 100%,32% 70%,0 52%,44% 27%,25% 0,80% 25%,90% 50%,59% 78%,65% 100%);transform-origin:bottom;animation:houseSway 1.7s ease-in-out infinite alternate}.kelp-one{left:8%}.kelp-two{right:7%;animation-delay:-.7s}@keyframes houseSway{from{transform:rotate(-10deg)}to{transform:rotate(10deg)}}
.house-water{position:absolute;bottom:0;left:25%;width:4%;aspect-ratio:1;border:1px solid #c3f6ff;border-radius:50%;animation:houseRise 2.4s infinite}.water-two{left:83%;animation-delay:-1.2s}
.house-discoball{position:absolute;left:19%;top:1%;width:17%;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(#b3daff 0 15deg,#eac0ff 15deg 25deg,#70a5e0 25deg 40deg);box-shadow:0 0 5px #c2ddff;animation:houseSpin 2s linear infinite;opacity:.75}@keyframes houseSpin{to{transform:rotate(360deg)}}.house-beam{position:absolute;inset:0;clip-path:polygon(25% 5%,0 100%,70% 100%);background:linear-gradient(#dba5fc00,#dba5fc55);animation:houseTwinkle 1.5s infinite alternate;mix-blend-mode:screen}.beam-two{clip-path:polygon(25% 5%,60% 100%,100% 100%);background:linear-gradient(#9cdbff00,#9cdbff55);animation-delay:-.7s}
.note-one{left:9%;top:20%}.note-two{right:8%;top:56%;animation-delay:-.7s}.house-anger{left:10%;top:18%;color:#ff8586}.house-wheel{position:absolute;bottom:7%;left:39%;width:47%;height:7%;border-bottom:2px dashed #ffe0ad;border-radius:50%;animation:houseTwinkle .7s infinite alternate}.house-camera-flash{position:absolute;left:19%;top:18%;font:normal clamp(15px,6cqw,33px)/1 sans-serif;color:#fff8db;text-shadow:0 0 8px white;animation:houseFlash 2.8s infinite}@keyframes houseFlash{0%,88%,100%{opacity:0}90%,93%{opacity:1}97%{opacity:0}}.ring-one{right:12%;top:48%}.ring-two{right:4%;top:64%;animation-delay:-.6s}.house-flame{position:absolute;left:39%;top:13%;width:32%;height:60%;background:radial-gradient(ellipse,#fff3b7a0,transparent 65%);mix-blend-mode:screen;animation:houseTwinkle 1.1s infinite alternate}
@media(prefers-reduced-motion:reduce){.house-fx *{animation:none!important}.house-curtain{transition:none}.house-camera-flash{opacity:0}.house-rise{opacity:1}.rise-right{bottom:45%}}

/* Card overflow fallback at the readable minimum. */
.advent-face .field.field-scroll{display:block;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;touch-action:pan-y;overflow-wrap:anywhere}
.advent-face #np.field-scroll .verse-body{margin:0;max-width:100%}
.advent-face #np .verse-ref{font-size:max(11px,.78em)}

/* QA 4: mobile overflow hints, tool wrapping and modal scroll isolation. */
.tools{flex-wrap:wrap}
.tools button{flex:1 1 0;min-width:max-content;max-width:100%}
html.modal-scroll-lock{overflow:hidden;overscroll-behavior:none}
html.modal-scroll-lock body{position:fixed;top:var(--modal-scroll-top,0px);left:0;right:0;width:100%;overflow:hidden}
#modal{overscroll-behavior:contain;overflow-y:auto;align-items:safe center}
#card{overscroll-behavior:contain;max-height:calc(100dvh - 36px)}
#card.advent-modal{max-height:none}
.advent-face .field-scroll-mark{position:absolute;transform:translate(2px,-50%);font:700 11px/1.2 system-ui,sans-serif;color:#58371d;background:#fff7e9;border:1px solid #b89470;border-radius:5px;padding:1px 2px;pointer-events:none}
.card-scroll-hint{margin:5px 0 0;padding:3px 5px;color:#58371d;background:#fff7e9;border-radius:6px;font:500 11px/1.4 'Gowun Dodum','Apple SD Gothic Neo',system-ui,sans-serif;text-align:center}
.card-scroll-hint[hidden]{display:none!important}
