.forest-board .players li{--portrait-top:-40px;--portrait-size:124px;--name-top:90px;--name-height:30px;--stats-bottom:20px;--stats-height:18px}
.forest-board .players li>.animal-stage{top:var(--portrait-top)!important;height:var(--portrait-size);width:var(--portrait-size);overflow:hidden;contain:paint;z-index:1}
.forest-board .players li>.animal-stage .critter{width:var(--portrait-size)!important;height:var(--portrait-size)!important;max-width:none}
.forest-board .players li>.seat-name{position:absolute;top:var(--name-top);left:6px;right:6px;width:auto!important;height:var(--name-height);margin:0!important;padding:2px 5px!important;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px!important;line-height:14px!important;overflow:hidden;overflow-wrap:anywhere;z-index:4;isolation:isolate}
.forest-board .players li>.stats{position:absolute;top:calc(var(--name-top) + var(--name-height) + 2px);bottom:auto;left:6px;right:6px;width:auto!important;height:var(--stats-height);min-height:0;padding:0;display:flex;align-items:center;justify-content:center;gap:5px;z-index:4}
.forest-board .players li .score-badge{position:static;min-width:24px;min-height:18px;height:18px;font-size:12px;border-width:1px}
.forest-board .players li .stats small{width:auto;font-size:9px;line-height:10px}
.forest-board .players li>.secret-number-backs{position:absolute;bottom:3px;left:5px;right:5px;width:auto;margin:0;height:14px;z-index:2}
.forest-board .players li>.secret-number-backs span{height:14px}
.forest-board .animal-speech{top:30px;right:1px;font-size:16px;padding:4px 7px;min-width:32px;z-index:2}
.forest-board[data-player-count="5"] .players li,.forest-board[data-player-count="6"] .players li,.forest-board[data-player-count="7"] .players li{--portrait-top:-30px;--portrait-size:86px;--name-top:60px;--name-height:30px;--stats-bottom:19px;--stats-height:17px}
.forest-board:has(.players li:nth-child(8)) .players li{--portrait-top:-4px;--portrait-size:65px;--name-top:65px;--name-height:28px;--stats-bottom:16px;--stats-height:16px}
.forest-board:has(.players li:nth-child(8)) .players li{flex-basis:124px!important;width:124px!important}
.forest-board:has(.players li:nth-child(8)) .players li>.seat-name{left:2px;right:2px;padding:1px 2px!important;font-size:10px!important;line-height:11px!important}
.forest-board:has(.players li:nth-child(8)) .players li>.secret-number-backs{bottom:0;height:10px}
.forest-board:has(.players li:nth-child(8)) .players li>.secret-number-backs span{height:10px;font-size:10px}
.forest-board:has(.players li:nth-child(8)){display:grid;grid-template-rows:minmax(0,1fr) 96px;gap:5px;min-height:0}
.forest-board:has(.players li:nth-child(8)) .players{height:100%;min-height:0;max-height:none!important;align-content:start;align-items:start;box-sizing:border-box;padding:5px 2px;overflow:auto!important}
.forest-board:has(.players li:nth-child(8)) .counter{width:100%;display:grid;grid-template-columns:1fr 92px 1fr;align-items:center;gap:8px}
.forest-board:has(.players li:nth-child(8)) .counter .count-dial{width:88px;height:88px;margin:3px auto}
.forest-board:has(.players li:nth-child(8)) .counter .count{font-size:44px}
.forest-board:has(.players li:nth-child(8)) .counter>p{margin:0!important;font-size:11px}
.forest-board .players li>.secret-number-backs{display:none}
.forest-board .players li .stats small{min-width:0;white-space:nowrap}
.forest-board:has(.players li:nth-child(5)){display:grid;grid-template-rows:minmax(0,1fr) 96px;gap:5px;min-height:0}
.forest-board:has(.players li:nth-child(5)) .players{position:static;display:flex!important;flex-wrap:wrap;justify-content:center;gap:8px;height:100%;min-height:0;max-height:none!important;align-content:start;align-items:start;box-sizing:border-box;padding:5px 2px;overflow:auto!important}
.forest-board:has(.players li:nth-child(5)) .players li{position:relative!important;inset:auto!important;flex:0 0 124px!important;width:124px!important;height:125px!important;--portrait-top:-4px;--portrait-size:65px;--name-top:65px;--name-height:28px;--stats-height:16px}
.forest-board:has(.players li:nth-child(5)) .players li>.seat-name{left:2px;right:2px;padding:1px 2px!important;font-size:11px!important;line-height:12px!important}
.forest-board:has(.players li:nth-child(5)) .counter{width:100%;display:grid;grid-template-columns:1fr 92px 1fr;align-items:center;gap:8px}
.forest-board:has(.players li:nth-child(5)) .counter .count-dial{width:88px;height:88px;margin:3px auto}
.forest-board:has(.players li:nth-child(5)) .counter .count{font-size:44px}
.forest-board:has(.players li:nth-child(5)) .counter>p{margin:0!important;font-size:11px}
@media(max-width:800px){
 .forest-board .players li,.forest-board[data-player-count="5"] .players li,.forest-board[data-player-count="6"] .players li,.forest-board[data-player-count="7"] .players li,.forest-board:has(.players li:nth-child(8)) .players li{--portrait-top:-18px;--portrait-size:60px;--name-top:46px;--name-height:25px;--stats-bottom:3px;--stats-height:21px}
 .forest-board .players li>.seat-name{left:3px;right:3px;font-size:11px!important;line-height:11px!important;padding:1px 3px!important}
 .forest-board .players li>.stats{left:3px;right:3px;gap:3px}
 .forest-board .players li .stats small{font-size:8px;line-height:9px}
 .forest-board .players li .score-badge{min-width:18px;min-height:16px;height:16px;font-size:11px}
 .forest-board .players li>.secret-number-backs{display:none}
 .forest-board .animal-speech{top:15px;font-size:12px;padding:2px 4px;min-width:24px}
 .forest-board:has(.players li:nth-child(5)) .players li{flex-basis:100px!important;width:100px!important;height:100px!important;--portrait-top:0px;--portrait-size:44px;--name-top:46px;--name-height:25px;--stats-height:21px}
 .forest-board:has(.players li:nth-child(5)) .players li>.seat-name{font-size:10px!important;line-height:11px!important}
}
