/* La Tour grise. Le décor reste gris tant que les étages ne sont pas vaincus ;
   seules vos cartes et la toile portent la couleur. */
.tg-jeu { padding: 0; background: #22222a; }
.tg-jeu::before { z-index: 3; }
.tg-jeu .cj-jeu-barre { margin: 0; padding: 14px 16px 0; border: 0; background: #22222a; }
.tg-jeu .cj-jeu-barre:empty { display: none; }
.tg-jeu:fullscreen, .tg-jeu:-webkit-full-screen { padding: 0; background: #22222a; justify-content: flex-start; }
.tg-jeu .cj-plein { background: #fffdf8; color: #14141a; margin-left: auto; }

#tg-scene {
  --m1: #a5a39c; --m2: #9c9a93; --m3: #c6c4bd;
  --pap: #fffdf8; --nu: #14141a; --ro: #d9241f; --bl: #0b3fa8; --ja: #f7b90f;
  position: relative; min-height: 680px; padding: 16px 16px 18px; color: #f4f1ea;
  font-family: var(--corps, "DM Sans"), system-ui, sans-serif; overflow: hidden;
  background: #22222a;
}
#tg-scene button { font: inherit; color: inherit; cursor: pointer; }
#tg-scene button:focus-visible { outline: 3px solid var(--ja); outline-offset: 2px; }
#tg-scene h2, #tg-scene h3, #tg-scene h4 { color: #fffdf8; font-family: var(--titres); margin: 0; }
#tg-scene svg { display: block; }

/* ── Titre ─────────────────────────────── */
.tg-titre { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 34px; align-items: stretch; }
.tg-t-art { border: 4px solid var(--nu); box-shadow: 8px 8px 0 #000; align-self: start; }
.tg-affiche { width: 100%; height: auto; }
.tg-t-sur { margin: 0; font-family: var(--titres); font-weight: 700; color: var(--ja); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
#tg-scene .tg-t-nom { font-size: clamp(2.5rem, 7vw, 4.8rem); line-height: 1; font-weight: 800; margin: 6px 0 14px; }
.tg-t-pitch { margin: 0 0 18px; font-size: 1.12rem; line-height: 1.5; color: #ece9e1; }
.tg-t-choix { margin: 18px 0 10px; font-weight: 700; color: #fff; }
.tg-t-stats { margin: 14px 0 0; color: #cfccc4; font-size: .95rem; }
.tg-ecoles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#tg-scene .tg-ecole { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; background: var(--pap); color: var(--nu); border: 3px solid var(--nu); box-shadow: 5px 5px 0 #000; transition: transform .12s, box-shadow .12s; }
.tg-ecole:hover, .tg-ecole:focus-visible { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 #000; }
.tg-e-signe { width: 54px; height: 54px; }
.tg-e-nom { font-family: var(--titres); font-weight: 800; font-size: 1.12rem; }
.tg-e-pv { font-size: .9rem; font-weight: 700; color: #3f3d3a; }
.tg-e-txt { font-size: .93rem; line-height: 1.38; color: #3f3d3a; }
.tg-gris { display: inline-flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 700; }
.tg-gris select { min-height: 44px; padding: 4px 10px; background: var(--pap); color: var(--nu); border: 3px solid var(--nu); font: inherit; }
#tg-scene .tg-grand { min-height: 48px; padding: 10px 20px; background: var(--ja); color: var(--nu); border: 3px solid var(--nu); font-family: var(--titres); font-weight: 800; font-size: 1.04rem; box-shadow: 4px 4px 0 #000; }
.tg-grand:hover { background: #ffcb35; }

/* ── Bandeau ───────────────────────────── */
.tg-hud { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-bottom: 10px; }
.tg-hud-a, .tg-hud-b, .tg-outils, .tg-flacons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tg-ico { width: 22px; height: 22px; flex: none; }
.tg-stat { display: inline-flex; gap: 6px; align-items: center; font-family: var(--titres); font-size: 1.08rem; }
.tg-etage { font-family: var(--titres); font-weight: 700; color: #d9d6cf; padding: 0 6px; }
#tg-scene .tg-mini { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 4px 10px; background: #33333b; border: 2px solid #55555d; color: #fff; }
#tg-scene .tg-outil, #tg-scene .tg-flacon { width: 44px; height: 44px; padding: 3px; background: var(--pap); border: 2px solid var(--nu); }
.tg-o-art, .tg-f-art { width: 100%; height: 100%; }
#tg-scene span.tg-flacon { display: block; background: transparent; border: 2px dashed #55555d; }
.tg-info { position: relative; z-index: 3; min-height: 0; max-height: 0; overflow: hidden; background: var(--pap); color: var(--nu); font-weight: 600; transition: max-height .15s; }
.tg-info.tg-on { position: absolute; left: 16px; right: 16px; z-index: 12; max-height: 120px; padding: 8px 12px; border: 2px solid var(--nu); box-shadow: 4px 4px 0 #000; }

/* ── Plan ──────────────────────────────── */
.tg-plan-cadre { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
#tg-scene .tg-plan-t { font-size: 1.9rem; line-height: 1.08; font-weight: 800; }
.tg-plan-cote p { line-height: 1.45; color: #e6e3db; }
.tg-plan-boss b { color: #fff; }
.tg-legende { display: grid; gap: 4px; margin-top: 12px; }
.tg-legende span { display: flex; gap: 8px; align-items: center; color: #e6e3db; font-size: .95rem; }
.tg-plan { position: relative; height: 640px; overflow-y: auto; background: #2a2a31; border: 3px solid var(--nu); }
.tg-plan-in { position: relative; min-width: 300px; }
.tg-plan-svg { position: absolute; inset: 0; }
#tg-scene .tg-n { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 9px; background: #3b3b43; border: 2px solid #6c6c74; border-radius: 50%; color: #b9b8b6; }
#tg-scene .tg-n:disabled { cursor: default; }
.tg-n .tg-ico { width: 100%; height: 100%; }
#tg-scene .tg-n-boss { width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 6px; border-radius: 0; background: #1b1b21; }
.tg-n-boss .tg-e-art { width: 100%; height: 100%; }
#tg-scene .tg-vu { background: var(--nu); color: #fff; border-color: #fff; }
#tg-scene .tg-acc { background: var(--pap); color: var(--nu); border: 3px solid var(--ja); animation: tg-pulse 1.3s infinite; }
.tg-n-elite.tg-acc { color: var(--ro); } .tg-n-repos.tg-acc { color: var(--bl); } .tg-n-tresor.tg-acc { color: #c9941a; } .tg-n-marchand.tg-acc { color: #2c8a57; }
@keyframes tg-pulse { 50% { box-shadow: 0 0 0 9px rgba(247,185,15,.32); } }
.tg-legende .tg-ico { color: #fff; }

/* ── Arène ─────────────────────────────── */
.tg-arene { position: relative; display: grid; grid-template-columns: 262px 1fr; grid-template-areas: "centre ennemis"; gap: 18px; align-items: center; padding: 12px 14px; min-height: 340px; background: #b7b5ae; border: 3px solid var(--nu); overflow: hidden; }
.tg-fond { position: absolute; inset: 0; pointer-events: none; }
.tg-fond span { position: absolute; display: block; transition: background 1s; }
.tg-fa { right: 7%; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: var(--m1); }
.tg-fb { right: 34%; bottom: -30px; width: 170px; height: 240px; background: var(--m2); }
.tg-fc { left: 42%; top: 18px; width: 0 !important; height: 0 !important; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 150px solid var(--m3); }
.tg-ennemis { grid-area: ennemis; position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: flex-end; gap: 10px; }
.tg-centre { grid-area: centre; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
#tg-scene .tg-enn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 190px; padding: 2px; background: none; border: 0; color: #fff; }
#tg-scene .tg-enn.tg-petit { width: 150px; }
#tg-scene .tg-enn.tg-boss { width: 300px; }
.tg-e-corps { position: relative; display: block; width: 158px; height: 158px; animation: tg-respire 3.2s ease-in-out infinite; }
.tg-petit .tg-e-corps { width: 104px; height: 104px; }
.tg-elite .tg-e-corps { width: 186px; height: 186px; }
.tg-boss .tg-e-corps { width: 216px; height: 216px; }
.tg-enn:nth-child(2) .tg-e-corps { animation-delay: -1.1s; }
.tg-enn:nth-child(3) .tg-e-corps { animation-delay: -2.1s; }
.tg-e-art { width: 100%; height: 100%; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.3)); }
.tg-yeux { animation: tg-cligne 4.3s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes tg-respire { 50% { transform: translateY(-5px) scale(1.012); } }
@keyframes tg-cligne { 0%, 95%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.1); } }
.tg-cible-m { position: absolute; inset: -6px; pointer-events: none; }
.tg-visee .tg-cible-m { border: 3px dashed var(--nu); }
.tg-e-nom2 { font-family: var(--titres); font-weight: 800; font-size: 1.02rem; text-align: center; color: var(--nu); }
.tg-int { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 30px; }
.tg-i { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 2px 8px; background: var(--pap); color: var(--nu); font-size: .88rem; font-weight: 700; border: 2px solid var(--nu); }
.tg-i-a b { font-size: 1.12rem; font-family: var(--titres); color: var(--ro); }
.tg-i-g b { font-size: 1.05rem; font-family: var(--titres); color: var(--bl); }
.tg-signe { width: 14px; height: 14px; flex: none; }
.tg-bar { position: relative; display: block; width: 100%; height: 22px; background: var(--nu); border: 2px solid #000; overflow: hidden; }
.tg-bar-p { position: absolute; inset: 0 auto 0 0; background: var(--ro); transition: width .3s; }
.tg-a-garde .tg-bar-p { background: var(--bl); }
.tg-bar-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .83rem; font-weight: 700; }
.tg-e-statuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 0; }
.tg-pa { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; background: #14141a; color: #fff; font-size: .78rem; border: 1px solid #66666e; }
.tg-mort { opacity: 0; pointer-events: none; transition: opacity .55s .25s, transform .55s .25s; transform: scale(.75) rotate(-8deg); }

/* Toile */
.tg-toile-b { padding: 8px; background: #8f8f94; border: 3px solid var(--nu); box-shadow: 6px 6px 0 #000; background-image: linear-gradient(135deg, #a79470, #7f6d4b); }
.tg-toile { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: #fbf8ee; border: 3px solid var(--nu); aspect-ratio: 1; }
#tg-scene .tg-case { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 12%; background: none; border: 1px solid #cdc7b7; color: var(--nu); }
#tg-scene .tg-case:disabled { cursor: default; }
.tg-case svg { width: 100%; height: 100%; animation: tg-apparait .2s; }
@keyframes tg-apparait { from { transform: scale(.4); } }
#tg-scene .tg-libre { background: #fff4c7; }
#tg-scene .tg-libre:hover { background: #ffe88e; }
.tg-fantome { opacity: .28; animation: none !important; }
.tg-libre:hover .tg-fantome { opacity: .62; }
#tg-scene .tg-feraligne { background: #ffd451; box-shadow: inset 0 0 0 3px var(--nu); }
.tg-feraligne .tg-fantome { opacity: .55; }
.tg-pl { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: .72rem; line-height: 1; font-weight: 800; color: var(--nu); text-transform: uppercase; letter-spacing: .02em; }
.tg-t-n { position: absolute; right: 5px; top: 3px; font-size: .78rem; font-weight: 800; color: var(--nu); }
.tg-ligne-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tg-ghost { position: absolute; width: 33.33%; height: 33.33%; padding: 4%; animation: tg-ghost .8s forwards; }
@keyframes tg-ghost { 0% { transform: scale(1); } 28% { transform: scale(1.26); opacity: 1; } 100% { transform: scale(.2); opacity: 0; } }
.tg-trait { position: absolute; inset: 0; width: 100%; height: 100%; animation: tg-trait .8s forwards; }
@keyframes tg-trait { 0% { opacity: 0; } 15% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }

/* Joueur */
.tg-moi { display: flex; align-items: center; gap: 10px; }
.tg-garde { position: relative; width: 50px; height: 50px; flex: none; opacity: .45; transition: opacity .2s; }
.tg-garde.tg-on { opacity: 1; }
.tg-garde .tg-ico { width: 100%; height: 100%; }
.tg-garde b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--titres); font-size: 1.08rem; }
.tg-moi-pv { flex: 1; display: grid; gap: 5px; }
.tg-moi .tg-e-statuts { justify-content: flex-start; }
.tg-bar-moi { height: 24px; }

/* Table */
.tg-table { position: relative; display: grid; grid-template-columns: 94px 1fr 150px; gap: 10px; align-items: end; margin-top: 10px; }
.tg-peinture { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; align-self: center; background: var(--ja); color: var(--nu); border-radius: 50%; border: 4px solid var(--nu); box-shadow: 4px 4px 0 #000; }
.tg-peinture b { font-family: var(--titres); font-size: 2.1rem; line-height: 1; }
.tg-peinture span { font-size: .72rem; font-weight: 700; }
.tg-main { display: flex; justify-content: center; align-items: flex-end; min-height: 206px; padding-top: 16px; --w: 142px; }
.tg-main .tg-carte { margin-left: calc(max(-108px, min(0px, (100% - var(--w) * var(--n)) / max(1, var(--n) - 1)))); transform: rotate(var(--a)) translateY(var(--y)); transform-origin: 50% 100%; transition: transform .13s; z-index: calc(var(--i) + 1); }
.tg-main .tg-carte:first-child { margin-left: 0; }
.tg-main .tg-carte:hover, .tg-main .tg-carte:focus-visible { transform: translateY(-16px) scale(1.04); z-index: 30; }
.tg-main .tg-choisie, .tg-main .tg-choisie:hover { transform: translateY(-22px) scale(1.05); z-index: 31; outline: 4px solid var(--ja); outline-offset: 0; }
.tg-entre { animation: tg-entre .28s backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes tg-entre { from { opacity: 0; transform: translate(-90px, 34px) rotate(-12deg); } }
#tg-scene .tg-carte { position: relative; flex: none; display: flex; flex-direction: column; width: var(--w, 142px); min-height: 196px; padding: 0; text-align: left; background: var(--pap); color: var(--nu); border: 3px solid var(--nu); box-shadow: 3px 3px 0 #000; }
.tg-c-haut { display: block; height: 68px; border-bottom: 2px solid var(--nu); overflow: hidden; }
.tg-c-art { width: 100%; height: 100%; }
#tg-scene .tg-c-cout { position: absolute; left: -8px; top: -8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--ja); border: 3px solid var(--nu); border-radius: 50%; color: var(--nu); font-family: var(--titres); font-weight: 800; font-size: 1.05rem; z-index: 1; }
.tg-c-nom { padding: 5px 7px 0; font-family: var(--titres); font-weight: 800; font-size: .96rem; line-height: 1.1; }
.tg-plus .tg-c-nom { color: #1a7f3f; }
.tg-c-txt { flex: 1; padding: 3px 7px 4px; font-size: .81rem; line-height: 1.24; color: #2e2c29; }
.tg-c-pied { padding: 0 7px 4px; font-size: .67rem; font-weight: 700; color: #5c584f; text-transform: uppercase; letter-spacing: .04em; }
.tg-f-t .tg-c-pied { border-left: 6px solid var(--ro); } .tg-f-c .tg-c-pied { border-left: 6px solid var(--bl); } .tg-f-r .tg-c-pied { border-left: 6px solid var(--ja); } .tg-f-l .tg-c-pied { border-left: 6px solid var(--nu); } .tg-f-x .tg-c-pied { border-left: 6px solid #5d5d64; }
#tg-scene .tg-pouvoir { border-style: double; border-width: 5px; }
#tg-scene .tg-f-x { background: #cdcac3; }
.tg-injouable .tg-c-haut, .tg-injouable .tg-c-nom, .tg-injouable .tg-c-txt { opacity: .5; }
.tg-injouable .tg-c-cout { background: #bdbcbb !important; }
.tg-cher { opacity: .55; }
#tg-scene .tg-lecture { cursor: default; }
.tg-actions { display: flex; flex-direction: column; gap: 8px; align-self: center; }
#tg-scene .tg-fin { min-height: 62px; padding: 8px; background: var(--ro); color: #fff; border: 3px solid var(--nu); font-family: var(--titres); font-weight: 800; font-size: 1.12rem; box-shadow: 4px 4px 0 #000; }
#tg-scene .tg-fin:hover { background: #ef332d; }
#tg-scene .tg-fin:disabled { opacity: .4; cursor: default; }
.tg-piles { display: flex; gap: 4px; }
#tg-scene .tg-pile { flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; padding: 0 3px; background: #33333b; border: 2px solid #55555d; color: #fff; }

/* Effets */
.tg-fx { position: absolute; z-index: 10; transform: translateX(-50%); pointer-events: none; font-family: var(--titres); font-weight: 900; font-size: 2.1rem; color: #fff; -webkit-text-stroke: 1.5px #000; animation: tg-fx 1s forwards; white-space: nowrap; }
.tg-fx-coup { color: #ff5249; }
.tg-fx-teinte { color: #f7b90f; }
.tg-fx-garde { color: #7da7ff; font-size: 1.6rem; }
.tg-fx-soin { color: #6adf94; }
.tg-fx-ligne { color: var(--ja); font-size: 2.4rem; }
@keyframes tg-fx { 0% { transform: translate(-50%, 8px) scale(.5); opacity: 0; } 22% { transform: translate(-50%, -14px) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -60px) scale(1); opacity: 0; } }
.tg-touche .tg-e-corps { animation: tg-touche .4s; }
@keyframes tg-touche { 20% { transform: translateX(-11px) rotate(-3deg); filter: brightness(1.8); } 60% { transform: translateX(8px) rotate(2deg); } }
.tg-charge .tg-e-corps { animation: tg-charge .42s; }
@keyframes tg-charge { 45% { transform: translate(-38px, 14px) scale(1.14); } }
.tg-tremble { animation: tg-tremble .34s; }
@keyframes tg-tremble { 25% { transform: translate(5px, -4px); } 60% { transform: translate(-6px, 3px); } }
.tg-vibre { animation: tg-vibre .28s; }
@keyframes tg-vibre { 30% { transform: scale(1.03); } 70% { transform: scale(.985); } }
.tg-pose { animation: tg-vibre .2s; }
.tg-tache-fx { animation: tg-vibre .4s; background: #d4d2cb !important; }
.tg-banniere { position: absolute; z-index: 20; left: 0; right: 0; top: 34%; text-align: center; pointer-events: none; animation: tg-ban 1.2s forwards; }
.tg-banniere span { display: inline-block; padding: 12px 34px; background: var(--nu); color: #fff; font-family: var(--titres); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.4rem); border: 4px solid #fff; }
.tg-banniere.boss span { background: var(--ro); }
.tg-b-mal span { background: #5d5d64; font-size: 1.3rem; }
.tg-b-bien span { background: var(--bl); font-size: 1.3rem; }
.tg-b-tour span { font-size: 1.3rem; padding: 6px 22px; }
@keyframes tg-ban { 0% { opacity: 0; transform: scaleX(.7); } 18% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* Panneaux */
.tg-panneau { position: relative; z-index: 1; padding: 20px 22px; background: #2a2a31; border: 3px solid var(--nu); }
#tg-scene .tg-p-t { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.1; font-weight: 800; }
.tg-p-s { margin: 8px 0 12px; color: #ece9e1; font-size: 1.05rem; line-height: 1.45; }
.tg-p-boss { background: #0b3fa8; }
#tg-scene .tg-h3 { font-size: 1.15rem; margin: 18px 0 12px; }
.tg-rec-or { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 1.1rem; }
.tg-cartes-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 8px 2px 14px; --w: 170px; }
.tg-cartes-choix .tg-carte:not(.tg-lecture):hover { transform: translateY(-5px); }
.tg-cartes-choix .tg-carte { transition: transform .13s; font-size: 1.08em; }
.tg-cartes-choix .tg-c-txt { font-size: .9rem; }
.tg-cartes-choix .tg-c-haut { height: 82px; }
.tg-tout { --w: 150px; gap: 12px; }
.tg-pose-in { animation: tg-entre .3s backwards; animation-delay: calc(var(--i) * 90ms); }
.tg-vente { display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: var(--w); }
.tg-prix { display: inline-flex; align-items: center; gap: 5px; font-family: var(--titres); font-weight: 800; font-size: 1.1rem; }
.tg-apres { font-size: .88rem; line-height: 1.28; color: #ffe08a; }
.tg-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tg-boss-outils { display: grid; gap: 10px; }
#tg-scene .tg-prendre { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 8px 12px; margin: 0 0 8px; text-align: left; background: var(--pap); color: var(--nu); border: 3px solid var(--nu); box-shadow: 3px 3px 0 #000; }
.tg-prendre .tg-o-art, .tg-prendre .tg-f-art { width: 46px; height: 46px; flex: none; }
.tg-prendre span { flex: 1; font-size: .93rem; line-height: 1.32; }
.tg-prendre span b { display: block; font-family: var(--titres); font-size: 1.02rem; }
.tg-prendre em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-family: var(--titres); font-weight: 800; }
.tg-recu { margin-top: 10px; }
.tg-suite { display: block; margin-top: 14px; }
.tg-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#tg-scene .tg-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; min-height: 150px; text-align: left; color: #fff; border: 3px solid var(--nu); box-shadow: 5px 5px 0 #000; }
.tg-tuile .tg-ico { width: 44px; height: 44px; color: #fff; }
.tg-tuile b { font-family: var(--titres); font-size: 1.5rem; }
.tg-tuile span { font-size: 1.02rem; }
.tg-tu-r { background: var(--ro); } .tg-tu-b { background: var(--bl); }
#tg-scene .tg-tuile:disabled { opacity: .45; cursor: default; }
.tg-ev-art { width: 100%; height: 180px; margin-bottom: 14px; border: 3px solid var(--nu); }
.tg-ev-res { margin: 8px 0; padding: 12px; background: var(--pap); color: var(--nu); font-weight: 600; border-left: 8px solid var(--ja); }
.tg-ev-choix { display: grid; gap: 8px; }
#tg-scene .tg-choix-ev { min-height: 50px; padding: 10px 14px; text-align: left; background: var(--pap); color: var(--nu); border: 3px solid var(--nu); font-weight: 700; box-shadow: 3px 3px 0 #000; }
#tg-scene .tg-choix-ev:disabled { opacity: .5; cursor: default; }
.tg-voile { position: absolute; inset: 0; z-index: 40; padding: 16px; overflow-y: auto; background: rgba(20,20,26,.97); }
.tg-voile-t { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; position: sticky; top: -16px; padding: 8px 0; background: #14141a; z-index: 2; }
#tg-scene .tg-voile-t h3 { font-size: 1.5rem; }
.tg-aide p { line-height: 1.5; color: #ece9e1; }
#tg-scene .tg-aide h4 { font-size: 1.12rem; margin-top: 14px; }
.tg-regles { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.tg-regles li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #ece9e1; }
.tg-regles .tg-signe { width: 18px; height: 18px; }
.tg-fin-ecran { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
.tg-tableau { width: 100%; height: auto; box-shadow: 8px 8px 0 #000; }
.tg-legende-t { margin: 12px 0 0; color: #d9d6cf; font-style: italic; }
.tg-bilan { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 3px; font-size: 1.05rem; }
.tg-bilan b { font-family: var(--titres); color: var(--ja); font-size: 1.2rem; }

/* ── Téléphone ─────────────────────────── */
@media (max-width: 900px) {
  #tg-scene { padding: 10px 8px 12px; }
  .tg-hud { gap: 4px; margin-bottom: 6px; }
  .tg-hud-a { width: 100%; gap: 6px; flex-wrap: nowrap; }
  .tg-hud-a .tg-mini:first-of-type { margin-left: auto; }
  #tg-scene .tg-mini { padding: 2px 7px; }
  .tg-hud-b { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .tg-outils, .tg-flacons { flex-wrap: nowrap; flex: none; gap: 5px; }
  .tg-hud-b { gap: 10px; }
  .tg-etage { display: none; }
  .tg-arene { grid-template-columns: 1fr; grid-template-areas: "ennemis" "centre"; padding: 8px; gap: 6px; min-height: 0; }
  .tg-centre { display: grid; grid-template-columns: minmax(170px, 210px) 1fr; align-items: center; gap: 10px; }
  .tg-toile-b { padding: 5px; box-shadow: 3px 3px 0 #000; }
  .tg-moi { flex-direction: column; align-items: stretch; gap: 6px; padding-right: 72px; position: relative; }
  .tg-moi { padding-right: 0; }
  .tg-garde { width: 44px; height: 44px; }
  .tg-pl { font-size: .58rem; }
  .tg-table { grid-template-columns: auto 1fr; margin-top: 6px; }
  .tg-main { grid-column: 1 / -1; }
  .tg-mini span { font-size: 0; }
  .tg-mini span b { font-size: 1rem; }
  .tg-main { justify-content: flex-start; overflow-x: auto; order: -1; padding: 22px 8px 6px; scroll-snap-type: x proximity; --w: 124px; gap: 8px; min-height: 0; }
  .tg-main .tg-carte { margin-left: 0 !important; transform: none; scroll-snap-align: center; min-height: 176px; }
  .tg-main .tg-carte:hover, .tg-main .tg-carte:focus-visible { transform: none; }
  .tg-main .tg-choisie, .tg-main .tg-choisie:hover { transform: translateY(-12px); }
  .tg-peinture { width: 56px; height: 56px; box-shadow: 2px 2px 0 #000; border-width: 3px; }
  .tg-peinture b { font-size: 1.5rem; } .tg-peinture span { display: none; }
  .tg-actions { flex-direction: row; }
  #tg-scene .tg-fin { flex: 1; min-height: 52px; }
  .tg-piles { flex: 1.2; }
  .tg-titre, .tg-fin-ecran { grid-template-columns: 1fr; gap: 16px; }
  .tg-t-art { max-width: 220px; margin: 0 auto; }
  .tg-ecoles { grid-template-columns: 1fr; }
  #tg-scene .tg-ecole { display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; }
  .tg-e-signe { grid-row: span 3; }
  .tg-plan-cadre { grid-template-columns: 1fr; }
  .tg-plan { height: 460px; }
  .tg-legende { grid-template-columns: 1fr 1fr; }
  #tg-scene .tg-enn { width: 138px; } #tg-scene .tg-enn.tg-petit { width: 108px; } #tg-scene .tg-enn.tg-boss { width: 230px; }
  .tg-e-corps { width: 88px; height: 88px; } .tg-petit .tg-e-corps { width: 68px; height: 68px; } .tg-elite .tg-e-corps { width: 100px; height: 100px; } .tg-boss .tg-e-corps { width: 116px; height: 116px; }
  .tg-e-nom2 { font-size: .9rem; }
  .tg-int { min-height: 26px; }
  .tg-i { min-height: 26px; padding: 1px 6px; font-size: .78rem; }
  .tg-deux { grid-template-columns: 1fr; }
  .tg-cartes-choix { --w: 150px; gap: 10px; }
  .tg-tout { --w: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-e-corps, .tg-yeux, .tg-acc, .tg-tremble, .tg-entre, .tg-pose-in { animation: none !important; }
}
