.action-history{border:1px solid var(--line,var(--raise-3));border-radius:10px;background:var(--panel,var(--raise-3));color:var(--cream);min-width:0;overflow:hidden}
#history-toggle{display:block;width:100%;min-height:44px;text-align:left;padding:10px 12px;background:transparent;color:inherit;border:0;font:700 14px var(--body);cursor:pointer}
#history-content{max-height:210px;overflow:auto;padding:0 12px 10px;font:14px/1.5 var(--body);scrollbar-width:thin}
#history-content header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted)}
#history-content header>span:last-child{margin-left:auto;font:12px var(--mono)}
#history-content ol{list-style:none;padding:0;margin:5px 0 12px}
.history-board{display:flex;gap:3px}
.history-board .card.small{width:22px;height:30px;box-shadow:none;animation:none}
.history-board .card-corner{font-size:10px;left:2px;top:2px;letter-spacing:0}
.history-board .card-corner small{font-size:9px}
.history-board .card-bottom,.history-board .card-suit{display:none}
.history-turn{color:var(--yellow);margin:4px 0;font-weight:800}
.history-announcement{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.has-history .solver-standby{display:none}
@media(min-width:901px){#history-toggle{cursor:default;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:900px){
 .action-history{margin-bottom:6px}
 #history-toggle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #history-toggle:after{content:' ＋'}
 #history-toggle[aria-expanded=true]:after{content:' −'}
 #history-toggle[aria-expanded=false]+#history-content{display:none}
 #history-content{max-height:140px}
}
@media(min-width:901px){#history-content{max-height:min(420px,46vh)}.correcting #history-content{max-height:100px}.action-history{flex-shrink:0}}
.game-screen .history-board .card.small{width:22px;height:30px}
.game-screen .history-board .card-corner{font-size:10px}
.game-screen .history-board .card-corner small{font-size:9px}
/* Le journal réduit le feutre : ancrer les cartes adverses sous le HUD. */
@media(max-width:650px){
 body.has-history[data-mode="fullhand"] #table-stage .fullhand-replay-seat[data-player="villain"]{top:0;transform:translateX(-50%);margin-top:0}
 body.has-history[data-mode="fullhand"] .board{top:max(32%,52px)}
}
@media(max-width:650px){
 body.has-history[data-mode="fullhand"] #table-stage .fullhand-replay-seat[data-player="villain"]{left:84%}
 body.has-history[data-mode="fullhand"] .pot-display{left:35%}
}
@media(max-width:650px) and (min-height:651px){
 body.has-history[data-mode="fullhand"] .board{top:max(35%,110px)}
}
