/* Mondes de William : autos, blocs et Pixo */
.t-rouge { background: linear-gradient(145deg, #ffb07a, #ef476f); color: #fff; } .t-ciel { background: linear-gradient(145deg, #b4f0ff, #2aa8e0); color: #06324a; } .t-terre { background: linear-gradient(145deg, #bfe88a, #4fa84a); color: #123a12; }
.t-rouge b, .t-rouge small { text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.plaque { display: flex; flex-direction: column; align-items: center; background: #fff; color: #2b2478; padding: 12px 34px; border-radius: 22px; box-shadow: 0 7px 0 rgba(0, 0, 0, .28); animation: arrive .35s; }
.plaque span { font-size: 62px; line-height: 1.1; } .plaque b { font-size: 34px; } .plaque small { color: #5c5a9a; font-size: 15px; }
.calcul { font-size: 58px; font-weight: 700; background: #fff; color: #2b2478; padding: 14px 30px; border-radius: 22px; box-shadow: 0 7px 0 rgba(0, 0, 0, .28); animation: arrive .35s; }
.question .indice small { display: block; font-size: 16px; }
.rangees { display: inline-grid; grid-template-columns: repeat(var(--c), 13px); gap: 3px; margin: 2px auto 4px; }
.rangees i { width: 13px; height: 13px; border-radius: 3px; background: #ffd166; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .18); }
.monde { display: grid; grid-template-columns: repeat(12, 1fr); border: 4px solid #fff; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #7fd4ff, #d8f6ff); touch-action: manipulation; }
.monde button { aspect-ratio: 1; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); padding: 0; }
.bloc { display: block; background-size: 100% 100%; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), inset 3px 3px 0 rgba(255, 255, 255, .28) !important; }
.b-herbe { background: linear-gradient(180deg, #69d04e 0 34%, #9a6a3f 34%); } .b-terre { background: radial-gradient(circle at 30% 30%, #b98354 0 12%, transparent 13%), radial-gradient(circle at 70% 66%, #7c5230 0 12%, transparent 13%), #9a6a3f; }
.b-pierre { background: linear-gradient(135deg, #a7b0bb 0 45%, #8d97a3 45% 60%, #a7b0bb 60%); } .b-bois { background: repeating-linear-gradient(90deg, #c78a4a 0 22%, #a86d33 22% 26%); }
.b-brique { background: linear-gradient(#f4e2d0 0 0) 0 48% / 100% 7% no-repeat, linear-gradient(#f4e2d0 0 0) 50% 0 / 7% 48% no-repeat, linear-gradient(#f4e2d0 0 0) 22% 100% / 7% 48% no-repeat, #d1553f; }
.b-verre { background: linear-gradient(135deg, rgba(255, 255, 255, .75) 0 30%, rgba(160, 230, 255, .55) 30%); } .b-sable { background: radial-gradient(circle at 25% 70%, #d8bc76 0 8%, transparent 9%), radial-gradient(circle at 70% 30%, #d8bc76 0 8%, transparent 9%), #f0dc9e; }
.b-or { background: linear-gradient(135deg, #fff0a8 0 30%, #f2c230 30% 70%, #d99a12 70%); }
.inventaire { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 10px 0; }
.inventaire button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 1px; background: var(--carte); border: 2px solid var(--bord); border-radius: 10px; }
.inventaire .bloc { width: 80%; aspect-ratio: 1; } .inventaire small { font-size: 13px; font-weight: 600; }
.inventaire .actif { border-color: var(--jaune); box-shadow: 0 0 0 2px var(--jaune); } .inventaire button:disabled { opacity: .4; }
.actions { display: flex; gap: 10px; } .actions .bouton { flex: 1; padding: 12px; }
.outil-bloc { background: #fff; color: #2b2478; border-radius: 22px; padding: 0 14px; font-weight: 600; box-shadow: 0 5px 0 #8f8fd8; }
.outil-bloc.actif { background: var(--jaune); }
.gains { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 16px; } .gains div { text-align: center; } .gains .bloc { width: 62px; height: 62px; margin-bottom: 4px; }
.course { position: fixed; inset: 0; background: #69d2ff; }
#jeu { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; z-index: 2; top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.nom-monde { flex: 1; text-align: center; font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 2px 2px rgba(0, 0, 0, .4); }
.course .bandeau { position: absolute; z-index: 2; left: 12px; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 56px); }
.aide { position: absolute; left: 16px; right: 16px; bottom: max(24px, env(safe-area-inset-bottom)); margin: 0; z-index: 2; text-align: center; color: #fff; font-weight: 600; font-size: 18px; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); pointer-events: none; }
.porte-q { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(23, 18, 74, .55); }
.porte-q[hidden] { display: none; }
.porte-carte { width: min(460px, 100%); text-align: center; background: linear-gradient(170deg, #3a2fa8, #1d1766); border: 4px solid #ffd166; border-radius: 26px; padding: 16px; color: #fff; animation: arrive .25s; }
.porte-carte h2 { font-size: 30px; margin: 8px 0 14px; }
.porte-carte .reponses { grid-template-columns: 1fr; }
