/* Compositions inspirées des références, avec les décors et les éléments propres à Jocus. */
.rank-picture{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:6px;background:#d6bb8e;color:#fff}
.rank-picture img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.rank-caption{position:absolute;inset:auto 0 0;padding:3px 2px;background:linear-gradient(transparent,#16110bf2 30%);font:600 10px/1.1 Figtree,system-ui;text-align:center;text-shadow:0 1px 2px #000;overflow-wrap:anywhere}
.rank-picture.text-only .rank-caption{inset:0;display:grid;place-items:center;font-size:12px;background:#5a6657}
.rank-studio{width:100%;display:flex;flex-direction:column;gap:5px}
.rank-board{display:flex;flex-direction:column;gap:2px;width:100%;border:1px solid #bfaa85;border-radius:9px;overflow:hidden;background:#302922c9}
.rank-level{display:flex;min-height:clamp(36px,calc((var(--play-h,480px) - 230px)/5),62px);gap:3px}
.rank-label{width:36px;flex:none;border:0;color:#241c16;font:700 19px Georgia;cursor:pointer}
.rank-S{background:#d89183}.rank-A{background:#e1b37e}.rank-B{background:#dfcc86}.rank-C{background:#a7bc8e}.rank-D{background:#88b5b8}
.rank-zone{display:flex;gap:2px;align-items:stretch;flex:1;min-width:0;padding:2px}
.rank-zone .rank-tile{width:calc((100% - 10px)/6);max-width:58px;min-width:0;height:auto;min-height:34px}
.rank-tile{border:1px solid #dfcaa0;border-radius:7px;padding:0;background:#302922;cursor:grab;height:64px;min-width:0;overflow:hidden}
.rank-tile.selected{outline:3px solid #efcb7e;outline-offset:1px;box-shadow:0 0 0 5px #302922}
.rank-tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;width:100%;min-height:64px}
.rank-help{font:12px/1.2 Figtree,system-ui;text-align:center;margin:0}
html #app #v-play[data-game=tier] .pbody>.wy{gap:5px}
html #app #v-play[data-game=tier] .tr-theme{font-size:18px}
/* Classement à l’aveugle : dix rangs visibles à gauche, grande image à droite. */
.blind-studio{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:12px}
html #app #v-play[data-fit][data-game=blind][data-phase=play] .blind-studio .bl-slots{display:flex;flex-direction:column;gap:3px}
html #app #v-play[data-fit][data-game=blind][data-phase=play] .blind-studio .bl-slot{height:clamp(27px,calc((var(--play-h,480px) - 185px)/10),43px);min-height:27px;padding:2px 4px;gap:4px;justify-content:flex-start;border-radius:7px;background:#faf1dfeb;color:#30261c;border-color:#b79d73}
.blind-studio .bl-k{width:22px;flex:none;font-size:0;color:#30261c;font-weight:700;text-align:center}
.blind-studio .bl-k::first-letter{font-size:14px}
.blind-studio .bl-v{flex:1;height:100%;min-width:0}
.blind-studio .bl-v .rank-picture{display:flex;align-items:center;gap:3px;height:100%;background:transparent}
.blind-studio .bl-v .rank-picture img{width:26px;height:100%;object-fit:cover;border-radius:4px;flex:none}
.blind-studio .bl-v .rank-caption{position:static;background:none;color:#30261c;font-size:10px;text-shadow:none;padding:0;text-align:left}
.rank-empty{font:11px/1.1 Figtree,system-ui;opacity:.65}
html #app #v-play[data-fit][data-game=blind] .blind-studio .bl-item{height:210px;width:100%;padding:0;border:2px solid #d6b67b;box-shadow:0 8px 18px #0005;border-radius:13px;background:#d6bb8e}
.blind-studio .bl-item .rank-caption{font-size:21px;padding:20px 5px 10px}
/* Quatre bases et quatre triangles d’arrivée, sans changer les trajets du jeu à deux. */
html #app #v-play[data-game=ludo] .lu-board{background:#faf5e8;border:5px solid #8c6844;border-radius:12px;box-shadow:0 3px 0 #4c3525,0 7px 15px #0006}
html #app #v-play[data-game=ludo] .lu-yard{width:40%;height:40%;border:7px solid #fff6;border-radius:8%;background-image:radial-gradient(circle at 27% 27%,#fff5 0 12%,transparent 13%),radial-gradient(circle at 73% 27%,#fff5 0 12%,transparent 13%),radial-gradient(circle at 27% 73%,#fff5 0 12%,transparent 13%),radial-gradient(circle at 73% 73%,#fff5 0 12%,transparent 13%)}
html #app #v-play[data-game=ludo] .lu-yard.p1{background-color:#b95d50}.lu-yard.p3{right:0;top:0;background-color:#d9ae51}.lu-yard.p4{left:0;bottom:0;background-color:#6d9e79}
html #app #v-play[data-game=ludo] .lu-yard.p2{background-color:#527e98}
.lu-centre{position:absolute;left:40%;top:40%;width:20%;height:20%;background:conic-gradient(from 45deg,#527e98 0 25%,#6d9e79 25% 50%,#b95d50 50% 75%,#d9ae51 75% 100%);pointer-events:none;box-shadow:inset 0 0 0 1px #fff8}
html #app #v-play[data-game=ludo] .lu-c{border-radius:1px;border:1px solid #c5bca7;background:#fffdf5}
html #app #v-play[data-game=ludo] .lu-pawn{z-index:3;min-width:16px;min-height:16px;border:1px solid #fff6;box-shadow:inset 2px 2px 3px #fff7,inset -2px -2px 3px #0005,0 2px 2px #0005}
/* La mer est la surface de jeu ; les bateaux sont des silhouettes entières. */
html #app #v-play[data-game=battle] .bt-grid{position:relative;padding:0;gap:0;background:radial-gradient(ellipse at 25% 40%,#74b2b544,transparent 65%),linear-gradient(145deg,#38798b,#205565);border:2px solid #aacbd0;border-radius:4px;box-shadow:0 3px 12px #0004}
html #app #v-play[data-game=battle] .bt-c{border-radius:0;border:1px solid #c3e1dc66;background:transparent;aspect-ratio:1}
html #app #v-play[data-game=battle] .bt-c.ship{background:transparent;border:1px solid #c3e1dc66;box-shadow:none;color:transparent}
.fleet-vessel{position:absolute;object-fit:fill;padding:2px;pointer-events:none;z-index:1;filter:drop-shadow(1px 2px 1px #092e35aa)}
.fleet-vessel.vertical{object-fit:fill;writing-mode:vertical-lr;transform:none}
html #app #v-play[data-game=battle] .bt-c.hit,html #app #v-play[data-game=battle] .bt-c.sunk{z-index:2;background:radial-gradient(circle,#fff3b3 0 9%,#e1754c 13% 30%,#a23a2b99 34% 48%,transparent 52%)}
html #app #v-play[data-fit][data-game=battle][data-phase=play] .bt-grid.enemy{width:min(100%,calc(var(--play-h,480px) - 245px));max-width:340px}
html #app #v-play[data-fit][data-game=battle][data-phase=play] .bt-grid.mine{width:min(36%,140px);max-width:140px}
/* Bowling : la piste photographique fait partie de la scène, elle n’est plus un plateau posé dessus. */
html #app #v-play[data-game=bowling]{background-image:url(assets/boards/bowling-lounge-v3.webp)!important;background-position:center;background-size:cover}
html #app #v-play[data-game=bowling] .ghead{background:#20150f66}
html #app #v-play[data-fit][data-game=bowling] .pbody>.wy{background:transparent;border:0;box-shadow:none;padding:0;height:100%;max-height:100%;gap:5px;position:relative}
html #app #v-play[data-fit][data-game=bowling] .bw-lane{width:100%;height:auto;flex:1 1 auto;min-height:140px;max-height:none;background:transparent;border:0;box-shadow:none;clip-path:none;border-radius:0;overflow:visible;isolation:isolate}
html #app #v-play[data-game=bowling] .bw-lane::before{display:none}
html #app #v-play[data-game=bowling] .bw-pin{width:4.6%;height:36px;filter:drop-shadow(1px 3px 1px #0008)}
html #app #v-play[data-game=bowling] .bw-ball{width:13%;max-width:58px;box-shadow:inset -3px -4px 4px #0007,2px 8px 6px #0007}
html #app #v-play[data-game=bowling] .bw-pad.on{background:transparent}
html #app #v-play[data-game=bowling] .bw-sheet{background:#2b211bdd;padding:5px;border-radius:9px;color:#fff4df;flex:none;box-sizing:border-box}
html #app #v-play[data-game=bowling] .bw-row{grid-template-columns:34px repeat(10,minmax(0,1fr))}
html #app #v-play[data-game=bowling] .bw-f{min-height:28px;font-size:9px;background:#dfc18c28}
html #app #v-play[data-game=bowling] .bw-name{font-size:10px}
html #app #v-play[data-game=bowling] .pbody>.wy>.sub{font-size:11px;padding:4px 8px;max-width:320px;border-radius:10px;background:#241a13cf;color:#fff0d8}
html #app #v-play[data-game=bowling] .g7-go.sec{min-height:36px;font-size:12px;background:#241a13cf;color:#fff0d8}
@media(min-width:700px){.rank-tile{height:82px}.rank-tray{min-height:82px}.rank-caption{font-size:12px}.blind-studio .bl-item{max-width:260px}html #app #v-play[data-fit][data-game=bowling] .stagew{display:flex;max-width:850px;align-items:center}html #app #v-play[data-game=bowling] .pbody{max-width:650px}.rank-level{min-height:60px}}

.rank-level:not(:last-child){border-bottom:1px solid #bdad9155}
html #app #v-play[data-game=blind] .tr-theme{color:var(--scene-ink)}
.blind-studio .bl-k{font-size:14px}.blind-studio .bl-k::first-letter{font-size:inherit}
html #app #v-play[data-game=ludo] .lu-yard.p3{background-color:#d2aa4f}
html #app #v-play[data-game=ludo] .lu-yard.p4{background-color:#6d9e79}
html #app #v-play[data-game=ludo] .lu-c.inactive.top{background:#e3be68}
html #app #v-play[data-game=ludo] .lu-c.inactive.bottom{background:#8eb19a}
html #app #v-play[data-fit][data-game=battle][data-phase=play] .bt-grid.enemy{width:min(100%,calc(var(--play-h,480px) - 285px));max-width:320px}
html #app #v-play[data-game=bowling] .pbody>.wy>.g7-go.sec{background:#241a13d9!important;color:#fff3db!important;border-color:#d8bd8b}
html #app #v-play[data-fit][data-game=tier][data-phase=play] .rank-level{min-height:clamp(33px,calc((var(--play-h,480px) - 300px)/5),61px)}
html #app #v-play[data-fit][data-game=tier][data-phase=play] .rank-tray{min-height:56px}
html #app #v-play[data-fit][data-game=tier][data-phase=play] .rank-tray>.rank-tile{height:56px}
html #app #v-play[data-fit][data-game=blind][data-phase=play] .blind-studio .bl-slot{height:clamp(27px,calc((var(--play-h,480px) - 225px)/10),43px)}
