/* Arena Teney — World Navigation WN1 r04f2
 * Seamless World entry and black-gold More sheet.
 * Presentation only; shared dock geometry and menu actions stay with UI Pack 002.
 */

/* r04f3: World must out-rank the delayed Inventory keyboard guard.
 * Preserve the guard lifecycle/scroll locks; only resolve its background cascade.
 */
html.i173c-inventory-keyboard-guard:has(> body[data-screen="worldnav"]),
html.wn1-world-entering {
  background: #050403 !important;
}

html.i173c-inventory-keyboard-guard > body[data-screen="worldnav"],
body.wn1-world-entering {
  --bg-start: #080603;
  --bg-mid: #0c0904;
  --bg-end: #040302;
  --glow: #7c5618;
  background:
    radial-gradient(ellipse at 48% -4%, rgba(201, 142, 37, .38) 0%, rgba(108, 66, 14, .18) 24rem, transparent 43rem),
    radial-gradient(circle at 9% 40%, rgba(132, 78, 15, .13), transparent 25rem),
    radial-gradient(circle at 92% 66%, rgba(181, 121, 26, .09), transparent 27rem),
    linear-gradient(180deg, #0b0702 0%, #090602 34%, #060402 67%, #030302 100%) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] {
  background:
    radial-gradient(ellipse at 50% 78%, rgba(142, 93, 28, .17), transparent 46%),
    rgba(3, 2, 1, .82) !important;
  -webkit-backdrop-filter: blur(11px) saturate(.92) !important;
  backdrop-filter: blur(11px) saturate(.92) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 171, 68, .7) !important;
  border-radius: 4px 18px 4px 18px !important;
  background:
    radial-gradient(ellipse at 50% -8%, rgba(190, 128, 31, .18), transparent 52%),
    linear-gradient(180deg, rgba(24, 17, 7, .995), rgba(7, 6, 3, .998) 82%) !important;
  box-shadow:
    0 28px 82px rgba(0, 0, 0, .84),
    0 0 0 1px rgba(73, 43, 12, .7),
    inset 0 1px rgba(255, 230, 166, .07),
    inset 0 -32px 54px rgba(0, 0, 0, .28) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  pointer-events: none;
  opacity: .62;
  background:
    linear-gradient(#e5bd62, #e5bd62) left top / 34px 1px no-repeat,
    linear-gradient(#e5bd62, #e5bd62) left top / 1px 21px no-repeat,
    linear-gradient(#e5bd62, #e5bd62) right top / 34px 1px no-repeat,
    linear-gradient(#e5bd62, #e5bd62) right top / 1px 21px no-repeat,
    linear-gradient(#80571e, #80571e) left bottom / 27px 1px no-repeat,
    linear-gradient(#80571e, #80571e) right bottom / 27px 1px no-repeat;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet > * {
  position: relative;
  z-index: 1;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet-head {
  padding: 17px 18px 15px !important;
  border-bottom-color: rgba(173, 126, 42, .32) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet-head h2 {
  color: #f2d783 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 21px !important;
  letter-spacing: .025em;
  text-shadow: 0 2px 16px rgba(210, 152, 44, .18);
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet-head small[hidden] {
  display: none !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet-close {
  border-color: rgba(205, 156, 61, .54) !important;
  background: linear-gradient(180deg, #2c1e09, #120d05) !important;
  color: #f2d783 !important;
  box-shadow: inset 0 1px rgba(255, 228, 159, .07) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-grid {
  gap: 10px !important;
  padding: 15px !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-item {
  border-color: rgba(155, 111, 36, .45) !important;
  border-radius: 3px 12px 3px 12px !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(213, 160, 57, .08), transparent 42%),
    linear-gradient(155deg, rgba(25, 19, 10, .98), rgba(8, 8, 5, .99)) !important;
  color: #eee5c9 !important;
  box-shadow: inset 0 1px rgba(255, 230, 165, .035), 0 10px 22px rgba(0, 0, 0, .2) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-item strong {
  color: #f3dfaa !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-item small {
  color: #aaa184 !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-item.active {
  border-color: rgba(232, 188, 84, .82) !important;
  background:
    radial-gradient(circle at 20% 8%, rgba(229, 179, 73, .17), transparent 45%),
    linear-gradient(155deg, rgba(48, 34, 12, .99), rgba(12, 10, 5, .99)) !important;
  box-shadow: 0 0 0 1px rgba(226, 179, 72, .12), 0 0 22px rgba(190, 128, 28, .1) !important;
}

#ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-item:active,
#ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet-close:active {
  transform: scale(.975);
}

@media (max-width: 620px) {
  #ui002-more-overlay[data-wn-r04f2="true"] .ui002-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ui002-more-overlay[data-wn-r04f2="true"] .ui002-sheet {
    animation-duration: .01ms !important;
  }
}
