:root {
  --cyan: #19e6ff; --mag: #ff2bd6; --ink: #05060a; --paper: #f4f1ff;
  --font: "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); font-family: var(--font); overflow: hidden; -webkit-user-select: none; user-select: none; }
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.npc-talk { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 21; border: 1px solid #d9b45c; border-radius: 20px; background: #10151de8; color: #ffdfa0; padding: 12px 20px; font: 700 14px var(--font); cursor: pointer; }
.npc-chat-status { min-height: 18px; padding: 0 12px; color: #b8bfd3; font-size: 12px; }
#chat-form button:disabled { opacity: .45; cursor: wait; }

/* ── ΠΕΠΛΟ ΠΟΡΤΑΣ (owner 8/9 «το μπες-βγες στα μαγαζιά να γίνει ομαλό») ── */
#veil { position: fixed; inset: 0; z-index: 60; background: #05060a; display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity .5s ease; pointer-events: none; }
#veil.off { opacity: 0; }
#veil-txt { font-size: clamp(18px, 3.4vw, 34px); font-weight: 900; letter-spacing: .3em; color: #d9b45c; text-transform: uppercase;
  text-shadow: 0 0 26px rgba(217, 180, 92, .35); opacity: 0; transition: opacity .35s ease .15s; text-align: center; padding: 0 6vw; }
#veil:not(.off) #veil-txt.has { opacity: .92; }
#veil.with-photo { background-color: #141a1b; }
#veil .loading-photo-art { position: absolute; width: min(100vw, 177.777778vh); aspect-ratio: 16 / 9; background: var(--loading-photo) center / contain no-repeat; }
/* Inner image corners from polaroid.html: 1296×729 at (312,94.8), rotated -1.7° around (960,496.8). */
#veil .loading-photo-art::after { content: ''; position: absolute; inset: 0; background: inherit; clip-path: polygon(15.643718% 10.574135%, 83.114008% 7.014186%, 84.240398% 74.484477%, 16.770108% 78.044426%); filter: brightness(var(--photo-reveal, 0)) saturate(var(--photo-color, 0)); transition: filter .4s ease; }
#veil.with-photo #veil-txt { position: absolute; z-index: 1; bottom: max(66px, calc(env(safe-area-inset-bottom) + 54px)); max-width: 90%; padding: 10px 18px; border-radius: 8px; background: #101616e8; font-size: clamp(12px, 1.4vw, 18px); letter-spacing: .12em; }
#loading-progress { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); width: min(440px, 80vw); display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #101616e8; font: 700 12px var(--font); color: #fff; font-variant-numeric: tabular-nums; }
.loading-track { flex: 1; height: 6px; border-radius: 6px; background: #ffffff28; overflow: hidden; }
.loading-track i { display: block; height: 100%; background: linear-gradient(90deg, #d9b45c, #19e6ff); transform-origin: left; transform: scaleX(var(--load-progress, 0)); transition: transform .4s ease; }
#loading-progress span { min-width: 32px; text-align: right; }
@media (prefers-reduced-motion: reduce) { #veil .loading-photo-art::after, .loading-track i { transition: none; } }

/* ── overlays ─────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255,43,214,.22), transparent 60%),
              radial-gradient(90% 70% at 50% 0%, rgba(25,230,255,.18), transparent 60%), rgba(5,6,10,.88); }
.menu-card { text-align: center; padding: 28px 32px; width: min(880px, 100%); max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.menu-kicker { letter-spacing: .5em; font-size: 12px; color: var(--cyan); opacity: .9; }
.menu-title { margin: 8px 0 10px; line-height: .9; font-weight: 900; letter-spacing: -.02em; }
.menu-title .t1 { display: block; font-size: clamp(54px, 11vw, 120px); color: #fff; text-shadow: 0 0 30px rgba(25,230,255,.6), 0 0 2px #fff; }
.menu-title .t2 { display: block; font-size: clamp(26px, 5vw, 56px); color: var(--mag); letter-spacing: .28em; text-shadow: 0 0 22px rgba(255,43,214,.8); }
.menu-sub { color: #cfd3ff; opacity: .85; font-size: 15px; max-width: 560px; margin: 0 auto 26px; line-height: 1.45; }
.btn-start { cursor: pointer; border: 2px solid var(--cyan); background: linear-gradient(90deg, rgba(25,230,255,.18), rgba(255,43,214,.18)); color: #fff;
  padding: 18px 42px; border-radius: 999px; font-size: 24px; font-weight: 900; letter-spacing: .12em; box-shadow: 0 0 40px rgba(25,230,255,.35), inset 0 0 20px rgba(255,255,255,.08); transition: transform .15s, box-shadow .15s; }
.btn-start:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 60px rgba(255,43,214,.5); }
.btn-start small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; opacity: .75; margin-top: 6px; }
.btn-start[disabled] { opacity: .45; cursor: wait; }
.menu-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; font-size: 12px; color: #aab; }
.menu-keys b { color: #fff; background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; margin-right: 4px; }
.menu-status { margin-top: 18px; font-size: 12px; color: #8891b8; letter-spacing: .1em; }

/* ── HUD ──────────────────────────────────────────────────── */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud button { pointer-events: auto; }
.section { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; }
#section-name { font-size: 34px; font-weight: 900; letter-spacing: .22em; color: #fff; text-shadow: 0 0 18px var(--cyan), 0 0 3px #fff; }
#section-sub { font-size: 12px; letter-spacing: .3em; color: var(--mag); text-shadow: 0 0 10px var(--mag); margin-top: 2px; }
.section.flash #section-name { animation: pop .6s ease-out; }
@keyframes pop { 0% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.night { position: absolute; top: 18px; left: 20px; display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
.night .lbl { font-size: 11px; letter-spacing: .3em; color: var(--cyan); }
.night .lbl2 { font-size: 11px; color: #99a; }
#night-val { font-size: 30px; color: #fff; text-shadow: 0 0 12px var(--cyan); }

.ticket { position: absolute; top: 60px; left: 20px; padding: 6px 12px; border: 1.5px solid var(--mag); color: var(--mag); border-radius: 8px; font-weight: 900; letter-spacing: .2em; font-size: 12px; box-shadow: 0 0 16px rgba(255,43,214,.5); transform: rotate(-4deg); }
.ticket.off { opacity: .25; border-color: #667; color: #667; box-shadow: none; }
.ticket.stamp { animation: stamp .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes stamp { 0% { transform: rotate(-4deg) scale(3); opacity: 0; } 100% { transform: rotate(-4deg) scale(1); opacity: 1; } }

.hp { position: absolute; top: 18px; right: 20px; width: 200px; height: 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.4); }
#hp-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--mag), var(--cyan)); transition: width .15s; }
.hp span { position: absolute; inset: 0; font-size: 9px; letter-spacing: .3em; text-align: center; line-height: 16px; color: #fff; mix-blend-mode: difference; }

.crosshair { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; box-shadow: 0 0 6px var(--cyan); }
.crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px; background: #fff; }
.crosshair.armed { border-color: var(--mag); box-shadow: 0 0 10px var(--mag); transform: scale(1.4); }

.weapon { position: absolute; right: 20px; bottom: 22px; display: flex; align-items: center; gap: 12px; }
.weapon.in-vehicle { display: none; }
.w-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(5,6,10,.6); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
#w-icon { font-size: 30px; filter: drop-shadow(0 0 6px var(--cyan)); }
#w-name { font-weight: 900; letter-spacing: .15em; font-size: 14px; }
#w-state { font-size: 10px; letter-spacing: .2em; color: #9aa; }
.weapon.armed .w-chip { border-color: var(--mag); box-shadow: 0 0 18px rgba(255,43,214,.45); }
.weapon.armed #w-state { color: var(--mag); }
.btn-throw { cursor: pointer; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--mag); background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.25), rgba(255,43,214,.35) 60%, rgba(255,43,214,.15)); color: #fff; font-weight: 900; letter-spacing: .15em; font-size: 15px; box-shadow: 0 0 26px rgba(255,43,214,.5); }
.btn-throw:active { transform: scale(.92); }

.stopbar { position: absolute; left: 20px; bottom: 22px; display: flex; gap: 10px; }
.btn-stop { cursor: pointer; padding: 16px 26px; border-radius: 14px; border: 2px solid var(--cyan); background: rgba(5,6,10,.65); color: #fff; font-weight: 900; letter-spacing: .2em; font-size: 16px; box-shadow: 0 0 22px rgba(25,230,255,.35); backdrop-filter: blur(6px); }
.btn-stop.go { border-color: #3fff9a; box-shadow: 0 0 22px rgba(63,255,154,.45); }

.subtitle { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); max-width: min(760px, 86vw); padding: 10px 18px; border-radius: 12px; background: rgba(5,6,10,.72); border-left: 3px solid var(--mag); font-size: 16px; line-height: 1.4; color: #fff; text-align: center; }
.subtitle b { color: var(--mag); letter-spacing: .1em; font-size: 11px; display: block; margin-bottom: 2px; }
.toast { position: absolute; left: 50%; top: 28%; transform: translateX(-50%); padding: 12px 22px; border-radius: 10px; background: rgba(5,6,10,.75); border: 1px solid rgba(255,255,255,.25); font-weight: 900; letter-spacing: .15em; font-size: 20px; text-shadow: 0 0 10px var(--cyan); animation: toastin .3s ease-out; }
@keyframes toastin { from { transform: translate(-50%, -12px); opacity: 0; } }

.touch { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; gap: 8px; }
.touch button { width: 58px; height: 58px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,6,10,.6); color: #fff; font-size: 20px; }
@media (pointer: coarse) { .touch { display: flex; } .stopbar { bottom: 96px; } .weapon { bottom: 96px; } }

/* ── chat ─────────────────────────────────────────────────── */
.chat { position: fixed; right: 20px; top: 90px; width: min(360px, 92vw); z-index: 20; display: flex; flex-direction: column; max-height: 62vh; border-radius: 16px; background: rgba(5,6,10,.82); border: 1px solid rgba(255,43,214,.45); box-shadow: 0 0 30px rgba(255,43,214,.25); backdrop-filter: blur(10px); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-weight: 900; letter-spacing: .3em; font-size: 12px; color: var(--mag); border-bottom: 1px solid rgba(255,255,255,.1); }
.chat-head button { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
.chat-log .me { align-self: flex-end; background: rgba(25,230,255,.15); border: 1px solid rgba(25,230,255,.35); padding: 6px 10px; border-radius: 12px 12px 2px 12px; max-width: 85%; }
.chat-log .her { align-self: flex-start; background: rgba(255,43,214,.14); border: 1px solid rgba(255,43,214,.35); padding: 6px 10px; border-radius: 12px 12px 12px 2px; max-width: 90%; }
.chat-log .her i { display: block; font-size: 10px; color: #c9a; letter-spacing: .15em; font-style: normal; margin-bottom: 2px; }
.chat-form { display: flex; border-top: 1px solid rgba(255,255,255,.1); }
.chat-form input { flex: 1; background: transparent; border: 0; color: #fff; padding: 12px 14px; font-size: 14px; outline: none; }
.chat-form button { background: var(--mag); border: 0; color: #fff; width: 48px; font-size: 18px; cursor: pointer; }

/* ── stop panel (minigames) ───────────────────────────────── */
.stop-panel { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 15; pointer-events: none; }
.stop-panel > * { pointer-events: auto; }
.panel { padding: 14px 18px; border-radius: 16px; background: rgba(5,6,10,.78); border: 1px solid rgba(25,230,255,.4); box-shadow: 0 0 30px rgba(25,230,255,.2); backdrop-filter: blur(10px); text-align: center; min-width: 320px; }
.panel h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .35em; color: var(--cyan); }
.panel .big { font-size: 40px; font-weight: 900; text-shadow: 0 0 14px var(--mag); }
.panel .row { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.panel button { cursor: pointer; padding: 12px 20px; border-radius: 12px; border: 1.5px solid var(--mag); background: rgba(255,43,214,.16); color: #fff; font-weight: 900; letter-spacing: .15em; font-size: 14px; }
.panel button.alt { border-color: var(--cyan); background: rgba(25,230,255,.14); }
.panel button:disabled { opacity: .35; cursor: default; }
.panel .hint { font-size: 12px; color: #aab; margin-top: 8px; }
.cards { display: flex; gap: 6px; justify-content: center; min-height: 66px; }
.card { width: 46px; height: 66px; border-radius: 6px; background: #fff; color: #111; font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.5); animation: deal .25s ease-out; }
.card.red { color: #d0223c; }
.card.back { background: repeating-linear-gradient(45deg, #ff2bd6 0 6px, #19e6ff 6px 12px); }
@keyframes deal { from { transform: translateY(-20px) rotate(-8deg); opacity: 0; } }
.hand-lbl { font-size: 11px; letter-spacing: .3em; color: #aab; margin: 6px 0 4px; }
.strip { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.strip i { width: 26px; height: 8px; border-radius: 4px; background: #334; }
.strip i.on { background: var(--mag); box-shadow: 0 0 10px var(--mag); }

.lane-keys { display: flex; gap: 14px; justify-content: center; margin-top: 8px; }
.lane-keys span { width: 54px; height: 54px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; transition: transform .08s, background .08s; }
.lane-keys span.hit { background: var(--cyan); color: #000; transform: scale(1.15); box-shadow: 0 0 18px var(--cyan); }
.lane-keys span.miss { background: rgba(255,43,214,.5); }
.judge { font-size: 22px; font-weight: 900; letter-spacing: .25em; height: 28px; }
.judge.perfect { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.judge.good { color: #fff; }
.judge.miss { color: var(--mag); }

.death-card { text-align: center; }
.death-card h2 { font-size: 56px; margin: 0; color: var(--mag); text-shadow: 0 0 30px var(--mag); letter-spacing: .1em; }
.death-card p { color: #ccd; }
.death-card button { cursor: pointer; padding: 16px 40px; font-size: 22px; font-weight: 900; letter-spacing: .2em; border-radius: 999px; border: 2px solid var(--cyan); background: rgba(25,230,255,.15); color: #fff; }

#hurt { position: fixed; inset: 0; pointer-events: none; z-index: 9; background: radial-gradient(circle, transparent 40%, rgba(255,0,60,.55)); opacity: 0; transition: opacity .25s; }
#water { position: fixed; inset: 0; pointer-events: none; z-index: 9; background: linear-gradient(rgba(10,120,200,.18), rgba(0,40,90,.35)); opacity: 0; transition: opacity .6s; }

/* ── EDITORS: 3D (P-editor) + 2D (ΚΑΤΟΨΗ) ─────────────────────────── */
.btn-ed { cursor: pointer; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(5,6,10,.65); color: #fff; font-weight: 800; letter-spacing: .12em; font-size: 12px; pointer-events: auto; }
.btn-ed:hover { border-color: #ffe066; }
.ed { position: fixed; inset: 0; z-index: 25; pointer-events: none; font-family: var(--font); }
.ed .ed-bar { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: rgba(12,8,24,.92); color: #e4dcff; font-size: 12px; pointer-events: auto; border-bottom: 1px solid rgba(255,224,102,.35); }
.ed .ed-bar b { color: #ffe066; letter-spacing: .2em; margin-right: 8px; }
.ed .ed-bar .sp { flex: 1; }
.ed button { background: rgba(160,120,255,.14); border: 1px solid #8a4fff; color: #e4dcff; border-radius: 6px; padding: 4px 9px; font: 600 11px var(--font); cursor: pointer; letter-spacing: .05em; }
.ed button.on { background: #8a4fff; color: #fff; }
.ed button.x { border-color: #ff4fa3; color: #ffd3ea; background: rgba(255,79,163,.14); }
.ed .ed-side { position: absolute; left: 0; top: 40px; bottom: 0; width: 300px; background: rgba(12,8,24,.9); overflow-y: auto; pointer-events: auto; border-right: 1px solid rgba(138,79,255,.3); }
.ed .ed-tab { padding: 8px; }
.ed .ed-h { font-size: 11px; letter-spacing: .25em; color: #ffe066; margin: 8px 4px 6px; }
.ed .ed-gh { font-size: 10px; letter-spacing: .2em; color: #9ff3ff; margin: 8px 4px 4px; text-transform: uppercase; }
.ed .ed-grp button { margin: 2px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed .ed-insp { position: absolute; right: 0; top: 40px; width: 300px; background: rgba(12,8,24,.9); padding: 8px; pointer-events: auto; border-left: 1px solid rgba(138,79,255,.3); max-height: 70vh; overflow-y: auto; }
.ed .ed-kv { font-size: 12px; color: #bfb3e6; margin: 4px 4px 8px; line-height: 1.4; }
.ed .ed-kv b { color: #fff; }
.ed .ed-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.ed .ed-fields label { display: flex; flex-direction: column; font-size: 10px; letter-spacing: .1em; color: #9ff3ff; width: 86px; }
.ed .ed-fields label.wide { width: 100%; }
.ed .ed-fields input, .ed .ed-fields select { background: #1a1230; border: 1px solid #3a2a60; color: #fff; border-radius: 5px; padding: 4px 6px; font: 12px var(--font); }
.ed .ed-fields input[type=checkbox] { width: 18px; height: 18px; }
.ed .ed-enemies label { width: 70px; font-size: 9px; }
.ed .ed-hint { position: absolute; left: 300px; right: 300px; bottom: 0; padding: 8px 12px; background: rgba(12,8,24,.85); color: #7fefb0; font-size: 12px; pointer-events: none; }
#np-plan { position: fixed; inset: 0; z-index: 40; background: #07060c; display: flex; flex-direction: column; user-select: none; font-family: var(--font); }
#np-plan .pl-bar { height: 40px; flex: 0 0 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #120a1e; color: #d8d0ff; font: 600 12px var(--font); letter-spacing: .06em; }
#np-plan .pl-bar .sp { flex: 1; }
#np-plan .pl-bar button { background: rgba(160,120,255,.14); border: 1px solid #8a4fff; color: #e4dcff; border-radius: 6px; padding: 4px 10px; font: 600 11px var(--font); cursor: pointer; }
#np-plan .pl-bar button.x { border-color: #ff4fa3; color: #ffd3ea; background: rgba(255,79,163,.14); }
#np-plan canvas { flex: 1 1 auto; width: 100%; height: 100%; display: block; cursor: crosshair; }
#np-plan .pl-info { position: absolute; left: 12px; bottom: 10px; color: #bfb3e6; font: 12px/1.5 var(--font); background: rgba(10,8,20,.7); padding: 6px 10px; border-radius: 6px; pointer-events: none; max-width: 70vw; }

/* το πάνελ του χορού στο πλάι — η χορεύτρια μπροστά σου μένει ορατή */
.stop-panel:has(.panel.dance), .stop-panel:has(.panel.ring) { left: auto; right: 24px; bottom: 130px; transform: none; }
.panel.dance { min-width: 260px; }

/* ── ΤΟ FLOAT MENU ΤΟΥ ΑΝΤΙΚΕΙΜΕΝΟΥ (δεξί κλικ στον editor) ─────────────── */
.np-floatmenu { position: fixed; z-index: 40; display: none; min-width: 230px; max-height: 92vh; overflow-y: auto;
  background: rgba(12,8,24,.96); border: 1px solid #ffe066; border-radius: 10px; padding: 8px;
  font: 12px var(--font); color: #e4dcff; box-shadow: 0 14px 40px rgba(0,0,0,.6); pointer-events: auto; }
.np-floatmenu .np-drag { color: #ffe066; font-weight: 900; letter-spacing: .06em; cursor: move; user-select: none;
  padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,224,102,.25); }
.np-floatmenu button { display: block; width: 100%; margin: 3px 0; padding: 6px 10px; text-align: left;
  background: rgba(160,120,255,.14); color: #e4dcff; border: 1px solid #4a4060; border-radius: 6px;
  font: 600 12px var(--font); cursor: pointer; letter-spacing: .03em; }
.np-floatmenu button:hover { background: #8a4fff; color: #fff; border-color: #8a4fff; }

/* ── ΤΟ ΠΑΝΕΛ ΤΟΥ AGENT (📍 θέση · 🎯 επιλεγμένα · 🔭 τι κοιτάω · 💬 chat) ── */
.ag-panel { position: fixed; right: 22px; bottom: 120px; z-index: 45; width: 340px; padding: 10px;
  background: rgba(10,8,20,.96); border: 1px solid #3fff9a; border-radius: 10px; color: #e4dcff;
  font: 12px var(--font); box-shadow: 0 14px 40px rgba(0,0,0,.6); pointer-events: auto; }
.ag-panel .ag-head { display: flex; align-items: center; gap: 8px; color: #3fff9a; font-weight: 900; letter-spacing: .05em;
  cursor: move; user-select: none; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(63,255,154,.25); }
.ag-panel .ag-dot { margin-left: auto; font-size: 14px; }
.ag-panel .ag-tb { background: none; border: 0; color: #8a94b8; cursor: pointer; font-size: 13px; padding: 0 2px; }
.ag-panel .ag-tb:hover { color: #3fff9a; }
.ag-panel .ag-x { background: none; border: 0; color: #8a94b8; cursor: pointer; font-size: 13px; padding: 0 2px; }
/* 🗗 SIDE ΠΑΡΑΘΥΡΟ (owner 4/9: «κουμπί να βάζει το chat σαν side παράθυρο όλο
   διπλά για καλύτερη πλοήγηση») — όλο το ύψος δεξιά, log όσο θέλει να μεγαλώσει */
.ag-panel.dock { right: 0; top: 0; bottom: 0; width: min(36vw, 520px); border-radius: 0; display: flex; flex-direction: column; }
.ag-panel.dock .ag-log { max-height: none; flex: 1 1 auto; min-height: 160px; }
.ag-panel.dock .ag-in { flex: 0 0 auto; }
.ag-panel.dock .ag-note { flex: 0 0 auto; }
/* 📜 overlay παλιών συνομιλιών (SQL ιστορικό) */
.ag-panel .ag-hist { position: absolute; left: 5px; right: 5px; top: 36px; z-index: 6; background: rgba(10,8,20,.98);
  border: 1px solid #3a2a60; border-radius: 8px; padding: 6px; max-height: 320px; overflow-y: auto; }
.ag-panel .ag-hist-h { display: flex; align-items: center; color: #e8c97a; font-weight: 900; font-size: 11px; margin-bottom: 5px; }
.ag-panel .ag-hist-x { margin-left: auto; background: none; border: 0; color: #8a94b8; cursor: pointer; }
.ag-panel .ag-hnew, .ag-panel .ag-hrow { display: block; width: 100%; text-align: left; background: rgba(160,120,255,.1);
  border: 1px solid #3a2a60; color: #e4dcff; border-radius: 6px; padding: 6px 8px; margin-bottom: 4px;
  cursor: pointer; font: 12px var(--font); }
.ag-panel .ag-hnew:hover, .ag-panel .ag-hrow:hover { border-color: #3fff9a; }
.ag-panel .ag-hrow.active { border-color: #3fff9a; color: #3fff9a; }
.ag-panel .ag-hempty { color: #8a94b8; padding: 6px; }
.ag-panel .ag-log { max-height: 240px; overflow-y: auto; background: #0d0a1e; border: 1px solid #2a2244; border-radius: 8px;
  padding: 8px 9px; margin-bottom: 7px; font: 11px/1.55 ui-monospace, Menlo, monospace; color: #cfd6ff;
  white-space: pre-wrap; word-break: break-word; }
.ag-panel .ag-log:empty { display: none; }
.ag-panel .ag-l { margin-bottom: 8px; }
.ag-panel .ag-l:empty { display: none; }
.ag-panel .ag-l:last-child { margin-bottom: 0; }
.ag-panel .ag-owner { color: #9fb4ff; }
.ag-panel .ag-owner::before { content: '🧑 '; }
.ag-panel .ag-agent { color: #bfffdd; }
.ag-panel .ag-agent::before { content: '🤖 '; }
.ag-panel .ag-sys { color: #e8c97a; font-style: italic; }
.ag-panel .ag-sys::before { content: '⚡ '; }
.ag-panel .ag-in { width: 100%; resize: vertical; background: #14102a; border: 1px solid #3a2a60; color: #fff;
  border-radius: 6px; padding: 7px 8px; font: 13px var(--font); }
.ag-panel .ag-row { display: flex; gap: 6px; margin-top: 7px; }
.ag-panel .ag-row button { background: rgba(160,120,255,.16); border: 1px solid #4a4060; color: #e4dcff; border-radius: 6px;
  padding: 7px 10px; font: 700 14px var(--font); cursor: pointer; }
.ag-panel .ag-row button:hover { background: #8a4fff; color: #fff; }
.ag-panel .ag-row button:disabled { opacity: .55; cursor: wait; }
.ag-panel .ag-send { margin-left: auto; font-size: 12px !important; border-color: #3fff9a !important; color: #bfffdd !important; }
.ag-panel .ag-note { margin-top: 7px; font-size: 10px; color: #8a94b8; line-height: 1.4; }
/* 🖥 ΤΟ ΤΕΡΜΙΝΑΛ ΜΕΣΑ ΣΤΟ ΠΑΝΕΛ (owner 4/9: «το chat με τον agent θέλω να
   είναι τερματικό κανονικό — εννοώ να μπορεί να κάνει αλλαγές») — πλήρες TUI
   του claude σε pty του server, προβαλλόμενο με xterm.js. Στη TERM view το
   chat κρύβεται και το κουτί του τερματικού παίρνει όλο το panel. */
.ag-panel.term .ag-log, .ag-panel.term .ag-in, .ag-panel.term .ag-row, .ag-panel.term .ag-note, .ag-panel.term .ag-hist { display: none; }
.ag-panel .ag-term-view { display: flex; flex-direction: column; min-height: 220px; margin-bottom: 7px;
  background: #0d0a1e; border: 1px solid #2a2244; border-radius: 8px; overflow: hidden; }
.ag-panel .ag-tbar { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border-bottom: 1px solid #2a2244; font-size: 10px; color: #8a94b8; }
.ag-panel .ag-tbar button { background: rgba(160,120,255,.16); border: 1px solid #4a4060; color: #e4dcff;
  border-radius: 6px; padding: 3px 8px; font: 600 11px var(--font); cursor: pointer; }
.ag-panel .ag-tbar button:hover { background: #8a4fff; color: #fff; }
.ag-panel .ag-term-box { flex: 1 1 auto; min-height: 0; padding: 4px 6px; }
.ag-panel.term .ag-term-view { flex: 1 1 auto; }
/* στο dock το κουτί αφήνεται να γεμίσει όλο το ύψος — το fit addon μετρά μόνο του */
.ag-panel.dock.term .ag-term-view { min-height: 0; }
.ed .ed-bar button { white-space: nowrap; flex: 0 0 auto; }
.ed .ed-bar { overflow-x: auto; }
.ed .ed-slider { padding: 6px 6px 8px; border-bottom: 1px solid rgba(138,79,255,.15); }
.ed .ed-slider label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #bfb3e6; margin-bottom: 4px; letter-spacing: .04em; }
.ed .ed-slider b { color: #ffe066; font-weight: 800; font-size: 12px; }
.ed .ed-slider input[type=range] { width: 100%; margin: 0; accent-color: #8a4fff; }
.ed .ed-q { width: calc(100% - 12px); margin: 6px; padding: 7px 9px; background: #14102a; border: 1px solid #3a2a60; color: #fff; border-radius: 6px; font: 13px var(--font); outline: none; }
.ed .ed-q:focus { border-color: #8a4fff; }
.ed .ed-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 8px; }
.ed .ed-chips span { font-size: 10px; padding: 3px 8px; border: 1px solid #3a2a60; border-radius: 999px; color: #bfb3e6; cursor: pointer; letter-spacing: .08em; }
.ed .ed-chips span.on { background: #8a4fff; color: #fff; border-color: #8a4fff; }
.ed .ed-list .ed-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid rgba(138,79,255,.14); color: #cfc6ee; font-size: 12px; cursor: pointer; }
.ed .ed-list .ed-row:hover { background: rgba(138,79,255,.18); color: #fff; }
.ed .ed-list .ed-row i { font-style: normal; color: #7b6ea8; font-size: 10px; white-space: nowrap; }
.ed .ed-list .ed-spr { align-items: center; }
.ed .ed-list .ed-spr img { width: 36px; height: 48px; object-fit: contain; background: #0a0814; border-radius: 3px; flex: 0 0 auto; }
.ed .ed-list .ed-spr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#np-plan .pl-chk { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #bfb3e6; letter-spacing: .06em; white-space: nowrap; }
#np-plan .pl-chk input { width: 14px; height: 14px; accent-color: #8a4fff; }
.ed .ed-side.off, .ed .ed-insp.off { display: none; }

/* ═══ 28 Αυγ — FRAME EDITOR ΕΧΘΡΩΝ (👾 / U) ═══════════════════════════════ */
.ened { position: fixed; inset: 0; z-index: 46; display: none; background: rgba(6,4,14,.96);
  font: 12px var(--font); color: #e4dcff; outline: none; }
.ened .ened-bar { position: absolute; left: 0; right: 0; top: 0; height: 42px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px; background: rgba(12,8,24,.95); border-bottom: 1px solid rgba(255,224,102,.35); }
.ened .ened-bar b { color: #ffe066; letter-spacing: .18em; font-size: 12px; }
.ened .ened-bar .sp { flex: 1; }
.ened .ened-status { color: #bfb3e6; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.ened button { background: #1a1230; border: 1px solid #3a2a60; color: #fff; border-radius: 6px; padding: 5px 9px; font: 12px var(--font); cursor: pointer; }
.ened button:hover { border-color: #8a4fff; background: #241848; }
.ened .ened-side { position: absolute; left: 0; top: 42px; bottom: 0; width: 250px; overflow-y: auto;
  background: rgba(12,8,24,.9); border-right: 1px solid rgba(138,79,255,.3); padding: 6px; }
.ened .ened-q { width: calc(100% - 4px); margin: 0 0 6px; padding: 7px 9px; background: #14102a; border: 1px solid #3a2a60;
  color: #fff; border-radius: 6px; font: 12px var(--font); outline: none; box-sizing: border-box; }
.ened .ened-q:focus { border-color: #8a4fff; }
.ened .ened-row { display: flex; gap: 8px; align-items: center; padding: 5px; border-radius: 7px; cursor: pointer; border: 1px solid transparent; }
.ened .ened-row:hover { background: rgba(138,79,255,.18); }
.ened .ened-row.on { border-color: #ffe066; background: rgba(255,224,102,.08); }
/* ✎ = sprite χωρίς σκηνές ακόμη (ανοίγει με αυτόματο πρώτο πέρασμα) */
.ened .ened-row.todo .ened-rowtx b { color: #3fff9a; }
.ened .ened-count { font-size: 10px; color: #7b6ea8; margin: 0 0 6px; line-height: 1.5; }
.ened .ened-nothumb { display: flex; align-items: center; justify-content: center; font-size: 15px; background: #1a1533; border-radius: 5px; }
.ened .ened-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #0a0716; flex: 0 0 auto; }
.ened .ened-rowtx { min-width: 0; }
.ened .ened-rowtx b { font-size: 12px; color: #fff; display: block; }
.ened .ened-rowtx i { font-style: normal; font-size: 10px; color: #7b6ea8; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ened .ened-main { position: absolute; left: 250px; right: 0; top: 42px; bottom: 0; display: flex; flex-direction: column; padding: 8px; gap: 8px; }
.ened .ened-video { flex: 0 0 auto; display: flex; justify-content: center; background: #000; border: 1px solid #3a2a60; border-radius: 8px; overflow: hidden; }
.ened .ened-video video { height: 44vh; max-width: 100%; display: block; }
.ened .ened-transport { display: flex; align-items: center; gap: 6px; justify-content: center; }
.ened .ened-time { color: #9ff3ff; font-size: 12px; letter-spacing: .06em; margin-left: 10px; font-variant-numeric: tabular-nums; }
.ened .ened-tl { position: relative; height: 34px; background: #14102a; border: 1px solid #3a2a60; border-radius: 7px; overflow: hidden; cursor: crosshair; flex: 0 0 auto; }
.ened .ened-tlempty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #7b6ea8; font-size: 11px; }
.ened .ened-win { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; opacity: .8; cursor: pointer; border: 1px solid rgba(255,255,255,.25); }
.ened .ened-win:hover { opacity: 1; }
.ened .ened-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 6px #fff; pointer-events: none; }
.ened .ened-moves { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.ened .ened-move { background: rgba(20,16,42,.75); border: 1px solid rgba(138,79,255,.25); border-radius: 8px; padding: 6px 8px; }
.ened .ened-moveh { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.ened .ened-moveh .sp { flex: 1; }
.ened .ened-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 6px currentColor; }
.ened .ened-moveh b { color: #fff; font-size: 12px; letter-spacing: .08em; }
.ened .ened-tag { color: #7b6ea8; font-size: 10px; }
.ened .ened-winrow { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 6px; }
.ened .ened-winrow:hover { background: rgba(138,79,255,.12); }
.ened .ened-winrow.on { background: rgba(63,255,154,.1); outline: 1px solid rgba(63,255,154,.4); }
.ened .ened-range { flex: 1; color: #bfb3e6; font-size: 11px; font-variant-numeric: tabular-nums; }
/* CHROMA KEY panel (30/8): preview canvas δίπλα στο βίντεο + sliders */
.ened .ened-keycv { height: 44vh; width: auto; max-width: 40%; display: block; flex: 0 0 auto;
  background: repeating-conic-gradient(#18122e 0 25%, #0a0716 0 50%) 0 0 / 18px 18px; }
.ened .ened-chroma { flex: 0 0 auto; background: rgba(20,16,42,.75); border: 1px solid rgba(138,79,255,.25); border-radius: 8px; padding: 6px 8px; }
.ened .ened-chromah { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.ened .ened-chromah b { color: #3fff9a; font-size: 12px; letter-spacing: .12em; }
.ened .ened-chromah .sp { flex: 1; }
.ened .ened-chromar { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.ened .ened-chromal { flex: 0 0 190px; color: #bfb3e6; font-size: 10px; letter-spacing: .06em; }
.ened .ened-chromar input[type=range] { flex: 1; accent-color: #3fff9a; height: 14px; }
.ened .ened-chromav { flex: 0 0 46px; text-align: right; color: #9ff3ff; font-size: 11px; font-variant-numeric: tabular-nums; }


/* ═══ 27 Αυγ — ΧΕΡΙΑ · ΠΟΡΤΕΣ · ΚΑΛΥΨΗ · ΜΠΑΣΚΕΤ ═══════════════════════════ */
/* Υπόδειξη αλληλεπίδρασης (E πόρτα/κουμπί · X κάλυψη) — κάτω-μεσαία */
.prompt {
  position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%);
  padding: 9px 18px; border-radius: 999px; background: rgba(5,6,10,.72);
  border: 1px solid rgba(63,255,154,.55); color: #d8ffe9;
  font-weight: 800; letter-spacing: .12em; font-size: 15px; white-space: nowrap;
  text-shadow: 0 0 10px rgba(63,255,154,.7); pointer-events: none;
  animation: promptin .22s ease-out;
}
@keyframes promptin { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 🏀 μετρητής καλαθιών — πάνω δεξιά, κάτω από τη ΒΡΑΔΙΑ */
.basket {
  position: absolute; right: 16px; top: 96px; display: flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 10px; background: rgba(5,6,10,.7);
  border: 1px solid rgba(255,191,51,.5); color: #ffbf33;
  font-weight: 900; letter-spacing: .1em;
}
.basket .b-ico { font-size: 18px; }
.basket #basket-val { font-size: 26px; color: #fff; text-shadow: 0 0 12px #ffbf33; }
.basket .b-sep { opacity: .5; }
.basket #basket-goal { font-size: 16px; }
.basket .b-lbl { font-size: 10px; letter-spacing: .16em; opacity: .8; margin-left: 4px; }
.basket.pop { animation: basketpop .35s ease-out; }
@keyframes basketpop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }

/* ΚΑΛΥΨΗ: πράσινο περίγραμμα οθόνης όσο είσαι κρυμμένος */
body.in-cover::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 120px rgba(63,255,154,.22), inset 0 0 22px rgba(63,255,154,.35);
  border: 2px solid rgba(63,255,154,.35);
}

/* Επιλογή δωματίου στο αρχικό μενού (κάτω από το ΞΕΚΙΝΑ) */
.room-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 14px 0 4px; }
.room-pick .rp-lbl { width: 100%; text-align: center; font-size: 10px; letter-spacing: .2em; color: #7b8bb8; margin-bottom: 2px; }
.room-pick button {
  font: 700 11px/1 var(--font); letter-spacing: .1em; padding: 7px 11px; cursor: pointer;
  color: #bfe9ff; background: rgba(25,230,255,.07); border: 1px solid rgba(25,230,255,.35); border-radius: 999px;
}
.room-pick button:hover { background: rgba(25,230,255,.2); color: #fff; }
.room-pick button.on { background: #19e6ff; color: #05060a; border-color: #19e6ff; }
.room-pick .rp-clear { color: #ff9ad8; border-color: rgba(255,43,214,.35); background: rgba(255,43,214,.07); }
.room-pick .rp-clear:hover { background: rgba(255,43,214,.2); color: #fff; }
.room-pick .rp-mode { color: #ffe066; border-color: rgba(255,224,102,.4); background: rgba(255,224,102,.07); font-size: 12px; padding: 8px 14px; }
.room-pick .rp-mode:hover { background: rgba(255,224,102,.2); color: #fff; }
.room-pick .rp-mode.on { background: #ffe066; color: #05060a; border-color: #ffe066; }
.room-pick .rp-city { color: #3fff9a; border-color: rgba(63,255,154,.45); background: rgba(63,255,154,.08); font-size: 13px; padding: 10px 18px; letter-spacing: .08em; }
.room-pick .rp-city:hover { background: rgba(63,255,154,.22); color: #fff; }

/* Μπάρα «πάτα γρήγορα» για το σπρώξιμο της πόρτας */
.mash {
  position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%);
  width: min(340px, 52vw); height: 16px; border-radius: 999px;
  background: rgba(5,6,10,.72); border: 1px solid rgba(63,255,154,.5); overflow: hidden;
}
.mash #mash-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #19e6ff, #3fff9a);
  box-shadow: 0 0 14px rgba(63,255,154,.8); transition: width .05s linear;
}
.mash span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 900; font-size: 10px; letter-spacing: .3em; color: #05060a; mix-blend-mode: difference;
}
.mash.hot { border-color: #ffe066; animation: mashpulse .18s infinite alternate; }
.mash.escape { border-color:#ff69cc; }
.mash.escape #mash-fill { background:linear-gradient(90deg,#e02ab3,#ff9ddd); box-shadow:0 0 14px #ff52bf; }
@keyframes mashpulse { from { box-shadow: 0 0 0 rgba(255,224,102,0); } to { box-shadow: 0 0 18px rgba(255,224,102,.9); } }

body[data-mode="city"] .night, body[data-mode="city"] .ticket.off { display: none; }
.venue-menu { width: 100%; margin: 12px auto 0; max-width: 780px; text-align: left; }
.venue-menu h2 { margin: 0; font-size: 14px; color: var(--cyan); letter-spacing: .08em; }
.venue-menu p { margin: 7px 0 12px; font-size: 12px; line-height: 1.5; color: #b9c4d1; }
.venue-menu summary { cursor: pointer; padding: 10px; color: #dce5ec; font-size: 12px; letter-spacing: .07em; }
.venue-menu .venue-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 7px; }
.venue-links a { display: flex; align-items: center; min-height: 43px; padding: 10px 12px; border: 1px solid #315364; border-radius: 8px; color: #e0f6ff; background: #13252dc9; text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.35; }
.venue-links a:hover, .venue-links a:focus-visible { border-color: var(--cyan); background: #1b3d49; outline: 2px solid var(--cyan); outline-offset: 2px; }
.venue-menu details { margin-top: 10px; }
.venue-plots a { color: #bbc5d3; border-color: #40485c; background: #151a25; }
@media (max-width: 700px) {
  .menu-card { padding: 20px 16px; }
  .venue-menu .venue-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { top: max(14px, env(safe-area-inset-top)); left: 12px; right: 12px; transform: none; }
  body[data-mode="city"] .section { left: 140px; text-align: left; }
  #section-name { font-size: 18px; letter-spacing: .08em; line-height: 1.2; }
  #section-sub { font-size: 9px; letter-spacing: .08em; line-height: 1.6; margin-top: 5px; }
  .stopbar { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); gap: 4px; display: grid; grid-template-columns: 1.15fr 1fr 1fr .85fr .85fr; }
  .stopbar .btn-stop, .stopbar .btn-ed { min-height: 46px; min-width: 0; padding: 5px 3px; font-size: 9px; letter-spacing: .02em; border-radius: 9px; }
  .weapon { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); gap: 6px; }
  .btn-throw { width: 58px; height: 58px; font-size: 11px; }
  .w-chip { padding: 5px 7px; gap: 5px; }
  #w-icon { font-size: 19px; } #w-name { font-size: 10px; letter-spacing: .05em; }
  #w-state { font-size: 8px; letter-spacing: .02em; max-width: 125px; }
  .touch { left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); transform: none; gap: 3px; }
  .touch button { width: 43px; height: 48px; border-radius: 8px; }
  .toast { top: 24%; width: max-content; max-width: calc(100vw - 32px); padding: 9px 12px; font-size: 12px; letter-spacing: .05em; }
  .subtitle { bottom: 158px; font-size: 12px; }
  .prompt { bottom: 23%; max-width: 90vw; font-size: 12px; }
  .hp { top: 104px; right: 12px; width: 150px; }
  .ag-panel, .ag-panel.dock { width: calc(100vw - 16px); right: 8px; bottom: 65px; max-height: calc(100dvh - 90px); }
  .ag-panel.dock { top: 8px; }
  .ed .ed-bar { flex-wrap: wrap; height: auto; min-height: 40px; max-height: 105px; overflow: auto; padding: 4px; }
  .ed .ed-side { top: auto; bottom: 0; height: 34vh; width: 50%; }
  .ed .ed-insp { top: auto; bottom: 0; height: 34vh; max-height: 34vh; width: 50%; box-sizing: border-box; }
  .ed .ed-hint { display: none; }
  #np-plan .pl-bar { overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 700px) and (pointer: coarse) {
  .weapon .w-chip { position: absolute; right: 0; bottom: 67px; white-space: nowrap; }
  .weapon { bottom: calc(71px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .section.flash #section-name, .toast, .ticket.stamp { animation: none; }
}

body.npc-conversation #hud { visibility: hidden; }

/* One-hand play: destination taps, camera swipes, one contextual action. */
#mobile-controls { display: none; }
.mobile-simple #mobile-controls { display: block; position: fixed; inset: 0; z-index: 19; pointer-events: none; }
#mobile-controls[hidden], #mobile-controls [hidden] { display: none !important; }
.mobile-simple #gl { touch-action: none; }
.mobile-simple .touch, .mobile-simple .stopbar, .mobile-simple .weapon, .mobile-simple .npc-talk,
.mobile-simple .menu-keys, .mobile-simple #btn-start small { display: none !important; }
#mobile-controls button { pointer-events: auto; touch-action: manipulation; min-height: 48px; padding: 12px 16px; border: 1px solid #ffffff40; border-radius: 18px; background: #12212ee8; color: #f5fffd; font: 800 12px/1.4 var(--font); letter-spacing: .035em; box-shadow: 0 4px 18px #0005; }
#mobile-controls button:active { transform: scale(.96); background: #244653; }
#mobile-controls button:focus-visible { outline: 3px solid #7ef4df; outline-offset: 3px; }
.mobile-top { position: absolute; right: max(14px,env(safe-area-inset-right)); top: max(12px,env(safe-area-inset-top)); display: flex; gap: 8px; }
.mobile-top button { width: 48px; font-size: 19px !important; padding: 8px !important; }
.mobile-actions { position: absolute; bottom: max(18px,env(safe-area-inset-bottom)); right: max(16px,env(safe-area-inset-right)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#mobile-controls .mobile-primary { margin-left: auto; min-height: 64px; width: 150px; background: #b5f3de; border-color: #e8fff5; color: #112e2c; font-size: 14px; box-shadow: 0 3px 20px #001b2280; }
#mobile-controls[data-trapped="true"] .mobile-primary { background: #ffa3dc; color: #461332; }
.mobile-more { position: absolute; right: max(16px,env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; width: min(320px,calc(100vw - 32px)); box-sizing: border-box; border-radius: 22px; background: #090f19f5; border: 1px solid #ffffff30; pointer-events: auto; max-height: calc(100dvh - 170px); overflow-y: auto; }
.mobile-tip { position: absolute; bottom: calc(170px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 36px); box-sizing: border-box; padding: 8px 12px; border-radius: 12px; background: #07121bd9; color: #dbebe8; font-size: 11px; line-height: 1.5; text-align: center; }
.mobile-simple .section { left: 138px !important; right: 122px; top: max(14px,env(safe-area-inset-top)); transform: none; text-align: left; }
.mobile-simple #section-name { font-size: 14px; line-height: 1.25; letter-spacing: .02em; overflow-wrap: anywhere; }
.mobile-simple #section-sub { display: none; }
.mobile-simple .hp { top: calc(72px + env(safe-area-inset-top)); right: 16px; width: 116px; }
.mobile-simple #minimap[aria-expanded="false"] { width: 104px !important; height: 104px !important; left: max(12px,env(safe-area-inset-left)) !important; top: max(12px,env(safe-area-inset-top)) !important; }
.mobile-simple.npc-conversation #minimap { visibility: hidden; }
.mobile-simple .prompt { bottom: calc(142px + env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: .02em; white-space: normal; text-align: center; max-width: 85vw; }
.mobile-simple .mash { bottom: calc(184px + env(safe-area-inset-bottom)); width: min(300px,75vw); }
.mobile-simple .mash span { font-size: 0; }
.mobile-simple .mash span::after { content: 'ΠΑΤΑ ΤΟ ΚΟΥΜΠΙ'; font-size: 9px; letter-spacing: .1em; }
.mobile-simple .subtitle { bottom: calc(140px + env(safe-area-inset-bottom)); font-size: 12px; }
.mobile-simple .chat { left: 12px; right: 12px; width: auto; top: auto; bottom: max(12px,calc(100dvh - var(--mobile-vh,100dvh) - var(--mobile-top,0px) + 8px)); max-height: min(52dvh,calc(var(--mobile-vh,100dvh) - 24px)); }
.mobile-simple .chat-head { padding: 4px 12px; flex-shrink: 0; letter-spacing: .1em; }
.mobile-simple .chat-head button { width: 48px; height: 48px; }
.mobile-simple .chat-form { flex-shrink: 0; min-height: 52px; }
.mobile-simple .chat-form input { min-width: 0; font-size: 16px; }
.mobile-simple .chat-form button { min-width: 52px; }
.mobile-simple .chat-log { min-height: 48px; overscroll-behavior: contain; }
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-simple .chat { left: auto; width: min(390px,52vw); max-height: calc(var(--mobile-vh,100dvh) - 24px); }
  .mobile-simple .mobile-tip { bottom: 24px; max-width: 43vw; }
  .mobile-simple .mobile-more { max-height: calc(100dvh - 105px); }
  .mobile-simple .prompt { bottom: 106px; }
  .mobile-simple .mash { bottom: 145px; }
}

/* ΔΥΟ ΕΚΔΟΣΕΙΣ (11/9): το κουμπί γλώσσας κάθεται μέσα στο kicker του μενού — μικρό, διακριτικό,
   δεν παίρνει χώρο από τον τίτλο. Στα αγγλικά ανάβει το EN, στα ελληνικά το ΕΛ. */
.btn-lang{margin-left:.7em;padding:.12em .6em;font:inherit;font-size:.82em;letter-spacing:.08em;
  color:#9fb4d8;background:rgba(20,26,40,.72);border:1px solid rgba(120,150,200,.35);border-radius:999px;
  cursor:pointer;transition:color .18s,border-color .18s,background .18s}
.btn-lang:hover{color:#e8f1ff;border-color:rgba(160,200,255,.6);background:rgba(34,44,66,.85)}
body[data-lang="en"] .btn-lang{color:#ffd76a;border-color:rgba(255,215,106,.45)}

/* Two independent thumbs: movement on the left, camera on the canvas/right. */
.mobile-stick { position:absolute; left:max(18px,env(safe-area-inset-left)); bottom:max(22px,env(safe-area-inset-bottom)); width:132px; height:132px; border:1px solid #b5f3de77; border-radius:50%; background:radial-gradient(circle,#12212e77 0 35%,#0a182a99 36% 68%,#b5f3de22 69%); pointer-events:auto; touch-action:none; user-select:none; -webkit-user-select:none; }
.mobile-stick-knob { position:absolute; left:50%; top:50%; width:52px; height:52px; border-radius:50%; transform:translate(-50%,-50%); background:#b5f3debd; border:2px solid #effff9b0; box-shadow:0 3px 14px #0007; pointer-events:none; }
.mobile-stick-label { position:absolute; bottom:9px; width:100%; text-align:center; color:#e1fff4a8; font:700 9px/1 system-ui; letter-spacing:.14em; pointer-events:none; }
#mobile-controls .mobile-fire { width:58px; height:58px; border-radius:50%; padding:8px; font-size:30px; background:#522d50dd; }
.mobile-simple #np-chat { bottom:max(10px,calc(100dvh - var(--mobile-vh,100dvh) - var(--mobile-top,0px) + 10px)); max-height:min(56dvh,calc(var(--mobile-vh,100dvh) - 24px)); }
.mobile-simple #np-chat input { font-size:16px; }
.mobile-simple #np-chat button { min-height:48px; min-width:48px; }
@media (orientation:landscape) and (max-height:500px) {
  .mobile-stick { width:116px; height:116px; bottom:max(12px,env(safe-area-inset-bottom)); }
  .mobile-actions { bottom:max(12px,env(safe-area-inset-bottom)); gap:6px; }
  #mobile-controls .mobile-primary { min-height:52px; width:142px; }
  .mobile-simple .mobile-tip { bottom:20px; max-width:calc(100vw - 340px); }
}
