/* ===== Depth Town — Custom UI Chrome ===== */

body.web-page {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 163, 255, 0.55) rgba(8, 8, 10, 0.98);
}

body.web-page *,
body.web-page * {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 163, 255, 0.5) rgba(12, 12, 16, 0.98);
}

body.web-page ::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body.web-page ::-webkit-scrollbar-track {
  background: rgba(8, 8, 10, 0.98);
  border-left: 1px solid rgba(0, 163, 255, 0.1);
}

body.web-page ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 163, 255, 0.85) 0%, rgba(0, 110, 190, 0.6) 100%);
  border-radius: 999px;
  border: 2px solid rgba(8, 8, 10, 0.98);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.22);
}

body.web-page ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 180, 255, 1) 0%, rgba(0, 130, 210, 0.85) 100%);
  box-shadow: 0 0 14px rgba(0, 163, 255, 0.35);
}

body.web-page ::-webkit-scrollbar-thumb:active {
  background: var(--main_1);
}

body.web-page ::-webkit-scrollbar-corner {
  background: rgba(8, 8, 10, 0.98);
}

/* ----- Editable fields: allow text selection ----- */
body.web-page input,
body.web-page textarea,
body.web-page select,
body.web-page .dt-spawn-text,
body.web-page .tos-body,
body.web-page .tos-body * {
  -webkit-user-select: text;
  user-select: text;
}

/* ----- Custom form controls ----- */
body.web-page input:not([type="checkbox"]):not([type="radio"]),
body.web-page textarea,
body.web-page select {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

body.web-page input:not([type="checkbox"]):not([type="radio"]):focus,
body.web-page textarea:focus,
body.web-page select:focus {
  border-color: rgba(0, 163, 255, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(0, 163, 255, 0.15), 0 0 12px rgba(0, 163, 255, 0.12);
}

body.web-page select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300A3FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px !important;
}

body.web-page input[type="file"] {
  cursor: pointer;
  padding: 8px 10px !important;
}

body.web-page input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 163, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 163, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

body.web-page input[type="file"]::file-selector-button:hover {
  background: rgba(0, 163, 255, 0.22);
  border-color: rgba(0, 163, 255, 0.55);
}

/* ----- Custom buttons ----- */
body.web-page button {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}

body.web-page button:focus-visible,
body.web-page a:focus-visible {
  outline: 2px solid rgba(0, 163, 255, 0.55);
  outline-offset: 2px;
}

/* ----- Custom video player chrome ----- */
body.web-page video {
  outline: none;
  background: #000;
}

body.web-page video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.92));
}

/* ----- Remove default tap highlight on mobile ----- */
body.web-page a,
body.web-page button {
  -webkit-tap-highlight-color: transparent;
}
