:root {
  --bg: #0b0908;
  --ink: #ece6dd;
  --mute: #9c9389;
  --amber: #d9772b;
  --rec: #e0322b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}

html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); }
#panorama { position: fixed; inset: 0; }
.pnlm-container { background: #000; }
.pnlm-load-box { background: rgba(0,0,0,.6); font-family: var(--sans); }

/* ---------- κουμπιά ---------- */
.btn {
  font: 500 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid rgba(236,230,221,.45);
  padding: 14px 28px; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: rgba(217,119,43,.18); border-color: var(--amber); outline: none; }
.btn-small { font-size: 12px; padding: 9px 14px; background: rgba(11,9,8,.55); backdrop-filter: blur(4px); }

/* ---------- εισαγωγή ---------- */
#intro {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(60,28,8,.55), rgba(5,4,3,.92) 70%);
  transition: opacity 1.4s ease, visibility 1.4s;
  padding: 24px; box-sizing: border-box;
}
#intro.gone { opacity: 0; visibility: hidden; }
.intro-inner { max-width: 560px; text-align: center; }
.intro-title { font: 400 clamp(34px, 7vw, 56px)/1.05 var(--serif); margin: 0 0 6px; letter-spacing: .01em;  text-wrap: balance; }
.intro-subtitle { font: italic 400 clamp(18px, 3.2vw, 24px)/1.3 var(--serif); color: #d8d0c4; margin: 4px 0 14px; }
.intro-artist { color: var(--mute); margin: 0 0 32px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.intro-p { font: 400 17px/1.6 var(--serif); margin: 0 0 14px; color: #d8d0c4; }
#intro-enter { margin-top: 22px; }
#intro-enter[hidden] { display: none; }
.lang-choice { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.lang-choice .btn { min-width: 150px; text-transform: none; letter-spacing: .04em; font-size: 16px; }
#intro-hint { color: var(--mute); font-size: 13px; margin-top: 18px; }

/* ---------- hotspots ---------- */
/* κανόνας: λευκό = μετακίνηση, πορτοκαλί = πλησίασε το έργο */
body.intro-on .pnlm-hotspot-base, body.intro-on .pnlm-controls-container, body.intro-on #card { visibility: hidden !important; pointer-events: none !important; }
.pnlm-hotspot-base { transition: opacity .8s; }
.hs-base { cursor: pointer; }
.hs { width: 0; height: 0; }
.hs i {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(236,230,221,.9); box-sizing: border-box;
  box-shadow: 0 0 0 0 rgba(217,119,43,.6); animation: pulse 2.6s infinite;
}
.hs i::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ink); }
.hs span {
  position: absolute; left: 0; top: 18px; transform: translateX(-50%); white-space: nowrap;
  font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; background: rgba(11,9,8,.62); color: var(--ink);
  opacity: .85; transition: opacity .2s; pointer-events: none;
}
.hs-base:hover span { opacity: 1; }
.hs-base:hover i { border-color: var(--amber); }
.hs-detail i { border-color: var(--amber); }
.hs-detail i::after { background: var(--amber); }
.hs-back span, .hs-orbit span { font-size: 11px; opacity: .7; }
.hs-orbit i { width: 18px; height: 18px; left: -9px; top: -9px; }
.hs-exit i { border-style: dashed; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,119,43,.55); }
  70% { box-shadow: 0 0 0 14px rgba(217,119,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,43,0); }
}

/* ---------- τίτλος αίθουσας ---------- */
#card {
  position: fixed; left: 50%; top: 5%; transform: translate(-50%, 6px); z-index: 10;
  text-align: center; pointer-events: none; opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 22px rgba(0,0,0,.9);
  width: min(90vw, 640px); padding: 14px 18px 16px; box-sizing: border-box;
  background: radial-gradient(ellipse at center, rgba(5,4,3,.62) 0%, rgba(5,4,3,.35) 55%, rgba(5,4,3,0) 78%);
}
#card.on { opacity: 1; transform: translate(-50%, 0); }
#card-num { font: 400 15px/1 var(--serif); color: var(--amber); letter-spacing: .3em; margin-bottom: 8px; }
#card-title { font: 400 clamp(24px, 4vw, 36px)/1.1 var(--serif); color: #f4efe8; }
#card-note { margin-top: 10px; font-size: 12px; color: #c9c0b5; letter-spacing: .04em; }

