/* PROMPT & CLICK · styles du jeu */
:root {
  --ink: #2b2233; --navy: #1b1f3b; --panel: #252a4d; --panel2: #2f355e; --line: #3d4475;
  --cream: #fff6e9; --sun: #ffc94a; --coral: #ff7a59; --teal: #2ec4b6; --violet: #8f7cf5; --red: #e5484d;
  --role: #ff7a59; --ctx: #2ec4b6; --task: #ffc94a; --fmt: #a48cf5;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0f1124; overflow: hidden; font-family: 'Rubik', system-ui, sans-serif; color: var(--cream); }
button { font-family: inherit; }
#viewport { position: fixed; inset: 0; background: radial-gradient(circle at 50% 40%, #1d2142, #0b0d1c); }
#stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: center; overflow: hidden; background: #1b1f3b; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  --sky-top: #74c3f0; --sky-bot: #d9f1ff; --sun: #fff2a8; --city: #8796b8; --city-far: #b3c1da; --city-win: #fff6c8; --sea: #3aa3c8; user-select: none; }
.hidden { display: none !important; }
.layer { position: absolute; inset: 0; }
#scene { position: absolute; inset: 0; cursor: pointer; }
#bg svg, #fg svg { width: 100%; height: 100%; display: block; }
#actorsBack, #fg, #actors { pointer-events: none; }
#fg svg * { pointer-events: none; }
.wallclock path { transition: transform .6s cubic-bezier(.3,1.6,.5,1); }

/* ---------------------------------------------------------------- acteurs */
.actor { position: absolute; width: 132px; height: 275px; pointer-events: none; transition: opacity .35s; }
.actor svg { width: 100%; height: 100%; overflow: visible; display: block; }
.actor .flipper { width: 100%; height: 100%; transition: transform .18s; }
.actor.left .flipper { transform: scaleX(-1); }
.actor.npc svg g { pointer-events: visiblePainted; cursor: pointer; }
.actor.gone, #bulle.gone { opacity: 0; }
.actor .eyes { transform-box: fill-box; transform-origin: center; translate: 2.5px 0; animation: blink 4.6s infinite var(--blink, 0s); }
.actor .head { animation: breathe 3.2s ease-in-out infinite; }
.actor.talking:not(.quiet) .head { animation: talk .16s ease-in-out infinite alternate; }
.actor.walking .leg-l { animation: swing .4s ease-in-out infinite alternate; }
.actor.walking .leg-r { animation: swing .4s ease-in-out infinite alternate-reverse; }
.actor.walking .arm-l { animation: swing2 .4s ease-in-out infinite alternate-reverse; }
.actor.walking .arm-r { animation: swing2 .4s ease-in-out infinite alternate; }
.actor.walking svg { animation: bob .2s ease-in-out infinite alternate; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes breathe { 50% { transform: translateY(1.5px); } }
@keyframes talk { from { transform: rotate(-1.5deg); } to { transform: rotate(2deg) translateY(-1.5px); } }
@keyframes swing { from { transform: rotate(-17deg); } to { transform: rotate(17deg); } }
@keyframes swing2 { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }

#bulle { position: absolute; width: 74px; height: 70px; pointer-events: auto; cursor: pointer; z-index: 2; transition-property: left, opacity; filter: drop-shadow(0 0 10px rgba(46,196,182,.85)); }
#bulle .bob { animation: float 2.4s ease-in-out infinite; }
#bulle svg, .bulle-svg { width: 100%; height: 100%; display: block; overflow: visible; }
#bulle .eyes, .bench-bulle .eyes, .mini-bulle .eyes { transform-box: fill-box; transform-origin: center; animation: blink 3.8s infinite; }
#bulle.pop .bob { animation: popin .6s cubic-bezier(.3,1.8,.5,1), float 2.4s ease-in-out .6s infinite; }
#bulle.talking .bob { animation: float .5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes popin { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1); } }

/* ---------------------------------------------------------------- points chauds */
.hs { position: absolute; border-radius: 10px; cursor: pointer; }
#scene.reveal .hs { animation: reveal 1.8s ease-out; }
#scene.reveal .npc svg { animation: revealnpc 1.8s ease-out; }
@keyframes reveal { 0%, 70% { box-shadow: 0 0 0 3px var(--sun), 0 0 24px 4px rgba(255,201,74,.8); background: rgba(255,201,74,.18); } 100% { box-shadow: none; background: none; } }
@keyframes revealnpc { 0%, 70% { filter: drop-shadow(0 0 10px var(--sun)); } }
body.busy #scene { cursor: default; }
body.busy .hs, body.busy .npc svg g, body.busy #bulle { cursor: default; }

/* ---------------------------------------------------------------- HUD */
#hud { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: linear-gradient(#1b1f3bee, #1b1f3b00); pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
.hud-floor { font-weight: 700; font-size: 17px; background: var(--panel); border: 2px solid var(--line); border-radius: 30px; padding: 6px 16px 6px 6px; display: flex; align-items: center; gap: 10px; min-width: 120px; }
.hud-floor b { background: var(--sun); color: var(--ink); border-radius: 20px; padding: 3px 10px; font-weight: 900; font-size: 14px; }
.hud-clock { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); text-align: center; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 4px 18px 5px; }
#clock { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 26px; color: var(--sun); letter-spacing: 1px; line-height: 1.05; }
.hud-train { font-size: 11px; color: #b9b4d8; }
.hud-train b { color: var(--cream); }
.hud-clock.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: translateX(-50%) scale(1.12); border-color: var(--coral); } }
.hud-right { display: flex; align-items: center; gap: 10px; }
#hud-tower { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 4px 6px; }
#hud-tower i { display: block; width: 22px; height: 4px; border-radius: 2px; background: #4a5185; }
#hud-tower i.lit { background: var(--sun); box-shadow: 0 0 6px var(--sun); }
#hud-tower i.cur { outline: 2px solid var(--coral); }
#hud-tower i.lock { background: repeating-linear-gradient(90deg, #4a5185 0 3px, #2b3060 3px 6px); }
#hud-reflex { font-size: 13px; background: var(--panel); border: 2px solid var(--line); border-radius: 30px; padding: 7px 14px; color: #cfc8e8; }
#hud-reflex b { color: var(--sun); font-size: 16px; margin-left: 4px; }
.hud-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: var(--cream); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hud-btn:hover { border-color: var(--sun); color: var(--sun); }
.hud-btn svg { width: 20px; height: 20px; }
#btn-sound .mute { display: none; }
#btn-sound.off .mute { display: inline; }
#btn-sound.off .wave { display: none; }

