.race-mobile-choices{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.race-mobile-choices .button{min-height:48px;flex:1;min-width:100px}
@media(max-width:600px){
 dialog:has(.arcade-shell){width:calc(100vw - 12px)!important;max-width:none!important;max-height:calc(100dvh - 12px)!important;padding:40px 7px 14px!important;margin:auto!important;overflow:auto!important;overscroll-behavior:contain;border-radius:16px}
 dialog:has(.arcade-shell) .close{position:absolute;top:5px;right:7px;width:40px;height:40px;font-size:26px;z-index:5}
 .arcade-shell h2{font-size:20px;line-height:1.35;margin:0 0 10px}.arcade-shell #arcade-status{font-size:14px}.arcade-shell .game-controls{display:flex;flex-wrap:wrap;gap:8px}.arcade-shell .game-controls .button{min-height:46px;white-space:normal;font-size:13px;flex:1 1 120px}
 .arcade-shell #arcade-board{overflow:visible;min-width:0;width:100%;max-width:100%}
 .arcade-shell .refuge-solitaire{min-width:0!important;width:100%;padding:9px 3px!important;overflow:visible!important;border-radius:12px}
 .arcade-shell .solitaire-caption{display:flex;flex-wrap:wrap;gap:4px;font-size:11px;margin-bottom:12px}.arcade-shell .solitaire-caption strong{font-size:11px}
 .arcade-shell .refuge-solitaire .solitaire-top{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important;min-width:0!important;align-items:start;margin-bottom:18px}
 .arcade-shell .solitaire-top>.deck-group{min-width:0;width:100%}.arcade-shell .refuge-solitaire .foundations{grid-column:span 4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important;min-width:0;width:100%}
 .arcade-shell .refuge-solitaire .deck-group .playing-card{width:100%!important;height:auto!important;aspect-ratio:2/3;max-width:none!important;min-width:0!important;border-radius:5px!important;font-size:15px!important}
 .arcade-shell .pile-label{font-size:9px;white-space:nowrap;text-align:center}.arcade-shell .deck-group>small{font-size:9px;line-height:1.3;display:block;text-align:center;margin-top:4px}
 .arcade-shell .refuge-solitaire .solitaire-piles{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0!important;gap:4px!important;width:100%!important}
 .arcade-shell .refuge-solitaire .solitaire-pile{min-width:0!important;width:100%}.arcade-shell .refuge-solitaire .solitaire-pile .playing-card{width:100%!important;max-width:none!important;height:clamp(62px,20vw,93px)!important;border-radius:5px!important;font-size:14px!important}
 .arcade-shell .refuge-solitaire .pile-target{width:100%!important;min-width:0!important;max-width:none!important;height:clamp(62px,20vw,93px)!important;padding:0 0 5px}
 .arcade-shell .card-corner{font-size:12px!important;left:3px;top:3px;line-height:1}.arcade-shell .card-corner small{font-size:10px!important}.arcade-shell .card-corner.bottom{left:auto;right:3px;top:auto;bottom:3px}.arcade-shell .card-pips i{font-size:11px!important}.arcade-shell .card-court svg{max-width:65%;max-height:65%}.arcade-shell .card-court b{font-size:19px}.arcade-shell .solitaire-footer{font-size:11px;line-height:1.5}
 .arcade-shell .refuge-race{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0}.arcade-shell .race-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}.arcade-shell .race-player{min-width:0;padding:8px!important}.arcade-shell .race-player strong{font-size:12px;overflow-wrap:anywhere}.arcade-shell .race-player>span{width:22px;flex-shrink:0}
 .arcade-shell .refuge-race .race-board{width:min(100%,420px)!important;min-width:0!important;max-width:100%!important;aspect-ratio:1;max-height:none!important}.arcade-shell .race-pawn{min-width:30px;min-height:35px}.arcade-shell .race-pawn.playable{outline:2px solid #f4d17b88;outline-offset:3px;border-radius:8px}
 .arcade-shell .refuge-race .race-controls{width:100%;display:flex;flex-direction:row;gap:10px;padding:12px 9px!important}.arcade-shell .race-controls>div{flex:1;min-width:0}.arcade-shell .race-controls p{font-size:12px;max-width:none}.arcade-shell .race-controls .button{min-height:48px;width:100%;font-size:14px}.arcade-shell .refuge-die{flex-shrink:0;width:48px;height:48px}.arcade-shell .race-tip{font-size:11px}
}

/* Dé coloré réservé aux petits chevaux. */
.refuge-race .refuge-die{background:linear-gradient(135deg,#489de5,#2456a0)!important;border:2px solid #efc86c;box-shadow:inset 2px 2px 5px #ffffff55,inset -4px -5px 8px #071c5266,0 6px 12px #0005}.refuge-race .refuge-die .dot{background:#ffe19a!important;box-shadow:inset 1px 1px 2px #a56c2e88}.refuge-race .refuge-die{padding:12px;gap:4px}@media(max-width:600px){.refuge-race .refuge-die{flex:0 0 54px;width:54px;height:54px;padding:8px;gap:3px}}
