/* Six new experiences, using the host site's palette and typography. */
html #lm-app{box-sizing:border-box;width:100%;max-width:1120px;min-height:0;margin:28px auto;padding:clamp(16px,4vw,42px);border:1px solid var(--px-line,#383247);border-radius:24px;color:var(--px-text,#f4ecdf);background:var(--px-bg,#111426);font:400 16px/1.65 var(--px-body,system-ui,sans-serif);overflow-wrap:anywhere}
html #lm-app *{box-sizing:border-box}html #lm-app [hidden]{display:none!important}html #lm-app :is(h1,h2,p,figure,dl,dd){margin:0}html #lm-app :is(h2,p,button){scroll-margin-top:110px}
html #lm-app h1{font:500 clamp(32px,4.4vw,56px)/1.12 var(--px-heading,Georgia,serif);letter-spacing:-.025em;text-align:left;color:var(--px-text,#f4ecdf);margin:16px 0}
html #lm-app h2{font:500 clamp(23px,2.8vw,32px)/1.3 var(--px-heading,Georgia,serif);text-align:left;color:var(--px-text,#f4ecdf);margin-bottom:12px}
html #lm-app p{text-align:left}html #lm-app .lm-eyebrow{font-size:11px;line-height:1.6;letter-spacing:.13em;text-transform:uppercase;font-weight:650;color:var(--px-accent,#e1bc72)}
html #lm-app .lm-hero{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(22px,4vw,42px);align-items:center;margin-bottom:30px}html #lm-app .lm-hero>div{min-width:0}html #lm-app .lm-intro{font-size:17px;line-height:1.7;color:var(--px-muted,#c5bac9);max-width:35ch}
html #lm-app .lm-hero figure{border:1px solid var(--px-line,#383247);border-radius:80px 18px 18px 18px;overflow:hidden;min-width:0}html #lm-app .lm-hero img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}html #lm-app .lm-ornament{display:flex;gap:14px;align-items:center;color:var(--px-accent,#e1bc72);margin-top:20px}html #lm-app .lm-ornament:after{content:'';height:1px;width:90px;background:currentColor;opacity:.35}
html #lm-app .lm-panel{width:100%;padding:clamp(18px,3vw,30px);border:1px solid var(--px-line,#383247);border-radius:16px;background:var(--px-surface,#181321)}
html #lm-app .lm-hint{font-size:13px;color:var(--px-muted,#c5bac9);line-height:1.6;margin:0 0 12px}html #lm-app .lm-label{display:block;font:600 14px/1.5 var(--px-body,system-ui,sans-serif);color:var(--px-text,#f4ecdf);text-transform:none;letter-spacing:0;margin-bottom:9px}html #lm-app h2 label{font:inherit;color:inherit;text-transform:none;letter-spacing:inherit}
html #lm-app :is(textarea,select){display:block;width:100%;min-width:0;border:1px solid var(--px-line,#383247);border-radius:9px;background:var(--px-bg,#111426);color:var(--px-text,#f4ecdf);font:400 16px/1.6 var(--px-body,system-ui,sans-serif);padding:12px;resize:vertical;box-shadow:none}html #lm-app textarea::placeholder{color:var(--px-muted,#c5bac9);opacity:.8}html #lm-app #lm-dream{min-height:154px}html #lm-app #lm-context{min-height:86px}html #lm-app select{height:auto;min-height:48px}
html #lm-app .lm-count{text-align:right;font-size:11px;color:var(--px-muted,#c5bac9);margin:5px 0 18px}html #lm-app .lm-fields{display:grid;grid-template-columns:1fr 1.5fr;gap:24px;align-items:start}html #lm-app .lm-fields>div{min-width:0}
html #lm-app button{display:inline-flex;gap:12px;align-items:center;justify-content:center;max-width:100%;min-height:48px;padding:12px 20px;border:1px solid var(--px-line,#383247);border-radius:9px;color:var(--px-text,#f4ecdf);background:transparent;font:600 15px/1.5 var(--px-body,system-ui,sans-serif);text-align:center;white-space:normal;cursor:pointer}html #lm-app button.lm-primary{background:var(--px-accent,#e1bc72);color:#19151d;border-color:var(--px-accent,#e1bc72)}html #lm-app button:hover{filter:brightness(1.08)}html #lm-app button:disabled{opacity:.6;cursor:wait}html #lm-app :is(button,textarea,select,summary):focus-visible{outline:2px solid var(--px-accent,#e1bc72);outline-offset:4px}
html #lm-app .lm-validation{border-left:3px solid var(--px-accent,#e1bc72);padding:8px 12px;margin:0 0 16px;color:var(--px-text,#f4ecdf)}html #lm-app [aria-invalid=true]{outline:2px solid var(--px-accent,#e1bc72)}
html #lm-app .lm-method{border-top:1px solid var(--px-line,#383247);padding-top:16px;margin-top:22px}html #lm-app summary{font:600 14px/1.6 var(--px-body,system-ui,sans-serif);color:var(--px-accent,#e1bc72);padding:6px 0;cursor:pointer}html #lm-app details p{font-size:14px;color:var(--px-muted,#c5bac9);margin-top:10px}
html #lm-app .lm-wait{padding:46px 24px;text-align:center}html #lm-app .lm-wait :is(h2,p){text-align:center}html #lm-app .lm-moon{font:500 70px/1 Georgia,serif;color:var(--px-accent,#e1bc72);margin-bottom:22px;animation:lm-glow 2.8s ease-in-out infinite alternate}@keyframes lm-glow{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(-3px)}}
html #lm-app .lm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}html #lm-app #lm-error-text{white-space:pre-line}
html #lm-app.lm-has-result .lm-hero{display:none}html #lm-app .lm-result-header{display:flex;align-items:center;gap:24px;margin-bottom:26px}html #lm-app .lm-result-header img{display:block;flex:0 0 160px;width:160px;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px}html #lm-app .lm-result-header h2{margin:8px 0 0}html #lm-app .lm-answer p{font-size:clamp(16px,1.5vw,18px);line-height:1.85;color:var(--px-text,#f4ecdf);text-align:left;max-width:76ch}html #lm-app .lm-answer p+p{margin-top:1.2em}html #lm-app .lm-note{font-size:12px;color:var(--px-muted,#c5bac9);margin:14px 0 24px}
html #lm-app .lm-original{border-top:1px solid var(--px-line,#383247);padding-top:14px;margin-bottom:14px}html #lm-app .lm-original dl{margin:12px 0 20px}html #lm-app dt{font-weight:600;font-size:13px;color:var(--px-accent,#e1bc72);margin-top:14px}html #lm-app dd{font-size:14px;white-space:pre-wrap;color:var(--px-muted,#c5bac9)}html #lm-app .lm-privacy{max-width:74ch;margin-bottom:20px}
@media(max-width:640px){html #lm-app{margin:16px auto}html #lm-app .lm-hero{grid-template-columns:1fr;gap:20px}html #lm-app .lm-hero figure{max-height:240px;border-radius:38px 12px 12px 12px}html #lm-app .lm-hero img{max-height:240px}html #lm-app .lm-intro{max-width:none}html #lm-app .lm-ornament{display:none}html #lm-app .lm-fields{grid-template-columns:1fr;gap:18px}html #lm-app .lm-result-header{align-items:center;gap:14px}html #lm-app .lm-result-header img{flex-basis:80px;width:80px}html #lm-app .lm-result-header .lm-eyebrow{font-size:10px;letter-spacing:.08em}html #lm-app .lm-result-header h2{font-size:24px}html #lm-app .lm-actions{flex-direction:column}html #lm-app #lm-submit{width:100%}}
@media(prefers-reduced-motion:reduce){html #lm-app .lm-moon{animation:none}}
html #lm-app :is(input,select,textarea){font:400 16px/1.5 var(--px-body,system-ui,sans-serif);color:var(--px-text,#f4ecdf);background:var(--px-bg,#111426);border:1px solid var(--px-line,#383247);border-radius:9px;padding:12px;min-width:0;width:100%;min-height:48px;color-scheme:dark;box-shadow:none}
html #lm-app :is(input[type=checkbox],input[type=radio]){width:19px;height:19px;min-height:0;padding:0;flex-shrink:0;accent-color:var(--px-accent,#e1bc72)}
html #lm-app input:focus-visible{outline:2px solid var(--px-accent,#e1bc72);outline-offset:3px}
html #lm-app :is(label,legend){text-transform:none;letter-spacing:0;font:600 14px/1.5 var(--px-body,system-ui,sans-serif);color:var(--px-text,#f4ecdf)}
html #lm-app label{display:block;margin:0 0 8px}html #lm-app .lm-field{min-width:0;margin-bottom:20px}html #lm-app .lm-check{display:flex;align-items:center;gap:10px;margin:10px 0;font-weight:400;cursor:pointer}
html #lm-app fieldset{min-width:0;border:1px solid var(--px-line,#383247);border-radius:13px;padding:20px;margin:0 0 22px}html #lm-app legend{padding:0 8px;color:var(--px-accent,#e1bc72)}
html #lm-app .lm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}html #lm-app .lm-grid>.lm-field{margin:0}html #lm-app .lm-grid{margin-bottom:20px}
html #lm-app #lm-validation{border-left:3px solid var(--px-accent,#e1bc72);padding:12px;margin-bottom:18px}
html #lm-app :is(h3,h4){font:500 22px/1.35 var(--px-heading,Georgia,serif);margin:0 0 12px;color:var(--px-text,#f4ecdf);text-align:left;letter-spacing:0;text-transform:none}
html #lm-app .lm-answer>.lm-panel{margin:18px 0}html #lm-app .lm-summary-data{padding:14px 0 22px;color:var(--px-muted,#c5bac9);white-space:pre-wrap}
html #lm-app .lm-hint{margin-top:14px}html #lm-app #lm-finish{margin-top:28px}html #lm-app .lm-deck{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:7px;margin:20px 0 26px}html #lm-app .lm-deck button{width:100%;aspect-ratio:2/3;min-height:0;padding:0;border:1px solid #a78047;border-radius:6px;background:radial-gradient(ellipse,#3d2c47 0,#151a30 70%);color:#d4ac65;box-shadow:inset 0 0 0 4px #191a2d,inset 0 0 0 5px #6d5738;font:24px Georgia,serif}html #lm-app .lm-deck button:disabled{cursor:default;opacity:.6}html #lm-app .lm-deck button:disabled:has(span:not(:empty)){filter:brightness(.9)}
html #lm-app .lm-picks{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}html #lm-app .lm-picks span{border:1px solid var(--px-line,#383247);padding:6px 10px;border-radius:20px;font-size:12px;color:var(--px-muted,#c5bac9)}html #lm-app .lm-picks .lm-filled{color:var(--px-accent,#e1bc72);border-color:currentColor}
html #lm-app .lm-five-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:26px 0}html #lm-app .lm-five-cards img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:8px;border:1px solid #a78047}html #lm-app figcaption{text-align:center;margin-top:12px;font-size:13px;line-height:1.4}html #lm-app figcaption strong,html #lm-app figcaption small{display:block}html #lm-app figcaption small{margin-bottom:6px;color:var(--px-accent,#e1bc72)}
html #lm-app .lm-catalogue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:20px}html #lm-app .lm-catalogue-grid img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:8px;margin-bottom:12px}html #lm-app .lm-catalogue-grid h3{font-size:19px}html #lm-app .lm-catalogue-grid p{font-size:14px}
html #lm-app .lm-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:center}html #lm-app .lm-editor .lm-field{margin-bottom:0}html #lm-app .lm-editor input[type=range]{padding:0;accent-color:var(--px-accent,#e1bc72)}html #lm-app #lm-controls{margin-bottom:24px}html #lm-app #lm-download{margin-top:14px}
html #lm-app :is(.lm-sigil,.lm-square){display:block;width:100%;max-width:520px;height:auto;max-height:none;margin:20px auto;border:1px solid #a78047;border-radius:16px;box-shadow:0 14px 36px #0002}html #lm-app .lm-square{max-width:560px}html #lm-app .lm-answer .lm-sum-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:24px 0 14px}html #lm-app .lm-sum-controls button{font-size:12px;min-height:42px;padding:8px 12px}html #lm-app .lm-sum-controls button[aria-pressed=true]{background:var(--px-accent,#e1bc72);color:#17131b}html #lm-app .lm-equation{text-align:center;font-variant-numeric:tabular-nums;border:1px solid var(--px-line,#383247);padding:16px;border-radius:10px;margin-bottom:24px}
html #lm-app .lm-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}html #lm-app .lm-folded{max-width:440px;margin:36px auto;padding:36px 26px;text-align:center;background:#f3ead8;border:1px solid #b8945b;border-radius:5px;box-shadow:0 12px 30px #0003,inset 0 -20px 0 #e7dbc7}html #lm-app .lm-folded p{text-align:center;color:#513b24;margin:20px 0}html #lm-app .lm-paper-seal{width:64px;height:64px;margin:0 auto;background:#8a3533;color:#e7c78b;border-radius:50%;font-size:36px;line-height:64px}
html #lm-app .lm-paper{position:relative;max-width:660px;margin:0 auto 26px;background:linear-gradient(#fbf5e7,#f0e3cc);padding:clamp(24px,5vw,48px);border:1px solid #b8945b;border-top:8px solid #943d38;color:#493722;box-shadow:0 12px 30px #0002}html #lm-app .lm-paper :is(p,h3,h4){color:#493722}html #lm-app .lm-paper .lm-eyebrow{color:#915f26}html #lm-app .lm-paper .lm-paper-grade{font:500 clamp(28px,4vw,40px)/1.3 var(--px-heading,Georgia,serif);margin:20px 0 12px;color:#883c32}html #lm-app .lm-paper h3{font-size:22px}html #lm-app .lm-paper-areas{border-top:1px solid #c9b28b;margin-top:28px;padding-top:24px}html #lm-app .lm-paper-areas section+section{margin-top:24px}html #lm-app .lm-paper-areas h4{font-size:18px;color:#8a512b;margin:0 0 6px}
html #lm-app .lm-rolls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px auto;max-width:550px}html #lm-app .lm-rolls>div{text-align:center}html #lm-app .lm-die{display:flex;align-items:center;justify-content:center;height:168px;font-size:44px;color:var(--px-accent,#e1bc72)}html #lm-app .lm-die-svg{display:block;width:120px;height:142px;max-width:100%;flex-shrink:0}html #lm-app .lm-result-dice{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0;color:var(--px-accent,#e1bc72)}html #lm-app .lm-rolling{animation:lm-roll .2s linear infinite}@keyframes lm-roll{50%{transform:rotate(12deg) scale(.95)}}
html #lm-app .lm-progress{color:var(--px-accent,#e1bc72);font-size:18px;font-variant-numeric:tabular-nums;margin:18px 0}html #lm-app .lm-test-group{margin:28px 0 18px}html #lm-app .lm-question .lm-check{padding:10px;border:1px solid var(--px-line,#383247);border-radius:8px;align-items:flex-start;line-height:1.55}html #lm-app .lm-question .lm-check:has(input:checked){border-color:var(--px-accent,#e1bc72);background:var(--px-bg,#111426)}html #lm-app .lm-question input{margin-top:2px}html #lm-app .lm-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}html #lm-app .lm-scores{display:grid;gap:18px;margin:24px 0 28px}html #lm-app .lm-scores>div>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.5}html #lm-app .lm-track{height:8px;border-radius:8px;background:var(--px-line,#383247);margin-top:8px;overflow:hidden}html #lm-app .lm-track span{height:100%;display:block;background:var(--px-accent,#e1bc72);border-radius:8px}
@media(max-width:760px){html #lm-app .lm-deck{grid-template-columns:repeat(9,minmax(0,1fr))}html #lm-app .lm-profile-grid{grid-template-columns:1fr}html #lm-app .lm-editor{grid-template-columns:1fr 1fr}html #lm-app .lm-catalogue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:500px){html #lm-app .lm-deck{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}html #lm-app .lm-deck button{font-size:18px}html #lm-app .lm-five-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}html #lm-app .lm-five-cards figure:last-child{grid-column:1/-1;width:calc(50% - 7px);justify-self:center}html #lm-app .lm-editor{grid-template-columns:1fr}html #lm-app .lm-catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}html #lm-app .lm-rolls{gap:10px}html #lm-app .lm-rolls button{font-size:13px;padding:10px}html #lm-app .lm-area-grid{grid-template-columns:1fr}html #lm-app .lm-result-dice{gap:10px}}
@media(prefers-reduced-motion:reduce){html #lm-app .lm-rolling{animation:none}}
