@import url("semantic-icons.css");
/* InventoryTooltip.prefab measurements; source hashes are in the tooltip asset provenance. */
.tooltip {
    box-sizing: border-box;
    width: 310px;
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 5px 7.5px;
    border: 0 solid transparent;
    border-image: url("images/game/tooltip-background.png") 10 fill / 10px / 0 stretch;
    color: #fff;
    font: 19px / 1.15 "MaxDPS Valheim Body", Georgia, serif;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    scrollbar-color: #c8c8c8 #161616;
    scrollbar-width: thin;
}
.name {
    max-width: 270px;
    margin: 0 auto;
    color: #ffb75c;
    font-family: "MaxDPS Valheim Title", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.description { margin: 0 0 1em; white-space: pre-line; }
.stat { margin: 0; }
.value { color: #ffa500; }
.note { margin: 14px 0 0; color: #d4d4d4; font-size: 13px; line-height: 1.3; }
::selection { color: #000; background: #ffa500; }

.tooltip { animation: maxdps-tooltip-in .12s ease-out; }
@keyframes maxdps-tooltip-in { from { opacity: 0; transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .tooltip { animation: none; } }

.tooltip-heading { display: flex; align-items: center; justify-content: center; gap: .4em; margin-bottom: .4em; }
.tooltip-heading .name { margin: 0; }
.item-icon { width: 2.1em; height: 2.1em; object-fit: contain; flex-shrink: 0; }
.tooltip .damage-icon { filter: brightness(1.9) saturate(.8); }
