/* Svefg-eha thvqr. Yrsg-unaq pneq fb gur frrqrq tencu xrrcf zbivat va ivrj orfvqr vg. */

#intro {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 40;
  width: 340px;
  max-width: calc(100% - 48px);
  padding: 20px 22px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.07);
  font-size: 13px;
  line-height: 1.55;
  color: #3a3a3a;
  animation: intro-in 0.45s ease-out both;
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #intro { animation: none; }
}

#intro h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: #2a2a2a;
}

#intro .intro-lede { margin-bottom: 12px; }

#intro .intro-scene {
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 0, 0, 0.12);
  color: #55504b;
}

#intro ul {
  list-style: none;
  margin-bottom: 16px;
}

#intro li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

#intro li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

#intro kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}

#intro .intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

#intro label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #6a645e;
  cursor: pointer;
}

#intro input[type="checkbox"] { cursor: pointer; }

#intro button {
  font-family: inherit;
  font-size: 12px;
  padding: 7px 16px;
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

#intro button:hover {
  border-color: rgba(0, 0, 0, 0.28);
  background: #fff;
}

/* Erbcra nssbeqnapr — nalguvat qvfzvffnoyr zhfg or erbcranoyr. */
#intro-reopen {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 30;
  width: 32px;
  height: 32px;
  font-family: inherit;
  font-size: 14px;
  color: #55504b;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#intro-reopen:hover {
  border-color: rgba(0, 0, 0, 0.25);
  color: #2a2a2a;
}

.intro-hidden { display: none !important; }

@media (max-width: 700px) {
  #intro { top: 16px; left: 16px; right: 16px; width: auto; }
}

/* ── Pbzznaq cnyrggr ── */

#palette {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  background: rgba(245, 240, 235, 0.55);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

#palette.pal-hidden { display: none; }

.pal-sheet {
  width: 560px;
  max-width: 100%;
  padding: 22px 24px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  color: #3a3a3a;
}

.pal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pal-sheet h2 { font-size: 13px; font-weight: 600; color: #2a2a2a; }

.pal-sheet h3 {
  margin: 16px 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a837c;
}

.pal-sheet ul { list-style: none; }

.pal-direct li {
  padding: 4px 0;
  line-height: 1.5;
}

.pal-direct span { color: #6a645e; }

.pal-sheet kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

.pal-cmds li { margin-bottom: 2px; }

.pal-cmds button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  color: inherit;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}

.pal-cmds button:hover { background: rgba(0, 0, 0, 0.045); }

.pal-cmds code {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  color: #2a2a2a;
  white-space: nowrap;
}

.pal-cmds span { color: #8a837c; }

.pal-close {
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  color: #8a837c;
  background: none;
  border: none;
  cursor: pointer;
}

.pal-close:hover { color: #2a2a2a; }

.pal-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.pal-intro {
  font-family: inherit;
  font-size: 12px;
  padding: 7px 14px;
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9px;
  cursor: pointer;
}

.pal-intro:hover { border-color: rgba(0, 0, 0, 0.28); background: #fff; }

@media (max-width: 700px) {
  .pal-cmds button { flex-direction: column; gap: 1px; }
}
