/* Native scrolling, forged navigation. No input interception. */
:root { --head: 76px; }
html { scrollbar-color: #b56b36 #100e11; scrollbar-width: thin; }
#gameplay-heading, #appearance-heading, #author-heading, #author-scene, #raid-journey-title { scroll-margin-top: calc(var(--head) + 14px); }
@supports selector(::-webkit-scrollbar) {
  html { scrollbar-color: auto; scrollbar-width: auto; }
  ::-webkit-scrollbar { width: 11px; height: 10px; }
  ::-webkit-scrollbar-track { background: #100e11; border-left: 1px solid #38221d; }
  ::-webkit-scrollbar-thumb {
    min-height: 52px; border: 3px solid #100e11; border-radius: 8px;
    background: linear-gradient(180deg, #f0b778, #a35029 34%, #62301f 75%, #bf763e);
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: #efb170; border: 2px solid #100e11; }
  ::-webkit-scrollbar-thumb:active { background: #ffd49a; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  ::-webkit-scrollbar-corner { background: #100e11; }
}
.site-head.forge-head,
body:has(.home-view:not([hidden])) .site-head.forge-head {
  --head: 76px;
  position: sticky;
  top: 0;
  height: var(--forge-height, var(--head));
  isolation: isolate;
  background:
    repeating-linear-gradient(166deg, #ffe0bd03 0 1px, transparent 1px 10px),
    radial-gradient(ellipse 38% 125% at 11% 0, #3022199c, transparent),
    linear-gradient(180deg, #191417, #100d10 85%);
  border-bottom-color: #4e3126;
}

.site-head.forge-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, #41291f, #8b5b3c 23%, #624030 53%, #8d5a3a 79%, #41291f);
  pointer-events: none;
}

.site-head.forge-head .frame.head-inner {
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2.45rem);
}

.forge-head nav {
  height: 100%;
  align-items: stretch;
  gap: clamp(.85rem, 2.05vw, 2.25rem);
}

.site-head.forge-head .forge-link[data-nav] {
  height: 100%;
  min-height: 44px;
  padding-inline: clamp(.42rem, .82vw, .85rem);
  border: 0;
  color: #dfc8ae;
  font: 600 clamp(1.14rem, 1.67vw, 1.46rem)/1.15 "Trilli0N Display", Georgia, serif;
  letter-spacing: .012em;
  justify-content: center;
  transition: color .24s ease, text-shadow .24s ease;
}

.site-head.forge-head .forge-link:is(:hover, :focus-visible, [aria-current], .forge-igniting) {
  color: #ffe6bc;
  text-shadow: 0 0 14px #f0a6585e;
}

.site-head.forge-head .forge-link[aria-current]::after { content: none; }
.site-head.forge-head .forge-link:focus-visible {
  outline: 2px solid #f7c88c;
  outline-offset: -6px;
}

.site-head.forge-head .account-link.forge-link {
  justify-self: end;
  padding-inline: clamp(1.05rem, 1.6vw, 1.6rem) .2rem;
}

.forge-head .account-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34%;
  bottom: 34%;
  width: 1px;
  background: #79523a;
  opacity: .68;
}

.forge-head .account-link > span[aria-hidden="true"]:not(.forge-ember) {
  color: #d9a671;
  font: .78em Georgia, serif;
}

.forge-ember {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1px;
  width: clamp(1.25rem, 2.5vw, 2.25rem);
  height: 2px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, #e38748 30%, #ffe3af 51%, #d97635 73%, transparent);
  box-shadow: 0 0 8px #ff914f65;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, filter .3s ease;
}

.forge-ember::before {
  content: "";
  position: absolute;
  inset: -7px -10px;
  background: radial-gradient(ellipse at center, #ea82395e, #cf4c232a 38%, transparent 71%);
  opacity: .72;
}

.forge-link:is(:hover, :focus-visible, [aria-current], .forge-igniting) .forge-ember { opacity: 1; }
.forge-link[aria-current] .forge-ember { animation: forge-smolder 4.8s ease-in-out infinite; }
.forge-link.forge-igniting .forge-ember { animation: forge-ignite .65s ease-in-out both; }
html.arcane-paused .forge-ember { animation-play-state: paused; }

@keyframes forge-smolder {
  0%, 100% { filter: brightness(.82); }
  52% { filter: brightness(1.22); }
}

@keyframes forge-ignite {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 #ff832700); }
  45% { filter: brightness(1.65) drop-shadow(0 0 4px #ff8327c2); }
}

@media (max-width: 1120px) {
  .site-head.forge-head .frame.head-inner {
    grid-template-columns: minmax(180px, 1fr) max-content minmax(7rem, 1fr);
    gap: .8rem;
  }
  .forge-head nav { gap: .55rem; }
  .forge-head .header-mark { width: 190px; }
}

@media (max-width: 850px) {
  .site-head.forge-head { --forge-height: auto; min-height: 76px; }
  .site-head.forge-head .frame.head-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 0 .65rem; }
  .forge-head nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
  .forge-head .header-mark { height: 56px; }
  .site-head.forge-head .forge-link[data-nav] { font-size: clamp(.97rem, 2.7vw, 1.12rem); }
}

@media (prefers-reduced-motion: reduce) {
  .forge-head *, .forge-head *::before, .forge-head *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  html { scrollbar-color: auto; }
  .forge-ember { visibility: hidden; }
  .site-head.forge-head .forge-link[aria-current] { text-decoration: underline; text-underline-offset: .35em; }
  .site-head.forge-head .forge-link:focus-visible { outline-color: Highlight; }
}
