/* La Bombe — direction artistique dynamite Far-West — Sebdesign Studio */
body[data-jeu="bombe"] { background-color: #E9CF9C; background-image: radial-gradient(rgba(120, 70, 20, .12) 1px, transparent 1.3px), linear-gradient(180deg, #F1DCAE, #D9B477); background-size: 6px 6px, 100% 100%; background-attachment: fixed; color: #3B200C; }
body[data-jeu="bombe"] #scene { display: none; }
.bmb-page { --bois: #6B3E1F; --rouge: #B3261E; --papier: #F6E7C1; --encre: #3B200C; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; gap: 12px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.bmb-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bmb-titre { margin: 0; white-space: nowrap; font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(26px, 8vw, 34px); color: var(--rouge); text-shadow: 2px 2px 0 var(--encre); }
.bmb-entete-d { display: flex; gap: 5px; flex: none; }
.bmb-badge, .bmb-mini { padding: 5px 9px; white-space: nowrap; border: 2px solid var(--encre); border-radius: 4px; background: var(--papier); color: var(--encre); font-family: inherit; font-weight: 800; font-size: 12px; }
.bmb-affiche { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 14px; text-align: center; background: var(--papier); border: 3px solid var(--encre); border-radius: 4px; box-shadow: inset 0 0 0 5px var(--papier), inset 0 0 0 7px rgba(59, 32, 12, .5), 0 6px 0 rgba(59, 32, 12, .25); }
.bmb-sur { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--rouge); }
.bmb-cat { margin: 0; font-family: 'Rye', Georgia, serif; font-size: clamp(22px, 6.8vw, 28px); line-height: 1.15; }
.bmb-main { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 10px; touch-action: none; user-select: none; }
.bmb-cote { position: absolute; top: 80px; max-width: 30%; padding: 6px 8px; border: 2px dashed var(--encre); border-radius: 6px; background: var(--papier); font-family: 'Rye', Georgia, serif; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmb-cote.g { left: 0; } .bmb-cote.d { right: 0; }
.bmb-refus { margin: 0; padding: 8px 12px; border: 2px solid var(--rouge); border-radius: 6px; background: #FFE3DA; color: var(--rouge); font-weight: 800; text-align: center; }
.bmb-conteste { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 10px; border: 3px solid var(--rouge); border-radius: 8px; background: #FFF4EE; color: var(--rouge); font-family: 'Rye', Georgia, serif; font-size: 17px; box-shadow: 0 4px 0 var(--rouge); animation: bmb-alerte 0.5s ease-in-out infinite alternate; }
@keyframes bmb-alerte { to { background: #FFD9CC; } }
.bmb-conteste small { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11px; opacity: .8; }
.bmb-dyn { width: 150px; height: 150px; overflow: visible; }
.bmb-dyn.grand { width: 190px; height: 190px; animation: bmb-tremble .12s infinite alternate; }
@keyframes bmb-tremble { from { transform: translate(-1px, 0) rotate(-1deg); } to { transform: translate(1px, 1px) rotate(1deg); } }
.bmb-baton { fill: #C8352B; stroke: #3B200C; stroke-width: 3; }
.bmb-lien { fill: #E8C27A; stroke: #3B200C; stroke-width: 3; }
.bmb-tnt { text-anchor: middle; font-family: 'Rye', Georgia, serif; font-size: 16px; fill: #F6E7C1; }
.bmb-meche { fill: none; stroke: #3B200C; stroke-width: 4; stroke-linecap: round; }
.bmb-etincelle circle { fill: #FFD54A; }
.bmb-etincelle path { stroke: #FF8A1F; stroke-width: 2.5; stroke-linecap: round; }
.bmb-etincelle { transform-origin: 80px 6px; animation: bmb-crepite .18s infinite alternate; }
@keyframes bmb-crepite { from { transform: scale(.8) rotate(0deg); opacity: .8; } to { transform: scale(1.3) rotate(25deg); opacity: 1; } }
.bmb-alerte { margin: 0; font-family: 'Rye', Georgia, serif; font-size: 22px; color: var(--rouge); text-align: center; }
.bmb-aide { margin: 0; text-align: center; font-weight: 700; font-size: 14px; opacity: .55; transition: opacity .2s; }
.bmb-aide.pret { opacity: 1; }
.bmb-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bmb-btn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; min-height: 76px; padding: 8px; border: 3px solid var(--encre); border-radius: 6px; background: var(--papier); color: var(--encre); font-family: 'Rye', Georgia, serif; font-size: 19px; box-shadow: 0 5px 0 var(--encre); }
.bmb-btn span { font-size: 22px; color: var(--rouge); }
.bmb-btn small { flex-basis: 100%; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11px; opacity: .7; }
.bmb-btn.plein { width: 100%; min-height: 56px; background: var(--rouge); color: var(--papier); }
.bmb-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--encre); }
.bmb-table { width: 100%; max-width: 300px; align-self: center; }
.bmb-table svg { width: 100%; height: auto; max-height: 40vh; overflow: visible; }
.bmb-plateau { fill: #8A5730; stroke: var(--encre); stroke-width: 4; }
.bmb-jeton circle { fill: var(--papier); stroke: var(--encre); stroke-width: 3; }
.bmb-jeton.moi circle { fill: #E8C27A; }
.bmb-jeton.porteur circle { fill: var(--rouge); }
.bmb-jeton.porteur .bmb-init { fill: var(--papier); }
.bmb-init { text-anchor: middle; font-family: 'Rye', Georgia, serif; font-size: 18px; fill: var(--encre); }
.bmb-icone { text-anchor: middle; font-size: 22px; }
.bmb-info { margin: 0; text-align: center; font-size: 16px; }
.bmb-boum { text-align: center; font-family: 'Rye', Georgia, serif; font-size: 56px; color: var(--rouge); text-shadow: 3px 3px 0 #FFD54A, 6px 6px 0 var(--encre); animation: bmb-boum .6s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes bmb-boum { from { transform: scale(3); opacity: 0; } to { transform: none; opacity: 1; } }
.bmb-wanted { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; background: var(--papier); border: 3px solid var(--encre); box-shadow: 4px 6px 0 rgba(59, 32, 12, .3); transform: rotate(-1.5deg); text-align: center; }
.bmb-w-titre { margin: 0; font-family: 'Rye', Georgia, serif; font-size: 40px; letter-spacing: .08em; }
.bmb-portrait { width: 110px; height: 120px; display: grid; place-items: center; border: 4px solid var(--encre); background: color-mix(in srgb, var(--c) 30%, #E9CF9C); font-family: 'Rye', Georgia, serif; font-size: 54px; filter: sepia(.5); }
.bmb-w-nom { margin: 4px 0 0; font-family: 'Rye', Georgia, serif; font-size: 26px; }
.bmb-w-motif { margin: 0; font-size: 13px; font-weight: 700; }
.bmb-w-prime { margin: 4px 0 0; font-family: 'Rye', Georgia, serif; font-size: 15px; color: var(--rouge); }
.bmb-bilan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bmb-bilan li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 14px; background: var(--papier); border: 2px solid var(--encre); border-radius: 4px; }
.bmb-bilan em { font-style: normal; font-weight: 800; color: var(--rouge); }
.bmb-signature { margin: 4px 0 0; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
.bmb-w-sous { margin: -4px 0 4px; font-family: 'Rye', Georgia, serif; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.bmb-wanted .bmb-dyn { width: 110px; height: 110px; }
.bmb-w-nom { font-size: 34px !important; }
