/* ShibWatch explorer, Eternity Hub look: the Hub's courtyard behind everything, armoured window tiles, Hub-style menu, Bangers type. */
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
.dark, .dark .chakra-theme:not(.light) {
  --chakra-colors-bg-primary: transparent;
  --chakra-colors-global-body-bg: transparent;
  --chakra-colors-theme-bg-primary-_dark: transparent;
  --chakra-colors-theme-stats-bg-_dark: rgba(24, 15, 30, 0.78);
  --chakra-colors-theme-topbar-bg-_dark: rgba(14, 9, 20, 0.82);
  --chakra-colors-bg-panel: rgba(22, 14, 28, 0.9);
  --chakra-colors-bg-subtle: rgba(26, 17, 33, 0.78);
  --chakra-colors-bg-muted: rgba(34, 22, 42, 0.82);
  --chakra-colors-table-header-bg: rgba(42, 26, 40, 0.92);
  --chakra-colors-popover-bg: rgba(22, 14, 28, 0.97);
  --chakra-colors-dialog-bg: rgba(22, 14, 28, 0.97);
  --chakra-colors-drawer-bg: rgba(22, 14, 28, 0.97);
}
html, body { background: #140d1b url('/brand/eh_bg.webp') center / cover fixed no-repeat !important; }
@media (orientation: portrait) { html, body { background-image: url('/brand/eh_bg_portrait.webp') !important; } }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(12, 7, 18, 0.55) 0%, rgba(12, 7, 18, 0.7) 50%, rgba(12, 7, 18, 0.8) 100%); }
#__next { position: relative; z-index: 2; }
#__next > div { background: transparent !important; }
#eh-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
#eh-petals { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- side menu, like the Hub's: stacked dark plates, comic labels, the active one glows orange ---------- */
div.group:has(> nav) { background: linear-gradient(180deg, rgba(14, 9, 20, 0.72), rgba(14, 9, 20, 0.5)) !important; backdrop-filter: blur(3px); }
div.group > nav li { margin-bottom: 8px; }
div.group > nav li > a, div.group > nav li > div {
  background: linear-gradient(180deg, rgba(40, 26, 44, 0.92), rgba(22, 14, 28, 0.92)) !important;
  border: 1px solid rgba(255, 178, 77, 0.18); border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 8px rgba(0, 0, 0, 0.45);
  font-family: 'Bangers', sans-serif !important; font-style: normal; letter-spacing: 0.06em; font-size: 18px !important;
  text-transform: uppercase; color: #f6efe6 !important; transition: border-color .15s, transform .15s, background .15s;
}
div.group > nav li > a:hover, div.group > nav li > div:hover { border-color: #ff9416; transform: translateX(2px); }
div.group > nav li > .eh-active, div.group > nav li > div[data-state="open"] {
  background: linear-gradient(180deg, #ff9a1f, #e5630a) !important; border-color: #ffc46b; color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 196, 107, 0.4), 0 4px 14px rgba(255, 122, 0, 0.45);
}
div.group > nav li svg { color: inherit !important; }
/* labels: never clip the comic font (Blockscout truncates nav labels with overflow hidden) */
div.group > nav li * { overflow: visible !important; text-overflow: clip !important; }
div.group > nav li span, div.group > nav li p { padding-right: 6px; line-height: 1.25 !important; white-space: nowrap; }
/* bigger ShibScan logo at the top of the menu */
/* no logo in the menu (owner's call): the Shib.io plate at the bottom and the hero title carry the brand */
a:has(> img[src*="network_logo"]), a:has(> img[src*="network_icon"]) { visibility: hidden !important; }
/* Shib.io promo in the menu: keep the whole image visible */
a:has(img[src*="shibio_promo"]) { overflow: visible !important; }
img[src*="shibio_promo"] { object-fit: contain !important; width: 100% !important; height: auto !important; }

/* sub-menus (Blockchain, Tokens, Other): an armoured window with plate buttons */
.chakra-tooltip__content:has(li a), .chakra-popover__content:has(li a) {
  background: linear-gradient(180deg, rgba(36, 23, 42, 0.97), rgba(20, 13, 26, 0.98)) !important;
  border: 2px solid #a8561a !important; border-radius: 12px !important; padding: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 110, 0.22), 0 10px 28px rgba(0, 0, 0, 0.6) !important; }
.chakra-tooltip__content:has(li a) li, .chakra-popover__content:has(li a) li { margin-bottom: 6px; }
.chakra-tooltip__content:has(li a) li > a, .chakra-popover__content:has(li a) li > a {
  background: linear-gradient(180deg, rgba(40, 26, 44, 0.95), rgba(24, 15, 30, 0.95)) !important;
  border: 1px solid rgba(255, 178, 77, 0.2); border-radius: 9px !important; padding: 8px 12px !important;
  font-family: 'Bangers', sans-serif !important; letter-spacing: 0.06em; font-size: 16px !important; color: #f6efe6 !important;
  transition: border-color .15s, background .15s; }
.chakra-tooltip__content:has(li a) li > a:hover, .chakra-popover__content:has(li a) li > a:hover {
  border-color: #ff9416; background: linear-gradient(180deg, #ff9a1f, #e5630a) !important; color: #fff !important; }
.chakra-tooltip__content:has(li a) li *, .chakra-popover__content:has(li a) li * { overflow: visible !important; text-overflow: clip !important; }

/* ---------- armoured window tiles (eh.js tags the panels with .eh-tile) ---------- */
.eh-tile {
  position: relative;
  background: linear-gradient(180deg, rgba(36, 23, 42, 0.9), rgba(20, 13, 26, 0.92)) !important;
  border: 2px solid #a8561a !important; border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 110, 0.22), inset 0 12px 24px rgba(255, 140, 40, 0.05), 0 8px 22px rgba(0, 0, 0, 0.5) !important;
}
.eh-tile::after { content: ""; position: absolute; inset: 3px; pointer-events: none; border-radius: 9px;
  background:
    radial-gradient(circle at 6px 6px, #ffcf8a 0 1.8px, #8a4612 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 6px) 6px, #ffcf8a 0 1.8px, #8a4612 2.2px, transparent 2.8px),
    radial-gradient(circle at 6px calc(100% - 6px), #ffcf8a 0 1.8px, #8a4612 2.2px, transparent 2.8px),
    radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #ffcf8a 0 1.8px, #8a4612 2.2px, transparent 2.8px); }
.eh-tile.eh-hero { border-width: 3px !important; border-color: #ff9416 !important; min-height: 190px;
  /* see-through, so the page's own courtyard shows through the banner and lines up with it */
  background: linear-gradient(90deg, rgba(14, 9, 20, 0.78) 0%, rgba(14, 9, 20, 0.35) 55%, rgba(14, 9, 20, 0.1) 100%) !important; backdrop-filter: none; }
main table, main table tbody, main table tr, main table td { background: transparent !important; }
main table tbody tr:hover td { background: rgba(255, 148, 22, 0.06) !important; }
main thead, main thead tr, main thead th { background: rgba(42, 26, 40, 0.92) !important; }
.eh-tile.eh-sec { padding: 14px 16px 12px !important; }
.eh-tile .eh-tile { box-shadow: none !important; border-width: 1px !important; border-color: rgba(255, 150, 60, 0.35) !important; }
.eh-tile .eh-tile::after { display: none; }
main thead th { font-family: 'Bangers', sans-serif !important; letter-spacing: 0.06em; font-size: 15px !important; color: #ffb24d !important; font-weight: 400 !important; }

/* ---------- type ---------- */
h1, h2, main h3 { font-family: 'Bangers', var(--chakra-fonts-heading), sans-serif !important; letter-spacing: 0.04em; font-weight: 400 !important; }
h1 { color: #ffb24d !important; text-shadow: 0 2px 0 #3a1a00, 0 0 18px rgba(255, 122, 0, 0.35); }
main h3 { color: #ffd9a8 !important; font-size: 26px !important; text-shadow: 0 2px 0 #2a1200; }

/* ---------- Shiboshis of the day ---------- */
.eh-boshi { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; opacity: 0.55;
  border: 3px solid #ff9416; box-shadow: 0 0 0 3px rgba(58, 26, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 122, 0, 0.35);
  animation: eh-bob var(--d) ease-in-out infinite alternate; background: #2a1a2e center / cover no-repeat; image-rendering: pixelated; }
@keyframes eh-bob { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }
@media (max-width: 900px) { .eh-boshi { opacity: 0.32; } }
@media (prefers-reduced-motion: reduce) { #eh-petals { display: none; } .eh-boshi { animation: none; } }
