.icon[data-icon] {
  display: inline-block;
  background-image: url('/assets/hud-icons.webp?v=13');
  background-size: 1000% 1000%;
  background-position: var(--icon-x) var(--icon-y);
  background-repeat: no-repeat;
  vertical-align: -.21em;
}

.item-art-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #31504b, #102027 72%);
}

.item-art-fallback .icon { width: 55%; height: 55%; }
.topbar {
  background: linear-gradient(106deg, #121c22, #081218 58%, #282019);
  box-shadow: 0 5px 22px #02060980;
}
.main-nav > button {
  min-height: 46px;
  gap: .42rem;
  padding-inline: .55rem;
  font-weight: 750;
}
.main-nav > button .icon { width: 1.34em; height: 1.34em; }
.main-nav > button[aria-current="page"] {
  background: linear-gradient(123deg, #664231, #3b3630 58%, #252c2b);
  text-shadow: 0 1px 1px #121012;
}
.main-nav > button[aria-current="page"] .icon { filter: drop-shadow(0 0 3px #ffecb480); }
.current-seed, #vigor-count { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
#vigor-count .icon { width: 1.08rem; height: 1.08rem; }
.sound-control .icon { width: 1.42rem; height: 1.42rem; }
.chapter-panel-head h2 > .icon, .section-label > strong > .icon { vertical-align: -.23em; }
.chapter-action > .icon { width: 1.5rem; height: 1.5rem; }
.btn:not(.ghost) > .icon { width: 1.28em; height: 1.28em; }
.map-pin .pin-icon .icon { width: 1.44rem; height: 1.44rem; }
.chapter-enemy .btn > .icon[data-icon] { display: inline-block; }
.chapter-enemy.is-elite > img { filter: drop-shadow(0 3px 6px #100c1a90); }
.journal-story { border-color: #8a769e; background: linear-gradient(130deg, #2d2a3d, #172830 78%); }
.journal-story > .chapter-meter { display: block; margin-block: .5rem .85rem; }
.journal-story > h3 { margin-block: .6rem .35rem; }
.journal-story > .btn { margin-block-start: .8rem; }
.quest-reward-art { display: inline-block; width: 1.6rem; height: 1.6rem; object-fit: contain; vertical-align: middle; }
.breuvale-reward-art { margin-inline-end: .1rem; }
.toast {
  --notice-edge: #759f98;
  --notice-shade: #213331;
  --notice-ink: #c4e9d8;
  display: grid;
  grid-template-columns: 2.95rem minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  width: min(23rem, calc(100vw - 2rem));
  max-width: none;
  padding: .7rem .84rem .72rem .65rem;
  border: 1px solid var(--notice-edge);
  border-inline-start-width: 3px;
  border-radius: .18rem .82rem .24rem .48rem;
  background: linear-gradient(120deg, var(--notice-shade), #12232c 62%, #0e1821);
  box-shadow: inset 0 0 0 2px #ffffff0b, 0 .7rem 1.8rem #02060bad;
}
.toast[data-kind="loot"], .toast[data-kind="gear"] {
  --notice-edge: #b58c61;
  --notice-shade: #433229;
  --notice-ink: #f3cf9b;
}
.toast[data-kind="progress"], .toast[data-kind="unlock"] {
  --notice-edge: #9a87bb;
  --notice-shade: #332942;
  --notice-ink: #e5cef5;
}
.toast[data-kind="combat"], .toast[data-kind="danger"] {
  --notice-edge: #c98a76;
  --notice-shade: #522d2c;
  --notice-ink: #ffc2a7;
}
.notice-emblem {
  display: grid;
  width: 2.95rem;
  aspect-ratio: 1;
  place-items: center;
  background: radial-gradient(ellipse at center, #e5c49822, #11202caa 72%);
  border: 1px solid color-mix(in srgb, var(--notice-edge) 73%, transparent);
  border-radius: .16rem .48rem .2rem .38rem;
}
.notice-emblem > .icon { width: 1.8rem; height: 1.8rem; }
.notice-item-art { width: 2.64rem; height: 2.64rem; object-fit: contain; }
.notice-copy { display: grid; min-width: 0; gap: .18rem; }
.notice-copy > strong { font: 700 1.22rem/1.1 var(--display); color: var(--notice-ink); }
.notice-copy > small { font-size: .875rem; line-height: 1.33; color: #eff1e6; overflow-wrap: anywhere; }

@media (max-width: 1390px) {
  .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: .38rem; }
  .topbar-inner .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .topbar-inner .top-status { grid-column: 2; grid-row: 1; }
}

@media (max-width: 610px) {
  .topbar-inner .main-nav { gap: .24rem; }
  .topbar-inner .main-nav > button {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    row-gap: .13rem;
    min-height: 49px;
    padding: .26rem .1rem;
    border-radius: .25rem .53rem .25rem .53rem;
    background-color: #19272e;
    font-size: 1rem;
    line-height: 1;
  }
  .topbar-inner .main-nav > button .icon { display: inline-block; width: 1.27rem; height: 1.27rem; }
  .main-nav .book-indicator { position: absolute; right: .27rem; top: .25rem; }
  .map-pin .pin-icon .icon { width: 1.16rem; height: 1.16rem; }
  .toast { bottom: max(.7rem, env(safe-area-inset-bottom)); }
}
