:root {
  --brand: #d4af37;
  --text: #f5e6c8;
  --ink: #1a1300;
  --emerald: #34d399;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Cardo', serif;
  color: var(--text);
  text-align: center;
  background: #000 url("map.webp") center 40% / cover no-repeat fixed;
  padding-bottom: 88px;
  overflow-x: hidden;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-position: center 30%;
  }
}

h1, h2, h3, .brand {
  font-family: 'Cinzel Decorative', serif;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.uor-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  width: 100%;
  background: rgba(10, 8, 5, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.uor-navwrap {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: relative;
}

.uor-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--text) !important;
  font-family: 'Cinzel Decorative', serif;
  z-index: 2100;
  transition: opacity 0.2s ease;
}

.uor-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.uor-brand:hover {
  opacity: 0.85;
}

/* Nav Menu Wrapper */
.uor-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
  flex-grow: 1;
  margin-left: clamp(1rem, 2vw, 2rem);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text navigation links */
.uor-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
}

.uor-nav-link {
  display: inline-block;
  text-align: center;
  line-height: 1.1;
  vertical-align: middle;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.uor-nav-link:hover {
  color: #fff !important;
}

.uor-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 50%;
  background-color: var(--brand);
  transition: width 0.25s ease, left 0.25s ease;
}

.uor-nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown Menu (Tools & Guides) */
.uor-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.uor-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.1;
  text-align: center;
}

.uor-dropdown-arrow {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  color: var(--brand);
}

.uor-dropdown:hover .uor-dropdown-arrow,
.uor-dropdown.is-open .uor-dropdown-arrow {
  transform: rotate(180deg);
}

.uor-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  width: max-content;
  background: rgba(10, 8, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(212, 175, 55, 0.15);
  padding: 0.5rem 0;
  margin-top: 4px;
  z-index: 2500;
}

/* Invisible hover bridge */
.uor-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

@media (min-width: 1181px) {
  .uor-dropdown:hover .uor-dropdown-menu {
    display: block;
  }
}

.uor-dropdown.is-open .uor-dropdown-menu {
  display: block;
}

.uor-dropdown-item {
  display: block;
  padding: 0.65rem 1.3rem;
  font-family: 'Cardo', serif;
  font-size: 0.95rem;
  color: #e5f5e0 !important;
  text-decoration: none;
  transition: all 0.18s ease;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  text-align: left;
  white-space: nowrap;
}

.uor-dropdown-item:last-child {
  border-bottom: none;
}

.uor-dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffdf6a !important;
  padding-left: 1.5rem;
  text-decoration: none !important;
}

/* Actions container */
.uor-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Global / Navbar Buttons */
.uor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: 'Cardo', serif;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
  color: #1a1300 !important;
  background: linear-gradient(180deg, #ffd700, #b8860b);
  border: 1px solid #caa700;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform .15s, box-shadow .15s, filter 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.uor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(255, 255, 255, .4);
  filter: brightness(1.05);
}

.uor-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}

/* Discord Button in Navbar */
.uor-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: 'Cardo', serif;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff !important;
  background: #5865F2;
  border: 1px solid #4752C4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform .15s, box-shadow .15s, background .15s;
}

.uor-btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}

.uor-btn-discord:active {
  transform: translateY(0);
}

.uor-btn-discord svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Toggle button (Hamburger) */
.uor-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
}

