/* L2 Frontier — Warm Obsidian & Gold Glassmorphism Layer
   Applies frosted glass surfaces, specular top rims, and soft atmospheric depth
   across all tables, command bars, panels, and cards while preserving high contrast. */

body {
  position: relative;
  background-color: #0b0907 !important;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(168, 125, 52, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 60% 45% at 88% 14%, rgba(124, 84, 34, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(110, 76, 30, 0.12) 0%, transparent 65%) !important;
  background-attachment: fixed !important;
}

/* Frosted Glass Tables */
.table-wrap,
.tbl-wrap {
  background: linear-gradient(165deg, rgba(30, 25, 19, 0.62) 0%, rgba(18, 15, 11, 0.56) 100%) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border: 1px solid rgba(226, 190, 103, 0.20) !important;
  border-radius: 13px !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 238, 196, 0.11) !important;
}

.table-wrap table,
.tbl-wrap table,
table.data-tbl {
  background: transparent !important;
}

.table-wrap thead th,
.tbl-wrap thead th,
table.data-tbl thead th {
  background: rgba(29, 24, 18, 0.78) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  border-bottom: 1px solid rgba(226, 190, 103, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 208, 0.08);
}

.table-wrap thead th.sortable:hover,
.tbl-wrap thead th.sortable:hover,
table.data-tbl thead th.sortable:hover {
  background: rgba(226, 190, 103, 0.16) !important;
}

.table-wrap thead th.sortable.sorted,
.tbl-wrap thead th.sortable.sorted,
table.data-tbl thead th.sortable.sorted {
  background: rgba(226, 190, 103, 0.14) !important;
}

.table-wrap tbody td,
.tbl-wrap tbody td,
table.data-tbl tbody td {
  border-bottom: 1px solid rgba(226, 190, 103, 0.085) !important;
  background: transparent !important;
}

.table-wrap tbody tr:nth-child(even),
.tbl-wrap tbody tr:nth-child(even),
table.data-tbl tbody tr:nth-child(even) {
  background: rgba(255, 245, 224, 0.018);
}

.table-wrap tbody tr:hover,
.tbl-wrap tbody tr:hover,
table.data-tbl tbody tr:hover {
  background: rgba(226, 190, 103, 0.075) !important;
}

/* Frosted Glass Command Bars, Panels & Cards */
.cmd-bar,
.rk-bar,
.controls,
.tab-bar,
.cls-toolbar,
.panel,
.cls-card,
.zone-card,
.boss-card,
.castle-card,
.flag-card,
.lore-toc,
.lore-chapter,
.lib-hub-card,
.card,
.step-card,
.cmp-box {
  background: linear-gradient(160deg, rgba(31, 26, 19, 0.58) 0%, rgba(17, 14, 11, 0.54) 100%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  border-color: rgba(226, 190, 103, 0.19) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 238, 196, 0.10) !important;
}

.cmp-box.prem {
  background: linear-gradient(160deg, rgba(64, 48, 22, 0.44) 0%, rgba(20, 16, 11, 0.62) 100%) !important;
  border-color: rgba(226, 190, 103, 0.42) !important;
}

.boss-card.alive {
  border-color: rgba(72, 184, 120, 0.42) !important;
}

.boss-card.dead {
  border-color: rgba(224, 100, 100, 0.36) !important;
}

/* Frosted Inputs, Dropdowns & Buttons inside Command Bars */
.cmd-bar input[type="search"],
.cmd-bar input[type="number"],
.cmd-bar select,
.rk-more-sel,
.cls-toolbar select,
.toc-search {
  background: rgba(10, 9, 7, 0.58) !important;
  backdrop-filter: blur(8px);
  border-color: rgba(226, 190, 103, 0.22) !important;
}

.cmd-bar input[type="search"]:focus,
.cmd-bar input[type="number"]:focus,
.cmd-bar select:focus,
.toc-search:focus {
  border-color: rgba(226, 190, 103, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(226, 190, 103, 0.14);
}

/* Frosted Top Nav, Sub-bar & Modals */
.site-nav,
nav {
  background: rgba(14, 12, 9, 0.72) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  border-bottom: 1px solid rgba(226, 190, 103, 0.20) !important;
}

.lib-subbar {
  background: rgba(20, 17, 13, 0.60) !important;
  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
  border-bottom: 1px solid rgba(226, 190, 103, 0.15) !important;
}

.modal-card {
  background: linear-gradient(160deg, rgba(28, 24, 18, 0.84) 0%, rgba(14, 12, 9, 0.88) 100%) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  border: 1px solid rgba(226, 190, 103, 0.36) !important;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 240, 200, 0.14) !important;
}
