*{box-sizing:border-box}html{background:#dcd8cd;color:#192a36;font:16px/1.5 system-ui,sans-serif}body{margin:0}.folio{width:min(100%,480px);margin:auto;min-height:100svh;background:#f8f5ec;box-shadow:0 0 80px #37372520}header{display:flex;align-items:center;justify-content:space-between;padding:5px 20px;background:#182839;color:#faefd7;position:sticky;top:0;z-index:3;border-bottom:1px solid #a89160}button,select,input,textarea,summary{font:inherit}button,summary,select{cursor:pointer}button{color:inherit;min-height:44px}.folio button{touch-action:manipulation}header button,.plain{background:none;border:0}#brand{font:600 15px Georgia;letter-spacing:.17em}#brand span{font-size:24px;color:#e7c787;vertical-align:middle}#home{font-size:14px}main{padding:22px clamp(16px,5vw,26px) 34px;outline:none}h1,h2,h3,.display{font-family:Georgia,'Times New Roman',serif;font-weight:normal;line-height:1.13}h1{font-size:36px;margin:8px 0 16px}h2{font-size:26px;margin:22px 0 10px}h3{font-size:21px;margin:8px 0}p{margin:8px 0 14px}.kicker,small{font-size:12px;letter-spacing:.09em;font-weight:650}.kicker{text-transform:uppercase;color:#716141}.hero{background:#1a2b38;color:#fff4de;text-align:center;margin:-22px calc(-1 * clamp(16px,5vw,26px)) 18px;padding:16px 18px 22px;overflow:hidden}.hero .kicker{color:#e9d0a3}.hero h1{font-size:clamp(38px,8vw,47px);margin:7px 0 12px}.fan{height:clamp(152px,27vh,210px);position:relative;margin:10px auto 16px;width:250px}.fan img{height:100%;aspect-ratio:9/16;object-fit:cover;position:absolute;left:50%;border:2px solid #ccaf7b;border-radius:5px;box-shadow:0 5px 15px #0006}.fan img:first-child{transform:translate(-102%,5%) rotate(-13deg)}.fan img:nth-child(2){transform:translate(2%,5%) rotate(13deg)}.fan img:last-child{transform:translateX(-50%)}.hero p:last-child{margin:0;color:#e0dccc;font:italic 17px Georgia}.btn,.row{width:100%;margin:5px 0;padding:12px 16px;border:1px solid #aea58e;background:transparent;border-radius:6px;text-align:center}.primary{background:#203647;color:#fff7e6;border-color:#203647}.row{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px}.row strong{font:22px Georgia}.row small{display:block;color:#625e53;letter-spacing:.02em}.row span:last-child{color:#816e48}.line{border-bottom:1px solid #d6cdb9;padding:8px 0}.note,.action{padding:14px;background:#e9ecdf;border-left:3px solid #7b865e;margin:12px 0}.note{background:#f2e7cb;border-color:#b39452}label{display:block;margin:13px 0 5px;font-weight:600}textarea,input,select{width:100%;color:inherit;border:1px solid #afa995;background:#fffdf6;border-radius:5px;padding:10px;min-height:44px}textarea{resize:vertical}.plain{text-decoration:underline;text-underline-offset:3px;padding:8px}.split{display:flex;gap:8px;align-items:center;justify-content:space-between}.split>*{min-width:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0;touch-action:pan-y}.back,.thumb{padding:0;border:0;background:transparent}.back img{width:100%;height:clamp(98px,19svh,154px);object-fit:fill;border-radius:5px;display:block}.back:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b37626;outline-offset:2px}.back:disabled{opacity:.5}.largecard{width:min(61%,200px);margin:12px auto;display:block}.largecard img,.thumb img,#large img{display:block;width:100%;aspect-ratio:9/16;border-radius:5px;object-fit:cover}.spread{display:flex;gap:8px;justify-content:center}.spread .thumb{flex:1;max-width:110px;font:15px Georgia}.spread .thumb img{margin-bottom:6px}.reveal{animation:turn .35s ease-out}@keyframes turn{from{transform:perspective(500px) rotateY(60deg);opacity:.3}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}details{border-bottom:1px solid #d3cbb9;padding:4px 0}summary{padding:12px 0;min-height:44px;font-weight:600}dialog{width:min(92vw,440px);max-height:95dvh;border:0;border-radius:8px;padding:12px;background:#f8f5ec}dialog::backdrop{background:#101a27de}dialog form{text-align:right}dialog button{background:none;border:0}#large img{width:auto;max-width:100%;height:min(62svh,550px);margin:auto}#large{text-align:center}.muted{color:#595c56;font-size:14px}.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.gallery button{font:18px Georgia}.gallery img{margin-bottom:8px}.question{white-space:pre-wrap;overflow-wrap:anywhere;font:italic 19px/1.4 Georgia}main,dialog{overflow-wrap:anywhere}ol{padding-left:23px}#warning:not(:empty){padding:10px;background:#f4dfaa}.pager button{border:0;background:transparent;text-decoration:underline}.pager button:disabled{color:#807e75;text-decoration:none}

#waite{padding:0;width:min(94vw,460px);color:#192a36;overscroll-behavior:contain}
.waite-page{padding:clamp(16px,5vw,26px);border-top:4px solid #a89160}
.waite-page form button,.waite-page a{color:#334c5d;text-decoration:underline;text-underline-offset:3px}
.waite-page form button{padding:8px 4px}
.waite-page h1{font-size:clamp(29px,7.8vw,37px);margin:0 0 16px}
.waite-page h2{font-size:24px}
.waite-page ul{padding-left:20px}
.waite-page li+li{margin-top:8px}
.waite-link{font-size:15px;text-align:left}
.waite-link:focus-visible,.waite-page a:focus-visible,.waite-page button:focus-visible{outline:3px solid #89611c;outline-offset:2px}
html,body{height:100%;margin:0;overflow:hidden}.folio{width:min(100%,max(480px,56.25dvh));height:100dvh;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden}header{position:relative;flex:none;padding:env(safe-area-inset-top) 12px 0;min-height:44px}main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:clamp(10px,2.8dvh,20px) 16px max(10px,env(safe-area-inset-bottom));gap:4px}main h1{font-size:clamp(24px,4.6dvh,35px);margin:4px 0 10px}main h2{margin:6px 0}main label{margin:3px 0}main p{margin:4px 0 8px}.row small{font-size:13px}.row b{color:#735c33}.row{flex:0 1 auto}.btn{margin:3px 0}.landing,.painting{position:absolute;inset:0;background:#182839;color:#fff8e6}.landing>img,.painting>img{width:100%;height:100%;object-fit:cover}.landing-copy,.caption{position:absolute;bottom:0;left:0;right:0;padding:60px 20px max(12px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#111f2aed 28%,#111f2a 100%);text-align:center}.landing-copy h1{font-size:clamp(32px,7dvh,56px)}.landing-copy .kicker,.caption .kicker{color:#ebd6a5}.gold{background:#ead6a8;color:#202c35;border-color:#e1cdb1}.glass{background:#182839b8;color:#fff4df;border:1px solid #a49675;border-radius:6px}.pair{display:flex;gap:8px;margin:5px 0}.pair>*{flex:1}.folio:has(main[data-view="reveal"]) header,.folio:has(main[data-view="home"]) header{position:absolute;top:0;width:100%;background:linear-gradient(#122332dc,transparent);border:0}.folio:has(main[data-view="home"]) #home{visibility:hidden}
.table{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));align-content:center;align-items:center;gap:clamp(4px,1.8vw,10px);margin:4px 0}.grid.table{flex:0 1 min(53dvh,430px);padding:0;margin:auto 0}.table .back,.table .taken,.gallery .thumb{min-width:0;min-height:0;max-height:100%;width:100%}.table .back img,.table .taken img,.gallery .thumb img{display:block;width:100%;height:auto;max-height:22dvh;aspect-ratio:9/16;object-fit:contain}.taken{opacity:.6}.place{font-size:17px}.gallery .thumb{font-size:14px}.gallery.table{flex:0 1 min(64dvh,500px);margin:auto 0}.art-hit{position:absolute;inset:9% 0 35%;color:transparent;background:transparent;border:0}.art-hit:focus-visible{color:white}.caption{padding-top:70px}.caption .plain,.landing-copy .plain{color:white}#zoom{position:fixed;inset:0;margin:auto;border:0;padding:0;width:min(100vw,max(480px,56.25dvh));max-width:100%;height:100dvh;max-height:100dvh;background:#132432;overflow:hidden}#zoom form{position:absolute;top:env(safe-area-inset-top);right:5px;z-index:1}#zoom form button,#large b{background:#172531e8;color:white;padding:8px 14px;border-radius:5px}#large,#large img{width:100%;height:100%;max-width:none;margin:0;object-fit:contain;border-radius:0}#large b{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap}
#paper{flex:1;min-height:0;column-count:1;column-gap:0;column-fill:auto;overflow:hidden;font-size:clamp(16px,2.65dvh,19px);line-height:1.47;overflow-wrap:anywhere;padding:0;margin:10px 0 0}#paper p{white-space:pre-wrap;margin:0 0 .8em}#paper h3{margin:0 0 .4em}#paper .mini{display:block;background:none;border:0;padding:0;width:60px;margin:0 0 7px}#paper .mini img{width:100%;display:block}.foot{flex:none;border-top:1px solid #d1c8b5}.excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.archive{padding:16px 0}textarea{resize:none}main ol li{margin:5px 0}#warning:not(:empty){z-index:4;font-size:12px}#chapter{flex:none} @media(max-height:590px){main{gap:1px;padding:6px 12px}main .row{padding:7px 10px}main .muted{font-size:13px}main h1{margin-bottom:3px}.landing-copy h1{line-height:.98}.caption .btn{padding:8px}.landing-copy,.caption{padding-bottom:4px}.btn{padding:8px}.row small{font-size:12px}main ol{margin:3px 0}}
.card-wall{position:absolute;inset:0;overflow:hidden;background:#152938;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);gap:5px;pointer-events:none}.card-wall img{width:100%;height:100%;object-fit:cover;opacity:.61}.mix-panel,.shuffle-scene{position:relative;z-index:1}.mix-panel{margin:auto 0 max(4dvh,12px);padding:17px 20px 10px;background:#fcf6e8f5;border-radius:9px;box-shadow:0 8px 32px #10182455}.mix-panel .plain{width:100%}.shuffle-scene{margin:auto;text-align:center;color:#fff9e9}.shuffle-scene p{display:inline-block;margin:22px 0 0;padding:8px 18px;border-radius:20px;background:#172736ed}.moving-deck{position:relative;width:min(25vw,120px);aspect-ratio:9/16;margin:auto}.moving-deck i{position:absolute;inset:0;transform:translate(calc(var(--index)*.8px),calc(var(--index)*-.9px));animation:shuffle-cards .76s ease-in-out both;animation-delay:calc(var(--index)*22ms)}.moving-deck img{display:block;width:100%;height:100%;border-radius:5px;box-shadow:0 2px 6px #0008}@keyframes shuffle-cards{34%{transform:translate(calc(var(--side)*70%),-7%) rotate(calc(var(--side)*14deg))}67%{transform:translate(calc(var(--side)*-28%),2%) rotate(calc(var(--side)*-8deg))}}
.solo-art{position:absolute;inset:0;background:#172736}.solo-art img{width:100%;height:100%;object-fit:cover}.solo-open{position:relative;align-self:center;margin-top:auto;margin-bottom:6px;min-height:44px;color:white;border:1px solid #cfbd93;background:#172736db;border-radius:24px;padding:6px 16px}.solo-panel{position:relative;display:flex;flex-direction:column;height:clamp(210px,42dvh,420px);max-height:58%;min-height:0;background:#fff8eaf2;border:1px solid #d2bf99;border-radius:10px;padding:9px 12px 0;box-shadow:0 6px 30px #12202c55}.solo-title{font:normal clamp(20px,3.7dvh,29px) Georgia;line-height:1.1}.solo-panel label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.solo-panel select{margin-top:5px}.solo-panel #paper{margin-top:6px}.folio:has(.solo-art) header,.folio:has(.card-wall) header{position:absolute;top:0;width:100%;background:linear-gradient(#112333ed,#11233375);border:0}.folio:has(.card-wall) #app{padding-top:calc(48px + env(safe-area-inset-top))}
@media(prefers-reduced-motion:reduce){.moving-deck i{animation:none}}


/* Table de tirage et lecture */
.folio:has(main[data-view="draw"],.reading-cards){background:linear-gradient(165deg,#223347,#142332 76%);color:#eee4d0}
.folio:has(main[data-view="draw"],.reading-cards) header{background:transparent;border-bottom-color:#b79d6650}
main[data-view="draw"],main:has(.reading-cards){padding-inline:clamp(12px,4vw,23px)}
main[data-view="draw"] .kicker,main:has(.reading-cards) .kicker{color:#ddc99d}
main[data-view="draw"] .place{color:#e5d7b8;padding-bottom:10px;border-bottom:1px solid #b79d6650}
main[data-view="draw"] .grid.table{gap:9px}
.table .back img,.table .taken img{border-radius:6px;filter:drop-shadow(0 4px 5px #0a142175)}
.table .back:active{transform:translateY(2px)}
.reading-cards{display:flex;flex:none;align-items:stretch;justify-content:center;gap:clamp(4px,1.6vw,9px);padding:0 0 10px;margin:0 0 3px;border-bottom:1px solid #b79d6650}
.reading-card{flex:1;max-width:110px;min-width:0;padding:0;border:0;display:flex;flex-direction:column;align-items:center;background:none;color:inherit}
.reading-card img{display:block;width:100%;max-height:22dvh;aspect-ratio:9/16;object-fit:contain;border-radius:5px;filter:drop-shadow(0 4px 5px #0a142175)}
.reading-card span{display:block;margin-top:4px;max-width:100%;font-size:clamp(11px,3vw,13px);line-height:1.16}
.current-card img{outline:1px solid #d9bd82;outline-offset:2px}
.current-card span{color:#f2d79d}
main:has(.reading-cards) :is(select,textarea,.btn){background:#263749;color:#f2e8d3;border-color:#a891607a}
main:has(.reading-cards) .foot{border-top-color:#b79d6650}
main:has(.reading-cards) #paper h3{color:#ead3a5}

@media(max-height:590px){
 .reading-card img{max-height:18dvh}
 .reading-cards{padding-bottom:6px}
 main:has(.reading-cards) #paper{margin-top:5px}
}

/* Filigrane du lion et réponse d’ensemble */
.folio:has(.lion-watermark){background:#142337;color:#f0e6d1}
.folio:has(.lion-watermark) header{background:#142337;border-bottom-color:#b79d6650}
.lion-watermark{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:.46;z-index:1}
.lion-watermark img{width:100%;height:100%;object-fit:cover;transform:scale(1.22)}
main> :not(.lion-watermark,.landing,.painting,.solo-art,.card-wall){position:relative;z-index:2}
.landing-copy,.caption,.art-hit{z-index:2}
main:is([data-view="home"],[data-view="reveal"],[data-view="shuffling"]):has(.lion-watermark) .lion-watermark,
main:has(.solo-art,.card-wall) .lion-watermark{opacity:.13}
main[data-view="history"] .archive{border-block:1px solid #b79d6650;padding:18px 0}
main .mix-panel{background:#172941eb;color:#f0e6d1}
main[data-view="bio"] a{color:#ead1a1}
main:has(.lion-watermark):not(:has(.solo-panel)) .foot{border-top-color:#b79d6650}
main:has(.lion-watermark)> .btn:not(.primary){border-color:#c2a57780}
main:has(.lion-watermark):not(:has(.solo-panel)) :is(.kicker,.muted,.row small){color:#e3d2ac}
main:has(.lion-watermark) .row,main:has(.lion-watermark):not(:has(.solo-panel)) :is(textarea,select){background:#172941bd;color:#f6ead3;border-color:#c2a57780}
main:has(.lion-watermark):not(:has(.solo-panel)) textarea::placeholder{color:#d6c7ac}
main:has(.lion-watermark) .row b{color:#dfc18c}
main:has(.lion-watermark) .primary{background:#e8d2a5;color:#233044;border-color:#e8d2a5}
.reading-frame{display:flex;flex:1;min-height:0;min-width:0}
.reading-frame #paper{min-width:0}
.summary-frame{background:#ded0ae;color:#1e2a3a;border:1px solid #b7955d;border-radius:7px;padding:8px 11px;margin:4px 0}
.summary-frame #paper{margin:0}
main:has(.reading-cards) .summary-frame #paper h3{color:#513e24}
.solo-panel{background:#e9dfca;color:#1b2936}
.solo-panel :is(select,textarea){background:#faf4e6;color:#1b2936;border-color:#948467;color-scheme:light}
.solo-panel .foot :is(button,small){color:#1b2936}
.solo-panel .summary-frame{background:#27394d;color:#f4e8cf;border-color:#9c8257}

main:has(.solo-panel) .solo-open{z-index:2}
/* Première réponse après le tirage */
main[data-view="overview"]{gap:6px;padding:8px clamp(12px,4vw,20px) max(9px,env(safe-area-inset-bottom))}
main[data-view="overview"] .reading-cards{padding-bottom:5px;margin:0}
main[data-view="overview"] .reading-card{max-width:76px}
main[data-view="overview"] .reading-card img{max-height:min(12dvh,90px)}
main[data-view="overview"] .reading-card span{font-size:12px}
.direct-sheet{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px;padding:clamp(12px,2dvh,20px) clamp(13px,4vw,20px) 7px;background:#f7f0e2;color:#192c39;border:1px solid #bda579;border-radius:9px;box-shadow:0 6px 24px #101f3144}
main[data-view="overview"] .direct-title{margin:0;color:#182b39;font:normal clamp(24px,3.9dvh,33px)/1.05 Georgia,serif;max-width:22ch}
.direct-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}
.direct-row{padding:7px 0}
.direct-row+.direct-row{border-top:1px solid #d4c6ac}
.direct-row h2{color:#65431e;font:700 15px/1.18 system-ui,sans-serif;margin:0 0 4px}
.direct-row p,.direct-route{margin:0;font-size:clamp(16px,2.4dvh,18px);line-height:1.34}
.direct-route+.direct-route{margin-top:6px}
.direct-name{display:block;max-width:100%;min-height:0;border:0;background:transparent;color:#233c4a;font:650 1em/1.3 system-ui,sans-serif;text-align:start;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 0 1px}
.direct-links{display:flex;align-items:center;gap:8px;flex:none;border-top:1px solid #d4c6ac;padding-top:6px}
.direct-links .btn{width:auto;flex:1;margin:0}
main[data-view="overview"] .direct-links .primary{background:#263e4e;color:#fff5df;border-color:#263e4e;padding:7px 10px}
.direct-links .plain{color:#314653;font-size:14px}
.direct-card-title{color:#67522c;font-weight:650;font-size:14px;line-height:1.12}
main[data-view="overview"]:has(.solo-art) .direct-sheet{flex:0 1 auto;max-height:72%;margin-top:0}
main[data-view="overview"]:has(.solo-art) .direct-body{flex:0 1 auto}
main[data-view="overview"] .solo-open{flex:none}
.direct-sheet.compact{padding:8px 11px 5px;gap:4px}
main[data-view="overview"] .compact .direct-title{font-size:23px;line-height:1.02}
.compact .direct-row{padding:4px 0}
.compact .direct-row h2{font-size:14px;margin-bottom:2px}
.compact .direct-row p,.compact .direct-route{font-size:15px;line-height:1.23}
.compact .direct-route+.direct-route{margin-top:3px}
#choice-options{color:#192c39;max-height:85dvh;overflow:auto}
#choice-options h2{margin:0 0 12px}
#choice-options li{padding:6px 0;overflow-wrap:anywhere}
/* Mesures de base pour les navigateurs antérieurs aux unités dvh. */
@supports not (height:100dvh){
 .folio{width:min(100%,480px);height:100vh}
 main[data-view="overview"]{padding:8px 14px 10px}
 main[data-view="overview"] .reading-cards,
 main[data-view="overview"] .direct-sheet,
 main[data-view="overview"] .solo-open{position:relative;z-index:2}
 main[data-view="overview"] .reading-card img{max-height:11vh}
 main[data-view="overview"] .direct-title{font-size:26px}
 .direct-sheet{padding:12px 14px 7px}
 .direct-row p,.direct-route{font-size:16px}
 main[data-view="overview"][data-solo="yes"] .direct-sheet{flex:0 1 auto;max-height:72%}
 main[data-view="overview"][data-solo="yes"] .direct-body{flex:0 1 auto}
 main[data-view="overview"][data-solo="yes"] .lion-watermark{opacity:.13}
}
main[data-view="overview"]{position:relative;isolation:isolate;background-color:#142337;color:#f0e6d1}
main[data-view="overview"] .direct-links button{font:600 15px/1.16 system-ui,sans-serif;white-space:nowrap}
main[data-view="overview"] .direct-links .plain{font-weight:500;padding-inline:3px}
@media (max-height:700px){
 main[data-view="overview"]{gap:4px;padding-block:5px}
 main[data-view="overview"] .reading-card{max-width:94px}
 main[data-view="overview"] .reading-card img{max-height:56px}
 main[data-view="overview"] .reading-cards{padding-bottom:3px}
 .direct-links{padding-top:3px}
 .direct-sheet.compact{gap:3px}
 .compact .direct-row{padding:3px 0}
}
.letter-card{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5%;width:100%;height:auto;aspect-ratio:9/16;overflow:hidden;text-align:center;background:#f4ecd9;color:#233b48;border:1px solid #b9a078;border-radius:5px;box-shadow:0 2px 8px #182a3822}
.letter-edge{position:absolute;inset:5%;border:1px solid #b99f778f;border-radius:2px;pointer-events:none}
.letter-family{font:600 clamp(9px,1.6vw,14px)/1.1 system-ui,sans-serif;color:#654621}
.letter-number{font:normal clamp(19px,5vw,38px)/1 Georgia,serif}
.letter-name{font:normal clamp(11px,2.6vw,18px)/1.08 Georgia,serif;padding:0 8%;max-width:100%}
.gallery .letter-card{width:auto;max-width:100%;height:min(19vh,110px);margin:auto auto 4px}
.gallery .letter-name,.reading-card .letter-name,.taken .letter-name{display:none}
.taken .letter-card{width:100%;height:auto;max-height:22vh}
.reading-card .letter-card{width:auto;height:min(12vh,90px);max-width:100%;margin:auto}
.reading-card .letter-family,.taken .letter-family,.gallery .letter-family{display:none}
.reading-card .letter-number{font-size:21px;line-height:1;color:#3b4750}
.reading-card .letter-edge,.reading-card .letter-number{margin:0}
.solo-art>.letter-card,.painting>.letter-card{width:100%;height:100%;padding-bottom:25vh;background:radial-gradient(ellipse at 50% 27%,#f8f2e3,#ddceb0);border-radius:0}
.solo-art>.letter-card .letter-family,.painting>.letter-card .letter-family,#large>.letter-card .letter-family{font-size:17px}
.solo-art>.letter-card .letter-number,.painting>.letter-card .letter-number,#large>.letter-card .letter-number{font-size:64px}
.solo-art>.letter-card .letter-name,.painting>.letter-card .letter-name,#large>.letter-card .letter-name{font-size:26px}
#large>.letter-card{width:100%;height:100%;padding-bottom:10vh;box-sizing:border-box}
#large>.letter-card .letter-edge{inset:8%}
.deck-pager{flex:none;display:flex;justify-content:space-between;align-items:center;gap:4px;font:600 13px/1.13 system-ui,sans-serif}
.deck-pager button{min-width:72px;min-height:44px;padding:4px 8px;border-radius:5px;line-height:1.2}
@media(max-height:700px){main[data-view="overview"] .reading-card .letter-card{height:56px}}

.reader-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.gallery .court-face .letter-number,.taken .court-face .letter-number,.reading-card .court-face .letter-number{font-size:clamp(9px,2.5vw,14px)}
/* Les contrôles ajoutés au jeu complet suivent la table bleu nuit du premier jeu. */
.deck-pager button {
  background: transparent;
  color: #f0e6d1;
  border: 1px solid #c2a57780;
}
.deck-pager button:disabled { color: #b4a995; border-color: #b79d664b; }
.deck-pager span { color: #e3d2ac; }
#app[data-view="setup"] input {
  background: #172941bd;
  color: #f6ead3;
  border-color: #c2a57780;
}
#app[data-view="setup"] input::placeholder { color: #d6c7ac; }
#app[data-view="setup"] select option, #app[data-view="gallery"] select option,
#app[data-view="bio"] select option { background: #172941; color: #f6ead3; }

/* Même palette et même ordre de superposition sur les anciens navigateurs. */
@supports not (height: 100dvh) {
  .folio[data-answer=""] { background: #142337; color: #f0e6d1; }
  .folio[data-answer=""] header { background: #142337; border-bottom-color: #b79d6650; }
  .folio[data-answer=""][data-immersive="yes"] header {
    position: absolute; top: 0; left: 0; width: 100%;
    border: 0; background: linear-gradient(#112333ed,#11233375);
  }
  .folio[data-view="home"] #home { visibility: hidden; }
  .folio[data-answer=""][data-immersive="yes"] .lion-watermark { opacity: .13; }
  #app[data-answer=""] { padding: 14px 16px 10px; }
  #app[data-answer=""] > * { position: relative; z-index: 2; }
  #app[data-answer=""] > .lion-watermark { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
  #app[data-answer=""] > .landing, #app[data-answer=""] > .painting,
  #app[data-answer=""] > .solo-art, #app[data-answer=""] > .card-wall {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
  }
  #app[data-view="reveal"] .art-hit { top: 9%; right: 0; bottom: 35%; left: 0; }
  #app[data-view="shuffling"] .moving-deck i { top: 0; right: 0; bottom: 0; left: 0; }
  #app[data-answer=""] .kicker, #app[data-answer=""] .muted,
  #app[data-answer=""] .row small { color: #e3d2ac; }
  #app[data-answer=""] .row, #app[data-answer=""] textarea,
  #app[data-answer=""] select { background: #172941bd; color: #f6ead3; border-color: #c2a57780; }
  #app[data-answer=""] textarea::placeholder { color: #d6c7ac; }
  #app[data-answer=""] .row b { color: #dfc18c; }
  #app[data-answer=""] .primary { background: #e8d2a5; color: #233044; border-color: #e8d2a5; }
  #app[data-answer=""] .solo-panel textarea, #app[data-answer=""] .solo-panel select {
    background: #faf4e6; color: #1b2936; border-color: #948467;
  }
  #app[data-view="draw"] .place { color: #e5d7b8; }
  #app[data-view="draw"] .grid.table, #app[data-view="gallery"] .gallery.table {
    flex: 1 1 auto; margin: 4px 0;
  }
  #app[data-view="draw"] .table .back img, #app[data-view="draw"] .table .taken img,
  #app[data-view="gallery"] .gallery .thumb img { max-height: 21vh; }
  #app[data-answer=""] .mix-panel { margin: auto 0 max(4vh,12px); }
  #app[data-answer=""] .moving-deck { height: min(44.4vw,213.33px); }
}
/* La feuille de synthèse est définie dans le thème d’origine. */
.folio[data-answer="detail"],
#choice-options {
  --tarot-paper: #f7f0e2;
  --tarot-ink: #192c39;
  --tarot-blue: #263e4e;
  --tarot-ochre: #69471f;
  --tarot-rule: #d4c6ac;
  --tarot-edge: #bda579;
  --tarot-serif: Georgia, "Times New Roman", serif;
  --tarot-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Le détail à plusieurs cartes a un en-tête papier. Celui à une carte se superpose à l’illustration. */
.folio[data-view="result"][data-answer="detail"],
.folio[data-view="result"][data-answer="detail"] header {
  color: var(--tarot-ink);
  background: var(--tarot-paper);
}
.folio[data-view="result"][data-answer="detail"] header {
  border-bottom: 1px solid var(--tarot-rule);
}
.folio[data-answer="detail"] header #brand span { color: var(--tarot-ochre); }
.folio[data-answer="detail"] header #home {
  color: var(--tarot-blue);
  text-decoration: underline;
  text-underline-offset: .19em;
}
.folio[data-answer="detail"][data-immersive="yes"] header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  background: linear-gradient(#142536ed, #142536a8 63%, transparent);
  color: #fff7e6;
  border: 0;
}
.folio[data-answer="detail"][data-immersive="yes"] header #home,
.folio[data-answer="detail"][data-immersive="yes"] header #brand span {
  color: #fff2d5;
}

#app[data-view][data-answer="detail"] {
  color: var(--tarot-ink);
  font-family: var(--tarot-sans);
}
.folio[data-immersive="no"] #app[data-answer="detail"] {
  position: relative;
  isolation: isolate;
  background: #192d40;
  padding: 8px clamp(10px,3.5vw,18px) max(8px,env(safe-area-inset-bottom));
}
#app[data-answer="detail"] > .lion-watermark { z-index: 0; }
#app[data-answer="detail"] > .detail-sheet {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(12px,2dvh,20px) clamp(13px,4vw,20px);
  gap: 5px;
  border: 1px solid var(--tarot-edge);
  border-radius: 9px;
  box-shadow: 0 6px 22px #12202c38;
  background: var(--tarot-paper);
  color: var(--tarot-ink);
}
#app[data-answer="detail"] > .solo-panel {
  color: var(--tarot-ink);
  background: var(--tarot-paper);
  border: 1px solid var(--tarot-edge);
  border-radius: 9px;
  box-shadow: 0 6px 22px #12202c45;
  padding-inline: clamp(13px,4vw,20px);
}
#app[data-answer="detail"] .solo-title {
  font-family: var(--tarot-serif);
  font-weight: normal;
  color: var(--tarot-ink);
}
#app[data-view][data-answer="detail"] .kicker {
  color: var(--tarot-ochre);
  font: 650 14px/1.25 var(--tarot-sans);
  text-transform: none;
  letter-spacing: normal;
}
#app[data-view][data-answer="detail"] :is(label, #paper h3) {
  color: var(--tarot-ochre);
  font: 700 15px/1.3 var(--tarot-sans);
}
#app[data-answer="detail"] select {
  font: 400 16px/1.35 var(--tarot-sans);
  color: var(--tarot-ink);
  color-scheme: light;
  background: #fffaf1;
  border: 1px solid #a89b83;
  border-radius: 6px;
}
#app[data-answer="detail"] .plain {
  font: 550 15px/1.25 var(--tarot-sans);
  color: var(--tarot-blue);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}
#app[data-answer="detail"] :is(button,select):focus-visible,
#choice-options button:focus-visible {
  outline: 3px solid #94671e;
  outline-offset: 2px;
}
#app[data-view][data-answer="detail"] button:disabled {
  color: #70695d;
  text-decoration: none;
}
#app[data-answer="detail"] #counter { color: var(--tarot-ochre); }
#app[data-answer="detail"] .reading-cards,
#app[data-answer="detail"] .foot { border-color: var(--tarot-rule); }
#app[data-answer="detail"] > .reading-cards .reading-card > span:not(.letter-card) {
  color: #fff4da;
  font-family: var(--tarot-sans);
  text-shadow: 0 1px 4px #101d2e;
}
#app[data-answer="detail"] > .reading-cards .current-card > span:not(.letter-card) { color: #ffe3a6; }
#app[data-answer="detail"] .current-card img { outline-color: #94671e; }
#app[data-answer="detail"] .summary-frame {
  border: 0;
  border-radius: 0;
  border-block: 1px solid var(--tarot-rule);
  background: transparent;
  color: var(--tarot-ink);
  padding: 8px 0;
}
#app[data-answer="detail"] #paper {
  color: var(--tarot-ink);
  font-family: var(--tarot-sans);
  line-height: 1.42;
}
#app[data-answer="detail"] .solo-panel .foot,
#app[data-answer="detail"] .solo-panel .foot button { color: var(--tarot-blue); }

@media (max-height:590px) {
  .folio[data-immersive="no"] #app[data-answer="detail"] {
    padding: 4px 7px max(4px,env(safe-area-inset-bottom));
  }
  #app[data-answer="detail"] > .detail-sheet {
    padding: 7px 11px;
    gap: 3px;
  }
}

@supports not (height:100dvh) {
  .folio[data-view="result"][data-answer="detail"] {
    background: #f8f5ec;
    color: #192a36;
  }
  .folio[data-answer="detail"][data-immersive="yes"] header #home { color: var(--tarot-blue); }
  #app[data-answer="detail"] #paper { line-height: 1.47; }
  #app[data-answer="detail"] select { border-radius: 5px; }
  #app[data-answer="detail"] > .reading-cards .current-card > span:not(.letter-card) { color: #fff4da; }
  #app[data-view][data-answer="detail"],
  .folio[data-immersive="no"] #app[data-answer="detail"] {
    position: relative;
    isolation: isolate;
    background: #192d40;
    padding: 8px 12px 10px;
  }
  #app[data-answer="detail"] > .detail-sheet {
    padding: 13px 16px;
    gap: normal;
    box-shadow: none;
  }
  #app[data-answer="detail"] > .detail-sheet,
  #app[data-answer="detail"] > .reading-cards,
  #app[data-answer="detail"] > .solo-panel,
  #app[data-answer="detail"] > .solo-open {
    position: relative;
    z-index: 2;
  }
  #app[data-answer="detail"] > .solo-panel { height: 42vh; max-height: 58%; }
  #app[data-answer="detail"] .reading-card img { max-height: 20vh; }
  #app[data-view][data-answer="detail"] .plain { font-weight: 500; }
  #app[data-view][data-answer="detail"] label,
  #app[data-view][data-answer="detail"] #paper h3 {
    color: var(--tarot-ochre);
    font: 700 15px/1.3 var(--tarot-sans);
  }
}

/* Ce dialogue est ouvert uniquement depuis les voies du résumé. */
#choice-options {
  background: var(--tarot-paper);
  color: var(--tarot-ink);
  border: 1px solid var(--tarot-edge);
  border-radius: 9px;
}
#choice-options h2 { color: var(--tarot-ink); font-family: var(--tarot-serif); }
#choice-options :is(form) button {
  color: var(--tarot-blue);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}
#choice-options :is(ol) li::marker { color: var(--tarot-ochre); font: 700 15px/1.25 var(--tarot-sans); }
/* À côté des peintures, les faces typographiques gardent la proportion 9:16
   même lorsque le navigateur ne sait pas calculer le rapport d’aspect. */
#app .reading-card > .letter-card {
  display: flex;
  width: min(6.75vh, 50.625px);
  height: min(12vh, 90px);
  max-width: 100%;
  margin: 0 auto;
}
#app .gallery .thumb > .letter-card {
  width: min(10.6875vh, 61.875px);
  max-width: 100%;
}
@media (max-height: 700px) {
  #app[data-view="overview"] .reading-card > .letter-card {
    width: 31.5px;
    height: 56px;
  }
}
@media (max-width: 380px) and (max-height: 660px) {
  #app[data-view="overview"] .direct-sheet.compact {
    padding-block: 5px 3px;
    gap: 2px;
  }
  #app[data-view="overview"] .compact .direct-row {
    padding-block: 2px;
  }
}

/* La page reste transparente devant le lion du jeu. */
#app .question-page {
  --question-ink: #fcf3df;
  --question-muted: #d6c9ac;
  --question-gold: #e5ca92;
  --question-edge: #bca37386;
  --question-line: #bca3734f;
  --question-night: #16283d;
  --question-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--question-ink);
  padding: 2px 3px 4px;
}
#app .question-page [hidden] { display: none !important; }
#app .question-page .question-heading {
  flex: none;
  margin: 0;
  padding: 6px 2px 13px;
}
#app .question-page .question-heading .kicker {
  margin: 0 0 6px;
  color: var(--question-gold);
  font: 600 12px/1.3 var(--question-sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
#app .question-page .question-heading h1 {
  margin: 0;
  color: var(--question-ink);
  font: normal clamp(29px, 8vw, 39px)/1.05 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 6px #12202e;
}
#app .question-page[data-step="menu"] .question-heading { padding-top: 13px; }
#app .question-page[data-step="menu"] .question-heading h1 {
  font-size: clamp(33px, 9vw, 44px);
}
#app .question-page .question-menu-block {
  flex: none;
  margin-top: auto;
}
#app .question-page .question-menu {
  flex: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--question-edge);
  border-radius: 9px;
  background: linear-gradient(135deg, #1b3044ee, #112337f7);
  box-shadow: 0 5px 16px #0d192b4a;
}
#app .question-page .question-choice {
  flex: none;
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--question-ink);
  text-align: left;
}
#app .question-page .question-choice + .question-choice {
  border-top: 1px solid var(--question-line);
}
#app .question-page .question-choice-name {
  color: inherit;
  font: normal clamp(19px, 5vw, 22px)/1.2 Georgia, "Times New Roman", serif;
}
#app .question-page .question-arrow {
  flex: none;
  color: var(--question-gold);
  font: normal 24px/1 Georgia, "Times New Roman", serif;
}
#app .question-page .question-panel {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--question-edge);
  border-radius: 9px;
  background: linear-gradient(145deg, #1a2d42ed, #15273bf5);
  box-shadow: 0 5px 16px #0d192b4a;
}
#app .question-page .question-panel > * + * { margin-top: 10px; }
#app .question-page .question-back {
  flex: none;
  align-self: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--question-gold);
  font: 550 14px/1.25 var(--question-sans);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#app .question-page .question-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
#app .question-page .question-suggestion {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 7px 9px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--question-ink);
  background: transparent;
  font: 500 15px/1.33 var(--question-sans);
  text-align: left;
}
#app .question-page .question-suggestion + .question-suggestion {
  border-top-color: var(--question-line);
}
#app .question-page .question-suggestion::before {
  content: "";
  box-sizing: border-box;
  display: block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border: 1px solid #c5b18a;
  border-radius: 50%;
}
#app .question-page .question-suggestion[aria-pressed="true"] {
  background: #d8bd8320;
  border-color: #dabe87;
  color: #fff4d8;
}
#app .question-page .question-suggestion[aria-pressed="true"]::before {
  background: var(--question-gold);
  border-color: var(--question-gold);
}
#app .question-page textarea#q {
  display: block;
  width: 100%;
  min-height: 90px;
  max-height: 160px;
  margin-bottom: 0;
  padding: 11px 12px;
  border: 1px solid var(--question-edge);
  border-radius: 6px;
  background: #0f2031e8;
  color: var(--question-ink);
  caret-color: var(--question-gold);
  font: 400 16px/1.4 var(--question-sans);
}
#app .question-page textarea#q::placeholder { color: #d0c5b2; opacity: 1; }
#app .question-page .question-panel > p,
#app .question-page .question-panel > label {
  color: var(--question-muted);
  font: 450 15px/1.4 var(--question-sans);
}
#app .question-page .question-panel > p { margin-bottom: 0; }
#app .question-page .question-theme {
  border: 0;
  padding: 0;
  color: var(--question-muted);
}
#app .question-page .question-theme > summary {
  display: list-item;
  min-height: 44px;
  padding: 11px 2px;
  cursor: pointer;
  color: var(--question-gold);
  font: 550 14px/1.4 var(--question-sans);
}
#app .question-page .question-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#app .question-page .question-themes button {
  flex: 1 1 auto;
  min-width: 60px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid var(--question-line);
  border-radius: 5px;
  background: #15273a;
  color: var(--question-ink);
  font: 550 14px/1.25 var(--question-sans);
}
#app .question-page .question-themes button[aria-pressed="true"] {
  color: #16283b;
  background: #e7cea0;
  border-color: #e7cea0;
}
#app .question-page .question-menu-block > .question-theme {
  padding: 0 8px;
  margin: 2px 0 0;
}
#app .question-page .question-menu-block .question-theme > summary {
  padding: 12px 0 8px;
  color: var(--question-muted);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 3px #101e2a;
}
#app .question-page .question-menu-block .question-themes {
  gap: 5px;
  padding-bottom: 1px;
}
#app .question-page .question-menu-block .question-themes button {
  flex: 0 1 auto;
  min-width: 67px;
  background: #122437d9;
  color: var(--question-muted);
  font: 500 13px/1.25 var(--question-sans);
}
#app .question-page .question-menu-block .question-themes button[aria-pressed="true"] {
  color: var(--question-gold);
  background: #24354a;
  border-color: #c5aa77;
}
#app .question-page .question-next {
  flex: none;
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ead6ab;
  border-radius: 6px;
  background: #e9d2a5;
  color: #1d2e40;
  font: 650 16px/1.3 var(--question-sans);
  text-align: center;
}
#app .question-page .question-next:disabled {
  background: #334153;
  border-color: #787665;
  color: #d0c7b6;
}
#app .question-page[data-step="write"] .question-panel {
  margin-top: auto;
}
#app .question-page button:focus-visible,
#app .question-page textarea:focus-visible,
#app .question-page summary:focus-visible {
  outline: 2px solid #f5d48d;
  outline-offset: -2px;
}
#app .question-page .question-choice:active,
#app .question-page .question-suggestion:active {
  background: #dac38d26;
}
@media (max-height: 620px) {
  #app .question-page .question-heading { padding: 1px 2px 7px; }
  #app .question-page[data-step="menu"] .question-heading { padding-top: 5px; }
  #app .question-page .question-panel { padding: 9px 11px; }
  #app .question-page .question-panel > * + * { margin-top: 6px; }
  #app .question-page .question-choice { min-height: 52px; }
}
@media (forced-colors: active) {
  #app .question-page .question-suggestion[aria-pressed="true"],
  #app .question-page .question-themes button[aria-pressed="true"] { border: 2px solid Highlight; }
  #app .question-page .question-suggestion[aria-pressed="true"]::before { background: Highlight; }
}

