@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');
:root{--ink:#eef1f5;--muted:#9aa3b3;--bg:#0d1017;--panel:#151a24;--line:#2a3140;--gold:#d9a441;--red:#a92f3e;--paper:#efe7d6;--paper-ink:#302b25;--shadow:0 24px 70px #0008}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(circle at 18% 10%,#252a36 0,#11151e 35%,#090b10 78%);color:var(--ink);font-family:'DM Sans',sans-serif}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.25;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E")}.screen{display:none;min-height:100vh}.screen.active{display:block}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}.primary{border:0;border-radius:10px;background:linear-gradient(135deg,#b33748,#7f1f31);box-shadow:0 10px 28px #861f3140;color:#fff;font-weight:700;padding:15px 22px;transition:.2s transform,.2s filter}.primary:hover{filter:brightness(1.12);transform:translateY(-1px)}.primary:disabled{opacity:.38;cursor:not-allowed;transform:none}.toast{position:fixed;z-index:99;left:50%;top:18px;transform:translate(-50%,-120px);background:#f0e8d7;color:#29251f;border-radius:9px;padding:12px 18px;box-shadow:var(--shadow);transition:.3s;max-width:min(90vw,520px);font-weight:600}.toast.show{transform:translate(-50%,0)}
#home{padding:7vh 6vw;align-items:center;justify-content:center;gap:min(10vw,160px)}#home.active{display:flex}.brand{position:relative}.brand:before{content:"";position:absolute;width:440px;height:440px;border:1px solid #d9a44120;border-radius:50%;left:-160px;top:-100px;box-shadow:0 0 0 42px #d9a44108,0 0 0 100px #d9a44106}.brand-mark{width:74px;height:74px;border:1px solid #d8ac56;border-radius:50%;display:grid;place-items:center;font:700 42px 'Playfair Display';color:var(--gold);margin-bottom:30px}.brand p{letter-spacing:.34em;color:var(--gold);font-size:12px}.brand h1{font:800 clamp(54px,8vw,112px)/.82 'Playfair Display';margin:12px 0;letter-spacing:-.05em}.brand h1 span{color:#a93244}.start-card{position:relative;width:min(100%,410px);padding:34px;background:#151a22dc;border:1px solid #343b48;border-radius:18px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}label{font-size:13px;color:#c5cad4;display:block;margin:0 0 8px}.start-card input,.join-row input{width:100%;background:#0e121a;border:1px solid #323a49;color:#fff;padding:14px 15px;border-radius:9px;outline:none}.start-card input:focus{border-color:var(--gold)}.start-card>.primary{width:100%;margin-top:14px}.separator{display:flex;align-items:center;gap:10px;color:#747d8c;font-size:12px;margin:20px 0}.separator:before,.separator:after{content:"";height:1px;flex:1;background:#303745}.join-row{display:flex;gap:8px}.join-row input{text-transform:uppercase;letter-spacing:.25em}.join-row button,.copy,.icon-btn{border:1px solid #3b4352;background:#202632;border-radius:9px;padding:0 16px}.text-btn{display:block;margin:20px auto 0;background:transparent;border:0;color:#b8bfca;text-decoration:underline;text-underline-offset:4px}
.topbar,.gamebar{height:76px;padding:0 clamp(18px,4vw,60px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#0b0e14df;backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.topbar small,.section-heading small,.gamebar small,.notebook small{display:block;color:var(--muted);font-size:10px;letter-spacing:.2em}.topbar strong{font:700 27px 'Playfair Display';letter-spacing:.18em;color:var(--gold)}.copy{padding:9px 13px;font-size:13px}.lobby-layout{display:grid;grid-template-columns:300px 1fr;gap:34px;padding:34px clamp(18px,4vw,60px) 110px}.panel{background:#121721;border:1px solid var(--line);border-radius:14px;padding:20px;height:max-content}.panel h2{font:700 22px 'Playfair Display';margin:0 0 16px}.panel h2 span{float:right;color:var(--gold)}.player-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-top:1px solid #252c38}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;border:2px solid #fff2;box-shadow:0 0 15px currentColor}.player-row .meta{min-width:0}.player-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-row small{color:var(--muted)}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-heading h2{font:700 34px 'Playfair Display';margin:5px 0}.pulse-label{font-size:12px;color:#e5b861}.pulse-label:before{content:"";display:inline-block;width:7px;height:7px;background:#e5b861;border-radius:50%;margin-right:7px;box-shadow:0 0 0 5px #e5b86118}.characters{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.character{position:relative;border:1px solid #313947;background:linear-gradient(145deg,#1b212c,#11151d);border-radius:12px;padding:16px 12px;text-align:center;min-height:130px;overflow:hidden;transition:.2s}.character:hover:not(:disabled){transform:translateY(-3px);border-color:var(--char)}.character.selected{border-color:var(--char);box-shadow:0 0 0 2px color-mix(in srgb,var(--char) 50%,transparent),0 12px 30px #0005}.character:disabled{filter:grayscale(.7);opacity:.4;cursor:not-allowed}.character .portrait{margin:auto auto 10px;width:58px;height:58px;border-radius:42% 58% 50% 50%;display:grid;place-items:center;font:700 25px 'Playfair Display';background:color-mix(in srgb,var(--char) 22%,#10131a);border:2px solid var(--char);color:var(--char);animation:float 3.4s ease-in-out infinite}.character strong{font-size:14px}.character em{position:absolute;right:7px;top:7px;font-style:normal;font-size:9px;background:#07090d;padding:4px 6px;border-radius:8px}.lobby-footer{position:fixed;left:0;right:0;bottom:0;z-index:5;background:#0b0e14ed;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:16px clamp(18px,4vw,60px)}.lobby-footer p{color:var(--muted);margin-right:auto}
.gamebar{height:66px}.mini-brand{font:700 22px 'Playfair Display'}.mini-brand span{color:var(--gold);margin:0 3px}.turn{text-align:center}.turn strong{display:block;color:var(--gold)}.game-code{display:none!important}.icon-btn{width:38px;height:38px;padding:0}.game-layout{display:grid;grid-template-columns:230px minmax(500px,1fr) 290px;min-height:calc(100vh - 136px)}.players-panel{border-right:1px solid var(--line);padding:18px;background:#0d1118}.players-panel h3,.notes h3,.case-log h3{font:700 14px 'Playfair Display';color:#d0d5de}.players-panel .player-row.active{background:#2b2519;border:1px solid #705a2b;border-radius:8px;padding:8px}.players-panel .player-row.eliminated{opacity:.38;text-decoration:line-through}.case-log{margin-top:25px;border-top:1px solid var(--line);padding-top:10px}.case-log #log{max-height:35vh;overflow:auto}.log-item{font-size:11px;color:#8993a3;border-left:1px solid #3b4350;padding:0 0 10px 10px}.log-item:last-child{color:#d9dee6}.board-wrap{position:relative;padding:25px;background:radial-gradient(circle,#222936,#11161e 65%);overflow:auto}.board{min-height:650px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));grid-template-rows:repeat(3,1fr);gap:12px;padding:18px;border:10px solid #3b2d24;border-radius:5px;box-shadow:inset 0 0 0 2px #76614d,0 22px 50px #0007;background:#171b20}.room{position:relative;border:1px solid #6f604d;background:linear-gradient(145deg,#403b35,#272622);color:#eee2cb;border-radius:3px;padding:14px;min-height:170px;text-align:left;overflow:hidden;transition:.25s}.room:after{content:"";position:absolute;inset:0;opacity:.15;background:repeating-linear-gradient(45deg,transparent 0 16px,#fff 17px 18px)}.room h3{position:relative;z-index:1;font:700 18px 'Playfair Display';margin:0;max-width:80%}.room .tokens{position:absolute;z-index:2;left:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:5px}.token{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;border:2px solid #fff8;box-shadow:0 2px 8px #000;transition:.45s}.room.reachable{border-color:#e7ba60;box-shadow:inset 0 0 25px #dba83e2e}.room.reachable:hover{transform:scale(1.015);cursor:pointer}.room.reachable:before{content:"DÉPLACER";position:absolute;z-index:3;right:7px;top:7px;background:#b38330;color:white;font-size:8px;letter-spacing:.12em;padding:4px}.dice{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(8deg);width:70px;height:70px;background:#f3ebdd;color:#221e19;border-radius:13px;box-shadow:0 12px 30px #0008;display:none;place-items:center;font:800 35px 'Playfair Display';z-index:4}.dice.show{display:grid;animation:roll .65s}.move-hint{position:sticky;left:50%;bottom:8px;width:max-content;transform:translateX(-50%);background:#090c11dd;border:1px solid #3a4351;padding:8px 13px;border-radius:20px;font-size:12px;color:#cdd2dc}.notebook{background:var(--paper);color:var(--paper-ink);padding:20px;border-left:1px solid #b4a58e;box-shadow:inset 10px 0 25px #382e2020}.notebook-title{display:flex;gap:12px;align-items:center;border-bottom:2px solid #a83846;padding-bottom:14px}.notebook-title>span{font-size:30px;color:#9e2b39}.notebook small{color:#776b5e}.hand{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.card{aspect-ratio:.72;border-radius:8px;background:#202632;color:#f5f0e7;padding:10px;box-shadow:0 4px 12px #493f3340;position:relative;overflow:hidden;animation:deal .45s both}.card:before{content:"";position:absolute;inset:4px;border:1px solid #ffffff25;border-radius:5px}.card small{color:#c8a65b}.card strong{position:absolute;left:10px;right:10px;bottom:10px;font:600 13px 'Playfair Display'}.notes{border-top:1px solid #b9aa91;padding-top:5px}.notes textarea{width:100%;min-height:130px;border:0;background:repeating-linear-gradient(#0000 0 27px,#94877555 28px);resize:vertical;line-height:28px;color:#3a332b;outline:0}.action-bar{position:fixed;z-index:8;left:230px;right:290px;bottom:0;min-height:70px;background:#0a0d13ec;border-top:1px solid #303744;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px}.action-bar button{border:1px solid #495160;background:#202631;border-radius:9px;padding:11px 15px}.action-bar .danger{background:#7f2231;border-color:#a94051}.status-copy{color:#aab2bf;margin-right:10px}.danger-link{color:#ef7b88!important}.end-turn{background:#805f25!important;border-color:#b28b43!important}
dialog{width:min(92vw,560px);border:1px solid #464f5e;border-radius:15px;background:#151a23;color:#ecf0f5;padding:30px;box-shadow:var(--shadow)}dialog::backdrop{background:#05070bc9;backdrop-filter:blur(4px)}dialog h2{font:700 30px 'Playfair Display';margin-top:0}dialog .close{position:absolute;right:12px;top:10px;background:none;border:0;font-size:26px;color:#9aa3b1}dialog ol{padding-left:21px;color:#c6ccd5;line-height:1.6}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice-grid label{color:#afb7c4}.choice-grid select{width:100%;padding:12px;background:#0d1118;border:1px solid #3d4655;color:#fff;border-radius:8px}.choice-grid .wide{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.dialog-actions button{padding:11px 15px;border-radius:8px;border:1px solid #444d5b;background:#252c37}.dialog-actions .primary{border:0}.reveal-card{margin:20px auto;width:170px;aspect-ratio:.72;background:#6e2633;border:2px solid #d6ad59;border-radius:12px;display:grid;place-items:center;text-align:center;padding:15px;animation:flip .7s}.winner{text-align:center}.winner .trophy{font-size:65px}.winner h2{color:#e1b04f}.solution{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.solution span{background:#252b35;padding:8px 10px;border-radius:8px}
@keyframes float{50%{transform:translateY(-5px)}}@keyframes roll{0%{transform:translate(-50%,-50%) rotate(0) scale(.5)}60%{transform:translate(-50%,-50%) rotate(390deg) scale(1.15)}100%{transform:translate(-50%,-50%) rotate(368deg) scale(1)}}@keyframes flip{0%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}@keyframes deal{0%{opacity:0;transform:translateY(-20px) rotate(-3deg)}100%{opacity:1;transform:none}}
@media(max-width:1000px){.game-layout{grid-template-columns:180px 1fr}.notebook{grid-column:1/-1;border:0;display:grid;grid-template-columns:180px 1fr 1fr;gap:18px}.hand{margin:0}.action-bar{left:180px;right:0}.board{min-width:650px}.lobby-layout{grid-template-columns:220px 1fr}}
@media(max-width:720px){#home.active{display:block;padding:35px 18px}.brand:before{display:none}.brand h1{font-size:56px}.brand-mark{width:48px;height:48px;font-size:28px;margin-bottom:18px}.start-card{margin-top:35px;padding:22px}.lobby-layout{display:block;padding:20px 14px 120px}.panel{margin-bottom:25px}.characters{grid-template-columns:repeat(3,1fr)}.character{min-height:105px;padding:10px 5px}.character .portrait{width:45px;height:45px}.lobby-footer{display:block}.lobby-footer p{font-size:12px}.lobby-footer button{width:100%}.gamebar{padding:0 10px}.mini-brand,.game-code{display:none}.game-layout{display:block}.players-panel{display:none}.board-wrap{padding:8px 8px 85px}.board{min-width:620px;min-height:560px}.notebook{display:block}.notebook .hand{grid-template-columns:repeat(3,1fr);margin:15px 0}.action-bar{left:0;right:0;overflow-x:auto;justify-content:flex-start}.action-bar button{white-space:nowrap}.characters{gap:7px}.choice-grid{grid-template-columns:1fr}}

/* Portraits humoristiques : une seule planche optimisée, découpée par CSS. */
.topbar-actions{display:flex;align-items:center;gap:9px}.cancel-lobby{border:1px solid #713643;background:#321a21;color:#f1a6b0;border-radius:9px;padding:9px 13px;font-size:13px}.cancel-lobby:hover{background:#54202d;color:#fff}
.mobile-nav{display:none}
.game-actions{display:flex;align-items:center;gap:8px}.quit-game{border:1px solid #63313a;background:#2d171c;color:#efa2ad;border-radius:8px;padding:9px 11px;font-size:12px}.quit-game:hover{background:#56212b;color:#fff}.public-cards{border-top:1px solid #b9aa91;padding:8px 0 14px}.public-cards h3{font:700 14px 'Playfair Display';margin:7px 0}.public-cards>div{display:flex;flex-wrap:wrap;gap:5px}.public-cards span{display:flex;flex-direction:column;background:#d4c7b1;border:1px solid #aa9a80;border-radius:6px;padding:6px 8px;font-size:11px}.public-cards small{font-size:8px;color:#756653}
.sheet-help{font-size:11px;line-height:1.35;color:#766b5e;margin:12px 0}.detective-sheet details{border:1px solid #b5a68e;border-radius:7px;margin-bottom:9px;background:#f5eddd;overflow:hidden}.detective-sheet summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:9px 10px;background:#d8cab4;color:#342e27;font:700 15px 'Playfair Display'}.detective-sheet summary::-webkit-details-marker{display:none}.detective-sheet summary span{font:600 10px 'DM Sans';background:#aa3745;color:#fff;border-radius:10px;padding:2px 7px}.clue-list{display:grid;grid-template-columns:1fr}.clue-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 24px;align-items:center;gap:5px;min-height:34px;padding:4px 7px;border:0;border-bottom:1px solid #cabeaa;background:transparent;color:#393128;text-align:left}.clue-row:last-child{border-bottom:0}.clue-row:hover:not(:disabled){background:#eadfcd}.clue-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clue-source{font-size:7px;letter-spacing:.08em;color:#8f2735}.clue-row b,.custom-check b{font:800 0/1 'DM Sans';color:#a5293a;text-align:center}.clue-row.checked .clue-name,.custom-note.checked span{text-decoration:line-through;text-decoration-thickness:2px;color:#8d8172}.clue-row.checked b,.custom-note.checked b{font-size:25px;transform:rotate(-8deg)}.clue-row.automatic{opacity:.85;cursor:default}.custom-notes{border-top:2px solid #9d2c3b;padding-top:8px;margin-top:14px}.custom-notes h3{font:700 15px 'Playfair Display';margin:5px 0 8px}.add-note-row{display:flex;gap:5px}.add-note-row input{min-width:0;flex:1;border:1px solid #aa9c86;background:#fffaf0;color:#332d25;border-radius:6px;padding:9px;font-size:12px}.add-note-row button{border:0;border-radius:6px;background:#8e2a38;color:#fff;padding:7px 9px;font-size:11px}.custom-note{display:grid;grid-template-columns:1fr 28px;margin-top:5px;border-bottom:1px solid #beaf98}.custom-check{display:grid;grid-template-columns:25px 1fr;align-items:center;border:0;background:transparent;color:#393128;text-align:left;padding:5px 2px}.custom-delete{border:0;background:transparent;color:#9a3441;font-size:20px}.empty-custom{font-size:11px;color:#8b7f70;font-style:italic}.notes{margin-top:13px}
.avatar{width:40px;height:40px;flex:0 0 40px;overflow:hidden}
.avatar-img,.portrait-img,.token-img{display:block;width:100%;height:100%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y);background-repeat:no-repeat}
.character .portrait{width:76px;height:76px;border-radius:50%;overflow:hidden;border-width:3px;box-shadow:0 8px 20px #0008}
.portrait-img{transform:scale(1.07)}
.token{width:38px;height:38px;overflow:hidden}
.token-img{transform:scale(1.12)}
@media(max-width:720px){.character .portrait{width:58px;height:58px}.character{min-height:126px}.topbar-actions{gap:5px}.cancel-lobby,.copy{padding:8px;font-size:11px}}

/* Interface de jeu pensée pour le téléphone. */
@media(max-width:720px){
  body{background:#0b0e14}
  #game{padding-bottom:112px}
  .gamebar{height:58px;position:sticky;top:0;padding:0 12px;z-index:30}
  .turn small{font-size:9px}.turn strong{font-size:15px}.icon-btn{width:40px;height:40px}.game-actions{gap:5px}.quit-game{min-height:40px;padding:7px 9px}
  .mobile-nav{display:grid;grid-template-columns:repeat(3,1fr);position:sticky;top:58px;z-index:29;background:#10151e;border-bottom:1px solid #2d3542;padding:7px 8px;gap:6px}
  .mobile-nav button{min-height:48px;border:1px solid #2e3745;border-radius:10px;background:#181e28;color:#929cab;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:6px}
  .mobile-nav button span{font-size:18px}.mobile-nav button.active{background:#3b2730;border-color:#b24758;color:#fff;box-shadow:0 0 0 1px #b2475840}
  .game-layout{display:block;min-height:0}
  .players-panel,.board-wrap,.notebook{display:none}
  #game.mobile-board .board-wrap,#game.mobile-cards .notebook,#game.mobile-players .players-panel{display:block}
  .board-wrap{padding:8px 8px 128px;overflow:visible;background:radial-gradient(circle at 50% 20%,#242c39,#11161e 70%)}
  .board{width:100%;min-width:0;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:none;gap:6px;padding:7px;border-width:5px}
  .room{min-height:112px;padding:9px 7px;border-radius:7px;touch-action:manipulation}
  .room h3{font-size:14px;line-height:1.1;max-width:100%;padding-right:0}
  .room.reachable{box-shadow:inset 0 0 18px #dba83e4d,0 0 0 2px #e7ba60;animation:mobilePulse 1.5s infinite}
  .room.reachable:before{content:"ALLER";right:5px;top:auto;bottom:5px;border-radius:5px;font-size:8px;padding:4px 5px}
  .room .tokens{left:7px;bottom:7px;max-width:70%;gap:2px}.token{width:30px;height:30px;border-width:1px}
  .move-hint{position:fixed;z-index:31;left:8px;right:8px;bottom:94px;width:auto;transform:none;text-align:center;border-color:#596271;font-size:13px;padding:10px 12px;box-shadow:0 8px 24px #0009}
  .players-panel{border:0;padding:14px 14px 125px;min-height:calc(100vh - 114px)}
  .players-panel>h3{font-size:20px;margin:4px 0 12px}.players-panel .player-row{padding:13px 10px;border:1px solid #28313e;border-radius:10px;margin-bottom:8px;background:#141a23}.players-panel .player-row.active{padding:13px 10px}
  .players-panel .avatar{width:48px;height:48px;flex-basis:48px}.players-panel .player-row strong{font-size:16px}.players-panel .player-row small{font-size:13px}
  .case-log{margin-top:22px}.case-log #log{max-height:none}.log-item{font-size:13px;padding-bottom:13px}
  .notebook{border:0;padding:16px 14px 130px;min-height:calc(100vh - 114px)}
  .notebook-title{position:sticky;top:114px;background:var(--paper);z-index:2;padding-top:3px}
  .detective-sheet summary{min-height:46px;font-size:17px}.clue-row{min-height:44px;padding:6px 9px}.clue-name{font-size:14px}.clue-row b{font-size:0}.clue-row.checked b{font-size:28px}.sheet-help{font-size:13px}.add-note-row input{min-height:48px;font-size:16px}.add-note-row button{min-height:48px;font-size:13px}.custom-check{min-height:44px}.custom-check span{font-size:14px}
  .notes textarea{min-height:180px;font-size:16px}
  .action-bar{left:0;right:0;bottom:0;min-height:82px;max-height:128px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px 10px calc(9px + env(safe-area-inset-bottom));overflow:visible;background:#090c12f7;box-shadow:0 -8px 25px #0009}
  .action-bar .status-copy{grid-column:1/-1;text-align:center;margin:0;font-size:12px;white-space:normal}
  .action-bar button{width:100%;min-height:48px;padding:10px 8px;white-space:normal;font-size:13px;font-weight:700;touch-action:manipulation}
  .action-bar button:only-child{grid-column:1/-1}.action-bar.my-turn{border-top-color:#a87b35}
  .characters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.character{min-height:145px;padding:12px 7px}.character .portrait{width:72px;height:72px}.character strong{display:block;font-size:13px;line-height:1.15}
  .lobby-layout{padding-bottom:145px}.lobby-footer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  dialog{padding:25px 18px;width:calc(100vw - 20px);max-height:88vh;overflow:auto}.choice-grid select{min-height:48px;font-size:16px}.dialog-actions button{min-height:48px}
}

/* Écran de jeu horizontal : plateau à gauche, carnet toujours ouvert à droite. */
.landscape-guard,.home-landscape-guard{display:none}
@media (max-width:900px) and (orientation:portrait){
  #game.active .landscape-guard,#home.active .home-landscape-guard{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px max(28px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));text-align:center;background:radial-gradient(circle at 50% 35%,#313b4b,#10151d 72%);color:#fff}
  .landscape-guard .rotate-device,.home-landscape-guard .rotate-device{width:86px;height:56px;display:grid;place-items:center;margin-bottom:22px;border:4px solid #e2b65d;border-radius:12px;color:#e2b65d;font-size:34px;transform:rotate(90deg);animation:rotateHint 1.8s ease-in-out infinite}
  .landscape-guard h2,.home-landscape-guard h2{margin:0 0 8px;font:800 28px 'Playfair Display'}
  .landscape-guard p,.home-landscape-guard p{max-width:390px;margin:0 0 22px;color:#c4ccd7;line-height:1.45}
  .landscape-guard button,.home-landscape-guard button{min-height:48px}
}
@keyframes rotateHint{50%{transform:rotate(0deg) scale(1.05)}}

@media (orientation:landscape) and (max-height:600px){
  #lobby.active{display:block;height:100dvh;overflow:hidden}
  #lobby .topbar{height:52px;min-height:52px}
  #lobby .lobby-layout{height:calc(100dvh - 52px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px max(14px,env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:16px}
  #lobby .section-heading{margin-bottom:10px}
  #lobby .section-heading h2{font-size:24px;margin:2px 0}
  #lobby .characters{grid-template-columns:repeat(3,minmax(105px,1fr));gap:8px;padding-bottom:8px}
  #lobby .character{min-height:118px;padding:8px 6px}
  #lobby .character .portrait{width:58px;height:58px;margin-bottom:6px}
  #lobby .lobby-footer{padding:8px max(14px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
  #game{--notes-width:clamp(260px,30vw,360px)}
  #game .mobile-nav{display:none!important}
  #game .gamebar{left:0;right:var(--notes-width);width:auto;height:48px;justify-content:flex-start;border-right:1px solid #394352}
  #game .gamebar .game-actions{order:-1;flex:0 0 auto}
  #game .gamebar .turn{order:0;flex:1;text-align:center}
  #game .gamebar .turn-queue{max-width:none;justify-content:center}
  #game .game-layout{display:block;height:100dvh;padding:48px var(--notes-width) 68px 0}
  #game .players-panel{display:none!important}
  #game .board-wrap,#game.mobile-board .board-wrap,#game.mobile-cards .board-wrap,#game.mobile-players .board-wrap{display:block!important;height:100%;padding:4px;overflow:hidden}
  #game .notebook,#game.mobile-board .notebook,#game.mobile-cards .notebook,#game.mobile-players .notebook{display:block!important;position:fixed;z-index:38;top:0;right:0;bottom:0;width:var(--notes-width);height:100dvh;min-height:0;overflow:auto;padding:8px 8px 16px;border:0;border-left:2px solid #405063;background:#f4ead8;color:#30271f}
  #game .notebook-title{position:sticky;top:-8px;z-index:12;margin:-8px -8px 5px;padding:8px 9px 7px;background:#eee0c8;border-bottom:1px solid #ab9676;box-shadow:0 3px 7px #392b1c35}
  #game .notebook-title>span{font-size:19px}
  #game .notebook-title small{font-size:7px}
  #game .notebook-title strong{font-size:11px}
  #game .sheet-help{display:none}
  #game .deduction-scroll{height:auto;max-height:none}
  #game .corner-cell,#game .clue-label{min-width:112px;max-width:112px;font-size:9px}
  #game .player-column{width:38px;min-width:38px}
  #game .deduction-grid th,#game .deduction-grid td,#game .deduction-cell{height:32px}
  #game .grid-avatar{width:21px;height:21px}
  #game .group-row .group-label{min-width:112px;max-width:112px}
  #game .custom-notes,#game .notes{margin-top:10px}
  #game .action-bar{left:0;right:var(--notes-width);bottom:0;min-height:68px;max-height:68px;background:linear-gradient(90deg,#d8ae50,#efd174);border-right:1px solid #7f652d;border-top-color:#8d6c2b}
  #game .action-bar .status-copy{color:#241c10;font-weight:800}
  #game .move-hint{left:6px;right:calc(var(--notes-width) + 6px)}
}

/* v72 — Nouvelle hypothèse : composition harmonisée, 50 % enquête / 50 % notes. */
#choiceDialog.suggestion-dialog{
  width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;
  background:radial-gradient(circle at 18% 18%,#17466966,transparent 34%),radial-gradient(circle at 45% 88%,#0f314e55,transparent 38%),linear-gradient(135deg,#07111d,#0b1725 52%,#071019);
  color:#f4f8fb;overflow:hidden
}
#choiceDialog.suggestion-dialog:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#ffffff05 1px,transparent 1px),linear-gradient(#ffffff04 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,#0007,transparent 70%)}
#choiceDialog.suggestion-dialog>.close{z-index:60;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:38px;height:38px;border:1px solid #bde8ff40;border-radius:50%;background:#07121dcc;color:#fff;box-shadow:0 7px 22px #0008}
#choiceDialog.suggestion-dialog #choiceContent{position:relative;width:100%;height:100%;min-height:0;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
#choiceDialog.suggestion-dialog .suggestion-stage{width:100%;height:100%;min-height:0;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}
#choiceDialog.suggestion-dialog .suggestion-heading{min-width:0;padding:0 48px 0 4px;display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left}
#choiceDialog.suggestion-dialog .suggestion-heading-copy{min-width:0}
#choiceDialog.suggestion-dialog .suggestion-heading small{display:block;color:#7fcff4;font-size:8px;font-weight:900;letter-spacing:.22em;text-transform:uppercase}
#choiceDialog.suggestion-dialog .suggestion-heading h2{margin:1px 0 0;color:#fff;font:700 clamp(20px,3.2vw,32px) 'Playfair Display';line-height:1;text-shadow:0 4px 16px #000}
#choiceDialog.suggestion-dialog #suggestStepCaption{margin:3px 0 0;color:#aebfcb;font-size:10px}
#choiceDialog.suggestion-dialog .suggestion-progress{flex:0 1 430px;width:auto;margin:0;gap:6px}
#choiceDialog.suggestion-dialog .suggestion-progress span{min-width:0;padding:5px 8px;background:#ffffff07;border-color:#a9dfff22;color:#8294a2}
#choiceDialog.suggestion-dialog .suggestion-progress span.active{background:#55c9ff13;border-color:#55c9ff8c;box-shadow:0 0 22px #55c9ff13;color:#fff}
#choiceDialog.suggestion-dialog .suggestion-workspace{min-height:0;height:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px}
#choiceDialog.suggestion-dialog .suggestion-compose{position:relative;min-height:0;padding:12px;border:1px solid #bde8ff24;border-radius:17px;background:linear-gradient(145deg,#77d1ff0b,#ffffff03);box-shadow:inset 0 1px #ffffff18,0 16px 42px #0005;overflow:hidden;justify-content:flex-start}
#choiceDialog.suggestion-dialog .suggestion-compose:before{content:"DOSSIER D’ENQUÊTE";position:absolute;left:14px;top:11px;color:#7fcff4;font-size:7px;font-weight:900;letter-spacing:.22em}
#choiceDialog.suggestion-dialog .selection-memory{width:100%;min-height:34px;margin:11px 0 7px;display:flex;justify-content:center;gap:6px;overflow:hidden}
#choiceDialog.suggestion-dialog .selection-memory span{max-width:31%;padding:5px 9px;border:1px solid #ffffff18;border-radius:16px;background:#02081152;color:#70818e;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.38;transition:opacity .2s,border-color .2s,color .2s}
#choiceDialog.suggestion-dialog .selection-memory span.visible{opacity:1;border-color:#79d4ff42;color:#dff5ff;background:#55c9ff0c}
#choiceDialog.suggestion-dialog .suggestion-wizard{min-height:0;flex:1}
#choiceDialog.suggestion-dialog .suggestion-step-card.active{width:min(100%,330px)!important;min-height:0!important;height:min(100%,330px);padding:13px 14px 15px!important;border:1px solid #bde8ff3d!important;border-radius:17px!important;background:#55c9ff0b!important;box-shadow:0 17px 34px #0007,inset 0 1px #ffffff35!important;justify-content:space-between}
#choiceDialog.suggestion-dialog .suggestion-step-card.active:after{background:var(--clue-color);height:2px}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{width:clamp(82px,14vh,120px)!important;height:clamp(82px,14vh,120px)!important;background:#020a126b}
#choiceDialog.suggestion-dialog .suggestion-step-card.active select{border-color:#8cdbff55;background:#06111ed9;color:#fff;box-shadow:inset 0 1px #ffffff15}
#choiceDialog.suggestion-dialog .suggestion-actions{flex:0 0 auto;margin-top:8px;gap:8px}
#choiceDialog.suggestion-dialog .suggestion-actions button{min-width:118px;min-height:34px;padding:7px 13px;border-radius:18px;font-size:10px}
#choiceDialog.suggestion-dialog .suggestion-actions button:last-child{border-color:#72d3ff88;background:linear-gradient(135deg,#24658a,#174765);color:#fff;box-shadow:0 7px 18px #0005}
#choiceDialog.suggestion-dialog .suggestion-notes{height:100%;max-height:none;min-height:0;padding:9px;border:1px solid #c3ab8059;border-radius:17px;background:linear-gradient(145deg,#f7eedf,#e9dcc7);box-shadow:0 16px 42px #0007,inset 0 1px #fff;color:#30271f;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
#choiceDialog.suggestion-dialog .suggestion-notes-title{top:-9px;margin:-9px -9px 8px;padding:8px 10px;background:linear-gradient(#f2e7d4f5,#eadcc5f5);box-shadow:0 5px 12px #5d493322;backdrop-filter:none}
#choiceDialog.suggestion-dialog .suggestion-notes-title>span{font-size:19px}
#choiceDialog.suggestion-dialog .suggestion-notes-title small{font-size:6px}
#choiceDialog.suggestion-dialog .suggestion-notes-title b{font-size:13px}
#choiceDialog.suggestion-dialog .suggestion-notes .deduction-scroll{min-width:100%;overflow:visible!important;touch-action:pan-x pan-y}
#choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid{margin:0}
#choiceDialog.suggestion-dialog .suggest-owned-warning{margin:6px 0 0!important;padding:5px 9px;font-size:9px!important}
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog{width:calc(100vw - var(--edge-left,6px) - var(--edge-right,6px))!important;height:calc(100dvh - var(--edge-top,6px) - var(--edge-bottom,6px))!important;margin:var(--edge-top,6px) var(--edge-right,6px) var(--edge-bottom,6px) var(--edge-left,6px)!important;border:1px solid #31465a;border-radius:12px}
  #choiceDialog.suggestion-dialog #choiceContent{padding:7px}
  #choiceDialog.suggestion-dialog .suggestion-stage{gap:6px}
  #choiceDialog.suggestion-dialog .suggestion-heading{min-height:40px;padding-right:42px}
  #choiceDialog.suggestion-dialog .suggestion-heading h2{font-size:19px}
  #choiceDialog.suggestion-dialog #suggestStepCaption{font-size:8px}
  #choiceDialog.suggestion-dialog .suggestion-progress{flex-basis:360px;margin:0}
  #choiceDialog.suggestion-dialog .suggestion-progress span{padding:3px 5px}
  #choiceDialog.suggestion-dialog .suggestion-workspace{gap:7px}
  #choiceDialog.suggestion-dialog .suggestion-compose{padding:8px}
  #choiceDialog.suggestion-dialog .suggestion-compose:before{top:7px;left:10px;font-size:6px}
  #choiceDialog.suggestion-dialog .selection-memory{min-height:27px;margin:8px 0 4px}
  #choiceDialog.suggestion-dialog .selection-memory span{padding:3px 7px;font-size:7px}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active{width:min(96%,270px)!important;height:min(100%,220px);padding:7px 10px 9px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{width:72px!important;height:72px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active .clue-drawing{font-size:44px!important}
  #choiceDialog.suggestion-dialog .suggestion-actions{margin-top:4px}
  #choiceDialog.suggestion-dialog .suggestion-actions button{min-height:29px;padding:4px 11px}
  #choiceDialog.suggestion-dialog .suggestion-notes{max-height:none;padding:6px}
  #choiceDialog.suggestion-dialog .suggestion-notes-title{top:-6px;margin:-6px -6px 5px;padding:5px 7px}
  #choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid th,#choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid td,#choiceDialog.suggestion-dialog .suggestion-notes .deduction-cell{height:29px}
}
@media (max-width:760px) and (orientation:portrait){
  #choiceDialog.suggestion-dialog{overflow:auto}
  #choiceDialog.suggestion-dialog #choiceContent{height:auto;min-height:100%;overflow:auto}
  #choiceDialog.suggestion-dialog .suggestion-stage{height:auto}
  #choiceDialog.suggestion-dialog .suggestion-heading{display:block;padding-right:44px}
  #choiceDialog.suggestion-dialog .suggestion-progress{width:100%;margin-top:8px}
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:1fr!important;height:auto}
  #choiceDialog.suggestion-dialog .suggestion-compose{min-height:440px}
  #choiceDialog.suggestion-dialog .suggestion-notes{height:55dvh;min-height:360px}
}

/* v73 — Les portraits restent parfaitement carrés, même dans une carte compacte. */
.evidence-art{
  flex:0 0 auto;
  aspect-ratio:1 / 1;
  overflow:hidden;
}
.evidence-avatar-image{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:1 / 1;
  flex:0 0 auto;
  background-repeat:no-repeat;
  transform:none;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{
  min-width:72px;
  min-height:72px;
}

/* Actions principales alignées à droite de la barre inférieure. */
#game .action-bar{justify-content:flex-end}
#game .action-bar .status-copy{margin-right:auto}
#game .action-bar .action-notice+.status-copy{padding-left:min(43%,350px)}
@media (orientation:landscape) and (max-height:600px){
  #game .action-bar{justify-content:flex-end!important}
  #game .action-bar .status-copy{flex:1 1 auto;margin-right:auto;text-align:left}
  #game .action-bar button{flex:0 0 auto}
}

/* Responsive mobile : notes plein écran et tableaux toujours défilables. */
@media (orientation:landscape) and (max-height:600px){
  #game .notebook.notes-open{left:var(--edge-left)!important;right:var(--edge-right)!important;top:var(--edge-top)!important;bottom:var(--edge-bottom)!important;width:auto!important;max-width:none!important;height:auto!important;padding:10px 10px 18px!important}
  #game .notebook.notes-open .notebook-title{top:-10px;margin:-10px -10px 6px;padding:10px 52px 8px 10px}
  #game .notebook.notes-open .deduction-scroll{display:block;width:100%;max-width:100%;height:calc(100dvh - var(--edge-top) - var(--edge-bottom) - 145px);max-height:none;overflow-x:auto!important;overflow-y:auto!important;scrollbar-gutter:stable both-edges;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
  #game .notebook.notes-open .deduction-grid{width:max-content;min-width:100%}
  #game .notebook.notes-open .corner-cell,#game .notebook.notes-open .clue-label{min-width:118px;max-width:118px}
  #game .notebook.notes-open .player-column{width:46px;min-width:46px}
  #choiceDialog.reveal-dialog #choiceContent{padding:10px}
  #choiceDialog.suggestion-dialog .suggestion-stage{width:100%}
  .suggestion-notes{min-width:0;overflow:auto}
  .suggestion-notes .deduction-scroll{width:100%;max-width:100%;overflow:auto!important;touch-action:pan-x pan-y}
  .suggestion-notes .deduction-grid{width:max-content;min-width:100%}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:760px){
  .suggestion-workspace{grid-template-columns:minmax(0,.9fr) minmax(280px,1.1fr)}
  #choiceDialog.suggestion-dialog .evidence-art{width:68px;height:68px}
  #choiceDialog.suggestion-dialog .clue-drawing{font-size:42px}
  #choiceDialog.suggestion-dialog .evidence-card{padding:6px;min-height:160px}
  #choiceDialog.suggestion-dialog .dialog-actions button{min-width:110px;padding:7px 9px}
}

/* Tableau de notes compact et complet dans l’interface d’hypothèse. */
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,1.15fr)}
  #choiceDialog.suggestion-dialog .suggestion-notes{height:calc(100dvh - var(--edge-top) - var(--edge-bottom) - 92px);max-height:none;overflow:hidden;padding:6px}
  #choiceDialog.suggestion-dialog .suggestion-notes-title{top:0;margin:-6px -6px 4px;padding:5px 7px}
  #choiceDialog.suggestion-dialog .suggestion-notes .deduction-scroll{height:calc(100% - 35px);max-height:none;border-radius:5px;overflow:auto!important}
  #choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid{width:max-content;min-width:100%;font-size:8px}
  #choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid th,#choiceDialog.suggestion-dialog .suggestion-notes .deduction-grid td,#choiceDialog.suggestion-dialog .suggestion-notes .deduction-cell{height:27px}
  #choiceDialog.suggestion-dialog .suggestion-notes .corner-cell,#choiceDialog.suggestion-dialog .suggestion-notes .clue-label{min-width:82px;max-width:82px;padding:0 4px!important;font-size:8px}
  #choiceDialog.suggestion-dialog .suggestion-notes .group-row .group-label{min-width:82px;max-width:82px;font-size:9px}
  #choiceDialog.suggestion-dialog .suggestion-notes .player-column{width:32px;min-width:32px;padding:1px!important}
  #choiceDialog.suggestion-dialog .suggestion-notes .player-column small{max-width:30px;font-size:5px!important}
  #choiceDialog.suggestion-dialog .suggestion-notes .grid-avatar{width:18px;height:18px}
  #choiceDialog.suggestion-dialog .suggestion-notes .deduction-cell.marked b{font-size:20px}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:760px){
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,.82fr) minmax(280px,1.18fr)}
}

/* Hypothèse mobile : cartes de choix compactes pour privilégier les notes. */
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
  #choiceDialog.suggestion-dialog .suggestion-grid{gap:4px}
  #choiceDialog.suggestion-dialog .evidence-card{min-height:145px;padding:5px 4px 6px;border-radius:9px}
  #choiceDialog.suggestion-dialog .evidence-card i{padding:2px 5px;font-size:6px;letter-spacing:.1em}
  #choiceDialog.suggestion-dialog .evidence-art{width:54px;height:54px;margin:2px}
  #choiceDialog.suggestion-dialog .clue-drawing{font-size:34px}
  #choiceDialog.suggestion-dialog .evidence-card label>span{margin-bottom:2px;font-size:6px}
  #choiceDialog.suggestion-dialog .evidence-card select{min-height:29px;padding:3px 16px 3px 4px;font-size:8px;border-radius:5px}
  #choiceDialog.suggestion-dialog .fixed-evidence b{min-height:29px;font-size:10px;line-height:1}
  #choiceDialog.suggestion-dialog .dialog-actions{margin-top:5px;gap:5px}
  #choiceDialog.suggestion-dialog .dialog-actions button{min-width:90px;min-height:32px;padding:5px 7px;font-size:9px}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:700px){
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
}

/* Défilement tactile fiable des notes pendant une hypothèse. */
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-notes{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;touch-action:auto}
  #choiceDialog.suggestion-dialog .suggestion-notes-title{flex:0 0 auto}
  #choiceDialog.suggestion-dialog #suggestionNotesSheet{flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}
  #choiceDialog.suggestion-dialog #suggestionNotesSheet .deduction-scroll{display:block;width:100%;height:100%;min-height:0;overflow-x:scroll!important;overflow-y:scroll!important;overscroll-behavior:contain;touch-action:none;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;cursor:grab}
  #choiceDialog.suggestion-dialog #suggestionNotesSheet .deduction-grid{table-layout:fixed}
  #choiceDialog.suggestion-dialog #suggestionNotesSheet .deduction-cell{touch-action:none}
}

/* Mise en scène plein écran des hypothèses et accusations. */
.announcement-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0;padding:0!important;border:0;border-radius:0;background:#070b12;overflow:hidden}
.announcement-dialog::backdrop{background:#02040a}
.scene-announcement{position:relative;width:100%;height:100%;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(18px,4vw,48px);overflow:hidden;background:radial-gradient(circle at 18% 50%,color-mix(in srgb,var(--scene-color) 58%,#0b1020),transparent 38%),radial-gradient(circle at 76% 28%,color-mix(in srgb,var(--scene-color) 30%,#18253c),transparent 38%),linear-gradient(145deg,#070b12,#121b2a 55%,#05070c);color:#fff}
.scene-announcement:before,.scene-announcement:after{content:"";position:absolute;pointer-events:none}.scene-announcement:before{inset:0;background:repeating-radial-gradient(ellipse at 50% 120%,#ffffff0b 0 2px,transparent 3px 42px);opacity:.8}.scene-announcement:after{inset:0;background:linear-gradient(90deg,#0008,transparent 24%,transparent 76%,#0008);box-shadow:inset 0 0 100px #000}
.scene-announcement.final-accusation{background:radial-gradient(circle at 18% 50%,color-mix(in srgb,var(--scene-color) 45%,#7d1428),transparent 40%),radial-gradient(circle at 80% 20%,#791d3066,transparent 35%),linear-gradient(145deg,#0a070b,#241019 55%,#050406)}
.scene-glow{position:absolute;width:42vw;height:42vw;left:-8vw;top:20%;border-radius:50%;background:var(--scene-color);filter:blur(80px);opacity:.18}
.scene-top{position:relative;z-index:2;display:flex;align-items:center;gap:22px;margin-bottom:16px}.scene-top>small{color:#f0c76f;font-size:11px;font-weight:900;letter-spacing:.23em}
.scene-actor{display:flex;align-items:center;gap:10px;padding:6px 14px 6px 7px;border:2px solid color-mix(in srgb,var(--scene-color) 70%,white);border-radius:42px;background:#080c14d9;box-shadow:0 0 25px color-mix(in srgb,var(--scene-color) 45%,transparent)}
.scene-actor-image{display:block;width:52px;height:52px;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y);border:2px solid #fff8}.scene-actor span{display:block;text-align:left}.scene-actor b{display:block;font:700 16px 'Playfair Display'}.scene-actor em{display:block;color:#bfc7d2;font-size:9px;font-style:normal}
.scene-evidence{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(150px,220px));gap:clamp(10px,2vw,22px);perspective:900px}.evidence-card{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:14px 12px 17px;border:2px solid #d7c49a;border-radius:13px;background:linear-gradient(155deg,#f8f1df,#d8c8a6);color:#241d16;box-shadow:0 17px 35px #0009,inset 0 0 0 4px #fff8;transform:rotate(-2deg);animation:evidenceReveal .55s cubic-bezier(.2,.8,.2,1) both}.evidence-card:nth-child(2){transform:translateY(-8px) rotate(1deg);animation-delay:.12s}.evidence-card:nth-child(3){transform:rotate(2deg);animation-delay:.24s}.evidence-card i{font-style:normal;color:#8d2737;font-size:9px;font-weight:900;letter-spacing:.18em}.evidence-card b{text-align:center;font:700 clamp(14px,2vw,20px)/1.05 'Playfair Display'}.evidence-art{width:112px;height:112px;display:grid;place-items:center;margin:5px;border-radius:50%;background:#171d28;border:4px solid #fff;box-shadow:0 8px 18px #382e2455}.evidence-avatar-image{display:block;width:100%;height:100%;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y)}.clue-drawing{font-size:68px;line-height:1;text-shadow:0 5px 10px #0008}.room-evidence .clue-drawing{color:#f2d892;font-family:'Playfair Display'}.mystery-face{color:#e8c15d;font:800 65px 'Playfair Display'}
.scene-sentence{position:relative;z-index:2;margin:17px 0 12px;padding:8px 18px;border-radius:20px;background:#05080dbf;color:#d8dee8;font-size:12px;text-align:center}.scene-sentence strong{color:#fff}.scene-announcement>#closeAnnouncement{position:relative;z-index:2;min-width:240px}
@keyframes evidenceReveal{from{opacity:0;transform:translateY(-35px) rotate(-7deg) scale(.86)}to{opacity:1}}
@media (orientation:landscape) and (max-height:600px){.scene-announcement{padding:9px 18px}.scene-top{margin-bottom:7px}.scene-top>small{font-size:8px}.scene-actor{padding:4px 10px 4px 5px}.scene-actor-image{width:38px;height:38px}.scene-actor b{font-size:12px}.scene-actor em{font-size:7px}.scene-evidence{grid-template-columns:repeat(3,minmax(120px,175px));gap:12px}.evidence-card{min-height:168px;padding:8px 8px 10px}.evidence-art{width:78px;height:78px;border-width:3px}.clue-drawing{font-size:47px}.evidence-card b{font-size:14px}.scene-sentence{margin:7px 0 6px;padding:5px 13px;font-size:9px}.scene-announcement>#closeAnnouncement{min-height:35px;min-width:210px;padding:6px 12px}}

/* Décors théâtraux propres à chaque personnage. */
.scene-announcement{background:radial-gradient(circle at 50% 25%,color-mix(in srgb,var(--scene-glow) 34%,transparent),transparent 33%),linear-gradient(145deg,var(--scene-one),var(--scene-two) 68%,#020307)}
.scene-announcement.final-accusation{background:radial-gradient(circle at 50% 25%,#a7193855,transparent 31%),radial-gradient(circle at 18% 50%,color-mix(in srgb,var(--scene-glow) 32%,transparent),transparent 38%),linear-gradient(145deg,var(--scene-one),color-mix(in srgb,var(--scene-two) 72%,#3b0713) 68%,#050205)}
.theatrical-decor{position:absolute;inset:0;overflow:hidden;pointer-events:none}.theatrical-decor:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 105%,color-mix(in srgb,var(--scene-glow) 28%,transparent),transparent 48%),repeating-linear-gradient(90deg,#fff0 0 9%,#fff03 10%,#fff0 11%);mix-blend-mode:screen;opacity:.75}
.spotlight{position:absolute;top:-18%;width:38%;height:115%;background:linear-gradient(to bottom,color-mix(in srgb,var(--scene-glow) 33%,transparent),transparent 72%);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);filter:blur(8px);opacity:.42;animation:spotlightMove 7s ease-in-out infinite alternate}.light-left{left:3%;transform:rotate(9deg);transform-origin:top}.light-right{right:3%;transform:rotate(-9deg);transform-origin:top;animation-delay:-3.5s}
.scene-symbol{position:absolute;display:grid;place-items:center;color:#fff;filter:drop-shadow(0 18px 24px #000b);opacity:.38;text-shadow:0 0 35px var(--scene-glow);animation:decorFloat 6s ease-in-out infinite}.symbol-one{left:5%;bottom:8%;font-size:clamp(90px,19vw,240px);transform:rotate(-8deg)}.symbol-two{right:5%;bottom:9%;font-size:clamp(80px,16vw,210px);animation-delay:-2s}.symbol-three{right:22%;top:7%;font-size:clamp(45px,8vw,105px);animation-delay:-4s;opacity:.28}
.scene-floor{position:absolute;left:-10%;right:-10%;bottom:-34%;height:62%;border-radius:50%;background:repeating-radial-gradient(ellipse at 50% 0,#ffffff12 0 2px,transparent 3px 42px),linear-gradient(to bottom,color-mix(in srgb,var(--scene-one) 75%,#000),#020305);border-top:2px solid color-mix(in srgb,var(--scene-glow) 55%,transparent);box-shadow:0 -18px 50px #0008;transform:perspective(500px) rotateX(58deg)}
.curtain{position:absolute;z-index:1;top:-5%;bottom:-5%;width:13%;background:repeating-linear-gradient(90deg,#210812 0 18%,#741b34 36%,#280812 60%);box-shadow:inset 0 0 35px #000,0 0 35px #0009}.curtain-left{left:-7%;border-radius:0 55% 55% 0;transform:rotate(-2deg)}.curtain-right{right:-7%;border-radius:55% 0 0 55%;transform:rotate(2deg)}
.scene-top,.scene-evidence,.scene-sentence,.scene-announcement>#closeAnnouncement{z-index:4}
@keyframes spotlightMove{to{transform:rotate(-5deg) translateX(5%)}}
@keyframes decorFloat{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (orientation:landscape) and (max-height:600px){.symbol-one{font-size:115px;bottom:1%}.symbol-two{font-size:100px;bottom:2%}.symbol-three{font-size:58px}.curtain{width:10%}.scene-floor{bottom:-42%}}

/* Véritables illustrations panoramiques propres aux 24 personnages. */
.scene-announcement{background-image:linear-gradient(90deg,#03050aa8 0%,#03050a38 23%,#03050a24 50%,#03050a38 77%,#03050aa8 100%),linear-gradient(0deg,#02040a99,#02040a10 55%,#02040a66),var(--scene-image);background-size:cover;background-position:center;background-repeat:no-repeat}
.scene-announcement.final-accusation{background-image:linear-gradient(90deg,#22030bb8,#570c1f38 35%,#570c1f24 65%,#22030bb8),linear-gradient(0deg,#170108aa,#0000 58%,#27030d88),var(--scene-image)}
.scene-announcement .scene-symbol{display:none}.scene-announcement .theatrical-decor:before{opacity:.25}.scene-announcement .scene-floor{opacity:.28}.scene-announcement .curtain{opacity:.58}
.scene-announcement[data-scene="scarlet"]{--scene-image:url('scenes/scarlet.webp')}.scene-announcement[data-scene="mustard"]{--scene-image:url('scenes/mustard.webp')}.scene-announcement[data-scene="white"]{--scene-image:url('scenes/white.webp')}.scene-announcement[data-scene="green"]{--scene-image:url('scenes/green.webp')}.scene-announcement[data-scene="peacock"]{--scene-image:url('scenes/peacock.webp')}.scene-announcement[data-scene="plum"]{--scene-image:url('scenes/plum.webp')}.scene-announcement[data-scene="amber"]{--scene-image:url('scenes/amber.webp')}.scene-announcement[data-scene="azure"]{--scene-image:url('scenes/azure.webp')}.scene-announcement[data-scene="rose"]{--scene-image:url('scenes/rose.webp')}.scene-announcement[data-scene="black"]{--scene-image:url('scenes/black.webp')}.scene-announcement[data-scene="copper"]{--scene-image:url('scenes/copper.webp')}.scene-announcement[data-scene="indigo"]{--scene-image:url('scenes/indigo.webp')}.scene-announcement[data-scene="jade"]{--scene-image:url('scenes/jade.webp')}.scene-announcement[data-scene="silver"]{--scene-image:url('scenes/silver.webp')}.scene-announcement[data-scene="gold"]{--scene-image:url('scenes/gold.webp')}.scene-announcement[data-scene="coral"]{--scene-image:url('scenes/coral.webp')}.scene-announcement[data-scene="navy"]{--scene-image:url('scenes/navy.webp')}.scene-announcement[data-scene="lilac"]{--scene-image:url('scenes/lilac.webp')}.scene-announcement[data-scene="teal"]{--scene-image:url('scenes/teal.webp')}.scene-announcement[data-scene="ruby"]{--scene-image:url('scenes/ruby.webp')}.scene-announcement[data-scene="ivory"]{--scene-image:url('scenes/ivory.webp')}.scene-announcement[data-scene="ochre"]{--scene-image:url('scenes/ochre.webp')}.scene-announcement[data-scene="mint"]{--scene-image:url('scenes/mint.webp')}.scene-announcement[data-scene="burgundy"]{--scene-image:url('scenes/burgundy.webp')}

/* Lévitation douce, fluide et désynchronisée des portraits. */
.character .portrait{animation:characterFloat var(--float-duration,5.8s) cubic-bezier(.45,.05,.55,.95) var(--float-delay,0s) infinite;transform:translate3d(0,0,0);transform-origin:50% 70%;will-change:transform;backface-visibility:hidden}
@keyframes characterFloat{
  0%,100%{transform:translate3d(0,0,0) rotate(-.35deg) scale(1)}
  25%{transform:translate3d(1px,-2px,0) rotate(.55deg) scale(1.006)}
  50%{transform:translate3d(0,var(--float-height,-4px),0) rotate(-.2deg) scale(1.012)}
  75%{transform:translate3d(-1px,-2px,0) rotate(.4deg) scale(1.005)}
}
@media(prefers-reduced-motion:reduce){.character .portrait{animation:none}}

/* Notification temporaire intégrée à la barre d’action. */
.action-notice{position:absolute;z-index:2;left:7px;top:5px;bottom:5px;max-width:min(42%,340px);display:flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #d1a64f;border-radius:8px;background:#2d2518;color:#fff4d5;font-size:10px;line-height:1.1;box-shadow:0 4px 14px #0008;animation:actionNoticeIn .28s ease-out both;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.action-notice b{flex:0 0 auto;color:#e8bb61;font-size:7px;letter-spacing:.12em}
.action-bar:has(.action-notice){padding-left:min(43%,350px)}
@keyframes actionNoticeIn{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:720px) and (orientation:portrait){.action-notice{left:8px;right:8px;top:-40px;bottom:auto;max-width:none;min-height:34px}.action-bar:has(.action-notice){padding-left:10px}}

/* Portraits dans l’ordre de jeu et journal accessible depuis le plateau. */
.turn-chip{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;column-gap:5px}
.turn-avatar-img{display:block;width:24px;height:24px;grid-row:1;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y);border:1px solid #ffffff55;box-shadow:0 2px 5px #0008}
.turn-player{display:block;min-width:0}.turn-player b,.turn-player small{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.turn-player small{margin-top:2px}
.journal-btn{min-height:38px;padding:7px 9px;border:1px solid #495160;border-radius:8px;background:#202631;color:#e8edf5;font-size:11px}.journal-btn span{color:#e2b45b;margin-right:3px}
.journal-dialog{width:min(92vw,560px);max-height:86dvh;padding:22px;background:#111720;color:#eef1f6;border:1px solid #9b7438}.journal-dialog::backdrop{background:#05070bd9;backdrop-filter:blur(4px)}
.journal-heading{padding-right:35px;border-bottom:1px solid #3b4656}.journal-heading small{color:#c99b49;font-size:9px;letter-spacing:.18em}.journal-heading h2{margin:4px 0 14px;font:700 25px 'Playfair Display'}
.journal-content{max-height:60dvh;overflow-y:auto;padding:8px 5px 5px 0;overscroll-behavior:contain}.journal-entry{display:grid;grid-template-columns:62px 1fr;gap:9px;padding:10px 4px;border-bottom:1px solid #2b3441}.journal-entry>span{padding-top:2px;color:#c79a49;font-size:7px;font-weight:800;letter-spacing:.08em}.journal-entry p{margin:0;color:#d3d9e2;font-size:12px;line-height:1.35}
@media (orientation:landscape) and (max-height:600px){.turn-chip{min-width:94px!important}.turn-avatar-img{width:25px;height:25px}.journal-btn,.quit-game{min-height:34px;padding:5px 7px;font-size:9px}.journal-dialog{max-height:92dvh;padding:14px 18px}.journal-heading h2{font-size:20px;margin-bottom:8px}.journal-content{max-height:68dvh}.journal-entry{padding:7px 3px}}

/* Nouvelle interface : joueurs à gauche, plateau central et notes à la demande. */
.notes-btn{min-height:38px;padding:7px 9px;border:1px solid #7d6538;border-radius:8px;background:#332a1b;color:#f3d384;font-size:11px}.notes-btn span{margin-right:3px}
.notebook{display:none!important}
.notebook.notes-open{display:block!important;position:fixed;z-index:70;top:0;right:0;bottom:0;width:min(92vw,480px);height:100dvh;overflow-x:hidden;overflow-y:auto;padding:16px 15px 24px;background:var(--paper);color:var(--paper-ink);border-left:2px solid #9d8765;box-shadow:-20px 0 45px #000a;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.close-notes{position:sticky;z-index:30;top:0;float:right;width:38px;height:38px;margin:0 0 4px 8px;padding:0;border:1px solid #8f3340;border-radius:50%;background:#982f3e;color:#fff;font-size:25px;line-height:1;box-shadow:0 3px 10px #52312655}
.notebook.notes-open .notebook-title{position:sticky;top:0;z-index:20;background:var(--paper);padding:4px 48px 10px 0}
.notebook.notes-open .deduction-grid thead th{position:sticky;top:0;z-index:15;box-shadow:0 2px 0 #9d8d76,0 5px 8px #5b4b3330}
.notebook.notes-open .deduction-grid thead .corner-cell{z-index:17!important}
@media (orientation:landscape) and (max-height:600px){
  #game{--notes-width:0px;--players-width:118px}
  #game .notebook:not(.notes-open){display:none!important}
  #game .gamebar{left:0;right:0;width:auto;padding:0 6px}
  #game .gamebar .turn{display:none}
  #game .gamebar .game-actions{margin:0;gap:4px}
  #game .notes-btn,#game .journal-btn,#game .quit-game{min-height:34px;padding:5px 7px;font-size:9px}
  #game .game-layout{height:100dvh;padding:48px 0 48px var(--players-width)}
  #game .players-panel{display:block!important;position:fixed;z-index:36;left:0;top:48px;bottom:0;width:var(--players-width);height:auto;overflow-y:auto;padding:7px 5px;border:0;border-right:1px solid #3b4655;background:#101620}
  #game .players-panel>h3{margin:2px 2px 7px;color:#d6ad59;font-size:10px;text-align:center;text-transform:uppercase;letter-spacing:.08em}
  #game .players-panel .player-row{display:flex;width:100%;margin:0 0 5px;padding:5px 4px;gap:5px;border:1px solid #2b3543;border-radius:8px;background:#171e28}
  #game .players-panel .player-row.active{border-color:#c99a42;background:#3a2e1c;box-shadow:0 0 0 1px #c99a4266}
  #game .players-panel .avatar{width:34px;height:34px;flex-basis:34px}
  #game .players-panel .meta{min-width:0}
  #game .players-panel .meta strong{font-size:9px;line-height:1.05;white-space:normal}
  #game .players-panel .meta small{font-size:7px;letter-spacing:0}
  #game .players-panel .case-log{display:none}
  #game .board-wrap{display:block!important;height:100%;padding:4px;overflow:hidden}
  #game .action-bar{left:0;right:0;min-height:48px;max-height:48px}
  #game .move-hint{left:calc(var(--players-width) + 6px);right:6px;bottom:53px}
  #game .notebook.notes-open{display:block!important;top:0;right:0;bottom:0;width:clamp(310px,42vw,480px);height:100dvh;padding:9px 9px 16px}
  #game .notebook.notes-open .notebook-title{top:0;margin:-9px -9px 5px;padding:9px 50px 7px 9px;box-shadow:0 3px 8px #57472f33}
  #game .notebook.notes-open .close-notes{position:fixed;top:6px;right:6px;z-index:90;margin:0}
}

/* Tour courant visible en haut, sans répéter les informations en bas. */
.turn{min-width:0}.turn strong{line-height:1.05}.turn-queue{display:flex;justify-content:center;gap:4px;max-width:min(46vw,520px);overflow-x:auto;scrollbar-width:none;margin-top:3px}.turn-queue::-webkit-scrollbar{display:none}.turn-chip{flex:0 0 auto;display:flex;align-items:center;gap:3px;padding:2px 6px;border:1px solid #333b49;border-radius:10px;color:#828c9d;font-size:8px;line-height:1;white-space:nowrap}.turn-chip i{width:5px;height:5px;border-radius:50%}.turn-chip.active{border-color:#b98b38;background:#3b2f1b;color:#ffe0a1}.turn-chip.eliminated{opacity:.35;text-decoration:line-through}.move-hint:empty{display:none}
.notes-progress{color:#f0cb7b;font-weight:700}
@media(max-width:720px){.turn{flex:1;margin:0 6px}.turn small{display:none}.turn strong{font-size:13px}.turn-queue{justify-content:flex-start;max-width:58vw}.turn-chip{font-size:7px;padding:2px 5px}}

/* Cartes proposées lors d’une réfutation : contraste et toucher mobile. */
.card-option{min-height:58px;border:2px solid #b78a3e!important;border-radius:10px;background:linear-gradient(145deg,#303847,#1b212c)!important;color:#fff!important;padding:13px 16px;font-size:16px;font-weight:700;text-align:left;box-shadow:0 5px 14px #0005;transition:.15s transform,.15s background}
.card-option:hover,.card-option:focus-visible{background:linear-gradient(145deg,#4a3a24,#2a2117)!important;border-color:#e0b45e!important;outline:none;transform:translateY(-1px)}
.card-option:active{transform:scale(.98)}
@media(max-width:720px){.card-option{width:100%;min-height:64px;font-size:17px;padding:15px 16px}}

/* Colonne sélectionnée automatiquement selon le joueur dont c’est le tour. */
.deduction-grid .active-turn-column{background:#e9d7ad}
.deduction-grid thead .active-turn-column{background:#c99b43;color:#21180d;box-shadow:inset 0 -3px #8c6422}
.deduction-grid .active-turn-column.current{background:#efc777}

/* Plateau du manoir : pièces autour d’un véritable couloir central. */
.board{position:relative;display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));grid-template-rows:repeat(4,minmax(135px,1fr));gap:8px;min-height:720px;padding:10px;border:12px solid #38291f;border-radius:8px;background:#201a17;box-shadow:inset 0 0 0 3px #806548,inset 0 0 35px #000b,0 22px 50px #0008}
.manor-center{grid-area:2/2/4/4;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:5px double #8d765b;background-color:#cbb48e;background-image:linear-gradient(45deg,#bda47d 25%,transparent 25%),linear-gradient(-45deg,#bda47d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#bda47d 75%),linear-gradient(-45deg,transparent 75%,#bda47d 75%);background-size:34px 34px;background-position:0 0,0 17px,17px -17px,-17px 0;color:#3c2b21;box-shadow:inset 0 0 35px #62492f80}.manor-center:before,.manor-center:after{content:"";position:absolute;inset:10px;border:1px solid #6e553a66;pointer-events:none}.manor-center:after{inset:17px}.mansion-mark{width:58px;height:58px;display:grid;place-items:center;border:2px solid #6f5031;border-radius:50%;background:#e1cba5cc;font:800 34px 'Playfair Display';box-shadow:0 5px 15px #5d452f55}.manor-center strong{margin-top:9px;font:800 15px 'Playfair Display';letter-spacing:.12em}.manor-center small{font-size:9px;color:#614d38;margin-top:4px}
.board .room{min-width:0;min-height:0;padding:12px 10px;border:2px solid #9c8262;border-radius:3px;color:#fff8e8;box-shadow:inset 0 0 22px #0007,0 3px 8px #0008;isolation:isolate}.board .room:after{z-index:-1;opacity:.32;background:repeating-linear-gradient(90deg,#fff1 0 1px,transparent 1px 22px),repeating-linear-gradient(0deg,#0002 0 1px,transparent 1px 22px)}.board .room h3{font-size:clamp(12px,1.25vw,18px);line-height:1.05;max-width:calc(100% - 28px);text-shadow:0 2px 4px #000;margin:0}.room-decor{position:absolute;z-index:0;right:9px;top:7px;font-size:27px;color:#ffe5a4;opacity:.78;text-shadow:0 2px 7px #000}.room-door{position:absolute;z-index:3;width:30px;height:7px;background:#e1c99e;border:2px solid #503a29;box-shadow:0 0 0 2px #b3966d}.secret-passage{position:absolute;z-index:2;right:5px;bottom:5px;padding:3px 4px;border:1px solid #d7b662;background:#211912d9;color:#f3d98c;font-size:6px;letter-spacing:.08em;border-radius:3px}.board .tokens{max-width:75%}
.room-6{background:linear-gradient(145deg,#5e3f2b,#2c201a)}.room-0{background:linear-gradient(145deg,#745934,#34291f)}.room-1{background:linear-gradient(145deg,#773f45,#351e24)}.room-2{background:linear-gradient(145deg,#704c32,#34261d)}.room-5{background:linear-gradient(145deg,#3e5848,#1d2922)}.room-3{background:linear-gradient(145deg,#70412b,#302018)}.room-8{background:linear-gradient(145deg,#48536b,#202631)}.room-4{background:linear-gradient(145deg,#427065,#1c302b)}.room-10{background:linear-gradient(145deg,#6a5938,#30291d)}.room-11{background:linear-gradient(145deg,#49434d,#211e24)}.room-9{background:linear-gradient(145deg,#477443,#20351f)}.room-7{background:linear-gradient(145deg,#45645f,#1f302d)}
.room-6 .room-door,.room-0 .room-door,.room-1 .room-door,.room-2 .room-door{left:50%;bottom:-5px;transform:translateX(-50%)}.room-5 .room-door,.room-8 .room-door{right:-15px;top:50%;transform:translateY(-50%) rotate(90deg)}.room-3 .room-door,.room-4 .room-door{left:-15px;top:50%;transform:translateY(-50%) rotate(90deg)}.room-10 .room-door,.room-11 .room-door,.room-9 .room-door,.room-7 .room-door{left:50%;top:-5px;transform:translateX(-50%)}
.board .room.reachable{border-color:#ffd36d;box-shadow:inset 0 0 28px #e6af3755,0 0 0 3px #e7ba60,0 0 22px #e3b24b88}.board .room.reachable:before{content:"ENTRER";right:5px;top:auto;bottom:5px;background:#a97825;border-radius:4px}
@media(max-width:720px){.board-wrap{overflow:auto}.board{width:100%;min-width:0;min-height:610px;grid-template-columns:repeat(4,minmax(76px,1fr));grid-template-rows:repeat(4,minmax(118px,1fr));gap:5px;padding:6px;border-width:6px}.board .room{min-height:0;padding:8px 5px}.board .room h3{font-size:11px;max-width:100%;padding-right:17px}.room-decor{right:4px;top:4px;font-size:18px}.manor-center{border-width:3px}.mansion-mark{width:42px;height:42px;font-size:25px}.manor-center strong{font-size:11px;letter-spacing:.07em}.manor-center small{font-size:7px;max-width:100px}.secret-passage{font-size:5px;right:2px;bottom:2px}.board .tokens{left:5px;bottom:7px;max-width:90%}.board .token{width:27px;height:27px}.room-door{width:22px}.room-5 .room-door,.room-8 .room-door{right:-12px}.room-3 .room-door,.room-4 .room-door{left:-12px}}

/* Téléphone en paysage : le plateau complet tient dans l’écran. */
@media (orientation:landscape) and (max-height:600px){
  body{overflow:hidden}#game{height:100dvh;padding:0;overflow:hidden}
  .gamebar{height:48px;position:fixed;left:0;right:0;top:0;z-index:40;padding:0 10px}.mini-brand,.game-code{display:none}.turn{flex:1;margin:0 8px}.turn small{display:none}.turn strong{font-size:12px}.turn-queue{justify-content:flex-start;max-width:55vw;margin-top:2px}.turn-chip{font-size:7px;padding:2px 5px}.game-actions{gap:4px}.quit-game{min-height:34px;padding:5px 8px;font-size:10px}.icon-btn{width:34px;height:34px}
  .mobile-nav{display:flex;flex-direction:column;position:fixed;z-index:35;left:0;top:48px;bottom:68px;width:72px;padding:6px 5px;gap:6px;background:#10151ef5;border-right:1px solid #303846;border-bottom:0}
  .mobile-nav button{flex:1;min-height:0;padding:4px 2px;border:1px solid #2e3745;border-radius:8px;background:#181e28;color:#929cab;font-size:9px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.mobile-nav button span{font-size:18px}.mobile-nav button.active{background:#3b2730;border-color:#b24758;color:#fff}
  .game-layout{display:block;height:100dvh;padding:48px 0 68px 72px}.players-panel,.board-wrap,.notebook{display:none!important}#game.mobile-board .board-wrap,#game.mobile-cards .notebook,#game.mobile-players .players-panel{display:block!important}
  .board-wrap{height:100%;padding:4px;overflow:hidden;background:radial-gradient(circle at 50% 45%,#242c39,#11161e 74%)}
  .board{width:100%;height:100%;min-width:0;min-height:0;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border-width:5px}
  .board .room{min-width:0;min-height:0;padding:5px 4px;border-width:1px}.board .room h3{font-size:clamp(8px,1.8vw,11px);line-height:1;max-width:100%;padding-right:13px}.room-decor{right:3px;top:2px;font-size:14px}.secret-passage{font-size:4px;padding:2px;letter-spacing:0}.room-door{width:18px;height:5px}.board .tokens{left:3px;bottom:4px;gap:1px}.board .token{width:21px;height:21px}.board .room.reachable:before{font-size:5px;padding:2px 3px;right:2px;bottom:2px}
  .manor-center{border-width:2px}.manor-center:before{inset:5px}.manor-center:after{display:none}.mansion-mark{width:31px;height:31px;font-size:19px}.manor-center strong{font-size:9px;margin-top:3px}.manor-center small{display:none}
  .move-hint{position:fixed;left:78px;right:6px;bottom:73px;width:auto;transform:none;padding:5px 8px;font-size:10px;text-align:center}
  .action-bar{left:72px;right:0;bottom:0;min-height:68px;max-height:68px;display:flex;justify-content:center;gap:6px;padding:6px 8px;overflow-x:auto}.action-bar .status-copy{font-size:10px;margin:0 4px;white-space:normal}.action-bar button{width:auto;min-width:120px;min-height:42px;padding:7px 10px;font-size:11px;white-space:nowrap}
  .notebook,.players-panel{height:100%;min-height:0;overflow:auto;padding:9px 12px 78px;border:0}.notebook-title{position:static;padding-bottom:6px}.notebook-title>span{font-size:22px}.sheet-help{font-size:10px;margin:6px 0}.deduction-scroll{height:calc(100dvh - 145px);max-height:none}.deduction-grid th,.deduction-grid td,.deduction-cell{height:34px}.corner-cell,.clue-label{min-width:124px;max-width:124px;font-size:10px}.player-column{width:42px;min-width:42px}.grid-avatar{width:23px;height:23px}.custom-notes,.notes{margin-top:10px}
  .players-panel>h3{font-size:15px;margin:2px 0 6px}.players-panel .player-row{display:inline-flex;vertical-align:top;width:calc(50% - 5px);margin:2px;padding:6px}.players-panel .avatar{width:34px;height:34px;flex-basis:34px}.players-panel .player-row strong{font-size:12px}.players-panel .player-row small{font-size:9px}.case-log{margin-top:8px}.log-item{font-size:10px;padding-bottom:7px}
  dialog{width:min(86vw,620px);max-height:92dvh;padding:16px}.choice-grid{grid-template-columns:1fr 1fr}.choice-grid select{min-height:40px}.dialog-actions{margin-top:10px}.dialog-actions button{min-height:40px}.card-option{min-height:44px;font-size:13px;padding:8px 10px}
}

/* Annonce visible par tous lors d’une hypothèse ou accusation. */
.announcement-dialog{width:min(94vw,760px);padding:0;border:2px solid #b88c42;border-radius:18px;overflow:hidden;background:#111720}.announcement-dialog::backdrop{background:#03050aeb;backdrop-filter:blur(8px)}.announcement-card{position:relative;padding:34px;text-align:center;background:radial-gradient(circle at 50% 0,#3c3340,#141923 62%);color:#f6f0e6}.announcement-card:before{content:"";position:absolute;inset:10px;border:1px solid #c59a4c55;border-radius:12px;pointer-events:none}.announcement-card>small{position:relative;color:#e9bb62;font-size:13px;font-weight:800;letter-spacing:.24em}.announcement-card h2{position:relative;margin:8px 0 2px;font:800 clamp(30px,6vw,52px) 'Playfair Display';color:#fff}.announcement-card>p{position:relative;margin:0 0 20px;color:#b8c0cd;font-size:15px}.announcement-facts{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 auto 25px}.announcement-facts span{min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 9px;border:1px solid #665940;border-radius:11px;background:#0c1018cc;box-shadow:inset 0 0 18px #0008}.announcement-facts i{font-style:normal;font-size:9px;letter-spacing:.17em;color:#c79a49;margin-bottom:8px}.announcement-facts b{font:700 clamp(16px,2.4vw,24px)/1.05 'Playfair Display';color:#fff}.announcement-card>.primary{position:relative;min-width:260px}.announcement-card.final-accusation{background:radial-gradient(circle at 50% 0,#6b2634,#17131a 65%)}.announcement-card.final-accusation>small{color:#ff9cab}.announcement-card.final-accusation .announcement-facts span{border-color:#853b48}.announcement-card.final-accusation .announcement-facts i{color:#ef8c9b}
@media(max-width:720px){.announcement-card{padding:27px 16px 20px}.announcement-card h2{font-size:32px}.announcement-facts{gap:6px;margin-bottom:17px}.announcement-facts span{min-height:100px;padding:9px 5px}.announcement-facts b{font-size:16px}.announcement-card>.primary{width:100%;min-width:0;min-height:50px}}
@media (orientation:landscape) and (max-height:600px){.announcement-dialog{width:min(88vw,720px);max-height:94dvh}.announcement-card{padding:18px 24px 14px}.announcement-card h2{font-size:27px;margin:3px 0}.announcement-card>p{margin-bottom:8px;font-size:11px}.announcement-facts{gap:7px;margin-bottom:10px}.announcement-facts span{min-height:62px;padding:6px}.announcement-facts i{margin-bottom:4px;font-size:7px}.announcement-facts b{font-size:15px}.announcement-card>.primary{min-height:38px;padding:8px 14px}}
@keyframes mobilePulse{50%{filter:brightness(1.18)}}

/* Grille de déduction : une ligne par indice, une colonne par enquêteur. */
.deduction-scroll{max-width:100%;max-height:min(66vh,720px);overflow:auto;overscroll-behavior:contain;border:1px solid #a99a83;border-radius:7px;background:#fffaf0;box-shadow:0 4px 13px #5c4c3420;isolation:isolate}
.deduction-grid{border-collapse:separate;border-spacing:0;min-width:max-content;width:100%;font-size:11px}
.deduction-grid th,.deduction-grid td{height:35px;border-right:1px solid #b8ad9d;border-bottom:1px solid #b8ad9d;padding:0;text-align:center}
.deduction-grid thead th{position:sticky;top:0;z-index:6;background:#e1d5c1;box-shadow:0 2px 0 #9d8d76}
.corner-cell,.clue-label{position:sticky!important;left:0;z-index:2!important;min-width:126px;max-width:126px;background:#f5eddd!important;text-align:left!important;padding:0 7px!important}
.corner-cell{z-index:4!important;font:700 12px 'Playfair Display'}
.player-column{width:45px;min-width:45px;padding:3px!important;transition:.15s}
.player-column small{display:none!important}
.grid-avatar{display:block;width:24px;height:24px;margin:auto;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y);border:1px solid #806f59}
.public-avatar{display:grid;place-items:center;background:#8d2737;color:white;font-size:13px}
.group-row th{height:28px;background:#8f2938;color:#fff;text-align:left;padding:0;font:700 13px 'Playfair Display';letter-spacing:.03em}.group-row .group-label{position:sticky;left:0;z-index:2;padding:0 8px;min-width:126px;max-width:126px}.group-row th+th{border-left:0}
.deduction-cell{display:grid;width:100%;height:35px;place-items:center;border:0;background:transparent;color:#bc3344;touch-action:manipulation}
.deduction-cell b{font:900 0/1 'DM Sans';transform:rotate(-8deg)}
.deduction-cell.checked b{font-size:25px}
.deduction-cell.marked b{font-size:25px;transform:none}
.deduction-cell.mark-check b{color:#159447}.deduction-cell.mark-cross b{color:#d43748}.deduction-cell.mark-question b{color:#b47b08}.deduction-cell.mark-alert b{color:#8b3ec4}
.deduction-cell.mark-check{background:#15944712}.deduction-cell.mark-cross{background:#d4374810}.deduction-cell.mark-question{background:#e8a51b12}.deduction-cell.mark-alert{background:#8b3ec412}
.deduction-cell.automatic b{font-size:25px;color:#168f67}
.deduction-cell.automatic{background:#168f6714}
.deduction-row.current th,.deduction-row.current td{background:#f5dfb8}
.deduction-grid [data-col].current{background:#f5dfb8}
.deduction-row.current [data-col].current{background:#efc777;box-shadow:inset 0 0 0 2px #c18a2f}
.deduction-row.ruled-out{opacity:.72}.deduction-row.ruled-out .clue-label{color:#8d3943;font-weight:700;text-decoration:line-through 3px #c62f3f;text-decoration-skip-ink:none}.deduction-row.ruled-out .deduction-cell{cursor:default}
.grid-legend{display:flex;gap:12px;flex-wrap:wrap;margin:7px 2px 0;color:#716557;font-size:9px}
.grid-legend b{color:#bc3344;font-size:17px}.ruled-legend{text-decoration:line-through 2px #c62f3f}
.legend-check{color:#159447}.legend-cross{color:#d43748}.legend-question{color:#9b6900}.legend-alert{color:#8b3ec4}
.mark-picker-backdrop{position:fixed;z-index:220;inset:0;display:grid;place-items:center;padding:16px;background:#05080db8}
.mark-picker{width:min(92vw,390px);padding:17px;border:1px solid #b49b78;border-radius:15px;background:#f4ead8;color:#30271f;box-shadow:0 22px 60px #000b;text-align:center}
.mark-picker>small{display:block;margin-bottom:12px;color:#766857;font-size:10px;font-weight:900;letter-spacing:.17em}
.mark-picker-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.mark-picker-options button{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #b8a88e;border-radius:10px;background:#fffaf0;color:#352e27}
.mark-picker-options b{font-size:30px;line-height:1}.mark-picker-options span{font-size:9px;font-weight:800}
.mark-picker-options .pick-check b{color:#159447}.mark-picker-options .pick-cross b{color:#d43748}.mark-picker-options .pick-question b{color:#b47b08}.mark-picker-options .pick-alert b{color:#8b3ec4}
.clear-mark{width:100%;margin-top:9px;padding:9px;border:1px solid #b8a88e;border-radius:8px;background:#e7dac6;color:#554b3f;font-size:12px}
@media(max-width:720px){
  .deduction-scroll{height:58dvh;max-height:calc(100dvh - 225px)}
  .deduction-grid th,.deduction-grid td,.deduction-cell{height:43px}
  .corner-cell,.clue-label{min-width:138px;max-width:138px;font-size:12px}
  .player-column{width:48px;min-width:48px}.grid-avatar{width:28px;height:28px}.group-row .group-label{min-width:138px;max-width:138px}
  .deduction-cell.checked b,.deduction-cell.automatic b{font-size:29px}
}

/* Ordre des joueurs enrichi et carnet tactile défilable. */
.turn-chip{flex-direction:column;align-items:flex-start;gap:2px;padding:3px 7px}
.turn-player{display:flex;align-items:center;gap:4px}
.turn-player b{max-width:110px;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:800;white-space:nowrap}
.turn-chip>small{display:block!important;max-width:115px;overflow:hidden;text-overflow:ellipsis;color:#aab2bf!important;font-size:7px!important;letter-spacing:0!important;white-space:nowrap}
@media (orientation:landscape) and (max-height:600px){
  #game .notebook{overflow-x:hidden!important;overflow-y:scroll!important;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
  #game .deduction-scroll{overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y}
  #game .turn-chip{min-width:72px}
  #game .turn-player b{max-width:92px;font-size:8px}
  #game .turn-chip>small{max-width:96px;font-size:6px!important}
  #game .game-layout{padding-bottom:48px}
  #game .action-bar{min-height:48px;max-height:48px;padding:4px 7px;gap:5px}
  #game .action-bar button{min-width:105px;min-height:36px;padding:5px 9px;font-size:10px}
  #game .action-bar .status-copy{font-size:9px;line-height:1.15}
  #game .move-hint{bottom:53px}
}

/* Priorité finale : les anciennes règles d’annonce ne doivent jamais recouvrir le décor illustré. */
dialog.announcement-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
dialog.announcement-dialog .announcement-card.scene-announcement{width:100%!important;height:100%!important;min-height:100dvh!important;background-color:#080c14!important;background-image:linear-gradient(90deg,#03050a9e 0%,#03050a28 24%,#03050a18 50%,#03050a28 76%,#03050a9e 100%),linear-gradient(0deg,#02040a8c,#02040a08 58%,#02040a55),var(--scene-image)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
dialog.announcement-dialog .announcement-card.scene-announcement.final-accusation{background-image:linear-gradient(90deg,#22030ba8,#570c1f25 35%,#570c1f18 65%,#22030ba8),linear-gradient(0deg,#17010899,#0000 58%,#27030d77),var(--scene-image)!important}

/* Cartes d’indices en verre coloré pour préserver le décor. */
dialog.announcement-dialog .scene-top{padding:6px 9px 6px 14px;border:1px solid #ffffff38;border-radius:44px;background:#07101bc4;backdrop-filter:blur(12px) saturate(130%);box-shadow:0 9px 28px #0009}
dialog.announcement-dialog .scene-top>small{color:#fff0c5;text-shadow:0 2px 5px #000}
dialog.announcement-dialog .scene-actor{background:#050911b8;border-color:color-mix(in srgb,var(--scene-color) 72%,white);box-shadow:0 0 24px color-mix(in srgb,var(--scene-color) 38%,transparent)}
dialog.announcement-dialog .scene-evidence{gap:16px}
dialog.announcement-dialog .evidence-card{position:relative;min-height:220px;padding:14px 12px 16px;border:1px solid #ffffff4d;background:linear-gradient(145deg,#111a28d9,#060b13b8);color:#fff;backdrop-filter:blur(13px) saturate(145%);box-shadow:0 18px 38px #000b,inset 0 1px #ffffff4d;overflow:hidden}
dialog.announcement-dialog .evidence-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#ffffff24,transparent 34%);pointer-events:none}
dialog.announcement-dialog .evidence-card:after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:3px;border-radius:5px;background:var(--clue-color);box-shadow:0 0 18px var(--clue-color)}
dialog.announcement-dialog .suspect-evidence{--clue-color:#ff5674;border-color:#ff718866}
dialog.announcement-dialog .weapon-evidence{--clue-color:#ffc857;border-color:#ffd27666}
dialog.announcement-dialog .room-evidence{--clue-color:#55c9ff;border-color:#73d3ff66}
dialog.announcement-dialog .evidence-card i{position:relative;z-index:2;padding:4px 10px;border:1px solid color-mix(in srgb,var(--clue-color) 62%,transparent);border-radius:15px;background:color-mix(in srgb,var(--clue-color) 18%,#070b12);color:var(--clue-color);font-size:8px;text-shadow:0 1px 3px #000}
dialog.announcement-dialog .evidence-card b{position:relative;z-index:2;color:#fff;text-shadow:0 2px 7px #000;font-size:clamp(14px,2vw,19px)}
dialog.announcement-dialog .evidence-art{position:relative;z-index:2;background:#050a12b8;border:2px solid var(--clue-color);box-shadow:0 0 0 5px color-mix(in srgb,var(--clue-color) 13%,transparent),0 10px 23px #000a}
dialog.announcement-dialog .clue-drawing{filter:drop-shadow(0 7px 7px #000)}
dialog.announcement-dialog .scene-sentence{border:1px solid #ffffff2e;background:#050a12c9;backdrop-filter:blur(9px);box-shadow:0 8px 22px #0008}
dialog.announcement-dialog #closeAnnouncement{border:1px solid #ffffff45;background:linear-gradient(135deg,color-mix(in srgb,var(--scene-color) 76%,#1b2230),#151b25);box-shadow:0 7px 22px #0009,0 0 18px color-mix(in srgb,var(--scene-color) 30%,transparent)}
@media (orientation:landscape) and (max-height:600px){dialog.announcement-dialog .scene-top{padding:3px 5px 3px 10px}dialog.announcement-dialog .scene-evidence{gap:10px}dialog.announcement-dialog .evidence-card{min-height:164px;padding:7px 7px 9px}dialog.announcement-dialog .evidence-card i{padding:3px 7px;font-size:7px}dialog.announcement-dialog .evidence-art{width:74px;height:74px}dialog.announcement-dialog .scene-sentence{margin-top:6px}}

/* Étiquettes d’indice : véritable effet verre, transparent et légèrement teinté. */
dialog.announcement-dialog .evidence-card i{
  padding:5px 12px;
  border:1px solid color-mix(in srgb,var(--clue-color) 48%,#fff 18%);
  background:linear-gradient(135deg,#ffffff18,#ffffff06);
  color:color-mix(in srgb,var(--clue-color) 82%,white);
  -webkit-backdrop-filter:blur(10px) saturate(160%);
  backdrop-filter:blur(10px) saturate(160%);
  box-shadow:inset 0 1px 0 #ffffff42,0 5px 15px #0006,0 0 12px color-mix(in srgb,var(--clue-color) 18%,transparent);
  text-shadow:0 1px 4px #000,0 0 8px color-mix(in srgb,var(--clue-color) 35%,transparent);
}
@media (orientation:landscape) and (max-height:600px){dialog.announcement-dialog .evidence-card i{padding:3px 9px}}

/* Cartes principales : verre bleu très légèrement teinté. */
dialog.announcement-dialog .evidence-card{
  border-color:#b9e8ff45;
  background:linear-gradient(145deg,#d9f4ff24,#7bcfff0d);
  -webkit-backdrop-filter:blur(9px) saturate(125%);
  backdrop-filter:blur(9px) saturate(125%);
  box-shadow:0 18px 38px #0007,inset 0 1px 0 #ffffff70,inset 0 0 22px #8edaff0a;
}
dialog.announcement-dialog .evidence-card:before{background:linear-gradient(135deg,#ffffff2e,transparent 38%)}
dialog.announcement-dialog .suspect-evidence{border-color:#b9e8ff45}
dialog.announcement-dialog .weapon-evidence{border-color:#b9e8ff45}
dialog.announcement-dialog .room-evidence{border-color:#b9e8ff45}

/* Fond demandé : bleu uniforme à 5 %, sans aucun flou. */
dialog.announcement-dialog .evidence-card{
  background:rgba(85,201,255,.05);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
dialog.announcement-dialog .evidence-card:before{background:none}

/* Carte révélée : même design que les indices de la scène. */
#choiceDialog.reveal-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:radial-gradient(circle at 50% 42%,#183d5778,#050b13 68%);overflow:hidden}
#choiceDialog.reveal-dialog>.close{z-index:5;right:18px;top:14px;width:42px;height:42px;border:1px solid #b9e8ff45;border-radius:50%;background:#55c9ff0d;color:#fff}
#choiceDialog.reveal-dialog #choiceContent{width:100%;height:100%;display:grid;place-items:center;padding:18px}
#choiceDialog.reveal-dialog .reveal-stage{width:min(92vw,560px);display:flex;flex-direction:column;align-items:center;text-align:center}
#choiceDialog.reveal-dialog .reveal-kicker{color:#9edfff;font-size:10px;font-weight:900;letter-spacing:.2em;text-shadow:0 2px 5px #000}
#choiceDialog.reveal-dialog h2{margin:7px 0 4px;color:#fff;font-size:clamp(24px,4vw,38px);text-shadow:0 4px 16px #000}
#choiceDialog.reveal-dialog p{margin:0 0 13px;color:#dce9f2}
#choiceDialog.reveal-dialog .evidence-card{--clue-color:#55c9ff;position:relative;width:min(230px,58vw);min-height:285px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:18px 14px 20px;border:1px solid #b9e8ff45;border-radius:15px;background:rgba(85,201,255,.05);color:#fff;box-shadow:0 18px 38px #0009,inset 0 1px 0 #ffffff70;overflow:hidden;animation:flip .7s}
#choiceDialog.reveal-dialog .suspect-evidence{--clue-color:#ff5674}#choiceDialog.reveal-dialog .weapon-evidence{--clue-color:#ffc857}#choiceDialog.reveal-dialog .room-evidence{--clue-color:#55c9ff}
#choiceDialog.reveal-dialog .evidence-card:after{content:"";position:absolute;left:12%;right:12%;bottom:0;height:3px;border-radius:5px;background:var(--clue-color);box-shadow:0 0 18px var(--clue-color)}
#choiceDialog.reveal-dialog .evidence-card i{padding:5px 12px;border:1px solid color-mix(in srgb,var(--clue-color) 48%,#fff 18%);border-radius:15px;background:#ffffff0d;color:color-mix(in srgb,var(--clue-color) 82%,white);font-size:9px;font-weight:900;font-style:normal;letter-spacing:.18em;box-shadow:inset 0 1px #ffffff42,0 5px 15px #0006}
#choiceDialog.reveal-dialog .evidence-art{width:125px;height:125px;display:grid;place-items:center;border:2px solid var(--clue-color);border-radius:50%;background:#050a1266;box-shadow:0 0 0 5px color-mix(in srgb,var(--clue-color) 13%,transparent),0 10px 23px #000a;overflow:hidden}
#choiceDialog.reveal-dialog .evidence-avatar-image{display:block;width:100%;height:100%;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y)}
#choiceDialog.reveal-dialog .clue-drawing{font-size:72px;line-height:1;filter:drop-shadow(0 7px 7px #000)}
#choiceDialog.reveal-dialog .evidence-card b{font:700 20px 'Playfair Display';text-shadow:0 2px 7px #000}
#choiceDialog.reveal-dialog .dialog-actions{justify-content:center;margin-top:14px}
#choiceDialog.reveal-dialog .dialog-actions button{min-width:190px}
@media (orientation:landscape) and (max-height:600px){#choiceDialog.reveal-dialog .reveal-stage{width:min(94vw,680px)}#choiceDialog.reveal-dialog h2{font-size:24px}#choiceDialog.reveal-dialog p{margin-bottom:7px;font-size:12px}#choiceDialog.reveal-dialog .evidence-card{width:190px;min-height:190px;padding:9px 11px 11px}#choiceDialog.reveal-dialog .evidence-art{width:86px;height:86px}#choiceDialog.reveal-dialog .clue-drawing{font-size:52px}#choiceDialog.reveal-dialog .dialog-actions{margin-top:7px}}

/* Choix de la carte à montrer : collection d’indices assortie. */
#choiceDialog.disprove-dialog{overflow:auto}
#choiceDialog.disprove-dialog #choiceContent{height:auto;min-height:100%;overflow:auto}
#choiceDialog.disprove-dialog .disprove-stage{width:min(94vw,920px);padding:18px 0}
#choiceDialog.disprove-dialog .disprove-grid{width:100%;display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
#choiceDialog.disprove-dialog .card-option.evidence-card{width:min(205px,27vw);min-width:150px;min-height:245px;border:1px solid #b9e8ff45!important;background:rgba(85,201,255,.05)!important;color:#fff!important;text-align:center;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}
#choiceDialog.disprove-dialog .card-option.evidence-card:hover,#choiceDialog.disprove-dialog .card-option.evidence-card:focus-visible{border-color:var(--clue-color)!important;background:rgba(85,201,255,.09)!important;outline:none;transform:translateY(-5px)}
#choiceDialog.disprove-dialog .card-option.evidence-card:active{transform:scale(.97)}
#choiceDialog.disprove-dialog .card-option em{color:#c8dbe6;font-size:10px;font-style:normal;letter-spacing:.04em}
#choiceDialog.disprove-dialog .dialog-actions button{border:1px solid #b9e8ff45;background:#55c9ff0d;color:#fff}
@media (orientation:landscape) and (max-height:600px){#choiceDialog.disprove-dialog .disprove-stage{padding:8px 0}#choiceDialog.disprove-dialog .disprove-grid{gap:9px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:0 8px}#choiceDialog.disprove-dialog .card-option.evidence-card{width:165px;min-width:165px;min-height:178px}#choiceDialog.disprove-dialog .card-option em{font-size:8px}}

/* Composition d’une hypothèse avec les trois cartes d’indices. */
#choiceDialog.suggestion-dialog{overflow:auto}
#choiceDialog.suggestion-dialog #choiceContent{height:auto;min-height:100%;overflow:auto}
#choiceDialog.suggestion-dialog .suggestion-stage{width:min(95vw,900px);padding:16px 0}
#choiceDialog.suggestion-dialog .suggestion-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(155px,220px));justify-content:center;gap:14px}
#choiceDialog.suggestion-dialog .evidence-card{width:100%;min-height:265px}
#choiceDialog.suggestion-dialog .evidence-card label{width:100%;color:#fff;text-align:left}
#choiceDialog.suggestion-dialog .evidence-card label>span{display:block;margin:0 0 4px;color:#b9cbd7;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
#choiceDialog.suggestion-dialog .evidence-card select{width:100%;min-height:39px;padding:7px 28px 7px 9px;border:1px solid color-mix(in srgb,var(--clue-color) 45%,transparent);border-radius:8px;background:#07111bcf;color:#fff;font-size:13px;font-weight:700}
#choiceDialog.suggestion-dialog .fixed-evidence b{min-height:39px;display:grid;place-items:center}
#choiceDialog.suggestion-dialog .dialog-actions{justify-content:center;gap:10px}
#choiceDialog.suggestion-dialog .dialog-actions button{min-width:150px}
#choiceDialog.suggestion-dialog .suggestion-stage{width:min(98vw,1380px)}
.suggestion-workspace{width:100%;display:grid;grid-template-columns:minmax(500px,1.35fr) minmax(330px,.85fr);gap:14px;align-items:stretch}
.suggestion-compose{min-width:0;display:flex;flex-direction:column;justify-content:center}
.suggestion-notes{min-width:0;max-height:430px;overflow:auto;padding:10px;border:1px solid #b9e8ff38;border-radius:12px;background:#f4ead8;color:#30271f;text-align:left;overscroll-behavior:contain}
.suggestion-notes-title{position:sticky;z-index:20;top:-10px;display:flex;align-items:center;gap:8px;margin:-10px -10px 8px;padding:8px 10px;background:#eee0c8;border-bottom:1px solid #ab9676}
.suggestion-notes-title>span{color:#982f3e;font-size:22px}.suggestion-notes-title small{display:block;color:#776b5e;font-size:7px;font-weight:900;letter-spacing:.14em}.suggestion-notes-title b{font:700 14px 'Playfair Display'}
.hyp-notes-arrows{display:flex;gap:4px;margin-left:auto}.hyp-notes-arrows button{width:28px;height:28px;padding:0;border:1px solid #9d8765;border-radius:7px;background:#fff8e9;color:#5a4734;font-size:22px;line-height:1}
#choiceDialog.suggestion-dialog .suggestion-notes .corner-cell,#choiceDialog.suggestion-dialog .suggestion-notes .clue-label,#choiceDialog.suggestion-dialog .suggestion-notes .group-row .group-label{width:76px!important;min-width:76px!important;max-width:76px!important;padding-left:3px!important;padding-right:3px!important}
#choiceDialog.suggestion-dialog .suggestion-notes .player-column{width:58px!important;min-width:58px!important;max-width:58px!important}

/* Nouvelle hypothèse : partage 50/50 et validation guidée en trois étapes. */
#choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
#choiceDialog.suggestion-dialog .suggestion-compose{align-items:center}
#choiceDialog.suggestion-dialog .suggestion-progress{width:min(100%,430px);display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:0 auto 9px}
#choiceDialog.suggestion-dialog .suggestion-progress span{display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 4px;border:1px solid #ffffff2b;border-radius:18px;background:#ffffff08;color:#91a0af;font-size:9px;font-weight:800}
#choiceDialog.suggestion-dialog .suggestion-progress span b{width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:#26313e;color:#c3cfda;font-size:9px}
#choiceDialog.suggestion-dialog .suggestion-progress span.active{border-color:#55c9ff88;background:#55c9ff16;color:#fff}
#choiceDialog.suggestion-dialog .suggestion-progress span.active b{background:#55c9ff;color:#07111b}
#choiceDialog.suggestion-dialog .suggestion-progress span.done{border-color:#4bbd7b55;color:#73d99d}
#choiceDialog.suggestion-dialog .suggestion-progress span.done b{background:#29965a;color:#fff}
#choiceDialog.suggestion-dialog .suggestion-wizard{width:100%;display:flex!important;align-items:center;justify-content:center}
#choiceDialog.suggestion-dialog .suggestion-step-card{display:none!important;transform:none!important;animation:evidenceReveal .35s ease both!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active{display:flex!important;width:min(100%,285px)!important;min-height:270px!important;padding:15px 13px 17px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{width:112px!important;height:112px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .clue-drawing{font-size:68px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active i{padding:5px 12px!important;font-size:8px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active label>span{font-size:8px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active select{min-height:39px!important;padding:7px 28px 7px 9px!important;font-size:12px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active.fixed-evidence b{min-height:auto!important;font-size:18px!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active.fixed-evidence>small{color:#b9cbd7;font-size:8px;letter-spacing:.08em}
#choiceDialog.suggestion-dialog .suggestion-actions{width:100%;justify-content:center}
#choiceDialog.suggestion-dialog .suggestion-actions button[hidden]{display:none!important}
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  #choiceDialog.suggestion-dialog .suggestion-progress{margin-bottom:5px}
  #choiceDialog.suggestion-dialog .suggestion-progress span{padding:3px 2px;font-size:7px}
  #choiceDialog.suggestion-dialog .suggestion-progress span b{width:16px;height:16px;font-size:7px}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active{width:min(92%,245px)!important;min-height:205px!important;padding:8px 9px 10px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{width:86px!important;height:86px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active .clue-drawing{font-size:52px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active select{min-height:32px!important;padding:4px 22px 4px 7px!important;font-size:10px!important}
}
.suggestion-notes .deduction-scroll{max-height:none}.suggestion-notes .grid-legend{display:none}.suggestion-notes .corner-cell,.suggestion-notes .clue-label{min-width:112px;max-width:112px}.suggestion-notes .player-column{width:40px;min-width:40px}
.suggestion-hand{width:100%;margin:0 0 10px;padding:8px 10px;border:1px solid #b9e8ff30;border-radius:10px;background:#55c9ff0a;text-align:left}
.suggestion-hand>small{display:block;margin-bottom:6px;color:#9edfff;font-size:8px;font-weight:900;letter-spacing:.14em}
.suggestion-hand>div{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.hand-chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #ffffff2e;border-radius:16px;background:#07111b99;color:#fff}
.hand-chip i{font-size:7px;font-weight:900;font-style:normal;letter-spacing:.08em}.hand-chip b{font-size:10px}.hand-chip.suspect i{color:#ff7188}.hand-chip.weapon i{color:#ffd276}.hand-chip.room i{color:#73d3ff}
.suggest-owned-warning{width:100%;margin:8px 0 0!important;padding:7px 11px;border:1px solid #ffc85755;border-radius:8px;background:#ffc85712;color:#ffe5a3!important;font-size:11px!important;text-align:center}
.suggest-owned-warning[hidden]{display:none!important}
@media (orientation:landscape) and (max-height:600px){#choiceDialog.suggestion-dialog .suggestion-stage{padding:4px 0}#choiceDialog.suggestion-dialog .suggestion-stage>h2{margin-top:2px;margin-bottom:1px}#choiceDialog.suggestion-dialog .suggestion-stage>p{margin-bottom:4px}.suggestion-workspace{grid-template-columns:minmax(0,1.35fr) minmax(250px,.8fr);gap:8px}#choiceDialog.suggestion-dialog .suggestion-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}#choiceDialog.suggestion-dialog .evidence-card{width:auto;min-width:0;min-height:174px}#choiceDialog.suggestion-dialog .evidence-card select{min-height:32px;padding-top:4px;padding-bottom:4px;font-size:10px}#choiceDialog.suggestion-dialog .fixed-evidence b{min-height:32px;font-size:14px}.suggestion-notes{max-height:calc(100dvh - 105px);padding:7px}.suggestion-notes-title{top:-7px;margin:-7px -7px 5px;padding:6px 8px}.suggestion-notes .deduction-grid th,.suggestion-notes .deduction-grid td,.suggestion-notes .deduction-cell{height:31px}.suggestion-notes .corner-cell,.suggestion-notes .clue-label{min-width:105px;max-width:105px;font-size:9px}}
@media (max-width:760px) and (orientation:portrait){.suggestion-workspace{grid-template-columns:1fr}.suggestion-notes{max-height:45dvh}}

/* Accusation finale : même composition, avec une tension rouge discrète. */
#choiceDialog.accusation-dialog{background:radial-gradient(circle at 50% 42%,#5b172b66,#08070d 70%)}
#choiceDialog.accusation-dialog .reveal-kicker{color:#ff8da0}
#choiceDialog.accusation-dialog .accusation-warning{padding:5px 12px;border:1px solid #ff718844;border-radius:20px;background:#ff56740d;color:#ffd6dd}
#choiceDialog.accusation-dialog .final-accuse-btn{border:1px solid #ff718866;background:linear-gradient(135deg,#b33748,#751526);box-shadow:0 8px 24px #8f1e3866}

/* Les notes doivent toujours recouvrir le bandeau supérieur. */
#game .notebook.notes-open{
  position:fixed!important;
  z-index:120!important;
  top:0!important;
  height:100dvh!important;
}
#game .notebook.notes-open .close-notes{
  position:fixed!important;
  z-index:130!important;
  top:max(6px,env(safe-area-inset-top))!important;
  right:max(6px,env(safe-area-inset-right))!important;
}

/* Notice complète accessible depuis l’accueil. */
dialog.rules-dialog{width:min(94vw,980px);max-width:980px;height:min(92dvh,900px);max-height:92dvh;padding:0;border:1px solid #4c596b;border-radius:18px;background:#0d121b;color:#edf2f7;overflow:auto;scroll-behavior:smooth}
dialog.rules-dialog>.close{position:fixed;z-index:5;right:max(18px,calc((100vw - min(94vw,980px))/2 + 12px));top:max(18px,calc((100dvh - min(92dvh,900px))/2 + 12px));width:42px;height:42px;border:1px solid #ffffff42;border-radius:50%;background:#09101bd9;color:#fff;font-size:27px;box-shadow:0 5px 18px #0008}
.rules-cover{padding:34px 70px 28px 34px;background:radial-gradient(circle at 15% 10%,#374967,#131b28 55%,#0c1119);border-bottom:1px solid #3a4656}
.rules-cover small{color:#e0b458;font-size:10px;font-weight:900;letter-spacing:.25em}.rules-cover h2{margin:6px 0 2px!important;font-size:clamp(32px,6vw,55px)!important;color:#fff}.rules-cover p{margin:0;color:#bdc7d4;font-size:15px}
.rules-content{padding:0 30px 35px}.rules-summary{position:sticky;z-index:4;top:0;display:flex;gap:7px;overflow-x:auto;margin:0 -30px 12px;padding:9px 30px;border-bottom:1px solid #303b4a;background:#0d121bf2}.rules-summary a{flex:0 0 auto;padding:7px 11px;border:1px solid #3b4859;border-radius:18px;color:#dbe5ef;font-size:11px;text-decoration:none}.rules-summary a:hover{border-color:#d9a441;color:#ffd87d}
.rule-section{display:grid;grid-template-columns:48px 1fr;gap:16px;padding:25px 0;border-bottom:1px solid #273140;scroll-margin-top:58px}.rule-number{display:grid;place-items:center;width:42px;height:42px;border:1px solid #c6943f;border-radius:50%;color:#e8ba64;font:800 13px 'Playfair Display'}.rule-section h3{margin:2px 0 12px;font:700 25px 'Playfair Display';color:#fff}.rule-section h4{margin:5px 0 4px;color:#fff}.rule-section p,.rule-section li{color:#c4ced9;font-size:14px;line-height:1.55}.rule-section ol,.rule-section ul{padding-left:20px}.rule-section li+li{margin-top:6px}
.rule-triplet,.note-symbols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}.rule-triplet span,.note-symbols span{padding:11px;border:1px solid #3d4958;border-radius:9px;background:#141b26;color:#dce5ee;font-size:12px}.rule-triplet b{display:block;margin-bottom:4px;color:#e8ba64;font-size:9px;letter-spacing:.12em}.rule-tip,.rule-warning{padding:11px 13px;border-left:3px solid #d9a441;background:#d9a4410e}.rule-warning{border-left-color:#d94b60;background:#d94b600e!important;color:#ffd7dd!important}
.turn-steps{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.turn-steps article{position:relative;padding:13px 13px 13px 48px;border:1px solid #334051;border-radius:10px;background:#121923}.turn-steps article>b{position:absolute;left:12px;top:13px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#d9a441;color:#18130a}.turn-steps p{margin:0;font-size:12px}.note-symbols{grid-template-columns:repeat(4,1fr)}.note-symbols span{font-size:22px;text-align:center}.note-symbols b{display:block;margin-top:3px;font-size:10px}.note-symbols .green{color:#49cf7c}.note-symbols .red{color:#ff6878}.note-symbols .orange{color:#f0b340}.note-symbols .purple{color:#c184ed}
.button-guide{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.button-guide article{padding:11px 12px;border:1px solid #334051;border-radius:9px;background:#121923}.button-guide b{color:#f0c46d;font-size:13px}.button-guide p{margin:4px 0 0;font-size:12px}
@media(max-width:650px){dialog.rules-dialog{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}.rules-cover{padding:25px 58px 20px 18px}.rules-content{padding:0 16px 25px}.rules-summary{margin:0 -16px 10px;padding:8px 16px}.rule-section{grid-template-columns:36px 1fr;gap:9px;padding:19px 0}.rule-number{width:33px;height:33px}.rule-section h3{font-size:21px}.turn-steps,.button-guide{grid-template-columns:1fr}.rule-triplet{grid-template-columns:1fr}.note-symbols{grid-template-columns:repeat(2,1fr)}dialog.rules-dialog>.close{right:8px;top:8px}}

/* v84 — Notice illustrée fidèle à l’interface du jeu. */
.rules-cover{position:relative;overflow:hidden}.rules-cover:after{content:"";position:absolute;right:-80px;bottom:-120px;width:330px;height:330px;border:1px solid #e0b45833;border-radius:50%;box-shadow:0 0 0 35px #e0b4580a,0 0 0 70px #e0b45808}.rules-cover>*{position:relative;z-index:1}.rules-cover .rules-cover-mark{position:absolute;right:38px;top:26px;width:62px;height:62px;display:grid;place-items:center;border:2px solid #e0b458;border-radius:50%;color:#e9c875;font:800 38px 'Playfair Display';box-shadow:0 0 30px #d8ad4e33}.rules-cover-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}.rules-cover-actions span{padding:5px 9px;border:1px solid #637085;border-radius:15px;background:#0a1019aa;color:#dce5ef;font-size:9px;font-weight:700;letter-spacing:.05em}
.rule-evidence-demo{display:grid;grid-template-columns:minmax(100px,1fr) auto minmax(100px,1fr) auto minmax(100px,1fr);align-items:center;gap:9px;margin-top:16px}.rule-evidence-demo>span{color:#d9a441;font-size:24px;text-align:center}.rule-evidence-demo article,.mini-evidence{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:10px;border:1px solid #5ebced55;border-radius:13px;background:#55c9ff0d;color:#fff;box-shadow:inset 0 0 20px #55c9ff08}.rule-evidence-demo article i,.mini-evidence i{color:#8edcff;font-size:8px;font-style:normal;font-weight:900;letter-spacing:.15em}.rule-evidence-demo article strong,.mini-evidence strong{display:grid;place-items:center;width:66px;height:66px;border:2px solid #ffffff66;border-radius:50%;background:#121b28;font-size:38px}.rule-evidence-demo article b,.mini-evidence b{font:700 14px 'Playfair Display'}.rule-avatar{display:block;width:66px;height:66px;flex:0 0 auto;border:2px solid #ffffff99;border-radius:50%;background-image:url('personnages-rigolos.png');background-size:600% 400%;background-position:var(--avatar-x) var(--avatar-y);background-repeat:no-repeat;box-shadow:0 5px 13px #0007}
.rule-setup-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:stretch;gap:8px}.rule-setup-flow>i{align-self:center;color:#d9a441;font-size:31px;font-style:normal}.rule-setup-flow article{display:flex;flex-direction:column;align-items:center;padding:13px;border:1px solid #344153;border-radius:12px;background:#121923;text-align:center}.rule-setup-flow article>b{margin:12px 0 4px;color:#fff}.rule-setup-flow article p{margin:0;font-size:11px}.rule-ui-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border:1px solid #536072;border-radius:8px;background:#202936;color:#fff;font-size:10px;font-weight:800;box-shadow:0 5px 12px #0005}.rule-ui-button.primary-demo{border-color:#c74a5c;background:linear-gradient(#b83a4d,#7d2231);color:#fff}.rule-ui-button.gold{border-color:#c69c48;background:linear-gradient(#b58737,#76531d);color:#fff9e8}.rule-code-demo{display:grid;place-items:center;min-width:105px;min-height:38px;border:1px solid #d9a441;border-radius:8px;background:#090d14;color:#f1c66c;font:800 19px 'Playfair Display';letter-spacing:.15em}.rule-character-demo{display:flex;align-items:center;gap:7px;color:#fff;font-size:10px;font-weight:700}.rule-character-demo .rule-avatar{width:38px;height:38px}
.rule-screen-demo{display:grid;grid-template-columns:105px 1fr;grid-template-rows:45px 190px 46px;overflow:hidden;border:1px solid #465467;border-radius:13px;background:#0c1119;box-shadow:0 15px 35px #0007}.rule-screen-top{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:0 10px;border-bottom:1px solid #394353;background:#171e28}.rule-screen-top>span:first-child{color:#939eae;font-size:7px;letter-spacing:.12em}.rule-screen-top>b{color:#e6ba64;font:700 13px 'Playfair Display'}.rule-mini-actions{margin-left:auto!important;color:#e7edf5!important;font-size:8px!important}.rule-screen-demo aside{display:flex;flex-direction:column;gap:6px;padding:8px 6px;border-right:1px solid #394353;background:#101620}.rule-screen-demo aside>b{color:#d9ad59;font-size:8px;text-align:center}.rule-screen-demo aside>span{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #293444;border-radius:7px;background:#171e28;color:#fff;font-size:8px}.rule-screen-demo aside .rule-avatar{width:26px;height:26px}.rule-screen-demo main{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:13px;background:radial-gradient(circle,#27303e,#111720 72%)}.rule-room-demo{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #6f604d;border-radius:5px;background:linear-gradient(145deg,#403b35,#272622);color:#fff}.rule-room-demo>span{font-size:30px}.rule-room-demo>b{font:700 13px 'Playfair Display'}.rule-room-demo.active{border-color:#ffd36d;box-shadow:0 0 15px #e3b24b66}.rule-room-demo em{position:absolute;right:5px;bottom:5px;padding:3px 5px;border-radius:4px;background:#a97825;font-size:6px;font-style:normal}.rule-screen-demo footer{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:14px;border-top:1px solid #a27730;background:#15120c}.rule-screen-demo footer span{color:#c5bba8;font-size:9px}.rule-screen-demo footer b{padding:6px 13px;border:1px solid #b98c3d;border-radius:7px;background:#805f25;color:#fff;font-size:9px}.rule-callouts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.rule-callouts span{padding:8px;border:1px solid #344153;border-radius:8px;color:#bbc6d3;font-size:10px}.rule-callouts b{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:#d9a441;color:#171109}
.turn-steps.illustrated article{min-height:132px;padding:12px 10px 12px 47px}.turn-steps.illustrated .step-icon{display:block;color:#e8c16d;font-size:25px;line-height:1}.turn-steps.illustrated h4{margin-top:3px}.turn-steps.illustrated strong{color:#fff}
.inline-rule-btn{display:inline-block;padding:3px 7px;border:1px solid #806738;border-radius:6px;background:#332a1b;color:#f3d384;font-size:11px;font-weight:700}.rule-notes-layout{display:grid;grid-template-columns:minmax(320px,1.25fr) 1fr;gap:14px;align-items:start}.rule-sheet-demo{overflow:hidden;border:1px solid #a99b85;border-radius:10px;background:#efe7d6;color:#302b25;box-shadow:0 12px 25px #0006}.rule-sheet-title{display:flex;align-items:center;gap:7px;padding:8px 9px;border-bottom:2px solid #9e2b39;background:#f3ead9}.rule-sheet-title>span{color:#9e2b39;font-size:20px}.rule-sheet-title>b{font:700 11px 'Playfair Display'}.rule-sheet-title>i{margin-left:auto;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#982f3e;color:#fff;font-size:16px;font-style:normal}.rule-sheet-demo table{width:100%;border-collapse:separate;border-spacing:0;font-size:9px}.rule-sheet-demo th,.rule-sheet-demo td{height:34px;border-right:1px solid #b8ad9d;border-bottom:1px solid #b8ad9d;text-align:center}.rule-sheet-demo tbody th{padding:0 5px;text-align:left}.rule-sheet-demo thead th{background:#ded2bd}.rule-sheet-demo thead .rule-avatar{width:23px;height:23px;margin:auto}.rule-sheet-demo .active-col,.rule-sheet-demo .active-cell{background:#f6ce7244;box-shadow:inset 0 0 0 2px #ce9639}.rule-sheet-demo .owned{color:#82786b;text-decoration:line-through;background:#cfc4b355}.rule-sheet-demo .mark-no{color:#cf3c4e;font-size:18px;font-weight:900}.rule-sheet-demo .mark-yes{color:#269957;font-size:17px;font-weight:900}.rule-sheet-demo .mark-alert{color:#8b44bd;font-size:17px;font-weight:900}.rule-sheet-demo>small{display:block;padding:7px;color:#6c6256;font-size:8px;text-align:center}.rule-check-list{padding-left:18px!important}.rule-check-list li{font-size:11px!important}.rule-check-list b{color:#fff}
.rule-deduction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.rule-deduction-grid>article{position:relative;padding:12px;border:1px solid #344153;border-radius:12px;background:#121923}.rule-stage{position:absolute;z-index:2;left:6px;top:6px;width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#d9a441;color:#191209;font-weight:900}.danger-stage{background:#a92f3e;color:#fff}.mini-evidence{min-height:155px;margin-bottom:10px}.mini-evidence .rule-avatar{width:70px;height:70px}.final-evidence{border-color:#d6536666;background:#a92f3e15}.rule-deduction-grid h4{color:#fff}.rule-deduction-grid p{margin-bottom:0;font-size:11px}.button-guide.visual article{display:flex;align-items:center;gap:10px;min-height:65px}.button-guide.visual .rule-ui-button{flex:0 0 145px}.button-guide.visual p{margin:0}.rule-ui-button.blue{border-color:#3695c5;background:#174a67}.rule-ui-button.red{border-color:#d75a6b;background:#8a2635}.rule-ui-button.dark{background:#202631}.rule-ui-button.paper{border-color:#9d8765;background:#efe7d6;color:#3a3026}.rule-ui-button.red-outline{border-color:#a83b4a;background:#36161c;color:#ffb3bd}.rule-tips-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.rule-tips-grid span{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #344153;border-radius:9px;background:#121923;color:#c8d2de;font-size:12px}.rule-tips-grid b{color:#e5b960;font:800 18px 'Playfair Display'}
.rule-button-group-title{margin:19px 0 8px!important;padding-bottom:6px;border-bottom:1px solid #344153;color:#e8bc68!important;font-size:12px!important;letter-spacing:.08em;text-transform:uppercase}.rule-ui-button.actual-primary{border:0;background:linear-gradient(135deg,#b33748,#7f1f31);color:#fff;box-shadow:0 7px 18px #861f3140}.rule-ui-button.actual-end{border-color:#b28b43;background:#805f25;color:#fff}.rule-ui-button.actual-danger{border-color:#a94051;background:#7f2231;color:#fff}.rule-ui-button.actual-notes{border-color:#7d6538;background:#332a1b;color:#f3d384}.rule-ui-button.actual-journal,.rule-ui-button.actual-sound,.rule-ui-button.actual-copy{border-color:#495160;background:#202631;color:#e8edf5}.rule-ui-button.actual-sound{flex-basis:42px!important}.rule-ui-button.actual-quit{border-color:#63313a;background:#2d171c;color:#efa2ad}.rule-ui-button.actual-cancel{border-color:#713643;background:#321a21;color:#f1a6b0}.rule-ui-button.disabled-demo{opacity:.38}.rule-callouts span:nth-child(2){border-color:#c99a4277;background:#c99a420d;color:#f2d18b}
.button-guide.exact-buttons article>button{flex:0 0 165px;min-width:0;min-height:40px;padding:9px 12px;border-radius:9px;font-size:11px;font-weight:700;pointer-events:none;transform:none}.button-guide.exact-buttons .end-turn{border:1px solid #b28b43;background:#805f25;color:#fff}.button-guide.exact-buttons .rule-game-danger{border:1px solid #a94051;background:#7f2231;color:#fff}.button-guide.exact-buttons .rule-disabled{opacity:.38}.button-guide.exact-buttons .icon-btn{flex-basis:40px;padding:0}.button-guide.exact-buttons .copy{border:1px solid #3b4352;background:#202632;color:#fff}.button-guide.exact-buttons .primary{box-shadow:0 7px 18px #861f3140}.button-guide.exact-buttons .primary:hover{filter:none;transform:none}
@media(max-width:720px){.button-guide.exact-buttons article>button{flex-basis:145px}}
.faithful-screen .rule-board-mini{background:#0d1219 url('notice-plateau.png') center/contain no-repeat!important;border-color:#4b3524!important;box-shadow:inset 0 0 0 2px #8b6b45,0 3px 14px #0009!important}.faithful-screen .rule-board-mini>*{display:none!important}
.rule-buttons-reference{margin:14px auto 20px;padding:10px;border:1px solid #394556;border-radius:13px;background:#0b1018;text-align:center}.rule-buttons-reference img{display:block;width:100%;max-width:520px;height:auto;margin:auto;border-radius:7px}.rule-buttons-reference figcaption{margin-top:8px;color:#909aaa;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.button-guide.screenshot-buttons article{min-height:70px}.shot-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 175px;min-height:44px;padding:9px 13px;border:1px solid #3d495a;border-radius:9px;background:linear-gradient(180deg,#242d3a,#19212c);color:#f4f5f7;font-size:12px;font-weight:800;box-shadow:inset 0 1px 0 #ffffff0d,0 4px 9px #0006;text-align:center}.shot-red{border-color:#b54759;background:linear-gradient(180deg,#9e3144,#7f2032);color:#fff0f2}.shot-gold{border-color:#bd8d38;background:linear-gradient(180deg,#a87929,#8c611c);color:#ffedc8}.shot-dark{border-color:#435064;background:linear-gradient(180deg,#252e3b,#1a222d);color:#f5f6f8}.shot-burgundy{border-color:#742e40;background:linear-gradient(180deg,#401b26,#2b121a);color:#f0a7b1}.shot-notes{border-color:#796435;background:linear-gradient(180deg,#332d1d,#252016);color:#e7c871}.small-shot{flex-basis:130px;min-height:38px;font-size:10px}.sound-shot{flex-basis:44px;min-height:38px;font-size:17px}.screenshot-buttons p{margin:0!important}
@media(max-width:720px){.rule-buttons-reference{padding:5px}.button-guide.screenshot-buttons article{display:grid;grid-template-columns:145px 1fr;gap:8px}.shot-button{width:145px;min-width:0;min-height:40px;flex-basis:auto;padding:7px 8px;font-size:10px}.small-shot{width:120px}.sound-shot{width:42px}}
@media(max-width:720px){.rules-cover-mark{right:15px;top:20px;width:48px;height:48px;font-size:29px}.rule-evidence-demo{grid-template-columns:1fr 1fr 1fr;gap:5px}.rule-evidence-demo>span{display:none}.rule-evidence-demo article{min-height:128px;padding:7px}.rule-evidence-demo article strong,.rule-avatar{width:55px;height:55px}.rule-setup-flow{grid-template-columns:1fr}.rule-setup-flow>i{display:none}.rule-screen-demo{grid-template-columns:82px 1fr}.rule-screen-top{gap:5px}.rule-screen-top>b{font-size:10px}.rule-mini-actions{font-size:6px!important}.rule-callouts,.rule-deduction-grid{grid-template-columns:1fr}.rule-notes-layout{grid-template-columns:1fr}.button-guide.visual .rule-ui-button{flex-basis:128px}.rule-tips-grid{grid-template-columns:1fr}}
@media(max-width:720px){.rules-cover .rules-cover-mark{right:15px;top:20px;width:48px;height:48px;font-size:29px}}

/* v86 — Reproduction fidèle de l’écran de jeu dans la notice. */
.rule-screen-demo.faithful-screen{grid-template-columns:115px minmax(0,1fr);grid-template-rows:48px 310px 50px}.faithful-screen .rule-screen-top{padding:0 8px}.rule-brand{color:#fff!important;font:700 15px 'Playfair Display'!important}.rule-brand i{color:#d9a441;font-style:normal}.rule-turn-label{display:flex;flex-direction:column;color:#929cac!important;font-size:6px!important;letter-spacing:.1em}.rule-turn-label b{color:#e6ba64;font:700 10px 'Playfair Display';letter-spacing:0}.rule-turn-queue{display:flex;gap:3px}.rule-turn-queue .rule-avatar{width:23px;height:23px;border-width:1px}.faithful-screen .rule-mini-actions{display:flex;align-items:center;gap:3px}.faithful-screen .rule-mini-actions b{padding:5px;border:1px solid #635334;border-radius:5px;background:#2e281d;color:#efd084;font-size:7px}.faithful-screen aside{grid-row:2/4;padding-bottom:8px}.faithful-screen aside>span.current{border-color:#c99a42;background:#3a2e1c}.faithful-screen aside em{font-style:normal;line-height:1.1}.faithful-screen aside small{color:#929dad;font-size:6px}.faithful-screen .rule-board-mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;padding:5px;border:6px solid #38291f;background:#201a17;box-shadow:inset 0 0 0 2px #806548}.mini-room{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px;border:1px solid #9c8262;border-radius:2px;background:linear-gradient(145deg,#3e3933,#252421);color:#ffecc9;font-size:13px;text-align:center;box-shadow:inset 0 0 9px #0008}.mini-room b{max-width:100%;color:#fff;font:700 7px/1 'Playfair Display'}.mini-room.active{border-color:#ffd36d;box-shadow:inset 0 0 10px #e6af3755,0 0 0 1px #e7ba60}.mini-room em{position:absolute;right:2px;bottom:2px;padding:2px;border-radius:2px;background:#a97825;font-size:4px;font-style:normal}.mini-room.r1{grid-area:1/1}.mini-room.r2{grid-area:1/2}.mini-room.r3{grid-area:1/3}.mini-room.r4{grid-area:1/4}.mini-room.r5{grid-area:2/1}.mini-room.r6{grid-area:2/4}.mini-room.r7{grid-area:3/1}.mini-room.r8{grid-area:3/4}.mini-room.r9{grid-area:4/1}.mini-room.r10{grid-area:4/2}.mini-room.r11{grid-area:4/3}.mini-room.r12{grid-area:4/4}.mini-manor{grid-area:2/2/4/4;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #7d664d;background:radial-gradient(circle,#29313d,#10151d);color:#d9b363;text-align:center}.mini-manor strong{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d9b363;border-radius:50%;font:800 22px 'Playfair Display'}.mini-manor b{margin-top:4px;font-size:6px;letter-spacing:.08em}.faithful-screen footer{grid-column:2;justify-content:flex-end;padding:0 7px;border-color:#806329;background:linear-gradient(90deg,#17130d,#2f2718)}.faithful-screen footer>span{margin-right:auto}.faithful-screen footer>b{padding:6px 8px}.faithful-screen footer .danger-action{border-color:#a94051;background:#7f2231}
.faithful-screen .mobile-gamebar{justify-content:flex-start}.faithful-screen .mobile-gamebar .rule-mini-actions{margin-left:0!important}.faithful-screen .mobile-gamebar .quit-demo{border-color:#8f3442;background:#35171d;color:#ffb7c0}.rule-notification-demo{margin-left:auto;max-width:180px;overflow:hidden;padding:5px 8px;border:1px solid #d1a64f;border-radius:6px;background:#2d2518;color:#fff4d5!important;font-size:7px!important;white-space:nowrap;text-overflow:ellipsis}
.faithful-screen footer{position:relative;border-top:2px solid #ffe09a;background:linear-gradient(180deg,#d7ae55,#a87827)!important;box-shadow:inset 0 1px 0 #fff2b8,0 -3px 12px #0007}.faithful-screen footer>span{color:#241a0d!important;font-weight:800}.faithful-screen footer>b{border-color:#503814;background:#6f4b18;color:#fff9e9;box-shadow:0 2px 5px #4c310966}
.faithful-screen footer>b:nth-of-type(1){border-color:#b33748;background:linear-gradient(135deg,#b33748,#7f1f31);font-size:0}.faithful-screen footer>b:nth-of-type(1):after{content:"Lancer le dé";font-size:7px}.faithful-screen footer>b:nth-of-type(2){border-color:#495160;background:#202631;color:#e8edf5;font-size:0}.faithful-screen footer>b:nth-of-type(2):after{content:"Formuler une hypothèse";font-size:7px}.faithful-screen footer>b:nth-of-type(3){border-color:#a94051;background:#7f2231;color:#fff;font-size:0}.faithful-screen footer>b:nth-of-type(3):after{content:"Accusation finale";font-size:7px}
@media(max-width:720px){.rule-screen-demo.faithful-screen{grid-template-columns:82px minmax(0,1fr);grid-template-rows:43px 245px 46px}.faithful-screen .rule-brand{display:none}.rule-turn-queue{display:none}.faithful-screen .rule-mini-actions{font-size:5px!important}.faithful-screen .rule-mini-actions b{padding:4px 3px;font-size:5px}.mini-room{font-size:10px}.mini-room b{font-size:5px}.mini-manor strong{width:30px;height:30px;font-size:17px}.faithful-screen footer{gap:3px}.faithful-screen footer>span{display:none}.faithful-screen footer>b{padding:5px 4px;font-size:5px}}
@media (orientation:landscape) and (max-height:600px){dialog.rules-dialog{width:calc(100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)));height:calc(100dvh - 12px);max-width:none;max-height:none}.rules-cover{padding-top:22px;padding-bottom:18px}.rules-cover h2{font-size:35px!important}.rules-content{padding-bottom:25px}.rule-section{padding:18px 0}.rule-section h3{font-size:21px}.rule-screen-demo{grid-template-rows:40px 165px 42px}.rule-sheet-demo th,.rule-sheet-demo td{height:30px}}

/* Zone de sécurité des téléphones avec caméra ou encoche en paysage. */
@media (orientation:landscape) and (max-height:600px){
  :root{--edge-top:max(6px,env(safe-area-inset-top));--edge-right:max(6px,env(safe-area-inset-right));--edge-bottom:max(6px,env(safe-area-inset-bottom));--edge-left:max(6px,env(safe-area-inset-left))}
  #game{background:#090d14}
  #game .gamebar{top:var(--edge-top);left:var(--edge-left);right:var(--edge-right);height:48px;padding-left:10px;padding-right:10px;border:1px solid #303846;border-radius:10px 10px 0 0}
  #game .mobile-nav{display:none!important}
  #game .game-layout{height:100dvh;padding-top:calc(48px + var(--edge-top));padding-left:calc(var(--players-width) + var(--edge-left));padding-right:var(--edge-right);padding-bottom:calc(48px + var(--edge-bottom))}
  #game .players-panel{left:var(--edge-left);top:calc(48px + var(--edge-top));bottom:var(--edge-bottom);border-radius:0 0 0 10px}
  #game .board-wrap{border:1px solid #303846;border-radius:0 0 10px 0}
  #game .action-bar{left:calc(var(--players-width) + var(--edge-left));right:var(--edge-right);bottom:var(--edge-bottom);padding-left:7px;padding-right:7px;border:1px solid #303846;border-radius:0 0 10px 10px}
  #game .move-hint{left:calc(var(--players-width) + var(--edge-left) + 6px);right:calc(var(--edge-right) + 6px);bottom:calc(53px + var(--edge-bottom))}
  #game .notebook.notes-open{top:var(--edge-top)!important;right:var(--edge-right)!important;bottom:var(--edge-bottom)!important;height:auto!important;border:1px solid #9d8765;border-radius:10px}
  #game .notebook.notes-open .close-notes{top:calc(var(--edge-top) + 6px)!important;right:calc(var(--edge-right) + 6px)!important}
  #game .turn{min-width:0;padding-left:4px;padding-right:4px}
  #game .turn-queue{max-width:calc(100vw - 250px - var(--edge-left) - var(--edge-right))}
  dialog.announcement-dialog,dialog#choiceDialog.reveal-dialog{width:calc(100vw - var(--edge-left) - var(--edge-right))!important;height:calc(100dvh - var(--edge-top) - var(--edge-bottom))!important;min-height:0!important;margin:var(--edge-top) var(--edge-right) var(--edge-bottom) var(--edge-left)!important;border-radius:12px!important;overflow:hidden}
  dialog.announcement-dialog .announcement-card.scene-announcement{height:100%!important;min-height:100%!important}
}

/* Priorité visuelle v72 : ces règles clôturent les anciens styles de l’assistant. */
#choiceDialog.suggestion-dialog{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:radial-gradient(circle at 18% 18%,#17466966,transparent 34%),radial-gradient(circle at 45% 88%,#0f314e55,transparent 38%),linear-gradient(135deg,#07111d,#0b1725 52%,#071019)!important;overflow:hidden!important}
#choiceDialog.suggestion-dialog #choiceContent{width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#choiceDialog.suggestion-dialog .suggestion-stage{width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;padding:0!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important}
#choiceDialog.suggestion-dialog .suggestion-workspace{height:100%!important;min-height:0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important}
#choiceDialog.suggestion-dialog .suggestion-compose{min-height:0!important;padding:12px!important;border:1px solid #bde8ff24!important;border-radius:17px!important;background:linear-gradient(145deg,#77d1ff0b,#ffffff03)!important;overflow:hidden!important}
#choiceDialog.suggestion-dialog .suggestion-step-card.active{width:min(100%,330px)!important;min-height:0!important;height:min(100%,330px)!important;border-radius:17px!important;background:#55c9ff0b!important;transform:none!important}
#choiceDialog.suggestion-dialog .suggestion-notes{height:100%!important;max-height:none!important;min-height:0!important;overflow:auto!important;touch-action:pan-x pan-y!important}
#choiceDialog.suggestion-dialog .suggestion-notes .deduction-scroll{max-height:none!important;overflow:visible!important;touch-action:pan-x pan-y!important}
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog{width:calc(100vw - var(--edge-left,6px) - var(--edge-right,6px))!important;height:calc(100dvh - var(--edge-top,6px) - var(--edge-bottom,6px))!important;margin:var(--edge-top,6px) var(--edge-right,6px) var(--edge-bottom,6px) var(--edge-left,6px)!important;border:1px solid #31465a!important;border-radius:12px!important}
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active{width:min(96%,270px)!important;height:min(100%,220px)!important;min-height:0!important}
}
@media (max-width:760px) and (orientation:portrait){
  #choiceDialog.suggestion-dialog{overflow:auto!important}
  #choiceDialog.suggestion-dialog #choiceContent{height:auto!important;min-height:100%!important;overflow:auto!important}
  #choiceDialog.suggestion-dialog .suggestion-stage{height:auto!important}
  #choiceDialog.suggestion-dialog .suggestion-workspace{grid-template-columns:1fr!important;height:auto!important}
  #choiceDialog.suggestion-dialog .suggestion-notes{height:55dvh!important;min-height:360px!important}
}

/* v74 — La carte s’adapte en hauteur sans masquer son sélecteur. */
#choiceDialog.suggestion-dialog .suggestion-wizard{
  min-height:0!important;
  overflow:hidden;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto;
  align-items:center;
  justify-items:center;
  height:100%!important;
  max-height:330px;
  overflow:hidden;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{
  width:min(112px,18vh)!important;
  height:auto!important;
  min-width:54px!important;
  min-height:54px!important;
  max-width:100%;
  aspect-ratio:1 / 1;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active label{
  flex:0 0 auto;
  margin:0;
}
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-step-card.active{
    height:100%!important;
    max-height:220px;
    padding:6px 9px 8px!important;
  }
  #choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-art{
    width:min(68px,15vh)!important;
    min-width:48px!important;
    min-height:48px!important;
    margin:2px!important;
  }
  #choiceDialog.suggestion-dialog .suggestion-step-card.active i{padding:3px 8px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active label>span{margin-bottom:2px!important}
  #choiceDialog.suggestion-dialog .suggestion-step-card.active select{min-height:30px!important}
}

/* v75 — Centrage strict du contenu dans chaque étiquette d’hypothèse. */
#choiceDialog.suggestion-dialog .suggestion-step-card.active{
  margin:auto!important;
  text-align:center!important;
  justify-items:center!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active>i,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>.evidence-art,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>label,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>b,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>small{
  justify-self:center!important;
  align-self:center!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active>label{
  width:100%!important;
  margin-inline:auto!important;
  text-align:center!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active>label>span{
  text-align:center!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active select{
  display:block;
  width:100%!important;
  margin-inline:auto!important;
  text-align:center;
  text-align-last:center;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active .evidence-avatar-image,
#choiceDialog.suggestion-dialog .suggestion-step-card.active .clue-drawing{
  place-self:center!important;
}

/* v76 — Le contenu forme un seul groupe réellement centré dans la carte. */
#choiceDialog.suggestion-dialog .suggestion-step-card.active{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active>i,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>.evidence-art,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>label,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>b,
#choiceDialog.suggestion-dialog .suggestion-step-card.active>small{
  flex:0 0 auto!important;
  margin-block:0!important;
}
#choiceDialog.suggestion-dialog .suggestion-step-card.active>.evidence-art{
  margin-inline:auto!important;
}
@media (orientation:landscape) and (max-height:600px){
  #choiceDialog.suggestion-dialog .suggestion-step-card.active{gap:3px!important}
}

/* v77 — Navigation directe entre Qui, Avec quoi et Où. */
#choiceDialog.suggestion-dialog .suggestion-progress span{
  cursor:pointer;
  user-select:none;
  transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}
#choiceDialog.suggestion-dialog .suggestion-progress span:hover,
#choiceDialog.suggestion-dialog .suggestion-progress span:focus-visible{
  border-color:#78d7ff88;
  background:#55c9ff12;
  color:#fff;
  outline:none;
  transform:translateY(-1px);
}
#choiceDialog.suggestion-dialog .suggestion-actions{justify-content:center!important}
#choiceDialog.suggestion-dialog .suggestion-actions #suggestNext{min-width:150px}

/* v78 — Notifications temporaires en haut à droite de l’écran. */
#game .action-notice{
  position:fixed!important;
  z-index:150!important;
  left:auto!important;
  right:max(12px,env(safe-area-inset-right))!important;
  top:calc(max(8px,env(safe-area-inset-top)) + 66px)!important;
  bottom:auto!important;
  width:auto;
  max-width:min(82vw,360px)!important;
  min-height:38px;
  padding:8px 12px;
  border-color:#d9ae58;
  border-radius:10px;
  background:#211c14f2;
  box-shadow:0 9px 28px #000a;
  animation:actionNoticeTopRight .25s ease-out both!important;
}
#game .action-bar:has(.action-notice){padding-left:7px!important}
@keyframes actionNoticeTopRight{
  from{opacity:0;transform:translateX(18px)}
  to{opacity:1;transform:translateX(0)}
}
.toast{
  left:auto!important;
  right:max(12px,env(safe-area-inset-right))!important;
  top:max(12px,env(safe-area-inset-top))!important;
  transform:translateX(calc(100% + 30px))!important;
}
.toast.show{transform:translateX(0)!important}
@media (orientation:landscape) and (max-height:600px){
  #game .action-notice{top:calc(max(6px,env(safe-area-inset-top)) + 52px)!important;right:max(10px,env(safe-area-inset-right))!important}
}

/* v79 — Notification intégrée au côté droit du bandeau supérieur. */
#game .gamebar .game-actions{min-width:0}
#game .gamebar .action-notice{
  position:static!important;
  z-index:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  flex:0 1 300px;
  width:auto;
  max-width:300px!important;
  min-width:0;
  min-height:36px;
  margin-right:2px;
  padding:6px 10px;
  animation:actionNoticeTopRight .25s ease-out both!important;
}
#game .gamebar .action-notice:not(:last-child){display:flex}
@media (orientation:landscape) and (max-height:600px){
  #game .gamebar .action-notice{
    position:static!important;
    max-width:min(28vw,250px)!important;
    min-height:32px;
    padding:4px 8px;
    font-size:9px;
  }
}
@media (max-width:760px) and (orientation:portrait){
  #game .gamebar .action-notice{max-width:150px!important}
}

/* v80 — La notification ferme le bandeau, complètement à droite. */
#game .gamebar .action-notice{
  order:99;
  margin-left:4px;
  margin-right:0;
}
/* Capture réelle utilisée dans la partie 3 de la notice. */
.rule-interface-reference{margin:14px 0 10px;padding:8px;border:1px solid #394556;border-radius:13px;background:#080d14;box-shadow:0 14px 32px #0008}
.rule-interface-reference img{display:block;width:100%;height:auto;border-radius:8px}
.rule-interface-reference figcaption{padding:7px 4px 0;color:#929dad;font-size:9px;text-align:center}
