
#dsy{--paper:light-dark(#f6f1e6,#292722);--ink:light-dark(#272c27,#eee6d7);--soft:light-dark(#716e62,#b9b2a3);--line:light-dark(#d9d1bf,#514b40);--red:#b53b2d;--panel:light-dark(#ebe5d7,#211f1b);color:var(--ink);font:14px/1.5 'Helvetica Neue',Arial,sans-serif;background:var(--paper);border-radius:6px;overflow:hidden;color-scheme:only dark}#dsy *{box-sizing:border-box}#dsy button,#dsy input,#dsy select{font:inherit}#dsy button{cursor:pointer}#dsy .mast{display:flex;align-items:center;gap:12px;padding:22px 30px;border-bottom:1px solid var(--line)}#dsy .seal{background:var(--red);color:#fff4dc;font-family:serif;font-size:20px;line-height:1.1;padding:7px;transform:rotate(-4deg)}#dsy .brand{font-family:Georgia,serif;font-size:21px;letter-spacing:.02em}#dsy .sub{font-size:10px;letter-spacing:.19em;color:var(--soft);text-transform:uppercase}#dsy .mast .sub{margin-left:auto;padding-right:65px}#dsy .steps{display:flex;gap:25px;padding:18px 30px;font-size:11px;letter-spacing:.09em;color:var(--soft);border-bottom:1px solid var(--line)}#dsy .steps .on{color:var(--red)}#dsy h1{font:400 clamp(30px,4vw,46px)/1.12 Georgia,serif;margin:17px 0}#dsy h2{font:400 29px/1.2 Georgia,serif;margin:10px 0}#dsy p{margin:0;color:var(--soft)}#dsy .entry{display:grid;grid-template-columns:1.1fr .9fr;min-height:510px}#dsy .intro{padding:62px 40px 40px}#dsy .eyebrow{font-size:11px;letter-spacing:.17em;text-transform:uppercase;color:var(--red)}#dsy .entry label{display:block;margin:30px 0 9px;font-size:13px}#dsy input[type=text]{width:100%;background:transparent;border:0;border-bottom:1px solid var(--ink);border-radius:0;padding:12px 0;color:var(--ink);font-family:Georgia,serif;font-size:23px}#dsy .hint{font-size:12px;margin-top:9px}#dsy .primary{border:1px solid var(--red);background:var(--red);color:#fff7e6;padding:13px 22px;border-radius:3px}#dsy .intro .primary{margin-top:28px;width:100%;display:flex;justify-content:space-between}#dsy .aside{background:var(--panel);display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:32px 24px;overflow:hidden}#dsy .aside .big{font:72px/1.15 'Kaiti SC',KaiTi,serif;color:var(--ink);writing-mode:vertical-rl;position:absolute;right:20px;top:40px;opacity:.1}#dsy .paper{background:#ebca76;box-shadow:3px 13px 24px #28200b22;clip-path:polygon(1% 0,98% 1%,100% 98%,97% 100%,0 99%);transform:rotate(-3deg);width:min(100%,245px);position:relative}#dsy canvas{display:block;width:100%;height:auto}#dsy .caption{font-size:11px;text-transform:uppercase;letter-spacing:.14em;margin-top:24px;text-align:center}#dsy .editor{display:grid;grid-template-columns:1fr 1fr}#dsy .controls{padding:28px 30px}#dsy .back{border:0;background:transparent;color:var(--soft);padding:0;margin-bottom:18px;font-size:12px}#dsy .field{margin-top:20px}#dsy .row{display:flex;justify-content:space-between;align-items:center;gap:10px}#dsy .field label,#dsy .label{font-size:12px}#dsy output{font-size:11px;color:var(--soft)}#dsy input[type=range]{width:100%;accent-color:var(--red);margin:10px 0 0}#dsy #skin{appearance:none;height:8px;border-radius:10px;background:linear-gradient(90deg,#f6dabc,#b67c53,#503326)}#dsy .choices{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}#dsy .choice{border:1px solid var(--line);background:transparent;color:var(--ink);padding:8px 12px;border-radius:3px;font-size:12px;flex:1;white-space:nowrap}#dsy .choice[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}#dsy select{width:100%;background:var(--paper);color:var(--ink);padding:10px;border:1px solid var(--line);border-radius:3px;margin-top:8px}#dsy .pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}#dsy .swatches{display:flex;gap:8px;margin-top:10px}#dsy .swatch{width:27px;height:27px;border-radius:50%;border:3px solid var(--paper);outline:1px solid var(--line);background:var(--swatch)}#dsy .swatch[aria-pressed=true]{outline:2px solid var(--red)}#dsy .check{display:flex;gap:9px;align-items:center;margin-top:18px;font-size:12px}#dsy .check input{accent-color:var(--red)}#dsy .preview{padding:25px 30px;background:var(--panel);display:flex;flex-direction:column;align-items:center;justify-content:center}#dsy .preview .paper{width:245px;transform:rotate(2deg);margin:22px 0 10px}#dsy .live{font-size:10px;letter-spacing:.16em;color:var(--soft)}#dsy .live:before{content:'●';color:var(--red);margin-right:7px}#dsy .footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 30px;border-top:1px solid var(--line)}#dsy .footer p{font-size:11px}#dsy .done{padding:40px 24px;text-align:center}#dsy .done .paper{margin:28px auto;width:230px}#dsy [hidden]{display:none!important}#dsy .error{color:var(--red);font-size:12px;min-height:18px;margin-top:6px}#dsy button:focus-visible,#dsy input:focus-visible,#dsy select:focus-visible{outline:2px solid var(--red);outline-offset:4px}@media(max-width:600px){#dsy .mast{padding:18px}#dsy .mast .sub{display:none}#dsy .steps{gap:14px;padding:15px 18px;font-size:10px}#dsy .entry,#dsy .editor{grid-template-columns:1fr}#dsy .intro{padding:30px 24px}#dsy .aside{min-height:310px}#dsy .aside .paper{width:160px}#dsy .controls{padding:24px}#dsy .preview{padding:25px}#dsy .footer{padding:18px;flex-wrap:wrap}#dsy .footer .primary{width:100%}#dsy .choice{min-height:44px}#dsy .swatch{width:34px;height:34px}}