#app .question-page .question-edit {
  align-self: flex-start; min-height: 44px; padding: 4px 8px; border: 0;
  background: transparent; color: var(--question-gold);
  font: 500 14px/1.2 var(--question-sans); text-decoration: underline; text-underline-offset: 3px;
}

/* The thumbnail keeps its own height even when a browser centers the contents of a button. */
#app[data-view="gallery"] > .gallery.table {
  flex: 1 1 0;
  align-items: center;
  margin: 4px 0;
}
#app[data-view="gallery"] .gallery.table .thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  min-width: 0;
  padding: 0;
  margin: 0;
  text-align: center;
}
#app[data-view="gallery"] .gallery-face {
  display: block;
  width: 100%;
  height: 100px;
  height: min(38vw, 19vh, 160px);
}
#app[data-view="gallery"] .gallery.table .thumb .gallery-face > img,
#app[data-view="gallery"] .gallery.table .thumb .gallery-face > .letter-card {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
#app[data-view="gallery"] .gallery.table .thumb .gallery-face > .letter-card {
  display: flex;
  width: 56px;
  width: min(21.375vw, 10.6875vh, 90px);
}
#app[data-view="gallery"] .gallery-name {
  display: -webkit-box;
  margin-top: 4px;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.2;
}
@media(max-height:520px) {
  #app[data-view="gallery"] .gallery-face { height: 13vh; }
  #app[data-view="gallery"] .gallery.table .thumb .gallery-face > .letter-card { width: 7.3125vh; }
}

