:root {
  --encre: #1d1420; --jaune: #ffd23f; --jaune2: #f59a12; --bleu: #2f9bff; --bleu2: #1663c7;
  --vert: #59d15b; --vert2: #2a9440; --rouge: #ff5a4d; --rouge2: #c22a35; --creme: #fff4d9; --bois: #8a4f25;
  --police: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a6f95; font-family: var(--police); color: var(--encre); user-select: none; -webkit-user-select: none; touch-action: none; }
[hidden] { display: none !important; }
canvas#jeu, canvas#monde { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
h1, h2, p { margin: 0; }

/* boutons */
.gros, .moyen, .rond { border: 3px solid var(--encre); font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), inset 0 3px 0 rgba(255, 255, 255, .45), 0 4px 0 var(--encre); transition: transform .08s, box-shadow .08s; }
.gros:active, .moyen:active, .rond:active { transform: translateY(4px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 0 0 var(--encre); }
.gros { padding: 10px 34px 14px; border-radius: 18px; font-size: clamp(18px, 6.2vh, 30px); }
.moyen { padding: 7px 20px 11px; border-radius: 14px; font-size: clamp(14px, 4.4vh, 21px); }
.rond { min-width: 44px; height: 44px; padding: 0 8px; border-radius: 22px; background: linear-gradient(#9b6bff, #6a36d6); font-size: 18px; line-height: 1; }
.jaune { background: linear-gradient(var(--jaune), var(--jaune2)); color: #4a2400; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.bleu { background: linear-gradient(#5fb8ff, var(--bleu2)); }
.vert { background: linear-gradient(#85e66f, var(--vert2)); }
.rouge { background: linear-gradient(#ff8a78, var(--rouge2)); }
button:disabled { filter: grayscale(.85) brightness(.85); cursor: default; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* écrans */
.ecran { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.plein { background: linear-gradient(rgba(10, 66, 118, .8), rgba(8, 34, 70, .94)); }
.voile { background: rgba(14, 18, 40, .62); justify-content: center; }
.barre { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.barre h2 { flex: 1; text-align: center; color: #fff; font-size: clamp(18px, 6vh, 28px); text-shadow: 0 3px 0 var(--encre); }
#accueil .barre { justify-content: flex-end; }
.or { display: inline-flex; align-items: center; gap: 7px; padding: 5px 16px 6px 8px; border-radius: 20px; border: 3px solid var(--encre); background: var(--creme); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.or::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b8, var(--jaune) 45%, var(--jaune2)); border: 2.5px solid var(--encre); }

.droite-accueil { margin: auto 2vw auto auto; width: min(50vw, 620px); display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2.6vh, 20px); text-align: center; }
h1 { font-size: clamp(38px, min(9vw, 21vh), 104px); line-height: .95; font-weight: 900; letter-spacing: .01em; color: var(--jaune); -webkit-text-stroke: 3px var(--encre); paint-order: stroke fill; text-shadow: 0 6px 0 var(--rouge2), 0 10px 0 var(--encre); transform: rotate(-3deg); }
.sous { color: #fff; font-weight: 800; font-size: clamp(14px, 4.4vh, 22px); text-shadow: 0 2px 0 var(--encre), 0 0 8px rgba(0, 40, 80, .7); }
.rang { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* carte */
.route { flex: 1; width: 100%; display: flex; align-items: center; gap: 0; overflow-x: auto; touch-action: pan-x; padding: 0 30px; scrollbar-width: none; }
.route::-webkit-scrollbar { display: none; }
.etape { flex: 0 0 auto; width: 148px; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; color: #fff; background: none; font-weight: 800; padding: 0; }
.etape:nth-child(even) { transform: translateY(26px); }
.etape:nth-child(odd) { transform: translateY(-26px); }
.etape:not(:last-child)::after { content: ""; position: absolute; left: 106px; top: 46px; width: 88px; border-top: 5px dotted rgba(255, 255, 255, .7); transform: rotate(30deg); }
.etape:nth-child(even):not(:last-child)::after { transform: rotate(-30deg); top: 18px; }
.etape i { width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--encre); display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 900; background: linear-gradient(#85e66f, var(--vert2)); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .22), inset 0 4px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--encre); text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.etape.suivante i { background: linear-gradient(var(--jaune), var(--jaune2)); animation: pouls 1.1s infinite; }
.etape.fermee { opacity: .62; } .etape.fermee i { background: linear-gradient(#8fa0b4, #5a6a80); }
.etape span { font-size: 14px; line-height: 1.1; text-shadow: 0 2px 0 var(--encre); text-align: center; min-height: 31px; }
.etape em { font-style: normal; color: var(--jaune); letter-spacing: 2px; text-shadow: 0 2px 0 var(--encre); height: 20px; }
@keyframes pouls { 50% { transform: scale(1.1); } }

/* préparation */
.prepa { display: flex; align-items: center; justify-content: center; gap: 2vw; flex: 1; min-height: 0; width: 100%; }
.face { display: flex; flex-direction: column; align-items: center; min-height: 0; height: 100%; justify-content: flex-end; color: #fff; text-shadow: 0 2px 0 var(--encre); font-size: clamp(13px, 4vh, 18px); line-height: 1.15; }
.face canvas { height: min(27vh, 300px); min-height: 70px; width: auto; }
.face span { font-size: .8em; font-weight: 700; opacity: .92; }
#prepaE { transform: scaleX(-1); }
.vs { font-size: clamp(24px, 9vh, 54px); font-weight: 900; color: var(--rouge); -webkit-text-stroke: 2px var(--encre); paint-order: stroke fill; }
.consigne { color: #fff; font-weight: 800; font-size: clamp(13px, 3.9vh, 18px); text-shadow: 0 2px 0 var(--encre); padding: 4px; }
.choix { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; touch-action: pan-x; padding: 4px 4px 8px; scrollbar-width: none; }
.choix .fiche { width: clamp(76px, 10.5vw, 112px); }
#btnCombat { margin-top: 2px; }

/* fiches de pirates */
.fiche { flex: 0 0 auto; border: 3px solid var(--encre); border-radius: 14px; background: linear-gradient(var(--creme), #f2d49a); padding: 3px; display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; line-height: 1.1; position: relative; box-shadow: 0 4px 0 var(--encre); overflow: hidden; }
.fiche canvas { width: 100%; height: clamp(44px, 14vh, 74px); border-radius: 9px; }
.fiche.choisie { outline: 4px solid var(--jaune); background: linear-gradient(#fff9c9, #ffd86b); }
.fiche.fermee canvas { filter: brightness(0) opacity(.45); }
.fiche .niv { position: absolute; left: 4px; top: 4px; background: var(--encre); color: #fff; border-radius: 8px; padding: 1px 6px; font-size: 11px; }
.fiche .num { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; border: 2px solid var(--encre); }

.grille { flex: 1; min-height: 0; width: 100%; max-width: 1250px; overflow-y: auto; touch-action: pan-y; display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; padding: 6px 6px 18px; align-content: start; scrollbar-width: thin; }
.bloc { border: 3px solid var(--encre); border-radius: 16px; background: linear-gradient(var(--creme), #f2d49a); box-shadow: 0 5px 0 var(--encre); padding: 8px; display: grid; grid-template-columns: 78px 1fr; gap: 4px 10px; align-items: center; }
.bloc canvas { width: 78px; height: 78px; border-radius: 12px; grid-row: span 2; }
.bloc h3 { margin: 0; font-size: 17px; line-height: 1.1; }
.bloc h3 small { display: block; font-size: 12px; opacity: .75; }
.bloc p { font-size: 13px; line-height: 1.2; font-weight: 600; }
.bloc .pied { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; }
.bloc .pied span { white-space: nowrap; }
.bloc .moyen { font-size: 15px; padding: 5px 10px 8px; min-height: 40px; white-space: nowrap; margin-left: auto; }
.bloc.fermee canvas { filter: brightness(0) opacity(.45); }

/* pendant la bataille */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button { pointer-events: auto; }
.camp { position: absolute; top: max(6px, env(safe-area-inset-top)); width: min(38vw, 420px); display: grid; grid-template-columns: 1.6fr 1fr; gap: 4px 6px; }
.nomCamp { grid-column: 1 / -1; } .droite .nomCamp { text-align: right; }
.gauche { left: max(10px, env(safe-area-inset-left)); }
.droite { right: max(10px, env(safe-area-inset-right)); align-items: flex-end; }
.nomCamp { color: #fff; font-weight: 900; font-size: clamp(13px, 4vh, 19px); line-height: 1; text-shadow: 0 2px 0 var(--encre), 0 0 5px rgba(0, 0, 0, .5); }
.jauge { position: relative; width: 100%; height: clamp(16px, 4.4vh, 22px); border: 3px solid var(--encre); border-radius: 12px; background: rgba(20, 16, 36, .6); overflow: hidden; }
.jauge i { position: absolute; inset: 0; width: 100%; transform-origin: left; background: linear-gradient(#a0f58a, #2fae47); transition: transform .18s; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4); }
.droite .jauge i { transform-origin: right; }
.jauge b { position: absolute; left: 9px; top: 50%; transform: translateY(-52%); color: #fff; font-size: clamp(10px, 3vh, 14px); text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.droite .jauge b { left: auto; right: 9px; }
.jauge em { position: absolute; right: 9px; top: 50%; transform: translateY(-52%); color: #fff; font-style: normal; font-weight: 800; font-size: clamp(10px, 3vh, 13px); text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.droite .jauge em { right: auto; left: 9px; }
.eau i { transform: scaleX(0); } .eau i { background: linear-gradient(#7fe0ff, #1f78e0); }
.eau.danger { animation: alerte .5s infinite alternate; }
@keyframes alerte { to { border-color: var(--rouge); box-shadow: 0 0 12px var(--rouge); } }
.milieu { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vent { color: #fff; font-weight: 900; font-size: clamp(12px, 3.6vh, 17px); text-shadow: 0 2px 0 var(--encre); white-space: nowrap; }
.cartes { position: absolute; bottom: max(6px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: clamp(5px, 1vw, 10px); align-items: flex-end; }
.carte { width: clamp(54px, 15.5vh, 92px); height: clamp(58px, 17vh, 100px); padding: 0; border: 3px solid var(--encre); border-radius: 14px; background: linear-gradient(#e8f6ff, #8fc6ee); position: relative; overflow: hidden; box-shadow: 0 4px 0 var(--encre); transition: transform .12s; }
.carte canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte.choisie { transform: translateY(-9px); background: linear-gradient(#fff9c9, #ffc93c); outline: 3px solid #fff; }
.carte .ombre { position: absolute; inset: 0; background: rgba(20, 16, 36, .62); transform-origin: bottom; }
.carte .pv { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 6px; border-radius: 4px; background: var(--encre); overflow: hidden; }
.carte .pv i { display: block; height: 100%; background: #59e05b; transform-origin: left; }
.carte.mort { filter: grayscale(1) brightness(.6); transform: none; }
.carte.passif { background: linear-gradient(#fdf2c4, #e3c160); }
.carte.passif::after { content: "auto"; position: absolute; bottom: 11px; right: 3px; padding: 0 5px; border-radius: 6px; background: var(--encre); color: #fff; font-size: 10px; font-weight: 900; }
.carte.bordee { width: clamp(66px, 19vh, 112px); background: linear-gradient(#6b5a78, #3a2c48); color: #fff; font-weight: 900; font-size: clamp(10px, 3vh, 15px); text-shadow: 0 2px 0 var(--encre); }
.carte.bordee .charge { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffb327, #ff5a12); }
.carte.bordee span { position: absolute; inset: 0; display: grid; place-items: center; line-height: 1.05; }
.carte.bordee.pleine { animation: pouls .7s infinite; }
.carte.bordee.choisie { outline: 3px solid #fff; }
.conseil { position: absolute; left: 50%; bottom: calc(clamp(58px, 17vh, 100px) + 22px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--creme); border: 3px solid var(--encre); border-radius: 16px; padding: 4px 14px; font-weight: 800; font-size: clamp(13px, 3.9vh, 19px); box-shadow: 0 4px 0 var(--encre); text-align: center; white-space: nowrap; }

/* panneaux */
.panneau { background: linear-gradient(var(--creme), #f0cf90); border: 4px solid var(--encre); border-radius: 24px; padding: 14px 28px 18px; display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 2.2vh, 14px); box-shadow: 0 8px 0 var(--encre); min-width: min(380px, 80vw); max-width: 92vw; animation: arrive .32s cubic-bezier(.2, 1.6, .5, 1); text-align: center; }
@keyframes arrive { from { transform: scale(.5); opacity: 0; } }
.panneau h2 { font-size: clamp(26px, 10vh, 46px); line-height: 1; }
.panneau.gagne h2 { color: var(--jaune2); -webkit-text-stroke: 2px var(--encre); paint-order: stroke fill; }
.panneau.perdu h2 { color: var(--rouge2); }
.panneau p { font-weight: 700; font-size: clamp(13px, 4vh, 18px); }
.etoiles { font-size: clamp(28px, 11vh, 52px); line-height: 1; letter-spacing: 6px; }
.etoiles b { color: #d8c08f; } .etoiles b.oui { color: var(--jaune2); -webkit-text-stroke: 1.5px var(--encre); display: inline-block; animation: arrive .4s backwards cubic-bezier(.2, 1.8, .5, 1); }
.gain { font-weight: 900; font-size: clamp(18px, 6vh, 28px); }
.nouveau { font-weight: 800; background: #fff; border: 3px solid var(--encre); border-radius: 12px; padding: 4px 14px; }

#tourner { display: none; position: fixed; inset: 0; background: #0a3f66; color: #fff; place-content: center; justify-items: center; gap: 18px; font-weight: 900; font-size: 24px; z-index: 50; }
#tourner .tel { width: 62px; height: 108px; border: 6px solid #fff; border-radius: 14px; animation: tourne 1.8s infinite; }
@keyframes tourne { 60%, 100% { transform: rotate(90deg); } }
@media (orientation: portrait) and (max-width: 700px) { #tourner { display: grid; } }
@media (prefers-reduced-motion: reduce) { .etape.suivante i, .carte.bordee.pleine, .eau.danger { animation: none; } }

/* viser et tirer */
.pad { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2, var(--p)) 14px; grid-auto-rows: var(--p); gap: 6px; align-items: stretch; }
.pad button { position: relative; padding: 0; border: 3px solid var(--encre); border-radius: 14px; background: linear-gradient(#fff4d9ee, #e9bf72ee); font-weight: 900; font-size: clamp(18px, 6vh, 28px); line-height: 1; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 3px 0 var(--encre); touch-action: none; }
.pad button.appui { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); background: linear-gradient(#fff9c9, #ffc93c); }
.pad [data-cmd="haut"] { grid-area: 1 / 1; } .pad [data-cmd="bas"] { grid-area: 2 / 1; } .pad [data-cmd="plus"] { grid-area: 1 / 2; } .pad [data-cmd="moins"] { grid-area: 2 / 2; }
.pad .force { grid-area: 1 / 3 / 3 / 4; border: 3px solid var(--encre); border-radius: 9px; background: rgba(20, 16, 36, .65); overflow: hidden; position: relative; }
.pad .force i { position: absolute; inset: 0; transform-origin: bottom; background: linear-gradient(#ff5a4d, #ffd23f 55%, #59e05b); }
.feu { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: clamp(82px, 25vh, 124px); aspect-ratio: 1; padding: 0; border: 4px solid var(--encre); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ff9d86, #ef3b30 45%, #a81620); color: #fff; font-weight: 900; font-size: clamp(17px, 5.6vh, 27px); text-shadow: 0 2px 0 var(--encre); box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .28), 0 5px 0 var(--encre); touch-action: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; line-height: 1; }
.feu:active { transform: translateY(4px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28); }
.feu.attend { filter: saturate(.35) brightness(.8); }
kbd { font: 800 11px/1 var(--police); border: 2px solid var(--encre); border-radius: 6px; background: #fff; color: var(--encre); padding: 2px 5px; text-shadow: none; }
#hud kbd { display: none; }
body.ordi #hud kbd { display: inline-block; }
.pad kbd { position: absolute; right: -3px; bottom: -4px; padding: 1px 4px; }
.carte kbd { position: absolute; left: 3px; top: 3px; padding: 1px 4px; }
.aide .bloc { display: block; } .aide h3 { margin-bottom: 4px; } .aide p { font-size: 15px; line-height: 1.45; }
.conseil { max-width: 96vw; }
@media (max-width: 720px) { .carte { width: 48px; } .carte.bordee { width: 62px; } .cartes { gap: 4px; } }

/* chacun son tour */
.tour { padding: 3px 14px 4px; border: 3px solid var(--encre); border-radius: 14px; color: #fff; font-weight: 900; font-size: clamp(12px, 3.9vh, 18px); line-height: 1.1; text-shadow: 0 2px 0 var(--encre); white-space: nowrap; }
.tour.joueur { background: linear-gradient(#85e66f, var(--vert2)); }
.tour.ennemi { background: linear-gradient(#ff8a78, var(--rouge2)); }
.tour.rien { visibility: hidden; }
#hud.attente .pad, #hud.attente .carte.choisie { opacity: .55; }
#hud.attente .carte.choisie { transform: none; outline: none; }

/* en ligne */
#accueil .rang .gros { padding: 9px 22px 13px; font-size: clamp(16px, 5.4vh, 27px); }
#enligne .panneau { margin: auto; }
#ligneChoix, #ligneAttente { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 2.4vh, 14px); }
#enligne label { font-weight: 900; }
#enligne h3 { margin: 0; font-size: clamp(16px, 5.4vh, 24px); }
#enligne input { font: 800 20px var(--police); text-align: center; width: 230px; padding: 7px 10px; border: 3px solid var(--encre); border-radius: 12px; background: #fff; user-select: text; -webkit-user-select: text; touch-action: manipulation; }
.boussole { width: clamp(48px, 16vh, 76px); aspect-ratio: 1; border: 5px solid var(--encre); border-radius: 50%; background: conic-gradient(var(--rouge) 0 12%, #fff 12% 50%, #8fb6d6 50% 62%, #fff 62%); animation: cherche 1.4s infinite ease-in-out; }
@keyframes cherche { 0% { transform: rotate(-30deg); } 50% { transform: rotate(300deg); } 100% { transform: rotate(330deg); } }
@media (prefers-reduced-motion: reduce) { .boussole { animation-duration: 6s; } }

/* naviguer */
#hud { --p: clamp(44px, 11.4vh, 62px); }
.cap { position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: calc(max(8px, env(safe-area-inset-bottom)) + 2 * var(--p) + 13px); width: calc(2 * var(--p) + 26px); display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cap button { position: relative; width: clamp(38px, 10vh, 50px); height: clamp(32px, 8.6vh, 42px); padding: 0; border: 3px solid var(--encre); border-radius: 12px; background: linear-gradient(#8fd4ff, #2f86d8); color: #fff; font-weight: 900; font-size: clamp(14px, 4.6vh, 20px); line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22), 0 3px 0 var(--encre); touch-action: none; }
.cap button:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.cap kbd { position: absolute; right: -3px; bottom: -5px; padding: 1px 4px; }
.niveaux { display: flex; flex-direction: column-reverse; gap: 2px; }
.niveaux i { width: 12px; height: 5px; border-radius: 3px; background: rgba(20, 16, 36, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.niveaux i.ici { background: var(--jaune); box-shadow: 0 0 0 1px var(--encre); }
#hud.attente .cap { opacity: .55; }

/* la carte des îles */
#carte { padding: 0; }
#carte .barre { position: relative; z-index: 2; padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); background: linear-gradient(rgba(8, 50, 90, .72), rgba(8, 50, 90, 0)); pointer-events: none; }
#carte .barre > * { pointer-events: auto; }
#carte .barre h2 { pointer-events: none; }
#iles { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
#iles button { position: absolute; left: 0; top: 0; will-change: transform; }
.ile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0; background: none; color: #fff; font-weight: 900; line-height: 1.05; text-shadow: 0 2px 0 var(--encre), 0 0 6px rgba(0, 20, 50, .8); font-size: clamp(12px, 3.8vh, 17px); white-space: nowrap; }
.ile i { width: clamp(34px, 10vh, 50px); aspect-ratio: 1; display: grid; place-items: center; border: 3px solid var(--encre); border-radius: 50%; font-style: normal; font-size: clamp(15px, 5vh, 23px); background: linear-gradient(#85e66f, var(--vert2)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22), inset 0 3px 0 rgba(255, 255, 255, .4), 0 3px 0 var(--encre); }
.ile em { font-style: normal; color: var(--jaune); letter-spacing: 2px; min-height: 1em; }
.ile.suivante i { background: linear-gradient(#ff8a78, var(--rouge2)); animation: pouls 1.1s infinite; }
.ile.fermee { opacity: .85; } .ile.fermee i { background: linear-gradient(#8fa0b4, #5a6a80); }
.coffre { padding: 5px 14px 7px; border: 3px solid var(--encre); border-radius: 14px; background: linear-gradient(var(--jaune), var(--jaune2)); color: #4a2400; font-weight: 900; font-size: clamp(13px, 4vh, 18px); white-space: nowrap; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--encre); }
.coffre::after { content: ""; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--encre); border-bottom: 0; }
#btnTresors { white-space: nowrap; }
.objet { font-size: clamp(54px, 22vh, 110px); line-height: 1; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); animation: arrive .5s cubic-bezier(.2, 1.8, .5, 1); }
#tresor h3 { margin: 0; font-size: clamp(17px, 5.6vh, 26px); }
.vitrine { display: grid; grid-template-columns: repeat(5, minmax(78px, 1fr)); gap: 8px; }
.tresor { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 3px solid var(--encre); border-radius: 12px; background: #fff6dc; font-weight: 800; font-size: 12px; line-height: 1.1; }
.tresor b { font-size: clamp(22px, 8vh, 36px); line-height: 1.1; }
.tresor.absent { background: #cdbd97; color: #7b6a45; }
