:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #0a0b0d; overflow: hidden; }
body { cursor: default; }
body.hide-cursor, body.hide-cursor * { cursor: none !important; }
#stage { display: block; width: 100vw; height: 100vh; }

#intro {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #d8d4c8; background: rgba(10,11,13,0.6);
  transition: opacity 1.8s ease;
}
#intro.gone { opacity: 0; pointer-events: none; }
#intro h1 {
  margin: 0; font-size: clamp(1.7rem, 5.5vw, 3.6rem); font-weight: 200;
  letter-spacing: 0.62em; text-indent: 0.62em; color: #f2eee2;
}
#intro .sub {
  margin: -0.1em 0 0; font-size: clamp(0.7rem, 1.6vw, 1rem); font-weight: 200;
  letter-spacing: 0.45em; text-indent: 0.45em; color: #f2eee2; opacity: 0.6;
  text-transform: lowercase;
}
#intro .btn {
  margin-top: 0.7rem; padding: 0.75em 2.8em;
  border: 1px solid rgba(220,212,196,0.35); background: transparent; color: #ece8dc;
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 300;
  cursor: pointer; transition: all 0.5s ease;
}
#intro .btn:hover { background: #ece8dc; color: #0a0b0d; border-color: #ece8dc; }

/* Klavišų paaiškinimas (rodomas paspaudus I) */
#keys {
  position: fixed; bottom: 4.2rem; left: 50%; transform: translateX(-50%); z-index: 11;
  text-align: center; white-space: nowrap; color: #e6e2d6; opacity: 0.8;
  background: rgba(20,20,22,0.42); padding: 0.6em 1.3em; border-radius: 10px;
  font: 300 0.72rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.04em;
}
#keys[hidden] { display: none; }
#keys b { font-weight: 500; opacity: 0.9; }
body.hide-cursor #keys { opacity: 0; pointer-events: none; }

/* Nustatymų skydelis */
#panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 304px; z-index: 12; box-sizing: border-box;
  padding: 1rem 1.1rem 0; overflow-y: auto;
  background: rgba(12,12,14,0.93); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  border-left: 1px solid rgba(220,212,196,0.15); color: #e6e2d6;
  font: 300 0.74rem/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#panel[hidden] { display: none; }
#closeBtn {
  position: absolute; top: 0.7rem; right: 0.8rem; z-index: 14;
  width: 1.9rem; height: 1.9rem; line-height: 1; padding: 0;
  background: rgba(20,20,22,0.4); border: 1px solid rgba(220,212,196,0.22);
  border-radius: 999px; color: #e6e2d6; opacity: 0.6; cursor: pointer;
  font: 300 1.2rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#closeBtn:hover { opacity: 0.95; background: rgba(60,60,64,0.5); }
#panel h3 { margin: 1.1rem 0 0.4rem; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.5; font-weight: 400; }
#panel .row { margin: 0.5rem 0; }
#panel .row label { display: flex; justify-content: space-between; opacity: 0.85; margin-bottom: 0.18rem; }
#panel .row .val { opacity: 0.5; font-variant-numeric: tabular-nums; }
#panel input[type=range] { width: 100%; accent-color: #cdbf8f; cursor: pointer; }
#panel select {
  width: 100%; box-sizing: border-box; margin-top: 0.1rem; padding: 0.35em 0.4em;
  background: rgba(20,20,22,0.6); color: #e6e2d6;
  border: 1px solid rgba(220,212,196,0.3); border-radius: 6px;
  font: 300 0.72rem/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer;
}
#panelActions {
  position: sticky; bottom: 0; z-index: 13; box-sizing: border-box;
  margin: 0.6rem -1.1rem 0; padding: 0.7rem 1.1rem; display: flex; gap: 0.4rem;
  background: rgba(8,8,10,0.97); border-top: 1px solid rgba(220,212,196,0.15);
}
#panelActions button, #loadLbl {
  flex: 1; text-align: center; padding: 0.55em 0.5em; border: 1px solid rgba(220,212,196,0.3);
  background: transparent; color: #e6e2d6; border-radius: 6px; cursor: pointer;
  font: 300 0.64rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.06em;
}
#panelActions button:hover, #loadLbl:hover { background: rgba(60,60,64,0.5); }