/* Keep the forward action in view while longer choices scroll on a small phone. */
#app .question-page[data-step="guide"] { overflow: hidden; }
#app .question-page[data-step="guide"] .question-panel {
  min-height: 0;
  flex: 0 1 auto;
}
#app .question-page[data-step="guide"] .question-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a48c67 transparent;
}
#app .question-page[data-step="guide"] .question-suggestion,
#app .question-page[data-step="guide"] .question-edit { flex: none; }

#app .direct-row .role-line + .role-line { margin-top: .18em; }
#app .direct-row .role-line strong { font-weight: 650; color: #624421; }

#app .guided-factors { padding: 0; border: 0; }
#app .guided-factors > summary { min-height: 26px; padding: 2px 0; display: list-item; cursor: pointer; color: #65431e; }
#app .guided-factors > summary h2 { display: inline; }
#app .guided-factors[open] > summary { margin-bottom: .2em; }
#app .guided-factors > summary:focus-visible { outline: 2px solid #755027; outline-offset: 2px; }
#app .short-guided .guided-factors > summary { min-height: 24px; padding-block: 1px; }
@media (max-width: 370px) {
  #app .direct-sheet[data-guided-mode] .direct-links { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px; }
  #app .direct-sheet[data-guided-mode] .direct-links button { min-width: 0; font-size: 14px; white-space: normal; }
}
/* On a short screen the two named routes themselves describe the situation. */
#app .short-guided[data-guided-mode="deux_chemins"] .direct-row:first-child p,
#app .short-guided[data-guided-mode="deux_chemins"] .direct-row:nth-child(2) > h2 { display: none; }
#app .short-guided[data-guided-mode="deux_chemins"] .direct-row:first-child { padding-bottom: 0; }
#app .short-guided[data-guided-mode="deux_chemins"] .direct-row:nth-child(2) { border-top: 0; padding-top: 0; }

