:root{color-scheme:light;--sky:#e9e5d8;--paper:#f9f2df;--ink:#343e37;--muted:#656b5f;--red:#8e3e32;--line:#c9bda1;--wood:#504a3b;--green:#405a4d;--glow:#e5cb8e;--shadow:#35392b24;font-family:'Noto Serif CJK TC','Songti TC','PMingLiU',serif}*{box-sizing:border-box}body{margin:0;background:var(--sky);color:var(--ink);line-height:1.8;min-width:300px}body.dark{color-scheme:dark;--sky:#192d2c;--paper:#263c37;--ink:#f2e6c9;--muted:#c0c5ae;--red:#f0b59c;--line:#667365;--wood:#111f1e;--green:#bfd2b4;--glow:#e5cb8e;--shadow:#0005}@media(prefers-color-scheme:dark){body:not(.light){color-scheme:dark;--sky:#192d2c;--paper:#263c37;--ink:#f2e6c9;--muted:#c0c5ae;--red:#f0b59c;--line:#667365;--wood:#111f1e;--green:#bfd2b4;--glow:#e5cb8e;--shadow:#0005}}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{min-height:46px;padding:9px 20px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:4px;cursor:pointer;touch-action:manipulation}button:hover{border-color:var(--red);box-shadow:0 2px 0 var(--red)}button:disabled{opacity:.55;cursor:default;box-shadow:none}:focus-visible{outline:3px solid var(--red);outline-offset:4px}.primary{background:var(--green);color:var(--paper);border-color:var(--green)}.quiet{border-color:transparent;background:transparent;padding:6px 10px}.sky{position:absolute;inset:0;overflow:hidden;pointer-events:none;height:650px;z-index:-1;background:radial-gradient(ellipse at 25% 10%,#d5bb8230,transparent 60%)}.moon{position:absolute;width:150px;height:150px;border-radius:50%;background:var(--glow);opacity:.35;right:10%;top:125px}.mountain{position:absolute;inset:290px -5% 0;background:var(--green);opacity:.08;clip-path:polygon(0 55%,17% 6%,32% 65%,56% 0,75% 60%,94% 14%,100% 50%,100% 100%,0 100%)}.mast{max-width:1180px;margin:auto;padding:24px 34px;display:flex;align-items:center;gap:30px}.wordmark{color:var(--ink);font-size:24px;font-weight:bold;text-decoration:none;letter-spacing:.12em;line-height:1.5}.wordmark span{display:block;font-size:11px;letter-spacing:.24em}.chapter{font-size:12px;letter-spacing:.2em;color:var(--muted);flex:1}.mast>button{margin-left:auto;font-size:13px}main{max-width:1020px;margin:20px auto 0;padding:0 34px 110px}.stall{position:relative}.beam{position:absolute;top:0;left:-12px;right:-12px;height:12px;border-radius:6px;background:var(--wood);box-shadow:0 3px 6px var(--shadow)}.banner{padding:32px 46px 25px;display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:center;max-width:650px;margin:auto;background:var(--paper);border-inline:1px solid var(--line);clip-path:polygon(0 0,100% 0,100% 100%,50% 94%,0 100%)}.banner-side{writing-mode:vertical-rl;font-size:13px;letter-spacing:.25em}.eyebrow{font-size:12px;letter-spacing:.3em;color:var(--red);margin:0 0 6px}h1{font-size:clamp(36px,5vw,54px);letter-spacing:.25em;margin:0;font-weight:500}#teller{font-size:13px;letter-spacing:.2em;margin:4px 0 12px}.seal{border:2px solid var(--red);color:var(--red);font-size:19px;line-height:1.2;padding:6px;transform:rotate(5deg)}.canopy{height:26px;margin-top:12px;background:repeating-linear-gradient(90deg,#405a4d 0,#405a4d 65px,#637862 65px,#637862 130px);border-radius:7px 7px 0 0;border-bottom:6px solid #a59669}.table{border-inline:10px solid var(--wood);background:var(--paper);padding:30px 38px 28px;box-shadow:0 15px 40px var(--shadow);background-image:repeating-linear-gradient(0deg,transparent 0,transparent 4px,#9a835502 5px)}.table-edge{height:18px;background:var(--wood);border-radius:0 0 5px 5px;box-shadow:0 7px 0 #302e2520}.welcome{text-align:center;margin:0 auto 28px}.welcome h2,h2{font-weight:500;font-size:26px;letter-spacing:.08em;margin:3px 0 10px}.welcome p{font-size:14px;color:var(--muted)}.choices{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.choice{position:relative;min-height:160px;padding:16px 7px 12px;display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid var(--line);background:transparent}.choice span{font-size:18px;letter-spacing:.15em}.choice small{font-size:11px;color:var(--muted)}.choice svg{height:65px;width:80px;color:var(--green)}.fine{font-size:12px;color:var(--muted);line-height:1.8}#menu>.fine{text-align:center;margin:25px 0 0}.colophon{text-align:center;font-size:12px;letter-spacing:.15em;color:var(--muted);margin:25px 0 0}.play-top{display:flex;justify-content:space-between;align-items:center;margin:-10px -10px 16px}#intro{color:var(--muted);margin:0 0 12px}#play h2{font-size:30px}.scene{height:145px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;margin:16px 0}.scene svg{height:130px;width:160px;color:var(--green)}.scene .large-char{font-size:100px;color:var(--green);line-height:1}.scene .orb{width:110px;height:110px;border:1px solid var(--line);border-radius:50%;box-shadow:inset 0 0 0 12px var(--paper),inset 0 0 0 13px var(--line);display:grid;place-items:center;font-size:44px;color:var(--red)}label{display:inline-flex;flex-direction:column;font-size:14px;gap:5px;margin:0 12px 14px 0}input,select{padding:10px 12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);min-height:46px;max-width:100%;border-radius:3px}input[type=text]{width:200px}input[type=number]{width:110px}#error{color:var(--red);font-size:14px;margin:0 0 12px}#error:empty{display:none}#ritual{text-align:center}#inputs>p{margin:0 0 12px}.answer{margin-top:26px;border-top:1px solid var(--line);padding:22px 0 0}.answer h3{font-size:25px;font-weight:500;margin:0 0 8px}.answer p{margin:9px 0}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 8px}.method-note{border-top:1px dotted var(--line);padding-top:14px;margin-top:26px}.cards{display:flex;justify-content:center;gap:12px;margin:24px 0;perspective:900px}.tarot-card{width:145px;min-height:210px;padding:10px 5px;background:var(--green);color:var(--paper);border:5px double var(--line);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;transition:transform .55s}.tarot-card svg{width:78px;height:105px}.tarot-card.revealed{background:var(--paper);color:var(--ink);animation:flip .65s}.tarot-card .reverse{transform:rotate(180deg)}.tarot-card small{font-size:12px}.slips{position:absolute;bottom:10px;display:flex;gap:3px;width:90%;justify-content:center}.slips i{display:block;flex:1;min-width:3px;max-width:23px;height:47px;border:1px solid var(--line);background:var(--paper);box-shadow:inset 0 0 0 3px var(--paper),inset 0 0 0 4px var(--red)}.bird-actor{position:absolute;left:10%;top:0;transition:left 1.4s}.bird-actor svg{height:100px;width:100px}.bird-walk{animation:hop .22s 7}.slip-open{display:block;margin:25px auto;padding:30px 20px;writing-mode:vertical-rl;letter-spacing:.25em;border:4px double var(--red);animation:flip .7s}#wheel-svg{transition:transform 2s cubic-bezier(.15,.65,.12,1);width:200px;height:200px}.scene:has(#wheel-svg){height:240px}.wheel-pointer{position:absolute;top:6px;color:var(--red);font-size:28px;z-index:1}.shuffling svg{animation:shuffle .3s 4}.wait{opacity:.8}body.embed #yz-promo-footer,body.embed [id^="yz-promo"],body.embed .yz-promo-bubble{display:none!important}body.embed .mast{padding-top:10px}body.embed main{margin-top:0;padding-bottom:25px}[hidden]{display:none!important}@keyframes hop{50%{transform:translateY(-9px) rotate(5deg)}}@keyframes flip{from{transform:rotateY(85deg)}to{transform:rotateY(0)}}@keyframes shuffle{50%{transform:translateX(20px) rotate(8deg)}}@media(max-width:650px){.mast{padding:18px 18px}.chapter{display:none}main{padding:0 14px 110px;margin-top:12px}.banner{padding:28px 22px 18px}.banner-side{font-size:11px}.table{padding:24px 18px;border-inline-width:6px}.choices{grid-template-columns:repeat(2,1fr);gap:10px}.choice{min-height:141px}.choice svg{height:55px}.welcome h2{font-size:23px}.welcome p br{display:none}.tarot-card{min-height:160px;width:31%;font-size:14px}.tarot-card svg{width:55px;height:73px}.cards{gap:6px}.actions>button{flex:1;padding-inline:10px}.play-top .fine{font-size:10px}.colophon{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Game paintings keep their full composition in both themes and narrow embeds. */
.stall-art{display:block;width:100%;max-width:640px;height:auto;margin:0 auto 28px;border-radius:4px}
.choice .choice-art{display:block;width:100%;max-width:150px;height:auto;aspect-ratio:1;object-fit:contain;border-radius:3px}
.method-art img,.result-art img{display:block;width:100%;max-width:320px;height:auto;margin:18px auto;border-radius:4px}
.tarot-card{min-width:0}
.tarot-card:disabled.revealed{opacity:1}
.tarot-card .tarot-art{display:block;width:100%;height:auto;aspect-ratio:9/16;object-fit:contain}
.tarot-card span{overflow-wrap:anywhere}
@media(max-width:650px){.choice .choice-art{max-width:120px}.tarot-card{padding:8px 3px;border-width:3px;gap:5px}.method-art img,.result-art img{max-width:280px}}
