/* Hamburger (match hanumanji.html) */
.hamburger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 120;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: transparent;
  border-radius: 10px;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}
.hamburger div {
  width: 26px;
  height: 3px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
}

/* Settings Panel (match hanumanji.html) */
.settings-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #0f172a;
  color: #e5e7eb;
  padding: 22px;
  transition: right 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 110;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: auto;
  gap: 6px;
}
.settings-panel.open {
  right: 0;
}
.settings-panel h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.settings-panel label {
  display: block;
  margin: 12px 0 6px;
  color: #9ca3af;
  font-size: 0.95rem;
}
.settings-panel input[type="color"],
.settings-panel select,
.settings-panel input[type="range"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 8px;
}

.about-section {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.about-button,
.email-button,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.about-button:hover,
.email-button:hover,
.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 140;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(90vw, 360px);
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 150;
  box-sizing: border-box;
}

.modal h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.modal p {
  margin: 0 0 12px;
  color: #cbd5f5;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal.is-open,
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal.is-open {
  transform: translate(-50%, -50%) scale(1);
}
.settings-panel input[type="color"] {
  height: 38px;
  padding: 4px;
}
.settings-panel input[type="range"] {
  height: 8px;
  padding: 0;
  background: transparent;
}
.settings-panel select {
  cursor: pointer;
}
.settings-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid rgba(0, 0, 0, 0.2);
  margin-top: -5px;
}
.settings-panel input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid rgba(0, 0, 0, 0.2);
}
.settings-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.settings-panel input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.settings-panel input:focus,
.settings-panel select:focus {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .settings-panel {
    width: min(320px, 86vw);
    padding: 18px;
  }
}
.settings-panel .panel-note {
  margin-top: 20px;
  color: #9ca3af;
  font-size: 0.9rem;
}