.uor-nav-toggle:focus {
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Responsive Navbar Drawer */
@media (max-width: 1180px) {
  .uor-nav-toggle {
    display: flex;
  }

  .uor-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 10, 8, 0.97);
    border-left: 1px solid var(--brand);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 90px 24px 40px;
    gap: 2.5rem;
    margin-left: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
  }

  .uor-nav-menu.is-active {
    right: 0;
  }

  .uor-nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.8rem;
  }

  .uor-nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .uor-nav-link::after {
    display: none;
  }

  .uor-dropdown {
    flex-direction: column;
    width: 100%;
  }

  .uor-dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .uor-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: none;
    margin-top: 0.5rem;
  }

  .uor-dropdown-item {
    text-align: center;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .uor-nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: auto;
  }

  .uor-nav-actions .uor-btn,
  .uor-nav-actions .uor-btn-discord {
    width: 100%;
    padding: 0.6rem 1.1rem;
  }

  /* Hamburger Animations when open */
  .uor-nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .uor-nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .uor-nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   PAGE CONTENT & DONATION CARD
   ========================================================================== */
.wrap {
  max-width: 980px;
  margin: 100px auto 0;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

.lead {
  max-width: 760px;
  margin: 10px auto 20px;
  padding: 0 12px;
}

.lead h1 {
  color: var(--brand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  margin: .2rem 0 .6rem;
  font-size: 2rem;
}

.lead p {
  margin: .35rem 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}

/* CARD */
.donate-card {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, .35);
}

.donate-head {
  padding: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, .3);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.donate-head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Gold by default */
.chip {
  cursor: pointer;
  user-select: none;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid #caa700;
  background: linear-gradient(180deg, #ffd700, #b8860b);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), inset 0 -1px 2px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s, filter .2s;
  font-family: 'Cardo', serif;
  font-weight: bold;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(255, 255, 255, .4);
}

/* Selected = emerald with subtle pulse */
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--emerald), #10b981);
  color: #062e22;
  border-color: #0ea36b;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .8), 0 2px 8px rgba(0, 0, 0, .5);
  animation: pulse-green 1.6s ease-in-out infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6), 0 2px 8px rgba(0, 0, 0, .45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 6px 14px rgba(0, 0, 0, .55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 2px 8px rgba(0, 0, 0, .45);
  }
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.field input[type="number"],
.field input[type="text"] {
  width: 220px;
  max-width: 100%;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, .5);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.note {
  font-size: .95rem;
  color: #f1e6cd;
  opacity: .95;
}

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .6), transparent);
  margin: 10px 0;
}

/* PayPal area */
#paypal-area {
  padding: 10px 16px 10px;
}

#paypal-button-container {
  max-width: 360px;
  margin: 0 auto;
}

#mock-paypal-btn {
  display: none;
}

.alt {
  opacity: .9;
  margin-top: 8px;
}

/* Discord buttons layout + style */
.discord-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 12px auto 0;
  max-width: 420px;
  width: 100%;
}

.discord-buttons .uor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #ffd700, #b8860b);
  color: #1a1300 !important;
  font-weight: bold;
  border: 1px solid #caa700;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), inset 0 -1px 2px rgba(0, 0, 0, .4);
  transition: transform .15s, box-shadow .15s;
  width: fit-content;
  padding: .5rem 1.3rem;
  min-width: 200px;
}

.discord-buttons .uor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6), inset 0 1px 2px rgba(255, 255, 255, .4);
}

.discord-buttons .uor-btn img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4));
}

/* Decorative image slot (banner) */
.donation-figure {
  position: relative;
  margin: 12px auto 0;
  width: clamp(220px, 40vw, 540px);
}

.donation-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.banner-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9%;
  margin: 0;
  padding: 0px 8px;
  max-width: 90%;
  line-height: 1.15;
  color: #f7edd3;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  background: rgba(0, 0, 0, .25);
  border: none;
  border-radius: 3px;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.92;
  transition: opacity .3s ease;
}

/* Footer */
.uor-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, .88);
  border-top: 1px solid var(--brand);
  color: #cfcfcf;
  font-size: .8rem;
  z-index: 1000;
}

.uor-footwrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}

.uor-footer a {
  color: #ddd;
  text-decoration: none;
}

.uor-footer a:hover {
  color: var(--brand);
}

.important {
  color: #fff;
  border: 1px dashed rgba(212, 175, 55, .6);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .35);
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