/* Accueil et catalogue des questions. */
#app .catalog-landing {
  max-height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: clamp(28px,8vh,84px) clamp(14px,4vw,24px) max(6px,env(safe-area-inset-bottom));
  background: linear-gradient(0deg,#101d2e 1%,#112238f7 53%,#13253bdd 80%,transparent);
}
#app .catalog-landing h1 { margin: 2px 0 12px; }
#app .category-choices, #app .catalog-list {
  background: #14263be8; border: 1px solid #a99670; border-radius: 9px;
}
#app .category-entry, #app .catalog-question {
  display: flex; min-height: 44px; width: 100%; margin: 0; padding: 9px 13px;
  border: 0; border-radius: 0; background: transparent; color: #fff2d9; text-align: left;
  box-shadow: none; font: 500 16px/1.23 system-ui,sans-serif;
}
#app .category-entry { align-items: center; justify-content: space-between; gap: 8px; }
#app .category-entry b { color: #e5c98c; font: 400 22px/1 Georgia,serif; }
#app .category-entry + .category-entry, #app .catalog-question + .catalog-question { border-top: 1px solid #80755e; }
#app .category-entry:focus-visible, #app .catalog-question:focus-visible { outline: 2px solid #f1ce80; outline-offset: -3px; }
#app .category-entry:active, #app .catalog-question:active { background: #364457; }
#app .category-entry:first-child, #app .catalog-question:first-child { border-radius: 8px 8px 0 0; }
#app .category-entry:last-child, #app .catalog-question:last-child { border-radius: 0 0 8px 8px; }
#app .catalog-landing .home-tools .btn, #app .catalog-landing .home-tools .pair { margin: 4px 0; }
#app .catalog-page {
  display: flex; flex: 1; flex-direction: column; overflow: hidden;
  min-height: 0; min-width: 0; gap: 9px; color: #fff2d9;
}
#app .catalog-intro { flex: none; }
#app .catalog-intro .kicker { color: #e7cb92; }
#app .catalog-intro h1 { max-width: 24ch; margin: 3px 0; font: normal clamp(25px,6.8vw,36px)/1.04 Georgia,serif; color: #fff3dc; }
#app .catalog-list {
  display:block; width:100%; max-height:100%; min-height:0; overflow-y:auto;
  overscroll-behavior:contain; scrollbar-color: #ae9870 #172a3f;
}
#app .catalog-question { flex-direction: column; gap: 4px; padding: 11px 13px; }
#app .catalog-question small { color:#edcf96; font: 500 13px/1.15 system-ui,sans-serif; }
#app .catalog-back, #app .catalog-index-link { align-self:flex-start; color:#f0d49d; font:500 15px/1.2 system-ui,sans-serif; text-align:left; min-height:40px; }
#app .catalog-back { flex:none; }
#app .home-tools .plain { min-height:34px; }
#app .catalog-landing .home-tools .pair button { min-width:0; }
@media (max-height:660px) {
  #app .catalog-landing { padding-top: 22px; }
  #app .catalog-landing h1 { margin: 0 0 8px; font-size: clamp(28px,6vh,35px); }
  #app .catalog-landing .home-tools button { margin-top: 0; margin-bottom: 0; }
  #app .catalog-question { padding: 9px 11px; }
  #app .catalog-page { gap: 6px; }
}