#back { position: fixed; left: 16px; bottom: 16px; z-index: 12; }
#back[hidden] { display: none; }

/* ---------- καταγραφή (κοινό) ---------- */
.log { font: 13px/1.6 var(--mono); color: #cfe9d2; }
.log-head { color: var(--ink); letter-spacing: .12em; margin-bottom: 12px; font-weight: 600; }
.rec { color: var(--rec); animation: blink 1.2s steps(2, start) infinite; }
.log-line { white-space: pre-wrap; opacity: 0; animation: typein .25s forwards; }
.log-summary { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(207,233,210,.25); }
.log-summary .log-line { display: flex; gap: 12px; }
.log-summary .k { color: #8fae93; min-width: 168px; flex: none; }
.log-note { margin-top: 16px; color: var(--mute); font: italic 13px/1.5 var(--serif); }
@keyframes typein { to { opacity: 1; } }
@keyframes blink { to { visibility: hidden; } }

/* ---------- CCTV ---------- */
#cctv {
  position: fixed; right: 16px; top: 16px; z-index: 15; width: min(460px, calc(100vw - 32px));
  opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s;
}
#cctv.on { opacity: 1; visibility: visible; }
.cctv-frame {
  position: relative; overflow: hidden; max-height: calc(100vh - 100px); overflow-y: auto;
  background: rgba(4,10,6,.86); border: 1px solid rgba(207,233,210,.25); padding: 18px 18px 20px;
}
.scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
#cctv-close { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 16px; }

/* ---------- έξοδος ---------- */
#exit {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px;
  box-sizing: border-box; background: rgba(5,4,3,.94);
  opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s;
}
#exit.on { opacity: 1; visibility: visible; }
.exit-inner { width: min(620px, 100%); max-height: 100%; overflow-y: auto; }
#exit-title { font: 400 30px/1.2 var(--serif); margin: 0 0 22px; }
#exit-closing { font: 400 20px/1.5 var(--serif); margin: 26px 0 24px; color: var(--ink); }
.exit-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- τέλος ---------- */
#end {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  box-sizing: border-box; background: #000; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity 1.6s, visibility 1.6s;
}
#end.on { opacity: 1; visibility: visible; }
.end-inner { max-width: 520px; }
.end-title { font: 400 22px/1.4 var(--serif); margin: 18px 0 8px; }
#end-restart { margin-top: 26px; }

@media (max-width: 520px) {
  .log { font-size: 12px; }
  .log-summary .log-line { flex-direction: column; gap: 0; }
  .log-summary .k { min-width: 0; }
  #cctv { top: auto; bottom: 64px; }
}

/* ---------- αντίστροφη μέτρηση ---------- */
.cd-label { font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin: 6px 0 18px; }
.cd-row { display: flex; justify-content: center; gap: clamp(10px, 3vw, 22px); margin: 0 0 26px; }
.cd-cell { min-width: clamp(62px, 17vw, 96px); padding: 14px 6px 12px; border: 1px solid rgba(236,230,221,.22); background: rgba(11,9,8,.35); }
.cd-num { font: 400 clamp(34px, 9vw, 54px)/1 var(--serif); font-variant-numeric: tabular-nums; color: #f4efe8; }
.cd-unit { font: 500 clamp(8px, 2.2vw, 10px)/1.3 var(--sans); letter-spacing: .14em; color: var(--mute); margin-top: 8px; }
.cd-date { font: 400 17px/1.4 var(--serif); color: #d8d0c4; margin: 0; }
.cd-en { font-style: italic; color: var(--mute); }
