/*
 * The in-game style tooltip, for item pages here and for tooltips.js on
 * any site (it loads this file next to itself). Everything is scoped to
 * .tt and .q0-.q6, so it doesn't touch the host page.
 */

.q0 { color: #9d9d9d; }
.q1 { color: #ffffff; }
.q2 { color: #1eff00; }
.q3 { color: #3d93ff; }
.q4 { color: #b55cf5; }
.q5 { color: #ff8000; }
.q6 { color: #e6cc80; }

.tt {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 340px;
    color: #fff;
    font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: left;
}

.tt-body {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    background: #070b18;
    border: 1px solid #4c5268;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.tt-icon {
    flex: none;
}

.tt-icon img,
.tt-icon .icon-ph {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    outline: 1px solid rgba(255, 255, 255, 0.15);
    outline-offset: -1px;
}

.tt-name {
    font-size: 14.5px;
    font-weight: 600;
}

.tt-split {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.tt-green,
.tt-green a {
    color: #1eff00;
    text-decoration: none;
}

.tt-green a:hover {
    text-decoration: underline;
}

.tt-gold {
    color: #ffd100;
}

.tt-muted {
    color: #9d9d9d;
}

.tt-price {
    margin-top: 2px;
}

/* an icon's stand-in until icons are extracted from the game client */
.icon-ph {
    display: inline-block;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16), transparent 60%),
        #1b1f2a;
    border: 1px solid currentColor;
    border-radius: 4px;
    opacity: 0.9;
}

.money {
    display: inline-flex;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.money > span::after {
    content: "";
    display: inline-block;
    width: 0.62em;
    height: 0.62em;
    margin-left: 3px;
    border-radius: 50%;
    vertical-align: 0.02em;
}

.money .gold::after { background: #e7b628; }
.money .silver::after { background: #c3c7cc; }
.money .copper::after { background: #c0703c; }

/* the hover tooltip tooltips.js shows */
.qc-tooltip {
    position: fixed;
    z-index: 2147483000;
    pointer-events: none;
}