#app[data-view="catalog-categories"] .category-choices { margin-block: 8px; }
#app[data-view="catalog-categories"] .category-entry { min-height: 58px; padding: 14px; }
#app .catalog-reword { font-size: 14px; min-height: 36px; }
#app .mix-panel .catalog-reword { color: inherit; }

#brand{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:8px;min-height:44px}
#brand img{width:32px;height:32px}
.tarot-gate{text-align:center;padding:22px 5px}
.tarot-gate .btn,.tarot-gate .plain{display:block;margin:12px auto;text-decoration:none}
.tarot-gate form button{width:100%}
.tarot-access{display:block;text-align:center;margin:6px 0;color:#fff1d2;font-size:14px}
#warning:not(:empty){padding:8px 16px;background:#ffefcc;color:#3d2841}

.tarot-startup { padding: 20px 4px; }
.folio > header { z-index: 4; }
#brand { margin-right: auto; }
.tarot-install { margin-left: 8px; }
.tarot-install > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: #fff0ce;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}
.folio[data-answer="detail"][data-immersive="no"] .tarot-install > summary { color: var(--tarot-blue); }
.tarot-install > summary::-webkit-details-marker { display: none; }
.tarot-install-panel {
  position: absolute;
  top: 100%;
  right: 8px;
  left: 8px;
  max-height: 76vh;
  max-height: 76dvh;
  overflow: auto;
  padding: 15px 16px;
  border: 1px solid #ad9562;
  border-radius: 8px;
  background: #fbf3e1;
  color: #252039;
  box-shadow: 0 8px 24px #10082b59;
  overscroll-behavior: contain;
}
.tarot-install-panel h2 { margin: 0 0 9px; }
.tarot-install-panel p { font-size: 15px; }
.tarot-install-panel details { border-top: 1px solid #d8caad; }
.tarot-install-panel details > summary { padding: 10px 0; font-weight: 650; }
.tarot-install-panel button { padding: 5px 12px; border-radius: 6px; background: #332453; color: #fff6e4; }
dialog:not([open]) { display: none; }
.tarot-dialog-fallback { position: fixed; z-index: 6; top: 12px; max-width: 92vw; max-height: 90vh; overflow: auto; }