/* Mobile app layout shared by iOS and Android. */
#dsy{width:100%;max-width:430px;margin:0 auto;border-radius:24px;box-shadow:0 12px 44px #00000018;overflow:hidden}
#dsy .mast{padding:20px 22px 16px;gap:10px}
#dsy .mast .sub{display:none}
#dsy .brand{font-size:22px}
#dsy .seal{font-size:17px}
#dsy .steps{padding:16px 22px;gap:0;justify-content:space-between;font-size:10px;letter-spacing:.04em}
#dsy .entry{display:flex;flex-direction:column;min-height:0}
#dsy .intro{padding:32px 24px 20px}
#dsy h1{font-size:37px;line-height:1.12;margin:15px 0}
#dsy .entry label{margin-top:27px;font-size:14px}
#dsy input[type=text]{font-size:22px;padding:14px 0}
#dsy .hint{font-size:12px}
#dsy .intro .primary{margin-top:16px;min-height:52px;align-items:center}
#dsy .aside{min-height:0;padding:22px 24px 26px;background:var(--paper)}
#dsy .aside .paper{width:132px;transform:rotate(-6deg)}
#dsy .aside .big{right:54px;top:24px;font-size:60px}
#dsy .caption{font-size:10px;margin-top:18px}
#dsy .editor{display:flex;flex-direction:column}
#dsy .preview{order:-1;padding:20px 24px 17px;display:grid;grid-template-columns:1fr 140px;column-gap:18px;text-align:left;align-items:center}
#dsy .preview .paper{grid-column:2;grid-row:1/4;width:140px;margin:0;transform:rotate(3deg)}
#dsy .preview .live{align-self:end;font-size:10px;letter-spacing:.1em}
#dsy .preview .caption{text-align:left;align-self:start;margin-top:10px;line-height:1.7;max-width:160px}
#dsy .preview .mobile-preview-title{font:26px/1.15 Georgia,serif;margin:10px 0 0;overflow-wrap:anywhere}
#dsy .controls{padding:20px 24px 24px}
#dsy .controls .eyebrow,#dsy .controls h2,#dsy #editing-name{display:none}
#dsy .back{min-height:44px;margin-bottom:0;font-size:13px;display:inline-flex;align-items:center}
#dsy .field{margin-top:17px}
#dsy .field label,#dsy .label{font-size:13px}
#dsy output{font-size:12px}
#dsy input[type=range]{min-height:32px;margin-top:4px}
#dsy #skin{height:8px;min-height:8px;margin:18px 0 12px}
#dsy #skin::-webkit-slider-thumb{appearance:none;width:26px;height:26px;border-radius:50%;background:var(--paper);border:3px solid var(--red);box-shadow:0 1px 4px #0003}
#dsy #skin::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--paper);border:3px solid var(--red)}
#dsy .choice{min-height:46px;padding:8px;font-size:12px}
#dsy .pair{gap:14px}
#dsy select{font-size:16px;min-height:48px;padding:10px 6px}
#dsy .swatches{gap:3px;flex-wrap:wrap}
#dsy .swatch{width:34px;height:44px;border-radius:0;border:0;outline:none;background:radial-gradient(circle,var(--swatch) 0 11px,transparent 12px);position:relative}
#dsy .swatch[aria-pressed=true]{outline:none;background:radial-gradient(circle,var(--swatch) 0 10px,var(--paper) 11px 13px,var(--red) 14px 15px,transparent 16px)}
#dsy .check{min-height:44px;margin-top:10px;font-size:14px}
#dsy .check input{width:20px;height:20px}
#dsy .footer{padding:18px 24px 26px;flex-direction:column;gap:12px}
#dsy .footer .primary{width:100%;min-height:52px;font-size:15px}
#dsy .footer p{font-size:12px}
#dsy .done{padding:32px 24px}
#dsy .done .paper{width:200px}
#dsy .done .primary{width:100%;min-height:52px}
#dsy .app-bottom{height:20px;display:flex;justify-content:center;align-items:flex-start;background:var(--paper)}
#dsy .app-bottom:after{content:'';display:block;width:110px;height:4px;border-radius:8px;background:var(--ink);opacity:.25}
@media(max-width:360px){#dsy{border-radius:14px}#dsy .intro,#dsy .controls{padding-left:18px;padding-right:18px}#dsy h1{font-size:33px}#dsy .preview{padding-left:18px;padding-right:18px;grid-template-columns:1fr 120px}#dsy .preview .paper{width:120px}#dsy .steps{padding-left:18px;padding-right:18px}#dsy .swatch{width:30px}#dsy .choice{font-size:11px}}
#dsy{position:relative;perspective:1500px;background:var(--paper)}
#dsy .ritual-sheet{padding:24px 30px 30px;position:relative;background:var(--paper);background-image:repeating-linear-gradient(93deg,transparent 0 3px,#86632904 3px 4px);border:1px solid var(--line);outline:1px solid var(--line);outline-offset:-9px;margin:10px;min-height:640px}
#dsy .ritual-topline{display:flex;justify-content:space-between;align-items:center;color:var(--soft);font-size:10px;letter-spacing:.15em}
#dsy .ritual-calligraphy{font:56px/1.2 'Kaiti SC',KaiTi,serif;letter-spacing:.1em;color:var(--red);margin:35px 0 26px;transform:rotate(-4deg);text-align:center}
#dsy .ritual-sheet h1{font:400 25px/1.3 Georgia,serif;letter-spacing:.065em;margin:0 0 24px;text-align:center}
#dsy .ritual-story{font:17px/1.7 Georgia,serif;color:var(--ink)}
#dsy .ritual-rule{height:2px;width:38px;background:var(--red);margin:25px 0 21px;transform:rotate(-3deg)}
#dsy .ritual-warning{font:italic 16px/1.6 Georgia,serif;color:var(--ink)}
#dsy .ritual-swipe{position:relative;margin-top:32px;height:58px;border:1px solid var(--red);border-radius:3px;background:linear-gradient(90deg,#b53b2d14,#b53b2d03);isolation:isolate}
#dsy .ritual-swipe label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:34px;font-size:11px;letter-spacing:.12em;color:var(--red);pointer-events:none}
#dsy .ritual-swipe input{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:56px;min-height:56px;margin:0;background:transparent;touch-action:pan-y;cursor:ew-resize;border:0;padding:4px;direction:ltr}
#dsy .ritual-swipe input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:48px;height:48px;border:0;border-radius:2px;background:var(--red);box-shadow:2px 0 7px #62220c16}
#dsy .ritual-swipe input::-moz-range-thumb{width:48px;height:48px;border:0;border-radius:2px;background:var(--red)}
#dsy .ritual-swipe input::-moz-range-track{background:transparent;border:0}
#dsy .swipe-arrow{position:absolute;left:4px;top:4px;width:48px;height:48px;display:grid;place-items:center;color:#fff1d2;font-size:23px;pointer-events:none;z-index:2}
#dsy #swipe-help{font-size:11px;text-align:center;margin-top:12px;color:var(--soft)}
#dsy .turning-sheet{position:absolute!important;margin:0!important;z-index:20;transform-origin:right center;backface-visibility:hidden;pointer-events:none!important;box-shadow:-12px 8px 28px #34251126;background-color:var(--paper);will-change:transform}
#dsy .turning-sheet:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 45%,#674f2630 98%,#fff3ce66);border-right:2px solid #bda87566}
#dsy #name-screen,#dsy #avatar-screen,#dsy #done-screen{background-color:var(--paper);background-image:repeating-linear-gradient(93deg,transparent 0 3px,#86632904 3px 4px);border:1px solid var(--line);outline:1px solid var(--line);outline-offset:-8px;margin:10px}
#dsy .entry .intro{padding-top:22px}
#dsy .intro-back{display:block;font-size:12px;min-height:44px;margin-bottom:8px}
@media(max-width:360px){#dsy .ritual-sheet{padding:22px 22px 28px}#dsy .ritual-story{font-size:16px}#dsy .ritual-calligraphy{margin-top:26px}#dsy .ritual-sheet h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){#dsy .turning-sheet{display:none}}
#dsy .mast .seal{padding:0;background:transparent;transform:rotate(-4deg);display:block;width:48px;height:48px;flex-shrink:0}
#dsy .seal canvas{width:100%;height:100%}
#dsy .ritual-calligraphy{margin:22px auto 24px;width:106px;height:106px;transform:rotate(-5deg)}
#dsy .ritual-sheet{touch-action:pan-y;user-select:none;transform-origin:center 85%;cursor:grab;will-change:transform}
#dsy .ritual-sheet.dragging{cursor:grabbing}
#dsy .ritual-sheet .begin-card{display:block;width:100%;min-height:54px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--red);font-size:12px;letter-spacing:.15em;margin-top:26px;padding:20px 4px 8px}
#dsy #swipe-help{margin-top:4px;line-height:1.6}
#dsy .ritual-sheet:before{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:0 5px 16px #46371912}
#dsy .turning-sheet{transform-origin:center 85%;backface-visibility:visible}
#dsy .turning-sheet:after{background:linear-gradient(90deg,transparent 65%,#674f2610);border:0}
#dsy .ritual-sheet.dragging .begin-card{opacity:.7}
@media(prefers-reduced-motion:reduce){#dsy .ritual-sheet{will-change:auto}}
#dsy .page-peel{position:absolute;z-index:30;pointer-events:none;perspective:1300px;overflow:visible}
#dsy .peel-front{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;transform:none!important;background-color:var(--paper);will-change:clip-path;overflow:hidden}
#dsy .peel-back{position:absolute;top:0;bottom:0;background-color:var(--paper);background-image:linear-gradient(90deg,#5d462d35 0%,#fff5d952 9%,transparent 32%,#61482b12 92%,#513b281c),repeating-linear-gradient(92deg,transparent 0 3px,#86632906 3px 4px);border:1px solid var(--line);border-radius:12px 2px 2px 12px;transform-origin:left center;box-shadow:12px 4px 24px #34251125;overflow:hidden;will-change:width,left,right,transform}
#dsy .peel-back:after{content:'打 小 人';position:absolute;right:20px;top:23%;writing-mode:vertical-rl;font:56px 'Kaiti SC',KaiTi,serif;color:var(--red);opacity:.055;transform:scaleX(-1)}
#dsy .peel-shadow{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,transparent,#34251125);pointer-events:none;will-change:left,right,opacity}
#dsy .page-peel.reverse .peel-back{border-radius:2px 12px 12px 2px;transform-origin:right center;background-image:linear-gradient(270deg,#5d462d35 0%,#fff5d952 9%,transparent 32%,#61482b12 92%,#513b281c);box-shadow:-12px 4px 24px #34251125}
#dsy .page-peel.reverse .peel-shadow{background:linear-gradient(270deg,transparent,#34251125)}
#dsy .ritual-sheet{transform:none!important}

#dsy .feature-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
#dsy .feature-section>.label{color:var(--red);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
#dsy #avatar-screen .controls>.pair{grid-template-columns:1fr}
#dsy #avatar-screen .controls>.pair:has(.swatches){grid-template-columns:1fr 1fr}
#dsy .ritual-sheet{padding-bottom:98px;cursor:default;touch-action:pan-y}
#dsy .corner-turn{position:absolute;right:0;bottom:0;width:86px;height:86px;padding:0;border:0;background:transparent;touch-action:none;cursor:grab;z-index:3;color:var(--red)}
#dsy .corner-turn:before{content:'';position:absolute;inset:16px 0 0 16px;clip-path:polygon(100% 0,100% 100%,0 100%);background:linear-gradient(135deg,transparent 45%,#674b2525 49%,var(--paper) 53%,#c8ae7c35 83%,#967a4b50);filter:drop-shadow(-3px -3px 3px #33251428)}
#dsy .corner-turn:after{content:'↖';position:absolute;right:18px;bottom:14px;font-size:23px;opacity:.75}
#dsy .corner-turn:active{cursor:grabbing}
#dsy .page-peel{perspective:none}
#dsy .peel-curve{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#dsy .peel-front .corner-turn{visibility:hidden}
#dsy #swipe-help{max-width:230px;margin:6px auto 0}
#dsy{height:740px;max-width:390px;display:flex;flex-direction:column;border-radius:22px}
#dsy .mast{flex:0 0 68px;padding:10px 20px;border-bottom:1px solid var(--line)}
#dsy .mast .seal{width:40px;height:40px}
#dsy .steps{flex:0 0 38px;padding:10px 18px;align-items:center}
#dsy .app-bottom{flex:0 0 18px;height:18px;margin-top:auto}
#dsy #ritual-intro,#dsy #name-screen,#dsy #avatar-screen,#dsy #done-screen{flex:1;min-height:0;margin:8px;position:relative}
#dsy .ritual-sheet{padding:18px 24px 72px;display:flex;flex-direction:column}
#dsy .ritual-topline{font-size:10px}
#dsy .ritual-calligraphy{width:76px;height:76px;margin:18px auto}
#dsy .ritual-sheet h1{font-size:24px;margin:0 0 18px}
#dsy .ritual-story{font-size:16px;line-height:1.55}
#dsy .ritual-rule{margin:18px 0 15px;flex-shrink:0}
#dsy .ritual-warning{font-size:15px;line-height:1.5}
#dsy .ritual-sheet .begin-card{margin-top:auto;min-height:48px;padding:15px 4px 8px}
#dsy #swipe-help{font-size:11px;line-height:1.4;margin-top:4px}
#dsy .corner-turn{width:72px;height:72px}
#dsy .entry{display:flex}
#dsy .entry .intro{padding:16px 22px 18px;display:flex;flex-direction:column;flex:1;min-height:0}
#dsy .intro-back{margin-bottom:9px;min-height:38px}
#dsy .intro h1{font-size:33px;margin:14px 0}
#dsy .intro>p:not(.hint){font-size:14px}
#dsy .entry label{margin-top:25px;font-size:14px}
#dsy .entry input[type=text]{font-size:22px;min-height:50px}
#dsy .entry .hint{font-size:12px}
#dsy .intro .primary{margin-top:auto;min-height:50px}
#dsy .entry .aside{display:none}
#dsy #avatar-screen{display:flex;flex-direction:column}
#dsy .editor{flex:1;min-height:0;display:flex;flex-direction:column}
#dsy .preview{flex:0 0 178px;padding:14px 20px;grid-template-columns:1fr 91px;gap:0 14px}
#dsy .preview .paper{width:91px;margin:0}
#dsy .preview .mobile-preview-title{font-size:25px;max-width:200px;max-height:60px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dsy .preview .caption{font-size:10px;margin-top:8px;line-height:1.4}
#dsy .controls{padding:0 18px;flex:1;min-height:0;display:flex;flex-direction:column}
#dsy .controls>.back{min-height:34px;margin:0;font-size:12px;flex:0 0 34px}
#dsy .avatar-tabs{display:flex;flex:0 0 44px;border-bottom:1px solid var(--line);gap:2px}
#dsy .avatar-tabs button{flex:1;min-width:0;min-height:44px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--soft);font-size:12px}
#dsy .avatar-tabs button[aria-selected=true]{color:var(--red);border-bottom-color:var(--red)}
#dsy .avatar-panel{padding-top:8px}
#dsy .avatar-panel .field{margin-top:9px}
#dsy .avatar-panel .field label,#dsy .avatar-panel .label{font-size:12px}
#dsy .avatar-panel input[type=range]{min-height:28px;height:28px;margin:2px 0 0}
#dsy .avatar-panel #skin{min-height:8px;height:8px;margin:13px 0 10px}
#dsy .avatar-panel .choice{min-height:44px;padding:5px;font-size:11px}
#dsy .avatar-panel .choices{margin-top:5px}
#dsy .avatar-panel select{min-height:44px;font-size:16px;margin-top:6px}
#dsy .avatar-panel .swatches{margin-top:5px;gap:10px}
#dsy .avatar-panel .swatch{width:40px;height:44px}
#dsy .avatar-panel .check{margin-top:5px;min-height:44px}
#dsy .footer{flex:0 0 70px;padding:10px 18px 12px;gap:0;justify-content:center}
#dsy .footer p{display:none}
#dsy .footer .primary{min-height:48px;padding:10px 12px;font-size:14px}
#dsy .done{padding:25px 20px 20px;display:flex;flex-direction:column;align-items:center}
#dsy .done h2{font-size:27px}
#dsy .done .paper{width:190px;margin:20px auto 15px}
#dsy .done .primary{margin-top:auto!important;min-height:48px}
#dsy #ready-name{overflow-wrap:anywhere}
@media(max-width:360px){#dsy{height:700px}#dsy .ritual-sheet{padding:15px 20px 62px}#dsy .ritual-calligraphy{width:62px;height:62px;margin:13px auto}#dsy .ritual-sheet h1{font-size:22px;margin-bottom:14px}#dsy .ritual-story{font-size:15px;line-height:1.5}#dsy .ritual-warning{font-size:14px}#dsy .ritual-rule{margin:14px 0}#dsy .preview{flex-basis:145px;grid-template-columns:1fr 72px;padding:12px 18px}#dsy .preview .paper{width:72px}#dsy .preview .mobile-preview-title{font-size:23px}#dsy .intro h1{font-size:29px}#dsy .done .paper{width:170px}}

#dsy .ritual-sheet{padding:16px 20px 46px}
#dsy .ritual-calligraphy{width:56px;height:56px;margin:10px auto}
#dsy .ritual-sheet h1{font-size:21px;line-height:1.25;margin-bottom:12px}
#dsy .ritual-story{font-size:15px;line-height:1.45}
#dsy .ritual-warning{font-size:14px;line-height:1.45}
#dsy .ritual-rule{margin:10px 0}
#dsy .ritual-sheet .begin-card{min-height:44px;padding:12px 4px 7px}
#dsy #swipe-help{font-size:11px;line-height:1.35}
@media(max-width:360px){#dsy .ritual-sheet{padding:14px 18px 34px}#dsy .ritual-calligraphy{width:44px;height:44px;margin:6px auto}#dsy .ritual-sheet h1{font-size:20px;margin-bottom:10px}#dsy .ritual-story{font-size:14px;line-height:1.45}#dsy .ritual-warning{font-size:14px;line-height:1.4}#dsy .ritual-rule{margin:8px 0}}
#dsy .done{padding:18px 16px 12px;gap:0}
#dsy .done h2{font-size:27px;margin:7px 0 4px}
#dsy #ready-name{font-size:13px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}
#dsy .beating-ground{position:relative;display:flex;align-items:center;justify-content:center;width:100%;flex:1;min-height:0;margin:12px 0;background:light-dark(#d7ccba,#201d18);background-image:repeating-linear-gradient(6deg,transparent 0 25px,#77614b09 26px 27px);border-radius:3px;overflow:hidden;isolation:isolate}
#dsy #beat-paper{display:block;width:218px;max-width:80%;border:0;padding:0;background:transparent;transform:none;touch-action:manipulation;cursor:pointer;filter:drop-shadow(3px 5px 3px #30231435)}
#dsy #beat-paper canvas{width:100%;height:auto}
#dsy #striking-shoe{position:absolute;width:84px;height:151px;pointer-events:none;z-index:3;opacity:0;filter:drop-shadow(3px 6px 5px #211c1950);transform-origin:50% 70%}
#dsy #beat-status{font-size:12px;min-height:18px;margin:0;text-align:center}
#dsy .done #edit-again{min-height:44px;margin:0;padding:8px;flex-shrink:0;font-size:12px}
#dsy #hair-colors{gap:5px;max-width:285px}
#dsy #hair-colors .swatch{width:44px;height:44px}
#dsy .avatar-panel #glasses-size-field{margin-top:12px}
@media(max-width:360px){#dsy #beat-paper{width:195px}#dsy .done h2{font-size:25px}}
#dsy #done-screen #ready-name{display:none}
#dsy .round-hud{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 3px 0;color:var(--red);font-size:13px;font-variant-numeric:tabular-nums}
#dsy .round-hud strong{font-size:24px;font-weight:400;font-family:Georgia,serif;display:inline-block;min-width:27px}
#dsy .round-hud span{display:flex;align-items:center;gap:5px}
#dsy .beating-ground{margin:8px 0}
#dsy #beat-paper{width:252px;max-width:90%}
#dsy .done #edit-again{min-height:36px;font-size:11px}
#dsy .ritual-results{flex:1;min-height:0;margin:8px;padding:19px 20px 16px;display:flex;flex-direction:column;border:1px solid var(--line);outline:1px solid var(--line);outline-offset:-8px;background:var(--paper);position:relative}
#dsy .ritual-results h2{font-size:25px;margin:7px 0 9px}
#dsy .hit-total{display:flex;align-items:center;gap:12px;margin-bottom:13px}
#dsy .hit-total strong{font:48px/1 Georgia,serif;color:var(--red);font-variant-numeric:tabular-nums}
#dsy .hit-total span{font-size:10px;letter-spacing:.12em;max-width:80px}
#dsy .curse-heading{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:11px;font-size:10px;letter-spacing:.1em;color:var(--red)}
#dsy #curse-list{padding:0;margin:8px 0 0;list-style:none;flex:1;min-height:0;display:grid;grid-template-rows:repeat(4,1fr)}
#dsy #curse-list li{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);font:14px/1.4 Georgia,serif;min-height:0;overflow-wrap:anywhere}
#dsy #curse-list li .curse-number{font:12px Georgia,serif;color:var(--red);min-width:16px}
#dsy .curse-paging{display:flex;align-items:center;justify-content:space-between;flex:0 0 42px;font-size:11px;color:var(--soft)}
#dsy .curse-paging button{background:transparent;color:var(--ink);border:0;min-width:44px;min-height:40px;font-size:19px}
#dsy .curse-paging button:disabled{opacity:.25}
#dsy #play-again{min-height:46px;width:100%;font-size:14px}
@media(max-width:360px){#dsy #beat-paper{width:226px}#dsy .ritual-results{padding:16px}#dsy .ritual-results h2{font-size:23px}#dsy .hit-total strong{font-size:42px}#dsy #curse-list li{font-size:13px}}

#dsy #done-screen{padding:12px 12px 8px}
#dsy #done-screen>.eyebrow{display:none}
#dsy #done-screen h2{font-size:26px;margin:4px 0;line-height:1.2}
#dsy .done #edit-again{min-height:32px;padding:4px}
#dsy .beating-ground{margin:6px 0}
#dsy #beat-paper{height:100%;width:auto;aspect-ratio:490 / 780;max-height:100%;max-width:92%}
#dsy #beat-paper canvas{height:100%;width:100%;object-fit:contain}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f6f1e6;color-scheme:only dark;font-family:Arial,sans-serif}*{box-sizing:border-box}button,input,select{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}body{display:flex;justify-content:center}#dsy{height:var(--app-height,100dvh);max-height:100dvh;max-width:480px;width:100%;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);color-scheme:only dark;--paper:#f6f1e6;--ink:#272c27;--soft:#716e62;--line:#d9d1bf;--panel:#ebe5d7}#dsy .app-bottom{display:none}#dsy .mast{flex-basis:56px;padding:8px 20px}#dsy .steps{flex-basis:34px;font-size:11px}#dsy .ritual-sheet{padding-bottom:55px}#dsy #swipe-help{display:none}#dsy .corner-turn{left:0;right:auto;transform:scaleX(-1);animation:corner-hint 1.8s ease-in-out 3 .7s}#dsy .corner-turn:after{content:''}#dsy .ritual-sheet .begin-card{margin-bottom:8px}#dsy .ritual-sheet{touch-action:pan-y}#dsy #results-screen #continue-share{width:100%;min-height:44px}#dsy #play-again{min-height:34px;border:0;background:transparent;color:var(--soft);font-size:12px;padding:4px}#dsy .share-screen{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 22px}#dsy .share-screen h2{font-size:24px;text-align:center;margin:0}#dsy .share-screen>p{font-size:13px;text-align:center;line-height:1.5}#dsy #share-card{width:auto;height:auto;max-height:40%;max-width:80%;aspect-ratio:4/5;object-fit:contain;box-shadow:2px 6px 14px #30231a20}#dsy #share-ritual{width:100%;min-height:48px;margin-top:auto}#dsy .share-destinations{font-size:12px}#dsy .share-alternatives{display:flex;width:100%;justify-content:center;gap:12px}#dsy .share-alternatives button{border:0;background:transparent;color:var(--red);font-size:13px;min-height:38px}#dsy #share-status{min-height:30px;font-size:11px}#dsy #new-ritual{min-height:32px;margin:0}#dsy .ritual-story{font-size:16px}#dsy .intro input[type=text]{font-size:20px}@keyframes corner-hint{0%,100%{transform:scaleX(-1) rotate(0);filter:none}50%{transform:scaleX(-1) rotate(-8deg) translate(-3px,-5px);filter:drop-shadow(-3px -3px 3px #34251320)}}@media(prefers-reduced-motion:reduce){#dsy .corner-turn{animation:none}}@media(max-height:740px){#dsy .preview{flex-basis:120px;grid-template-columns:1fr 66px;padding:8px 18px}#dsy .preview .paper{width:66px}#dsy .preview .caption{display:none}#dsy .footer{flex-basis:60px;padding:6px 18px}#dsy .ritual-calligraphy{width:44px;height:44px;margin:8px auto}#dsy .ritual-sheet h1{font-size:20px;margin-bottom:10px}#dsy .ritual-topline{display:none}#dsy .ritual-story{font-size:15px}#dsy .ritual-warning{font-size:14px}#dsy .share-screen{gap:6px;padding:12px 20px}#dsy .share-screen h2{font-size:22px}#dsy #share-card{max-height:36%}#dsy .ritual-results{padding:14px 18px}#dsy .hit-total strong{font-size:40px}#dsy .hit-total{margin-bottom:8px}#dsy .ritual-results h2{font-size:22px;margin:5px 0}#dsy #curse-list li{font-size:13px}#dsy #curse-list{margin-top:5px}}@media(max-height:560px){#dsy .entry .intro>h1,#dsy .entry .intro>.eyebrow,#dsy .entry .intro>p:not(.hint){display:none}#dsy .entry label{margin-top:6px}#dsy .intro-back{min-height:30px;margin-bottom:0}#dsy .entry .intro{padding:8px 20px}#dsy .intro .primary{min-height:44px}#dsy .hint{font-size:11px}}

#dsy #sound-toggle{margin-left:auto;flex-shrink:0;border:0;background:transparent;color:var(--soft);font-size:12px;min-height:44px;padding:6px 4px}#dsy #sound-toggle[aria-pressed="false"]{color:var(--red)}

#dsy #sound-toggle{display:grid;place-items:center;width:44px;height:44px;padding:10px;color:var(--ink)}#dsy #sound-toggle[aria-pressed="false"]{color:var(--ink)}#dsy #sound-toggle svg{display:block;width:24px;height:24px}#dsy #sound-toggle[aria-pressed="false"] .sound-waves{display:none}

#dsy #prophecy-name{font-family:Georgia,serif;color:var(--ink);overflow-wrap:anywhere;font-size:25px;line-height:1.12;max-height:58px;overflow:hidden}#dsy #curse-list li{font-style:italic}#dsy .curse-number{font-style:normal}@media(max-height:740px){#dsy #prophecy-name{font-size:23px;max-height:54px}}

#dsy #results-screen .hit-total{margin-top:0;margin-bottom:13px}#dsy #results-screen #prophecy-name{margin:16px 0 2px}#dsy #results-screen #curse-list{margin-top:0}

/* The ritual stays dark regardless of the device's appearance setting. */
html,body{color-scheme:only dark;background:#151714}
#dsy{color-scheme:only dark;--paper:#242621;--ink:#f1e8d7;--soft:#beb6a5;--line:#494b40;--panel:#1c1f1a;--red:#e18a77;background:var(--paper)}
#dsy .primary{background:#9f382d;border-color:#b94e3e;color:#fff5e5}
#dsy #play-again{background:transparent;color:var(--soft)}
#dsy .beating-ground{background-color:#121511;background-image:repeating-linear-gradient(6deg,transparent 0 25px,#acb3980b 26px 27px)}
#dsy #beat-paper{background:transparent;filter:drop-shadow(2px 4px 2px #00000090)}
#dsy select,#dsy input{color-scheme:only dark}
#dsy .corner-turn:before{background:linear-gradient(135deg,transparent 45%,#0005 49%,#373b31 53%,#62685255 83%,#141810aa)}

#dsy #home-logo{display:flex;align-items:center;gap:10px;min-height:44px;min-width:44px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left}
#dsy #home-dialog{color-scheme:only dark;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:min(340px,calc(100% - 36px));padding:24px;box-shadow:0 20px 60px #0008}
#dsy #home-dialog::backdrop{background:#080b09b8;backdrop-filter:blur(3px)}
#dsy #home-dialog h2{font-size:25px;line-height:1.2;margin:0 0 12px}
#dsy #home-dialog p{font-size:15px;line-height:1.5;margin:0 0 20px}
#dsy .home-actions{display:flex;flex-direction:column;gap:10px}
#dsy .home-actions button{width:100%;min-height:46px;border-radius:4px;font-size:14px}
#dsy .home-actions button[value="cancel"]{border:1px solid var(--line);background:var(--panel);color:var(--ink)}

/* A larger close-up while dressing the villain; full talisman stays intact. */
#dsy .preview{flex-basis:224px;grid-template-columns:1fr 146px;padding:12px 18px;}
#dsy .preview .paper{width:146px;}
#dsy .preview .caption{font-size:12px;line-height:1.4;}
#dsy .avatar-panel label[for=outfit],#dsy .avatar-panel label[for=hat],#dsy .avatar-panel label[for=hair]{display:block;font:18px/1.25 Georgia,serif;max-width:310px;}
#dsy #hat-colors,#dsy #cloth-colors{display:grid;grid-template-columns:repeat(4,44px);gap:6px 12px;}
#dsy #hat-colors .swatch,#dsy #cloth-colors .swatch{width:36px;height:36px;justify-self:center;}
@media(max-height:740px){#dsy .preview{flex-basis:170px;grid-template-columns:1fr 112px;padding:8px 18px;}#dsy .preview .paper{width:112px;}#dsy .avatar-panel{padding-top:3px;}#dsy .avatar-panel .field{margin-top:5px;}#dsy .avatar-panel input[type=range]{min-height:24px;height:24px;}#dsy .avatar-panel label[for=outfit],#dsy .avatar-panel label[for=hat],#dsy .avatar-panel label[for=hair]{font-size:17px;}}

/* Opening-page spacing preview. */
#dsy .ritual-sheet{padding:22px 28px 38px;}
#dsy .ritual-calligraphy{flex-shrink:0;width:64px;height:64px;margin:24px auto;}
#dsy .ritual-sheet h1{font-size:23px;line-height:1.35;letter-spacing:.045em;margin-bottom:28px;}
#dsy .ritual-story{font-size:16px;line-height:1.7;}
#dsy .ritual-instructions{margin-top:22px;}
#dsy .ritual-rule{margin:24px 0 18px;}
#dsy .ritual-warning{font-size:15px;line-height:1.65;}
#dsy .ritual-sheet .begin-card{flex-shrink:0;margin-top:auto;margin-bottom:0;padding:18px 4px 8px;}
@media(max-height:740px){
#dsy .ritual-sheet{padding:16px 24px 30px;}
#dsy .ritual-calligraphy{width:44px;height:44px;margin:12px auto 16px;}
#dsy .ritual-sheet h1{font-size:20px;line-height:1.3;margin-bottom:20px;}
#dsy .ritual-story{font-size:15px;line-height:1.6;}
#dsy .ritual-instructions{margin-top:16px;}
#dsy .ritual-rule{margin:18px 0 14px;}
#dsy .ritual-warning{font-size:14px;line-height:1.55;}
}

/* Keep the document still; only the app's intentional inner lists may scroll. */
html,body{position:fixed;inset:0;overflow:hidden;overscroll-behavior:none;background:#242621;}
#dsy{position:absolute;top:0;overflow:hidden;overscroll-behavior:none;}
#dsy.name-editing{padding-bottom:0;}
#dsy.name-editing .entry .intro>h1,#dsy.name-editing .entry .intro>.eyebrow,#dsy.name-editing .entry .intro>p:not(.hint){display:none;}
#dsy.name-editing .entry .intro{padding:8px 22px 12px;}
#dsy.name-editing .intro-back{min-height:30px;margin-bottom:0;}
#dsy.name-editing .entry label{margin-top:8px;}
#dsy.name-editing .entry input{flex-shrink:0;}
#dsy.name-editing .intro .primary{min-height:44px;margin-top:auto;flex-shrink:0;}
#dsy.name-editing .hint{font-size:11px;margin-top:5px;}

/* Keep the frozen face independent of live page updates and block double turns. */
#dsy .peel-front .corner-turn{visibility:hidden!important;}
#dsy.page-turning>section,#dsy.page-turning>.mast,#dsy.page-turning>.steps{pointer-events:none;}
#dsy .ritual-sheet{touch-action:none;}

/* Give the eyebrow its own row so it never competes with the portrait. */
#dsy .preview{flex-basis:236px;grid-template-columns:minmax(0,1fr) 146px;grid-template-rows:18px auto 1fr;}
#dsy .preview .live{grid-column:1/-1;grid-row:1;white-space:nowrap;align-self:start;}
#dsy .preview .paper{grid-column:2;grid-row:2/4;}
#dsy .preview .mobile-preview-title{grid-column:1;grid-row:2;}
#dsy .preview .caption{grid-column:1;grid-row:3;letter-spacing:.04em;}
@media(max-height:740px){#dsy .preview{flex-basis:186px;grid-template-columns:minmax(0,1fr) 112px;}#dsy .preview .caption{display:block;font-size:11px;line-height:1.3;margin-top:5px;}#dsy .preview .mobile-preview-title{font-size:22px;margin:5px 0;}}

/* Air above the heading and between the name, caption, and portrait. */
#dsy .preview{flex-basis:266px;padding:24px 10px 12px 18px;grid-template-rows:28px auto 1fr;column-gap:20px;}
#dsy .preview .live:before{content:none;}
#dsy .preview .mobile-preview-title{margin:18px 0 0;}
#dsy .preview .caption{margin-top:14px;}
#dsy .preview .paper{transform:translateX(3px) rotate(3deg);}
@media(max-height:740px){
  #dsy .preview{flex-basis:212px;padding:18px 10px 10px 18px;grid-template-rows:24px auto 1fr;column-gap:16px;}
  #dsy .preview .mobile-preview-title{margin:12px 0 0;}
  #dsy .preview .caption{margin-top:10px;}
}

/* Quiet, readable context below the opening action. */
#dsy .ritual-disclaimer{flex-shrink:0;font:11px/1.5 Arial,sans-serif;text-align:center;color:var(--soft);margin:12px 6px 0;}
@media(max-height:740px){
  #dsy .ritual-calligraphy{margin:8px auto 12px;}
  #dsy .ritual-sheet h1{margin-bottom:12px;}
  #dsy .ritual-instructions{margin-top:12px;}
  #dsy .ritual-rule{margin:12px 0 10px;}
  #dsy .ritual-sheet .begin-card{padding-top:12px;}
  #dsy .ritual-disclaimer{font-size:10px;line-height:1.4;margin-top:8px;}
}

#dsy .share-screen #share-card{max-height:34%;}
@media(max-height:740px){#dsy .share-screen{gap:4px;}#dsy .share-screen #share-card{max-height:27%;}}
