/* Velvet curtains, antique metal, romantic gothic scrapbook. */
:root{--ink:#f3e5d4;--purple:#a47ba5;--pink:#9b334a;--gold:#c7a36a;--paper:#261522;--velvet:#5b1429;--wine:#360d20}
body{color:var(--ink);background-color:#0f090f;background-image:radial-gradient(ellipse at 50% 5%,#6e193877,transparent 62%),url(stars.svg),repeating-linear-gradient(91deg,#120b13 0,#2a0e21 12px,#170b17 22px,#0e090f 30px,#321023 44px,#160b16 64px);background-size:100% 100%,320px 360px,auto;background-blend-mode:normal,soft-light,normal;background-attachment:fixed;font-family:Georgia,serif}body:before{content:'';position:fixed;inset:0;pointer-events:none;border:9px double #a57f4d33;z-index:20}.shell{max-width:820px}header{color:#d9bf94;font-size:9px;letter-spacing:2px}header .spark{color:#bd865f}header button{background:#271323;color:#d9bf94;border-color:#72523d}.intro{padding:23px 0 16px}h1{position:relative;letter-spacing:-2px;font-size:clamp(43px,8vw,78px);line-height:.95;margin:15px auto;color:#f6e4cc;text-shadow:2px 3px #200813,0 0 24px #ad30464d;transform:rotate(-2deg)}h1 span{color:#bc657b;text-shadow:1px 2px #230a1c,0 0 22px #b5436d33}h1 b{position:absolute;right:12%;top:60%;color:#c8a36c;font-size:24px}.modes{background:none;border:0;padding:10px 0;margin:15px 0 23px;gap:9px}.modes button{background:linear-gradient(135deg,#371329,#1c101e);color:#e2c7a4;border:1px solid #87643e;box-shadow:inset 0 0 0 3px #140b15,3px 4px #07040877;border-radius:18px 3px 20px 5px;padding:12px 15px;min-height:44px;font-size:14px}.modes button[aria-pressed=true]{background:linear-gradient(120deg,#7c243d,#49132c);color:#fff0d4;border:1px solid #d3b17b;box-shadow:inset 0 0 0 3px #571b31,0 0 17px #9c254333}.window{background:radial-gradient(ellipse at 0 0,#3b233c,#21131f 60%);border:4px double #ac8859;outline:1px dotted #905e6a;outline-offset:5px;border-radius:32px 6px 28px 8px;box-shadow:10px 12px #08050999,0 0 50px #6a1b3022;overflow:hidden}.titlebar{background:linear-gradient(90deg,#4a1027,#6b1b32,#38102a);color:#dcbf91;border-bottom:1px solid #a2794d;font-style:italic}.toolbar{background:#180d19;border-color:#73503b}.toolbar select,select{color:#eddbc1;background:#32132a;border:1px solid #8e684b;border-radius:9px 2px;padding:9px;font:12px Georgia}.toolbar button,.bottom button{color:#ddbf95}.scorebar{color:#c6a8b5}.scorebar strong{color:#e0bd7e}.progress{background:#100b13}.progress div{background:linear-gradient(90deg,#6c204c,#c78874)}#selection{background:#180d18;color:#ddc5b0;border-color:#8d6148;border-radius:15px 3px}.card{background:#1b101c;color:#e7d2bd;border-radius:12px 3px 15px 5px}.card img{filter:drop-shadow(2px 4px 2px #0008)}.card .name{font-weight:normal}.card.selected{border-color:#caa76b;background:#4b2048}.card.matched{border-color:#7e9876;background:#21352d;color:#e0e5ce}.meaning{background:#301729;color:#edddca;border-color:#79573e;box-shadow:2px 3px #100a14;border-radius:16px 3px 18px 4px}.meaning.selected{background:#4a234b;border-color:#dcbe84}.meaning.matched{background:#243d32;color:#e2e7cf;border-color:#83a17a}.meaning.wrong{background:#6d2038;color:#fff0dc;border-color:#d59b9c}.meaning-heading{color:#cda576}.letter{color:#dfc195;background:#502338;border-radius:50%}.status{background:#160d18;color:#cbb5c6;border-top:1px solid #664355}.bottom{background:#1c0d1c;border-top:1px solid #755134}.bottom #next{background:#671c35;color:#f6e5c8;border-color:#ae8657;box-shadow:2px 2px #0d080f}#study{color:#edddcb}#study h2{color:#e5bd8e;font-style:italic}#study h3{color:#d3b078}#study button{color:#ecd6b6;background:#3c172d;border:1px solid #956b48;box-shadow:2px 3px #0d0810;border-radius:15px 3px 17px 4px}#study button:hover,.modes button:hover{filter:brightness(1.15)}#study textarea,#meaning-search{background:#140c17;color:#f1e1ca;border:1px solid #8a624b;box-shadow:inset 2px 3px 8px #05020755;border-radius:13px 3px}textarea::placeholder,input::placeholder{color:#bfa8bb}.study-image{border:5px double #bd9d6b;box-shadow:4px 5px #08040b;transform:rotate(-1deg)}#mystery{background:radial-gradient(ellipse,#8c244666,transparent 70%),repeating-linear-gradient(45deg,#240f25,#240f25 7px,#43172f 8px,#43172f 10px)!important;border:7px double #b18b59!important;color:#e6bd84!important;box-shadow:0 0 0 2px #1a0d1e,7px 8px #09050b}.small-note{color:#c4acbc;opacity:1;font-size:12px}details{color:#e9d8c7;background:#180e1c;border:1px solid #694153;border-radius:14px 3px;padding:14px}summary{color:#e0bc88}a{color:#dfb471}blockquote{border-color:#a4516e;background:#251326;color:#e6d3c7}.journal-entry{border-color:#82566c}.reference-card{background:#1a0e1d;border:1px solid #785643}.reference-card small{color:#baa1b7}.reference-image{border:4px double #ac8657;box-shadow:4px 5px #08050c}#options .right{background:#294b3a!important;color:#f1e9cf;border-color:#a3b58a}dialog{background:#211123;color:#edddca;border:4px double #af8c5c;border-radius:20px 4px;box-shadow:10px 12px #050307aa}dialog::backdrop{background:#08030ce6;backdrop-filter:blur(3px)}#modal-body a{color:#dfb471}#modal-body button{background:#43182f;color:#f0dec2;border:1px solid #966c4b;border-radius:9px 2px;padding:10px}footer,footer button{color:#bda3af}footer{font-size:8px}button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d8b978;outline-offset:3px}#result .big{color:#d8b57d}
/* Responsive overview. The enlarged view remains available for reading details. */
.tree-scroll{background:radial-gradient(ellipse at center,#3a1836,#130b1b);border:1px solid #7b5746;border-radius:20px 5px;overflow:hidden;padding:8px}.tree-board{min-width:0;width:min(100%,36.52svh,354px);height:auto;max-width:100%;aspect-ratio:600/1150;margin:0 auto;container-type:inline-size}.tree-board line{stroke:#ac8d62;stroke-width:2.5}.tree-board circle{fill:#35172f;stroke:#bf9c65;stroke-width:2}.tree-board text{fill:#f0d9b4}.tree-board .sef-label{fill:#d5bdaa}#study .path-card{width:7.33cqw;height:10.83cqw;min-width:18px;min-height:27px;border:1px solid #bb9763;border-radius:3px;background:repeating-linear-gradient(45deg,#4a1933,#4a1933 5px,#671f3c 6px,#671f3c 8px);color:#ead1a5;font-size:clamp(7px,2cqw,14px)}#study .path-card:after{content:'';position:absolute;inset:-5px}#study .path-card small{font-size:clamp(6px,1.65cqw,10px);bottom:-2.7cqw;left:1cqw;background:#241125;color:#e9cf9f;line-height:1.2;padding:0 1px}#study .path-filled{border-color:#c8bb8a}.tree-enlarged{overflow-x:auto}.tree-enlarged .tree-board{height:auto;width:600px;min-width:600px;max-width:none}.path-picker button{background:#35132c!important;color:#eed9bf!important;border-color:#8a6143!important}.path-picker img{border:1px solid #a58051}#tree-status{color:#dac093}
@media(max-width:520px){body{padding:16px 11px 20px}header{font-size:8px;letter-spacing:1px}.intro{padding:16px 0 10px}h1{font-size:52px;margin:9px 0;letter-spacing:-2px}h1 b{right:4%;top:66%;font-size:18px}.modes{padding:7px 0;margin:13px 0 20px;gap:8px}.modes button{width:46%;font-size:13px;padding:10px 7px;min-height:44px}.window{border-radius:25px 5px 23px 6px}.toolbar{padding:9px}.toolbar select{font-size:12px}.toolbar #deck{max-width:155px}.toolbar label{font-size:8px}#study{padding:14px;line-height:1.55}#study h2{font-size:28px;margin:14px 0}#study p{font-size:14px}#study p.small-note{font-size:12px}.tree-scroll{padding:4px}.tree-board{width:min(100%,36.52svh,318px);height:auto}#study .path-list button{font-size:13px}.meaning{font-size:13px}.titlebar{font-size:9px}#study button{padding:10px 12px}.path-picker{max-height:62svh}}
.altar{height:140px;position:relative;max-width:390px;margin:20px auto -20px;background:radial-gradient(ellipse,#a4592c44,transparent 70%);pointer-events:none}.altar-card{position:absolute;width:75px;height:125px;object-fit:cover;border:3px double #be975f;box-shadow:5px 8px 15px #0009;filter:sepia(.4) brightness(.8)}.altar-card.one{left:80px;top:0;transform:rotate(-19deg)}.altar-card.two{left:145px;top:9px;transform:rotate(12deg)}.candle{position:absolute;left:245px;top:55px;width:23px;height:66px;background:linear-gradient(90deg,#9e815e,#f5dfb4,#b39770);border-radius:4px 4px 2px 2px;box-shadow:0 12px 0 8px #6f482b,0 15px 0 10px #a1804f}.candle i{position:absolute;top:-29px;left:7px;width:11px;height:27px;border-radius:70% 30% 60% 40%;background:radial-gradient(ellipse at bottom,#fffce0,#f5b448 60%,#bf382e);box-shadow:0 0 25px 10px #e39f4033;animation:flicker 3s infinite alternate}.pearls{position:absolute;left:205px;top:15px;width:80px;height:80px;border:8px dotted #decbb2;border-radius:50%;transform:rotate(-20deg);filter:drop-shadow(2px 3px 2px #000)}.rose{position:absolute;left:40px;top:50px;font-size:85px;color:#9e3049;text-shadow:1px 2px #d4806b,3px 4px #160b15;transform:rotate(-30deg)}.window:before{content:'✦  ❦  ✦';display:block;text-align:center;color:#c99d64;background:#230d20;font-size:19px;letter-spacing:15px;padding:7px}.window{box-shadow:10px 12px #08050999,0 0 50px #6a1b3044,inset 0 0 60px #08040b77}.reference-card,.journal-entry{background-image:radial-gradient(ellipse at top right,#86522a15,transparent 70%)}.theatre{position:fixed;inset:0;z-index:100;pointer-events:none;visibility:hidden;display:flex;overflow:hidden}.theatre>div{width:50%;height:100%;background:repeating-linear-gradient(90deg,#260916 0,#73162e 6%,#3d0b20 12%,#8c253e 17%,#260a1c 23%);box-shadow:inset 0 -18px 0 #9b7545;border-bottom:4px double #d1aa67}.theatre.sweep{visibility:visible}.theatre.sweep>div:first-child{animation:part-left .7s cubic-bezier(.4,0,.3,1) both}.theatre.sweep>div:last-child{animation:part-right .7s cubic-bezier(.4,0,.3,1) both}@keyframes part-left{from{transform:translateX(0)}to{transform:translateX(-105%)}}@keyframes part-right{from{transform:translateX(0)}to{transform:translateX(105%)}}@keyframes flicker{from{transform:scale(.95) rotate(-4deg)}to{transform:scale(1.06) rotate(3deg)}}@media(prefers-reduced-motion:reduce){.theatre{display:none}.candle i{animation:none}}