/* ---------------------------------------------------------------- inventaire */
#inv { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: linear-gradient(#1b1f3bdd, #1b1f3b); border-top: 3px solid var(--line); z-index: 10; }
.inv-label { font-weight: 900; font-size: 12px; letter-spacing: 2px; color: var(--ctx); line-height: 1.25; writing-mode: horizontal-tb; min-width: 78px; }
#inv-cards { flex: 1; display: flex; gap: 10px; align-items: center; overflow: hidden; height: 100%; }
.inv-empty { font-size: 14px; color: #a9a4c8; }
.inv-empty b { color: var(--ctx); }
.inv-empty.dark { color: #8a85aa; }
.card { position: relative; width: 156px; height: 64px; background: var(--cream); color: var(--ink); border-radius: 8px; border: 3px solid var(--ink); padding: 14px 10px 6px; box-shadow: 0 4px 0 rgba(0,0,0,.35); flex: none; overflow: hidden; }
.card-band { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--ctx); }
.card-t { font-weight: 700; font-size: 14px; line-height: 1.15; }
.card.new { animation: cardin .6s cubic-bezier(.3,1.6,.5,1); }
.card.flagged { opacity: .6; filter: grayscale(.7); }
.stamp { position: absolute; right: 4px; bottom: 6px; transform: rotate(-12deg); border: 2px solid var(--red); color: var(--red); font-weight: 900; font-size: 11px; padding: 1px 5px; border-radius: 4px; letter-spacing: 1px; background: #fff; }
@keyframes cardin { from { transform: translateY(-80px) scale(1.4) rotate(-8deg); opacity: 0; } }
#btn-bench { display: flex; align-items: center; gap: 10px; height: 66px; padding: 6px 18px 6px 8px; border-radius: 14px; border: 3px solid var(--line); background: var(--panel); color: #a9a4c8; font-weight: 700; font-size: 14px; text-align: left; line-height: 1.15; cursor: pointer; }
#btn-bench .mini-bulle { width: 52px; height: 48px; display: block; }
#btn-bench.ready { border-color: var(--teal); color: var(--cream); background: #1f4a5a; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 18px rgba(46,196,182,.7); } }

/* ---------------------------------------------------------------- infobulle */
#tooltip { position: absolute; z-index: 90; pointer-events: none; background: var(--ink); color: var(--cream); border: 2px solid var(--sun); border-radius: 8px; padding: 5px 10px; font-size: 15px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .1s; }
#tooltip.show { opacity: 1; }
#tooltip.wide { white-space: normal; width: 300px; font-size: 14px; border-color: var(--ctx); }

/* ---------------------------------------------------------------- dialogue */
#dialog { position: absolute; left: 18px; right: 18px; top: 66px; min-height: 140px; z-index: 60; display: flex; gap: 18px; align-items: flex-start; padding: 16px 22px 16px 16px; background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 10px 0 rgba(0,0,0,.3); cursor: pointer; animation: dlgin .18s ease-out; }
@keyframes dlgin { from { transform: translateY(-14px); opacity: 0; } }
#dlg-portrait { width: 112px; height: 112px; flex: none; border-radius: 50%; border: 4px solid var(--ink); background: #ffe7b3; overflow: hidden; }
#dlg-portrait.is-bulle { background: #c8f3ee; padding: 14px; }
#dlg-portrait svg { width: 100%; height: 100%; display: block; }
.dlg-body { flex: 1; min-width: 0; }
#dlg-name { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; border: 2px solid var(--ink); margin-bottom: 8px; }
#dlg-text { font-size: 22px; line-height: 1.38; font-weight: 500; min-height: 60px; }
#dlg-next { position: absolute; right: 18px; bottom: 10px; font-size: 18px; opacity: 0; color: var(--coral); }
#dlg-next.show { opacity: 1; animation: nudge .7s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateY(4px); } }
#dlg-choices { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
#dlg-choices:empty { display: none; }
.choice { display: flex; gap: 12px; align-items: center; text-align: left; font-size: 17px; font-weight: 500; padding: 9px 14px; border-radius: 10px; border: 3px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: transform .08s, background .1s; }
.choice:hover { background: var(--sun); transform: translateX(4px); }
.choice .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-weight: 900; font-size: 14px; }

/* ---------------------------------------------------------------- astuces, téléphone, +min */
#hint { position: absolute; left: 50%; bottom: 106px; transform: translate(-50%, 10px); z-index: 55; max-width: 760px; background: var(--teal); color: var(--ink); font-weight: 500; font-size: 16px; padding: 10px 18px; border-radius: 12px; border: 3px solid var(--ink); opacity: 0; pointer-events: none; transition: .3s; text-align: center; }
#hint b { background: var(--ink); color: var(--teal); padding: 1px 8px; border-radius: 6px; margin-right: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
#hint.show { opacity: 1; transform: translate(-50%, 0); }
#phone { position: absolute; right: 16px; bottom: 106px; z-index: 70; width: 330px; display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 16px; border: 3px solid var(--ink); padding: 10px 14px 10px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateX(calc(100% + 60px)); transition: transform .45s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
#phone.show { transform: translateX(0); }
.ph-ava { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: #ffd2c2; flex: none; }
.ph-ava svg { width: 100%; height: 100%; }
.ph-h { font-weight: 900; font-size: 13px; color: var(--red); letter-spacing: 1px; }
.ph-h span { color: #999; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.ph-t { font-weight: 700; font-size: 17px; }
#floaters { position: absolute; left: 50%; top: 66px; z-index: 75; pointer-events: none; }
.floater { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--coral); border: 2px solid var(--ink); padding: 3px 10px; border-radius: 20px; animation: floatup 2.4s ease-out forwards; }
@keyframes floatup { 0% { transform: translate(-50%, -6px); opacity: 0; } 12% { transform: translate(-50%, 4px); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, 30px); opacity: 0; } }
#stage.alarm::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(229,72,77,.65); animation: alarm .6s ease-in-out infinite alternate; }
@keyframes alarm { from { opacity: .3; } to { opacity: 1; } }

/* ---------------------------------------------------------------- atelier de prompt */
#bench { position: absolute; inset: 0; z-index: 50; background: rgba(12,14,30,.72); display: grid; place-items: center; }
.bench-panel { width: 1200px; height: 640px; margin-top: 10px; background: var(--navy); border: 4px solid var(--teal); border-radius: 22px; box-shadow: 0 0 0 4px var(--ink), 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; animation: benchin .25s cubic-bezier(.3,1.4,.5,1); }
@keyframes benchin { from { transform: scale(.92); opacity: 0; } }
.bench-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #1f4a5a; border-bottom: 3px solid var(--teal); }
.bench-bulle { width: 70px; height: 64px; flex: none; animation: float 2.4s ease-in-out infinite; }
.bench-headtxt { flex: 1; }
.bench-title { font-weight: 900; font-size: 22px; }
.bench-title span { font-weight: 500; color: #a7e9e2; font-size: 17px; }
.bench-tip { font-size: 16px; color: #d9fbf6; margin-top: 2px; }
.xbtn { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--teal); background: var(--navy); color: var(--cream); font-size: 18px; cursor: pointer; }
.xbtn:hover { background: var(--teal); color: var(--ink); }
.bench-cols { flex: 1; display: flex; min-height: 0; }
.bench-left { width: 600px; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; border-right: 3px solid var(--line); }
.bench-right { flex: 1; padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.bench-right > div { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bench-right > div.hidden { display: none; }
.slot-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.slot-h b { font-weight: 900; font-size: 14px; letter-spacing: 1.5px; }
.slot-h span { color: #a9a4c8; font-size: 14px; }
.t-role { color: var(--role); } .t-ctx { color: var(--ctx); } .t-task { color: var(--task); } .t-fmt { color: var(--fmt); }
.chips, .ctxcards { display: flex; flex-wrap: wrap; gap: 7px; }
.chip, .ctxcard { font-size: 15px; font-weight: 500; padding: 7px 13px; border-radius: 22px; border: 2px solid var(--line); background: var(--panel); color: var(--cream); cursor: pointer; transition: .1s; text-align: left; }
.chip:hover, .ctxcard:hover { border-color: #8c93c9; }
.slot:nth-child(1) .chip.on { background: var(--role); border-color: var(--role); color: var(--ink); }
.slot:nth-child(3) .chip.on { background: var(--task); border-color: var(--task); color: var(--ink); }
.slot:nth-child(4) .chip.on { background: var(--fmt); border-color: var(--fmt); color: var(--ink); }
.ctxcard { display: flex; align-items: center; gap: 8px; border-radius: 9px; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; }
.ctxcard .cc-check { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink); background: #fff; flex: none; }
.ctxcard.on { background: var(--ctx); box-shadow: 0 0 0 2px var(--ctx); }
.ctxcard.on .cc-check { background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.ctxcard.flagged { opacity: .55; cursor: not-allowed; text-decoration: line-through; }
.ctxcard em { font-style: normal; font-size: 11px; color: var(--red); text-decoration: none; margin-left: 4px; }
.pp-label { font-weight: 900; font-size: 13px; letter-spacing: 2px; color: #a9a4c8; text-transform: uppercase; margin-bottom: 8px; }
.prompt-preview { flex: 1; background: #fffdf7; color: var(--ink); border-radius: 12px; border: 3px solid var(--ink); padding: 14px 16px; font-size: 16px; line-height: 1.45; overflow: auto; }
.prompt-preview p { margin: 0 0 10px; }
.prompt-preview i { color: #a39cb3; }
.tag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 1px; padding: 2px 7px; border-radius: 5px; margin-right: 8px; color: var(--ink); vertical-align: 2px; }
.tag.t-role { background: var(--role); } .tag.t-ctx { background: var(--ctx); } .tag.t-task { background: var(--task); } .tag.t-fmt { background: var(--fmt); }
.btn-primary, .btn-ghost { font-weight: 900; font-size: 18px; border-radius: 14px; border: 3px solid var(--ink); padding: 12px 20px; cursor: pointer; transition: transform .08s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary:disabled { background: #6b6787; cursor: not-allowed; box-shadow: none; }
.btn-primary small, .btn-ghost small { font-weight: 500; font-size: 13px; opacity: .75; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cream); }
.btn-primary.big { font-size: 22px; padding: 14px 28px; }
#bench-send { margin-top: 12px; }
.out-doc { flex: 1; background: #fffdf7; color: var(--ink); border-radius: 12px; border: 3px solid var(--ink); padding: 14px 16px; font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow: auto; }
.out-note { display: flex; gap: 10px; align-items: center; margin: 10px 0; min-height: 52px; color: #d9fbf6; font-size: 16px; font-weight: 500; opacity: 0; transition: .3s; }
.out-note.show { opacity: 1; }
.out-note .mini { width: 48px; height: 44px; flex: none; }
.out-actions { display: flex; gap: 10px; justify-content: flex-end; }
.out-actions button { font-size: 16px; padding: 10px 16px; }

/* ---------------------------------------------------------------- incrustations */
#overlay { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; animation: fadein .3s; }
#overlay.black { background: #07080f; z-index: 65; }
#overlay.dim { background: rgba(10,12,28,.8); z-index: 58; }
#overlay.fadeout { animation: fadeout .45s forwards; }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.blackcard { text-align: center; }
.blackcard > div:not(.bc-hint) { font-size: 40px; font-weight: 700; opacity: 0; animation: rise .8s forwards; }
.blackcard > div:first-child { color: var(--sun); font-size: 54px; font-weight: 900; }
.bc-hint, .rr-hint { margin-top: 26px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #77729a; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.floorcard { text-align: center; animation: rise .5s; }
.fc-num { font-size: 18px; letter-spacing: 6px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.fc-name { font-size: 76px; font-weight: 900; line-height: 1.05; margin: 6px 0 22px; }
.fc-manual { display: inline-block; font-size: 22px; background: var(--cream); color: var(--ink); padding: 10px 22px; border-radius: 12px; border: 3px solid var(--ink); transform: rotate(-1.5deg); }
.fc-manual b { color: var(--red); text-decoration: line-through; text-decoration-thickness: 3px; }
.fc-left { margin-top: 18px; color: #b9b4d8; font-size: 17px; }
.fc-left b { color: var(--sun); }

.reflex { --rc: #ffc94a; position: relative; width: 220px; background: var(--cream); color: var(--ink); border-radius: 16px; border: 4px solid var(--ink); padding: 20px 16px 16px; box-shadow: 0 6px 0 var(--ink); text-align: left; overflow: hidden; }
.reflex::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--rc); }
.rf-n { position: absolute; right: 12px; top: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--rc); border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.rf-title { font-weight: 900; font-size: 22px; line-height: 1.1; padding-right: 40px; }
.rf-line { margin: 8px 0; font-weight: 900; font-size: 12px; letter-spacing: 1px; color: var(--ink); background: var(--rc); display: inline-block; padding: 3px 7px; border-radius: 5px; }
.rf-text { font-size: 14px; line-height: 1.4; color: #4b4358; }
.reflex.big { width: 380px; padding: 28px 24px 22px; }
.reflex.big .rf-title { font-size: 34px; }
.reflex.big .rf-line { font-size: 15px; }
.reflex.big .rf-text { font-size: 18px; }
.reflex.big .rf-n { width: 46px; height: 46px; font-size: 22px; top: 24px; }
.reflex.locked { background: #3a3f68; color: #9a95bd; box-shadow: 0 6px 0 #14162c; border-color: #14162c; }
.reflex.locked::before { background: repeating-linear-gradient(45deg, #ffc94a 0 10px, #2b2233 10px 20px); }
.reflex.locked .rf-n { background: #4a5185; color: #9a95bd; border-color: #14162c; }
.reflex.locked .rf-line { background: #4a5185; color: #c9c4e6; }
.reflex.locked .rf-text { color: #8a85aa; }
.reflex-reveal { text-align: center; animation: rise .4s; }
.reflex-reveal .reflex { margin: 0 auto; animation: flipin .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes flipin { from { transform: rotateY(90deg) scale(.6); } }
.rr-kicker { font-size: 16px; letter-spacing: 5px; text-transform: uppercase; color: var(--sun); font-weight: 700; margin-bottom: 18px; }
.rr-saved { margin-top: 22px; font-size: 20px; color: #d9d4f4; }
.rr-saved b { color: var(--sun); }

/* titre */
#overlay.title { z-index: 80; background: linear-gradient(#ff9f6b 0%, #ffc98a 46%, #ffe3b0 62%, #2f86a8 62.2%, #1f5f86 100%); }
.title-screen { position: absolute; inset: 0; }
.ts-sun { position: absolute; left: 820px; top: 230px; width: 280px; height: 280px; border-radius: 50%; background: #fff2b0; box-shadow: 0 0 80px #ffe08a; }
.ts-sea { position: absolute; left: 0; right: 0; top: 446px; height: 274px; background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(255,242,176,.25) 22px 25px); }
.ts-tower { position: absolute; left: 30px; bottom: -10px; width: 330px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.3)); }
.ts-tower svg { width: 100%; display: block; }
.ts-main { position: absolute; left: 420px; top: 66px; width: 760px; }
.ts-kicker { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); background: var(--cream); padding: 5px 14px; border-radius: 20px; border: 3px solid var(--ink); }
.ts-logo { margin: 14px 0 8px; font-size: 104px; line-height: .95; font-weight: 900; color: var(--cream); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); letter-spacing: 2px; }
.ts-logo span { color: var(--sun); }
.ts-sub { font-size: 21px; line-height: 1.45; color: var(--ink); font-weight: 500; margin: 6px 0 18px; }
.ts-form { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 20px; }
.ts-name { display: flex; flex-direction: column; gap: 6px; font-weight: 900; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.ts-name input { font-family: inherit; font-size: 24px; font-weight: 700; width: 220px; padding: 10px 14px; border-radius: 12px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); outline: none; }
.ts-name input:focus { box-shadow: 0 0 0 4px var(--sun); }
.ts-avatars { display: flex; gap: 10px; }
.ts-ava { width: 78px; height: 100px; border-radius: 14px; border: 3px solid var(--ink); background: rgba(255,246,233,.55); cursor: pointer; padding: 4px 0 0; overflow: hidden; }
.ts-ava svg { width: 100%; height: 160px; display: block; }
.ts-ava.on { background: var(--cream); box-shadow: 0 0 0 4px var(--sun); }
.ts-foot { margin-top: 18px; font-size: 15px; color: var(--cream); font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ts-foot a { color: var(--sun); font-weight: 700; }
.ts-bulle { position: absolute; left: 296px; top: 250px; width: 110px; height: 100px; animation: float 2.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(46,196,182,.9)); }
.ts-bulle .eyes { transform-box: fill-box; transform-origin: center; animation: blink 3.8s infinite; }

/* ascenseur */
#overlay.elevator-ov { background: linear-gradient(90deg, #9aa1b4 0 50%, #8b92a7 50% 100%); z-index: 45; }
.elevator { display: flex; gap: 60px; align-items: center; background: #2a2f52; border: 4px solid var(--ink); border-radius: 22px; padding: 34px 50px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.el-tower { width: 360px; }
.el-tower svg { width: 100%; display: block; }
.el-panel { width: 420px; }
.el-kicker { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: #9a95bd; font-weight: 700; }
.el-next { margin-top: 18px; font-size: 18px; color: var(--teal); font-weight: 700; }
.el-floor { font-size: 52px; font-weight: 900; line-height: 1.05; }
.el-floor b { color: var(--sun); margin-right: 8px; }
.el-convinced { margin: 14px 0 18px; font-size: 18px; color: #cfc8e8; }
.el-convinced b { color: var(--sun); }
.el-demo { font-size: 15px; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; line-height: 1.4; }

/* vérification finance */
.recount { width: 820px; background: var(--navy); border: 4px solid var(--teal); border-radius: 20px; padding: 26px 30px; box-shadow: 0 0 0 4px var(--ink); }
.rc-title { font-size: 28px; font-weight: 900; }
.rc-sub { color: #cfc8e8; font-size: 17px; line-height: 1.5; margin: 8px 0 16px; }
.rc-sub b { color: var(--cream); } .rc-sub b.red { color: var(--coral); }
.recount table { width: 100%; border-collapse: collapse; font-size: 18px; }
.recount td { padding: 9px 10px; border-bottom: 2px solid var(--line); }
.recount td.num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.recount td:last-child { text-align: right; width: 220px; }
.recount tr.ok td { color: #8fe3a5; } .recount tr.bad td { color: var(--coral); }
.rc-btn { font-size: 14px; padding: 7px 12px; }
.rc-tag { font-weight: 900; padding: 5px 12px; border-radius: 20px; font-size: 14px; }
.rc-tag.ok { background: #2f6b45; color: #c9f7d6; } .rc-tag.bad { background: var(--coral); color: var(--ink); }
.rc-result { margin-top: 16px; font-size: 18px; text-align: center; }
.rc-result b { color: var(--sun); }

/* duel */
#duel-banner { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 106px; z-index: 30; background: var(--red); color: #fff; border: 4px solid var(--ink); border-radius: 16px; padding: 8px 22px; text-align: center; box-shadow: 0 6px 0 var(--ink); animation: rise .4s; }
.db-title { font-weight: 900; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.db-pips { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.db-pips i { width: 26px; height: 12px; border-radius: 6px; background: rgba(0,0,0,.3); border: 2px solid var(--ink); }
.db-pips i.on { background: var(--sun); }
#duel-banner.won { background: var(--teal); }

/* plage */
.cocktail { position: absolute; width: 60px; height: 80px; z-index: 3; }
.cocktail svg { width: 100%; height: 100%; display: block; }
.cocktail-bulle { position: absolute; left: 4px; top: -46px; width: 52px; height: 48px; animation: float 2.4s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(46,196,182,.9)); }

/* score */
#overlay.score-ov { background: rgba(10,12,28,.86); z-index: 58; }
.score { width: 1180px; text-align: center; animation: rise .5s; }
.sc-kicker { font-size: 15px; letter-spacing: 5px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.sc-rank { font-size: 56px; font-weight: 900; color: var(--sun); line-height: 1.05; }
.sc-rank span { color: var(--cream); }
.sc-rankline { font-size: 18px; color: #cfc8e8; margin: 4px 0 18px; }
.sc-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-bottom: 20px; }
.sc-grid div { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; }
.sc-grid b { display: block; font-size: 24px; color: var(--sun); font-family: 'IBM Plex Mono', monospace; }
.sc-grid span { font-size: 12px; color: #b9b4d8; }
.sc-cards { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.sc-cards .reflex { width: 158px; padding: 18px 12px 12px; box-shadow: 0 4px 0 var(--ink); }
.sc-cards .rf-title { font-size: 17px; padding-right: 26px; }
.sc-cards .rf-n { width: 26px; height: 26px; font-size: 13px; right: 8px; top: 16px; border-width: 2px; }
.sc-cards .rf-line { font-size: 10px; }
.sc-cards .rf-text { font-size: 11.5px; }
.sc-actions { display: flex; gap: 12px; justify-content: center; }

/* impression de la fiche réflexe */
#printSheet { display: none; }
@media print {
  body { background: #fff; overflow: visible; }
  #viewport { display: none; }
  #printSheet { display: block; color: #2b2233; font-family: 'Rubik', sans-serif; padding: 10mm; }
  #printSheet h1 { font-size: 30pt; margin: 0; }
  .ps-sub { color: #666; margin: 4px 0 16px; }
  .ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
  .ps-cards .reflex { width: auto; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-foot { margin-top: 10mm; color: #888; }
}

/* langue + ascenseur (v2) */
.ts-lang { position: absolute; right: 24px; top: 20px; display: flex; gap: 6px; z-index: 2; }
.ts-lang button { font-weight: 900; font-size: 15px; padding: 7px 14px; border-radius: 20px; border: 3px solid var(--ink); background: rgba(255,246,233,.6); color: var(--ink); cursor: pointer; }
.ts-lang button.on { background: var(--ink); color: var(--sun); }
.el-music { font-size: 13px; color: #9a95bd; font-style: italic; margin: -6px 0 16px; }

/* ---------------------------------------------------------------- v3 : canvas, sprites, palettes, reglages */
#stage { --fa: #ffc94a; --fd: #252a4d; }
#view { position: absolute; inset: 0; width: 1280px; height: 720px; display: block; }
#scene { cursor: default; }
.hud-floor b { background: var(--fa); }
.hud-floor { border-color: var(--fa); }
#dlg-text { white-space: pre-line; }
#dlg-portrait img, .ph-ava img, .bench-bulle img, .out-note .mini img { width: 100%; height: 100%; display: block; object-fit: cover; }
#dlg-portrait.is-bulle { padding: 6px; background: #c8f3ee; }
.bench-panel { border-color: var(--fa); }
.bench-head { background: var(--fd); border-bottom-color: var(--fa); }
.bench-bulle { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #c8f3ee; border: 3px solid var(--ink); }
.out-note .mini { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #c8f3ee; border: 2px solid var(--ink); }
.card { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.card-band { display: none; }
.card-ico { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.card-t { font-size: 13px; }
.ctxcard img { width: 26px; height: 26px; object-fit: contain; }
#settings { position: absolute; right: 16px; top: 62px; z-index: 72; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; display: none; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#settings.show { display: flex; }
.st-row { display: flex; gap: 6px; align-items: center; }
.st-row b { width: 82px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #9a95bd; }
.st-row button { font-family: inherit; font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 14px; border: 2px solid var(--line); background: var(--navy); color: var(--cream); cursor: pointer; }
.st-row button.on { background: var(--sun); color: var(--ink); border-color: var(--sun); }
/* titre sur le decor de la tour */
#overlay.title { background: #1b1f3b url(../art/sets/final/title.webp) center / cover no-repeat; }
.title-screen .ts-main { left: 470px; top: 60px; width: 760px; }
.title-screen .ts-sub { color: var(--cream); text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(0,0,0,.6); }
.title-screen .ts-kicker { background: var(--ink); color: var(--sun); }
.ts-ava { background: rgba(43,34,51,.55); padding: 0; }
.ts-ava img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ts-ava.on { background: rgba(255,246,233,.85); }
.ts-name { color: var(--cream); text-shadow: 0 2px 0 var(--ink); }
/* ascenseur sur le decor de la cabine */
#overlay.elevator-ov { background-size: cover; background-position: center; }
.elevator { background: rgba(42,47,82,.9); }
/* carte d'etage aux couleurs de l'etage */
#overlay.floorcard-ov { background: radial-gradient(circle at 50% 45%, var(--fd), rgba(8,9,20,.92)); }
.floorcard-ov .fc-num { color: var(--fa); }

/* ---------- v4 : dialogue côté joueur, Bulle bulle de savon, cinématique, visio, macro, score ---------- */
.dlg-body { flex: 1; min-width: 0; }
#btn-bench .mini-bulle img { width: 100%; height: 100%; display: block; object-fit: contain; }

#overlay.cut-ov { z-index: 66; background: #0b0d1f; }
.cut { position: absolute; inset: 0; cursor: pointer; }
.cut-cv { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; }
.cut-ui { position: absolute; inset: 0; pointer-events: none; }
.cut-sub { position: absolute; left: 70px; right: 70px; bottom: 26px; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; pointer-events: none; }
.cut-sub.show { opacity: 1; transform: none; }
.cs-name { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); padding: 2px 10px; border-radius: 12px; border: 2px solid var(--ink); margin-bottom: 6px; }
.cs-text { font-size: 30px; font-weight: 900; line-height: 1.25; text-shadow: -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 3px 3px 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 3px 0 0 #000, -3px 0 0 #000, 0 6px 10px rgba(0,0,0,.6); }
.cut-sub.thought .cs-text { font-style: italic; font-weight: 700; }
.cut-skip { position: absolute; right: 18px; top: 16px; z-index: 3; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--cream); background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.35); border-radius: 14px; padding: 5px 14px; cursor: pointer; }
.cut-skip:hover { background: rgba(0,0,0,.7); }
.visio { position: absolute; inset: 0; color: #e8e6ff; }
.vz-top { position: absolute; left: 24px; right: 130px; top: 16px; height: 34px; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.vz-top b { letter-spacing: 2px; color: #fff; }
.vz-top span:last-child { margin-left: auto; color: #9a95bd; }
.vz-rec { color: #ff5a5a; font-weight: 900; animation: vzblink 1s steps(2) infinite; }
@keyframes vzblink { 50% { opacity: .2; } }
.vz-main { position: absolute; left: 21px; top: 61px; width: 912px; height: 513px; border: 3px solid var(--sun); border-radius: 10px; box-shadow: 0 0 22px rgba(255,201,74,.35); }
.vz-tag { position: absolute; left: 12px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 15px; }
.vz-side { position: absolute; left: 952px; top: 64px; width: 304px; display: flex; flex-direction: column; gap: 8px; }
.vz-tile { height: 66px; display: flex; align-items: center; gap: 10px; background: #1a1d3a; border: 2px solid #3b4170; border-radius: 10px; padding: 0 12px 0 8px; font-weight: 700; font-size: 15px; }
.vz-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: #ffe7b3; border: 2px solid #0e0f1d; }
.vz-ava img, .vz-ava svg { width: 100%; height: 100%; display: block; }
.vz-tile em { margin-left: auto; font-size: 11px; font-style: normal; color: #ff8a8a; text-transform: uppercase; letter-spacing: 1px; }
.vz-ended { position: absolute; left: 21px; top: 61px; width: 918px; height: 519px; display: grid; place-items: center; background: rgba(5,6,15,.88); color: #fff; font-size: 38px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; border-radius: 10px; animation: fadein .2s; }

.codecard { width: 900px; background: #0f1226; border: 4px solid var(--ink); border-radius: 18px; padding: 18px 24px 14px; box-shadow: 0 10px 0 rgba(0,0,0,.35); color: #e8e6ff; cursor: pointer; }
.cc-head { display: flex; gap: 12px; align-items: center; font-weight: 900; font-size: 18px; color: var(--sun); margin-bottom: 10px; }
.cc-mini { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #c8f3ee; border: 2px solid var(--ink); flex: none; }
.cc-mini img, .cc-mini svg { width: 100%; height: 100%; display: block; }
.codecard pre { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 17px; line-height: 1.5; color: #9ef0c9; white-space: pre; overflow: hidden; background: #070915; border-radius: 10px; padding: 14px 16px; }

.sc-team { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 10px; }
.sc-team span { background: var(--teal); color: var(--ink); font-weight: 700; padding: 4px 12px; border-radius: 14px; border: 2px solid var(--ink); font-size: 14px; }

/* ---------- v5 : téléphone, chargement, choix du style ---------- */
html, body { touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
#btn-full { display: none; }
@media (pointer: coarse) { #btn-full { display: grid; } }
#loading { position: absolute; inset: 0; z-index: 95; display: none; place-items: center; background: rgba(12,14,30,.55); pointer-events: none; }
#loading.show { display: grid; }
#loading span { width: 54px; height: 54px; border-radius: 50%; border: 6px solid rgba(255,255,255,.25); border-top-color: var(--sun); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#rotate { display: none; }
@media (orientation: portrait) and (max-width: 900px) {
  #rotate { display: grid; position: fixed; inset: 0; z-index: 1000; place-items: center; background: #1b1f3b; color: #fff6e9; text-align: center; font-family: 'Rubik', system-ui, sans-serif; }
  #rotate svg { width: 84px; height: 84px; color: var(--sun, #ffc94a); animation: tilt 1.6s ease-in-out infinite; }
  #rotate p { font-size: 20px; font-weight: 700; margin: 14px 0 0; }
  #rotate small { font-weight: 500; opacity: .75; }
}
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
.ts-styles { position: absolute; left: 24px; top: 20px; display: flex; gap: 6px; align-items: center; z-index: 2; flex-wrap: wrap; max-width: 60%; }
.ts-styles span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff6e9; text-shadow: 0 2px 0 rgba(0,0,0,.5); margin-right: 4px; }
.ts-styles button { font-family: inherit; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 14px; border: 2px solid var(--ink); background: #fff6e9; color: var(--ink); cursor: pointer; }
.ts-styles button.on { background: var(--sun); }
/* small screens: the 1280x720 stage is shrunk, so the reading text grows to stay legible */
body.phone .card-t { font-size: 17px; }
body.phone .inv-empty { font-size: 19px; }
body.phone #hint { font-size: 22px; max-width: 900px; }
body.phone .bench-tip { font-size: 20px; }
body.phone .chip { font-size: 18px; }
body.phone .ctxcard { font-size: 17px; }
body.phone .prompt-preview { font-size: 19px; }
body.phone .out-doc { font-size: 17px; }
body.phone .out-note span { font-size: 19px; }
body.phone .cs-text { font-size: 38px; }
body.phone .codecard pre { font-size: 19px; }
body.phone #phone { width: 420px; }
body.phone .ph-t { font-size: 19px; }
body.phone .hud-btn { width: 52px; height: 52px; }

/* ---------- v6 : dialogues en bas, bandeau léger, portrait qui sort de son cercle ---------- */
#dialog { left: 0; right: 0; top: auto; bottom: 0; min-height: 0; display: block; padding: 34px 48px 22px 210px; color: #fff6e9;
  background: linear-gradient(180deg, rgba(9,10,24,0) 0%, rgba(9,10,24,.82) 30%, rgba(9,10,24,.93) 100%);
  border: 0; border-radius: 0; box-shadow: none; animation: dlgup .16s ease-out; }
@keyframes dlgup { from { transform: translateY(16px); opacity: 0; } }
#dialog.right { padding: 34px 210px 22px 48px; }
#dlg-portrait { position: absolute; left: 40px; bottom: 22px; width: 136px; height: 136px; border-radius: 50%; overflow: visible; padding: 0;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--spk, #ffc94a) 70%, #fff), var(--spk, #ffc94a)); border: 4px solid #0e0f1d; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
#dialog.right #dlg-portrait { left: auto; right: 40px; }
#dlg-portrait img { position: absolute; left: 50%; bottom: -4px; width: 168%; height: auto; max-width: none; transform: translateX(-50%); object-fit: contain;
  /* the bust sticks out of the top of the circle; below its middle it stays inside the circle */
  -webkit-mask: radial-gradient(circle 68px at 50% calc(100% - 64px), #000 97%, transparent 100%), linear-gradient(#000, #000) top / 100% calc(100% - 64px) no-repeat;
          mask: radial-gradient(circle 68px at 50% calc(100% - 64px), #000 97%, transparent 100%), linear-gradient(#000, #000) top / 100% calc(100% - 64px) no-repeat; }
#dialog.right #dlg-portrait img { transform: translateX(-50%) scaleX(-1); }
#dlg-portrait.is-bulle { padding: 0; background: radial-gradient(circle at 40% 35%, #ffffff, #bfeee8); }
#dlg-portrait.is-bulle img { width: 118%; bottom: -6px; -webkit-mask: none; mask: none; }
#dlg-portrait svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
#dlg-name { display: block; background: none !important; border: 0; padding: 0; margin: 0 0 4px; font-size: 14px; letter-spacing: 2.5px; color: var(--spk, #ffc94a);
  text-shadow: 0 2px 0 #000; }
#dialog.right .dlg-body { text-align: left; }
#dlg-text { font-size: 25px; line-height: 1.36; font-weight: 600; min-height: 0; max-width: 940px; color: #fff6e9;
  text-shadow: 0 2px 0 rgba(0,0,0,.85), 0 0 12px rgba(0,0,0,.5); }
#dlg-text:empty { display: none; }
#dlg-next { right: 26px; bottom: 16px; color: var(--sun); font-size: 16px; }
#dialog.right #dlg-next { right: auto; left: 26px; }
#dlg-choices { gap: 2px; margin-top: 6px; }
.choice { background: transparent; border: 0; border-radius: 8px; color: #e9e4ff; font-size: 21px; font-weight: 600; padding: 5px 10px 5px 4px; text-shadow: 0 2px 0 rgba(0,0,0,.8); }
.choice:hover, .choice:focus-visible { background: rgba(255,255,255,.08); color: var(--sun); transform: translateX(4px); outline: none; }
.choice .num { width: 24px; height: 24px; font-size: 13px; background: rgba(255,255,255,.14); color: var(--sun); }
body.phone #dialog { padding: 30px 40px 18px 236px; }
body.phone #dialog.right { padding: 30px 236px 18px 40px; }
body.phone #dlg-portrait { width: 160px; height: 160px; }
body.phone #dlg-portrait img { -webkit-mask: radial-gradient(circle 80px at 50% calc(100% - 76px), #000 97%, transparent 100%), linear-gradient(#000, #000) top / 100% calc(100% - 76px) no-repeat;
  mask: radial-gradient(circle 80px at 50% calc(100% - 76px), #000 97%, transparent 100%), linear-gradient(#000, #000) top / 100% calc(100% - 76px) no-repeat; }
body.phone #dlg-text { font-size: 33px; }
body.phone #dlg-name { font-size: 18px; }
body.phone .choice { font-size: 29px; padding: 6px 12px 6px 4px; }
/* GODLIKE */
#btn-god { width: auto; padding: 0 12px; font-weight: 900; letter-spacing: 1px; font-size: 13px; color: #ffcf3f; border-color: #ffcf3f; }
#godpanel { position: absolute; right: 16px; top: 62px; z-index: 96; display: none; flex-direction: column; gap: 8px; max-width: 760px; padding: 12px 14px; border-radius: 14px; background: rgba(14,15,32,.96); border: 2px solid #ffcf3f; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#godpanel.show { display: flex; }
#godpanel .gp-h { font-weight: 900; letter-spacing: 3px; color: #ffcf3f; font-size: 13px; }
#godpanel .gp-row { display: flex; flex-wrap: wrap; gap: 6px; }
#godpanel button { font-family: inherit; font-weight: 700; font-size: 14px; padding: 6px 11px; border-radius: 12px; border: 2px solid #3b4170; background: #1f2346; color: #fff6e9; cursor: pointer; }
#godpanel button:hover, #godpanel button.on { background: #ffcf3f; color: #15171e; border-color: #ffcf3f; }
body.phone #godpanel button { font-size: 20px; padding: 9px 14px; }
/* while someone talks, the bottom band takes the place of the inventory */
#inv { transition: opacity .15s; }
body.dlg-on #inv, body.dlg-on #hint { opacity: 0; pointer-events: none; }
#dialog { animation: none; }
#dialog.hidden { display: none; }
.cut.movie { cursor: default; }
.mv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.mv-bar i { display: block; height: 100%; width: 0; background: var(--sun); }

/* ---------- v7 : écran d'accueil = l'affiche années 60, menu dans un bandeau léger en bas ---------- */
#overlay.title { background-size: cover; background-position: center top; }
.ts-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 28px; align-items: flex-end; justify-content: space-between;
  padding: 70px 34px 24px; background: linear-gradient(180deg, rgba(16,22,40,0) 0%, rgba(16,22,40,.78) 42%, rgba(16,22,40,.92) 100%); }
.ts-text { max-width: 560px; min-width: 0; }
.ts-band .ts-kicker { background: #f2c14e; color: #15171e; font-size: 13px; letter-spacing: 2.5px; padding: 4px 10px; border-radius: 6px; border: 0; }
.ts-band .ts-sub { color: #fff6e9; font-size: 17px; line-height: 1.45; margin: 8px 0 6px; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.ts-band .ts-foot { margin-top: 0; font-size: 13px; color: #cfd6e6; }
.ts-band .ts-form { margin: 0; gap: 14px; align-items: flex-end; }
.ts-band .ts-name { color: #fff6e9; }
.ts-band .ts-name input { width: 200px; font-size: 22px; }
.ts-band .ts-ava { width: 70px; height: 92px; }
.ts-band #ts-play { white-space: nowrap; }
.title-screen .ts-main { display: none; }
body.phone .ts-band .ts-sub { font-size: 22px; }
body.phone .ts-band .ts-foot { font-size: 17px; }
