/* Nego Manga — interface de jeu : écrans, HUD mobile, main de jetons, fiches. Suit le pack de style (variables). */
* { box-sizing: border-box; }
html { background: var(--page); color: var(--caption-ink); -webkit-text-size-adjust: 100%; }
:root { --ui-bg: #fff; --ui-ink: #16131f; --ui-line: #16131f; --ui-soft: #f1efe9; }   /* défaut, aussi pour les styles du lab */
[data-style="encre"], [data-style="webtoon"] { --ui-bg: #fff; --ui-ink: #16131f; --ui-line: #16131f; --ui-soft: #f1efe9; }
[data-style="webtoon"] { --ui-line: #6a4cff; --ui-soft: #f3eeff; }
[data-style="choc"] { --ui-bg: #111; --ui-ink: #fff; --ui-line: #ffd400; --ui-soft: #222; }
body { margin: 0; font: 15px/1.4 system-ui, "Segoe UI", sans-serif; color: var(--ui-ink); background: var(--page); min-height: 100vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen { max-width: 480px; margin: 0 auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.big-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  font: 400 24px/1 var(--font-sfx); letter-spacing: 1px; text-decoration: none; color: var(--badge-ink); background: var(--badge-bg);
  border: 3px solid var(--ui-line); border-radius: 12px; box-shadow: 4px 4px 0 var(--ui-line);
}
.big-btn:disabled { opacity: .4; cursor: not-allowed; }
.big-btn.ghost { background: var(--ui-bg); color: var(--ui-ink); }
.big-btn:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--ui-line); }

/* ---------- accueil ---------- */
#home .cover { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 24px 20px 40px; text-align: center; overflow: hidden; }
#home .cover > .art { position: absolute; inset: 0; background: var(--bg-a); }
#home .cover .actor { position: absolute; inset: 0; }
#home .cover .actor .chr { position: absolute; left: var(--cx); bottom: 34%; width: var(--cw); height: var(--ch); }
#home .title { position: relative; margin: 0; font: 400 clamp(56px, 18vw, 88px)/.9 var(--font-sfx); letter-spacing: 2px; color: var(--sfx-fill); -webkit-text-stroke: 3px var(--sfx-stroke); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--sfx-shadow); rotate: -4deg; }
#home .sub { position: relative; background: var(--caption-bg); color: var(--caption-ink); border: 2px solid var(--ink); padding: 8px 12px; margin: 14px 0 20px; font-weight: 600; max-width: 340px; }

/* ---------- choix ---------- */
#choose { padding: 14px 16px 110px; }
#choose h2 { font: 400 26px/1 var(--font-sfx); letter-spacing: 1px; margin: 20px 0 8px; }
#choose .help { margin: -4px 0 10px; font-size: 13px; opacity: .8; }
#choose .back { color: inherit; font-weight: 700; text-decoration: none; display: inline-block; min-height: 44px; padding-top: 10px; }
.grid { display: grid; gap: 8px; }
.grid.sits { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.grid.cast { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.grid.styles { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--ui-bg); color: var(--ui-ink); border: 2.5px solid var(--ui-line); border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-height: 44px; }
.card[aria-pressed="true"] { background: var(--accent); color: var(--badge-ink); box-shadow: 3px 3px 0 var(--ui-line); }
[data-style="encre"] .card[aria-pressed="true"] { color: #fff; }
.card .emo { font-size: 28px; }
.card.who .face { width: 84px; height: 84px; display: block; background: var(--bg-a); border-radius: 50%; overflow: hidden; border: 2px solid var(--ui-line); }
.card.who .face .chr, .card.coach .face .chr { width: 100%; height: 100%; }
.grid.coaches { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.card.coach .face { width: 52px; height: 52px; display: block; border-radius: 50%; overflow: hidden; background: var(--bg-a); border: 2px solid var(--ui-line); }
.card.coach small { font-size: 11px; }
.card.who b { font-size: 13px; }
.card.who small { font-size: 11px; line-height: 1.2; opacity: .8; }
.card.sty { padding: 4px; }
.card.sty .panel { width: 100%; }
.card.sty .sfx { --fs: 30px !important; }
.card.sty b { font-size: 12px; }
#choose .go { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center; background: linear-gradient(transparent, var(--page) 40%); }

/* ---------- partie : colonne ---------- */
#play .strip.column { padding: 64px 0 calc(150px + 42vh); }
.panel.hit > .art { animation: hit .35s; }
@keyframes hit { 0% { filter: brightness(3); } 100% { filter: none; } }
.no-fx .panel.hit > .art { animation: none; }

#strip .k-table.past .caption { display: none; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 20; top: 0; left: 50%; translate: -50% 0; width: 100%; max-width: 480px; height: 56px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--ui-bg) 88%, transparent); backdrop-filter: blur(6px); border-bottom: 3px solid var(--ui-line);
  color: var(--ui-ink); font-weight: 700;
}
.hud > div { position: relative; display: flex; align-items: center; gap: 4px; }
.hud .num { font: 400 22px/1 var(--font-sfx); min-width: 1ch; display: inline-block; }
.hud .num.roll { animation: roll .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes roll { 0% { translate: 0 -60%; opacity: 0; } 100% { translate: 0; opacity: 1; } }
.hud .fly { position: absolute; right: -6px; top: -2px; font: 400 18px/1 var(--font-sfx); color: var(--accent); -webkit-text-stroke: 1px var(--ui-line); pointer-events: none; animation: fly 1.1s forwards; }
.hud .fly.down { color: #4dabf7; }
@keyframes fly { 0% { opacity: 0; translate: 0 6px; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 -26px; } }
.h-mood { font-size: 18px; }
.pips { display: flex; gap: 2px; }
.pips i { width: 7px; height: 16px; border: 2px solid var(--ui-ink); border-radius: 2px; transform: skewX(-12deg); }
.pips i.on { background: var(--accent); }
.hud[data-emo="4"] .pips i.on, .hud[data-emo="5"] .pips i.on { background: #e10600; }
.h-gap { flex: 1; min-width: 70px; }
.h-gap .rail { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--ui-soft); border: 2px solid var(--ui-ink); }
.h-gap .zone { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .45; transition: all .5s; }
.h-gap i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--ui-ink); transition: left .6s cubic-bezier(.2,.9,.3,1.2); }
.h-gap i.theirs { background: #fff; }
.h-gap i.mine { background: var(--ui-ink); }
.hud.low [data-k="patience"] { color: #e10600; }
.h-btn { width: 40px; height: 40px; border: 2px solid var(--ui-line); border-radius: 10px; background: var(--ui-bg); font-size: 18px; padding: 0; flex: none; }
.no-fx .hud .num.roll, .no-fx .hud .fly { animation: none; display: none; }
.no-fx .hud .num.roll { display: inline-block; }


/* ---------- main de jetons ---------- */
.hand {
  position: fixed; z-index: 20; bottom: 0; left: 50%; translate: -50% 0; width: 100%; max-width: 480px;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ui-bg) 94%, transparent); backdrop-filter: blur(6px);
  border-top: 3px solid var(--ui-line); transition: translate .3s;
}
.hand .tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hand .tab { flex: none; min-height: 32px; padding: 4px 10px; border-radius: 16px; border: 2px solid var(--reg); background: var(--ui-bg); font-size: 12px; font-weight: 800; }
.hand .tab[aria-selected="true"] { background: var(--reg); color: #fff; }
.hand .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hand .toks { flex: 1; display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; }
.tok {
  flex: none; position: relative; width: 64px; height: 84px; border-radius: 10px; border: 3px solid #fff; background: var(--reg);
  box-shadow: 0 0 0 2px var(--ui-line), 3px 4px 0 var(--ui-line); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 2px; font: 800 10.5px/1.1 system-ui, "Segoe UI", sans-serif; text-align: center; touch-action: pan-x; user-select: none; -webkit-user-select: none;
  transition: translate .15s;
}
.tok .emo { font-size: 28px; line-height: 1; }
.tok.sel { translate: 0 -10px; box-shadow: 0 0 0 3px var(--accent), 3px 8px 0 var(--ui-line); }
.tok.used { filter: grayscale(1); opacity: .45; cursor: not-allowed; }
.tok.ghost { position: fixed; z-index: 50; margin: 0; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.tok.flying { transition: transform .34s cubic-bezier(.3,.6,.4,1), opacity .34s; background: var(--accent); }
.dragging, .dragging * { cursor: grabbing !important; }
.hand .launch { flex: none; min-height: 48px; min-width: 76px; border-radius: 12px; border: 3px solid var(--ui-line); background: var(--accent); color: var(--badge-ink); font: 400 20px/1 var(--font-sfx); letter-spacing: .5px; }
[data-style="encre"] .hand .launch { color: #fff; }
.hand .launch:disabled { opacity: .35; }
.hand .tip { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); background: var(--ui-bg); border: 2px solid var(--ui-line); border-radius: 10px; padding: 6px 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hand .tip.on { opacity: 1; }
.hand .hand-away { display: flex; justify-content: center; padding: 18px 0; }
.hand .lockbar { display: none; }
.hand.locked .tabs, .hand.locked .row, .hand.locked .hand-away { opacity: .3; pointer-events: none; }
.hand.locked { translate: -50% 26px; }
.hand.locked .lockbar { display: flex; position: absolute; left: 0; right: 0; top: -26px; justify-content: center; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.hand.locked .lockbar span { background: var(--ui-bg); padding: 3px 8px; border-radius: 8px; border: 2px solid var(--ui-line); }
.hand.locked .lockbar button { min-height: 32px; border-radius: 16px; border: 2px solid var(--ui-line); background: var(--accent); color: var(--badge-ink); font-weight: 800; padding: 4px 10px; }
.hand[hidden] { display: none; }

/* ---------- récapitulatif ---------- */
.recap { margin: 16px 10px; padding: 16px; background: var(--ui-bg); color: var(--ui-ink); border: 3px solid var(--ui-line); border-radius: 12px; box-shadow: 5px 5px 0 var(--ui-line); }
.recap h2 { font: 400 30px/1 var(--font-sfx); letter-spacing: 1px; margin: 0 0 8px; }
.recap h3 { font: 800 12px system-ui; text-transform: uppercase; letter-spacing: .8px; margin: 16px 0 6px; opacity: .8; }
.recap ol, .recap ul { margin: 0; padding-left: 22px; font-size: 14px; }
.recap li.tone-good::marker { color: #2b9348; }
.recap li.tone-bad::marker { color: #e10600; }
.recap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.recap th { text-align: left; font-weight: 600; }
.recap td { text-align: center; width: 48px; font-weight: 800; }
.recap td.peg { font-size: 20px; }
.recap .peg.exact { color: #2b9348; } .recap .peg.miss { color: #e10600; }
.recap .legend { font-size: 12px; opacity: .75; }
.recap .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.recap .actions .big-btn { font-size: 19px; }

/* ---------- fiches ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; max-width: 480px; background: var(--ui-bg); color: var(--ui-ink); border-top: 4px solid var(--ui-line); border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 85vh; overflow: auto; }
.sheet-in h2 { font: 400 28px/1 var(--font-sfx); letter-spacing: 1px; margin: 0 0 6px; }
.sheet-in p { margin: 0 0 12px; font-size: 13px; opacity: .8; }
.prow { margin: 10px 0; }
.prow .pl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.prow em { font-style: normal; font-size: 12px; color: var(--accent); }
.dots { display: flex; gap: 6px; }
.dot { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ui-line); background: var(--ui-bg); font-weight: 800; }
.dot.on { background: var(--accent); color: var(--badge-ink); }
.setrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0; font-weight: 700; }
.chip { min-height: 40px; padding: 6px 12px; border-radius: 20px; border: 2px solid var(--ui-line); background: var(--ui-bg); color: var(--ui-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; margin: 2px; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--badge-ink); }
.sheet .close { margin-top: 12px; width: 100%; }

/* =====================================================================
   Habillage « stream » (js/stream.js)
   Mobile : bulle ronde du coach, messages éphémères, alertes en toast.
   Ordinateur (html.stream, ≥ 1024 px) : bandeau LIVE, facecam + jauges à gauche, chat à droite.
   ===================================================================== */
.liveband, .chat { display: none; }
.cam {
  position: fixed; z-index: 19; top: 62px; left: max(8px, calc(50% - 232px)); width: min(464px, calc(100% - 16px)); display: flex; gap: 8px; align-items: flex-start;
  opacity: 0; translate: 0 -10px; pointer-events: none; transition: opacity .25s, translate .25s;
}
.cam.pop { opacity: 1; translate: 0 0; }
.cam-frame { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--bg-a); border: 3px solid var(--accent); box-shadow: 2px 2px 0 var(--ui-line); }
.cam-face, .cam-face .chr { width: 100%; height: 100%; }
.cam-tag { display: none; }
.cam-say { margin: 4px 0 0; background: var(--ui-bg); color: var(--ui-ink); border: 2.5px solid var(--ui-line); border-radius: 12px; padding: 7px 10px; font-size: 13px; line-height: 1.3; box-shadow: 3px 3px 0 var(--ui-line); }
.cam-say.tone-bad { border-color: #e10600; } .cam-say.tone-good { border-color: #2b9348; }
.floats { position: fixed; z-index: 18; right: max(8px, calc(50% - 232px)); bottom: 156px; width: min(70%, 300px); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.float-msg, .msg { font-size: 13px; line-height: 1.3; }
.float-msg { background: color-mix(in srgb, var(--ui-bg) 90%, transparent); color: var(--ui-ink); border-radius: 10px; padding: 5px 9px; border: 1.5px solid var(--ui-line); animation: floatin .3s; }
.float-msg.tip, .msg.tip { background: #fff4c2; color: #222; border: 2px solid #f2b705; }
@keyframes floatin { from { opacity: 0; translate: 12px 0; } }
.msg b, .float-msg b { color: hsl(var(--h) 70% 45%); }
[data-style="choc"] .msg b, [data-style="choc"] .float-msg b { color: hsl(var(--h) 90% 65%); }
.msg.tip b, .float-msg.tip b { color: #8a5a00; }
.alerts { position: fixed; z-index: 21; top: 124px; left: 50%; translate: -50% 0; width: min(92%, 420px); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.alert { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 3px solid var(--ui-line); background: var(--accent); color: var(--badge-ink); box-shadow: 4px 4px 0 var(--ui-line); animation: alertin .4s cubic-bezier(.2,.9,.3,1.4); transition: opacity .5s, translate .5s; }
[data-style="encre"] .alert { color: #fff; }
.alert.trap { background: #222; color: #fff; border-color: #e10600; }
.alert b { font: 400 18px/1 var(--font-sfx); letter-spacing: .6px; }
.alert span { font-size: 13px; font-weight: 700; }
.alert.out { opacity: 0; translate: 0 -10px; }
@keyframes alertin { from { scale: .6; opacity: 0; } }
.no-chat .chat, .no-chat .floats { display: none !important; }
.no-fx .cam, .no-fx .alert, .no-fx .float-msg { transition: none; animation: none; }

html.stream { --col: 460px; --side: min(310px, calc((100vw - var(--col)) / 2 - 36px)); }
html.stream body { background: var(--page) radial-gradient(circle at 50% 0, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); background-attachment: fixed; }
html.stream #play.screen { max-width: var(--col); }
html.stream #play .strip.column { padding-top: 56px; }
html.stream .liveband {
  display: flex; position: fixed; z-index: 22; top: 0; left: 0; right: 0; height: 44px; align-items: center; gap: 18px; padding: 0 20px;
  background: var(--ui-bg); color: var(--ui-ink); border-bottom: 3px solid var(--ui-line); font-weight: 700; font-size: 14px;
}
html.stream .liveband b { font: 400 22px/1 var(--font-sfx); letter-spacing: 1px; flex: 1; }
html.stream .liveband .live { background: #e10600; color: #fff; padding: 3px 9px; border-radius: 6px; font-weight: 900; animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .65; } }
html.no-fx.stream .liveband .live { animation: none; }
html.stream .liveband .viewers { opacity: .7; }
/* colonne gauche : facecam + jauges */
html.stream .cam {
  position: fixed; top: 60px; left: calc(50% - var(--col) / 2 - var(--side) - 20px); right: auto; width: var(--side); max-width: none;
  flex-direction: column; gap: 10px; opacity: 1; translate: none; pointer-events: auto;
}
html.stream .cam-frame { width: 100%; height: calc(var(--side) * .72); border-radius: 14px; border: 4px solid var(--accent); box-shadow: 0 0 0 3px var(--ui-line), 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent); }
html.stream .cam-face .chr { height: 112%; margin-top: 4%; }
html.stream .cam-tag { display: block; position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font: 800 11px system-ui; padding: 3px 8px; border-radius: 6px; }
html.stream .cam.pop .cam-say { animation: alertin .35s; }
html.stream .cam-say { margin: 0; font-size: 14px; padding: 10px 12px; position: relative; }
html.stream .cam-say::before { content: ""; position: absolute; top: -10px; left: 28px; border: 8px solid transparent; border-bottom-color: var(--ui-line); border-top: 0; }
html.stream .hud {
  top: auto; bottom: 16px; left: calc(50% - var(--col) / 2 - var(--side) - 20px); translate: none; width: var(--side); max-width: none; height: auto;
  flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; border: 3px solid var(--ui-line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ui-line);
}
html.stream .hud .num { font-size: 30px; }
html.stream .hud .h-gap { flex-basis: 100%; }
html.stream .pips i { width: 10px; height: 22px; }
/* colonne droite : chat */
html.stream .chat {
  display: flex; flex-direction: column; position: fixed; top: 60px; bottom: 16px; left: calc(50% + var(--col) / 2 + 20px); width: var(--side);
  background: var(--ui-bg); color: var(--ui-ink); border: 3px solid var(--ui-line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ui-line); overflow: hidden;
}
html.stream .chat .title { padding: 8px 12px; font: 400 20px/1 var(--font-sfx); letter-spacing: 1px; border-bottom: 2px solid var(--ui-line); }
html.stream .chat .msgs { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
html.stream .msg { animation: floatin .3s; }
html.stream .msg.tip { border-radius: 8px; padding: 6px 8px; }
html.stream .floats { display: none; }
/* alertes au-dessus des jauges, colonne gauche */
html.stream .alerts { top: auto; bottom: 190px; left: calc(50% - var(--col) / 2 - var(--side) - 20px); translate: none; width: var(--side); }
html.stream.no-chat .chat { display: none; }

/* bascule dramatique : un flash blanc unique */
.drama-flash { position: fixed; inset: 0; z-index: 70; background: #fff; pointer-events: none; animation: dflash .38s forwards; }
@keyframes dflash { from { opacity: .9; } to { opacity: 0; } }

/* langues */
.langs { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.home-langs { position: relative; margin-top: 16px; }
.home-langs .chip { min-height: 36px; }

/* scénarios */
.grid.lib { grid-template-columns: 1fr; }
.card.scen { align-items: flex-start; text-align: left; padding: 10px 12px; text-decoration: none; }
.card.scen[aria-current="true"] { background: var(--accent); color: var(--badge-ink); }
.card.scen small { font-size: 12px; opacity: .85; }
.sc-active { background: var(--ui-bg); border: 3px solid var(--accent); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.sc-active p { margin: 4px 0 8px; font-size: 13px; }
.sc-leave { margin: 8px 0 4px; }
.sc-errors { background: #fff0f0; color: #600; border: 2px solid #e10600; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.sc-errors ul { margin: 4px 0 0; padding-left: 18px; }
.openfile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.openfile small { opacity: .7; }
.recap .targets { list-style: none; padding-left: 0; }
.recap .targets .hit { color: #2b9348; } .recap .targets .miss { opacity: .7; }
.recap .debrief p { margin: 0 0 8px; font-size: 14px; }

/* partage */
.share-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.share-tabs .chip[aria-selected="true"] { background: var(--accent); color: var(--badge-ink); }
.share-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.share-row input { flex: 1 1 200px; min-width: 0; min-height: 40px; border: 2px solid var(--ui-line); border-radius: 10px; padding: 6px 10px; font: 13px ui-monospace, monospace; background: var(--ui-soft); color: var(--ui-ink); }
.share-note { font-size: 12px; opacity: .8; margin: 4px 0; }
.share-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.share-qr figure { margin: 0; background: #fff; padding: 8px; border-radius: 12px; border: 3px solid var(--ui-line); text-align: center; }
.share-qr svg { width: 220px; height: 220px; display: block; }
.share-qr figcaption { font-size: 11px; color: #333; margin-top: 4px; }

/* paquet SCORM : pas de partage, pas d'export, pas de sortie vers l'accueil */
html.embed [data-act="share"], html.embed [data-act="scorm"], html.embed a[href="#/"], html.embed .back { display: none !important; }

.home-teacher { position: relative; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--caption-ink); background: var(--caption-bg); padding: 4px 10px; border: 2px solid var(--ink); text-decoration: none; }
html.embed a[href^="teacher.html"], html.embed a[href^="lab.html"], html.embed [data-act="intro"] { display: none !important; }
.home-intro { margin-top: 8px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.intro-overlay { position: fixed; inset: 0; z-index: 10000; background: #16131f; }
.intro-overlay iframe { width: 100%; height: 100%; border: 0; display: block; }
/* petits téléphones : la barre garde ses trois boutons (profil, réglages, quitter) */
@media (max-width: 420px) { .hud { gap: 4px; padding: 0 6px; } .h-btn { width: 34px; height: 36px; font-size: 16px; } }
