:root {
  color-scheme: dark;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 58% 42% at 50% 12%, rgba(37, 52, 84, 0.72), transparent 62%),
    radial-gradient(ellipse 42% 32% at 18% 34%, rgba(159, 120, 54, 0.12), transparent 64%),
    radial-gradient(ellipse 38% 36% at 82% 28%, rgba(94, 134, 159, 0.13), transparent 66%),
    linear-gradient(180deg, #070a12 0%, #0b0f18 52%, #070810 100%) !important;
  color: #f6efe2 !important;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(218, 190, 128, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(218, 190, 128, 0.025) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(244, 215, 142, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 26%, rgba(255, 246, 218, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 78%, rgba(159, 196, 218, 0.14) 0 1px, transparent 2px);
  background-size: 360px 360px, 460px 460px, 520px 520px;
  opacity: 0.55;
}

#root > .min-h-screen,
.bg-gray-50,
.bg-gray-100 {
  background: transparent !important;
}

nav {
  background: rgba(8, 11, 19, 0.72) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

nav .max-w-5xl {
  max-width: 1180px !important;
}

nav a:first-child > div {
  background: linear-gradient(135deg, #d6b15a, #765d2b) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.22) !important;
}

nav a:first-child span {
  color: #f7edda !important;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
}

nav a:first-child span span {
  color: #e2bd65 !important;
}

nav .bg-gray-100\/80 {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(212, 175, 55, 0.13);
  border-radius: 999px !important;
}

nav .bg-white {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(255, 255, 255, 0.08)) !important;
  color: #f6d98f !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

nav .text-gray-500,
nav .text-gray-700,
nav .text-indigo-600 {
  color: rgba(246, 239, 226, 0.76) !important;
}

main.container {
  max-width: 1120px !important;
  padding-top: 7.5rem !important;
}

h1,
h2,
h3,
.text-3xl,
.text-4xl {
  color: #f7edda !important;
  letter-spacing: 0 !important;
}

main h1,
main .text-3xl,
main .text-4xl {
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
}

main h1::after,
main .text-4xl::after,
main .text-3xl::after {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  opacity: 0.85;
}

.text-gray-900,
.text-gray-800,
.text-gray-700 {
  color: #f5ead6 !important;
}

.text-gray-600,
.text-gray-500,
.text-gray-400 {
  color: rgba(246, 239, 226, 0.64) !important;
}

.bg-white,
.bg-white\/80,
.bg-white\/90 {
  background: rgba(17, 18, 28, 0.68) !important;
  border-color: rgba(212, 175, 55, 0.15) !important;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(18px);
}

.rounded-2xl,
.rounded-3xl {
  border-radius: 18px !important;
}

.shadow-lg,
.shadow-xl,
.shadow-2xl,
.shadow-md {
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32) !important;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(212, 175, 55, 0.18) !important;
  color: #fff5df !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: rgba(246, 239, 226, 0.42) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(212, 175, 55, 0.72) !important;
  --tw-ring-color: rgba(212, 175, 55, 0.26) !important;
}

button,
a {
  letter-spacing: 0 !important;
}

.bg-indigo-600,
.bg-blue-600,
.bg-purple-600,
.from-indigo-600,
.from-blue-600 {
  background: linear-gradient(135deg, #d6b15a, #9f7934 52%, #6c5129) !important;
  color: #130f08 !important;
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.20) !important;
}

.text-indigo-600,
.text-blue-600,
.text-purple-600 {
  color: #e6c875 !important;
}

.border-indigo-200,
.border-indigo-300,
.border-blue-200,
.border-gray-200,
.border-gray-100 {
  border-color: rgba(212, 175, 55, 0.16) !important;
}

.bg-indigo-50,
.bg-blue-50,
.bg-green-50,
.bg-amber-50 {
  background: rgba(212, 175, 55, 0.10) !important;
}

.grid .group,
.grid > div,
article,
.divide-y > div {
  border-color: rgba(212, 175, 55, 0.13) !important;
}

.fixed.inset-0 {
  background-color: rgba(0, 0, 0, 0.66) !important;
}

.fixed.inset-0 > .bg-white,
.modal,
[role="dialog"] {
  background: rgba(14, 15, 23, 0.94) !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.34);
  border-radius: 999px;
}

@media (max-width: 640px) {
  main.container {
    padding-top: 5.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  nav .max-w-5xl {
    height: 58px !important;
  }
}
