/* KO item tooltip */
.ko-item-tip {
    position: fixed;
    z-index: 20000;
    min-width: 240px;
    max-width: 360px;
    padding: 0.55rem 0.65rem 0.45rem;
    pointer-events: none;
    color: #f1e9d2;
    background: rgba(18, 14, 10, 0.94);
    border: 1px solid #8a7040;
    border-radius: 0.2rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    font: 12px/1.35 Verdana, Tahoma, sans-serif;
    text-align: left;
}

    .ko-item-tip.d-none {
        display: none;
    }

.ko-tip-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.ko-tip-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border: 1px solid #6b5632;
    background: #1a1510;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

    .ko-tip-icon img {
        width: 45px;
        height: 45px;
        object-fit: contain;
        display: block;
        image-rendering: pixelated;
        image-rendering: crisp-edges;
    }

.ko-tip-title {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.ko-tip-name {
    color: #ff4d4d;
    font-weight: 700;
    font-size: 13px;
}

    .ko-tip-name.is-reverse,
    .ko-tip-name.is-cospre-name {
        color: #ff66cc;
    }

.ko-tip-line.is-reverse,
.ko-tip-line.is-reverse-grade {
    color: #ff66cc;
    font-weight: 600;
}

.ko-tip-line { color: #f3ead3; }
.ko-tip-line.is-kind { color: #f3ead3; }
.ko-tip-line.is-restrict { color: #f3ead3; }
.ko-tip-line.is-dur { color: #f3ead3; }
.ko-tip-line.is-set { color: #ffd700; font-weight: 600; }
.ko-tip-line.is-resist { color: #7dd3fc; }
.ko-tip-line.is-bind { color: #ffd700; }
.ko-tip-line.is-seal { color: #5dff6a; text-decoration: underline; }
.ko-tip-line.is-bonus { color: #5dff6a; }
.ko-tip-line.is-stat { color: #7dd3fc; }
.ko-tip-line.is-warn { color: #ff6b6b; }
.ko-tip-line.is-grade { color: #5dff6a; font-weight: 600; }
.ko-tip-line.is-option { color: #fbbf24; font-weight: 600; }
.ko-tip-line.is-desc { color: #c4b896; font-style: italic; }
.ko-tip-head.is-reverse-head .ko-tip-name { color: #ff66cc; }
.ko-tip-head.is-cospre .ko-tip-name { color: #ff6b6b; }

.ko-tip-sep {
    height: 1px;
    margin: 0.4rem 0;
    background: linear-gradient(90deg, transparent, #7a6238, transparent);
}

.ko-tip-bar {
    height: 5px;
    margin: 0.2rem 0 0.35rem;
    background: #3a3226;
    border: 1px solid #5c4c30;
    overflow: hidden;
}

    .ko-tip-bar span {
        display: block;
        height: 100%;
        background: linear-gradient(90deg, #8b1e1e, #d44848);
    }

.ko-tip-empty { color: #bbb; }

/* Oyundaki tooltip (re_newtooltip.uif); olculer canli client ekranindan, 1 oyun pikseli = 1px */
.ko-item-tip.is-game {
    width: 310px;
    min-width: 0;
    max-width: none;
    padding: 0 0 26px;
    box-sizing: border-box;
    color: #fff;
    background: rgba(0, 0, 0, 0.81);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: 12px/24px Verdana, Tahoma, sans-serif;
}

.ko-item-tip.is-game * { box-sizing: content-box; }

.ko-item-tip.is-game .kt-head {
    position: relative;
    height: 122px;
}

.ko-item-tip.is-game .kt-bar {
    display: block;
    width: 290px;
    height: 2px;
    margin-left: 6px;
    background: #887744;
}

    .ko-item-tip.is-game .kt-bar.is-top,
    .ko-item-tip.is-game .kt-bar.is-head {
        position: absolute;
        left: 0;
    }

    .ko-item-tip.is-game .kt-bar.is-top { top: 22px; }
    .ko-item-tip.is-game .kt-bar.is-head { top: 120px; }
    .ko-item-tip.is-game .kt-bar.is-mid { margin-bottom: -2px; position: relative; }

.ko-item-tip.is-game .kt-icon {
    position: absolute;
    left: 10px;
    top: 26px;
    width: 45px;
    height: 45px;
    overflow: hidden;
}

    .ko-item-tip.is-game .kt-icon img {
        width: 45px;
        height: 45px;
        display: block;
    }

.ko-item-tip.is-game .kt-pro {
    position: absolute;
    left: 246px;
    top: 105px;
    width: 45px;
    height: 7px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25));
}

    .ko-item-tip.is-game .kt-pro span {
        display: block;
        height: 100%;
        background: #ff8a00;
    }

/* Yazilar oyunun GDI glifleriyle canvas'a cizilir (item-tooltip.js + ko-game-font.js) */
.ko-item-tip.is-game .kt-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 310px;
    height: 122px;
    pointer-events: none;
}

.ko-item-tip.is-game .kt-row {
    display: block;
    width: 290px;
    height: 24px;
    margin-left: 6px;
}

.ko-item-tip.is-game .kt-text.is-crisp,
.ko-item-tip.is-game .kt-row.is-crisp {
    image-rendering: pixelated;
}

