/*
 * Galaxy hover, the census readout, the chart panel, and the two body
 * states the hazards and the warp put on the page.
 */

/* The hover ring: a full circle in the galaxy's own tint, and the label. */
.pp-galaxy-ring {
    position: fixed;
    display: none;
    border: 1px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    z-index: 40;
}

.pp-galaxy-tip {
    position: fixed;
    display: none;
    transform: translateX(-50%);
    background: rgba(20, 26, 38, 0.92);
    border-radius: 8px;
    padding: 7px 12px;
    text-align: center;
    pointer-events: none;
    z-index: 41;
}

/* The caret: the box points up at the galaxy it names. */
.pp-galaxy-tip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(20, 26, 38, 0.92);
}

.pp-galaxy-tip b {
    display: block;
    color: #fff;
    font-size: 13px;
}

.pp-galaxy-tip span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-top: 2px;
}

/* The census: a count and a bar that only goes down. */
.pp-census {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background: rgba(20, 26, 38, 0.85);
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
    z-index: 30;
    pointer-events: none;
}

.pp-census-count {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.pp-census-track {
    display: block;
    width: 150px;
    height: 4px;
    margin: 4px auto;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    overflow: hidden;
}

.pp-census-track i {
    display: block;
    height: 100%;
    background: #6f8fd0;
}

.pp-census-name {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* The chart. */
.pp-chart {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(430px, 92vw);
    max-height: 78vh;
    overflow-y: auto;
    background: #1b2432;
    border-radius: 12px;
    padding: 16px 18px;
    z-index: 220;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.pp-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-chart h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.pp-chart-close {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 8px;
    color: #fff;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.pp-chart-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.pp-chart-standing {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 8px 0 12px;
}

.pp-chart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #202a3c;
    border-radius: 9px;
    padding: 9px 12px;
    margin-bottom: 7px;
}

.pp-chart-here {
    background: #33405a;
}

.pp-chart-name b {
    display: block;
    color: #fff;
    font-size: 13px;
}

.pp-chart-name span {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    margin-top: 2px;
}

.pp-chart-name .fa-check {
    color: #4ec98a;
    font-size: 10px;
}

.pp-chart-mark {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pp-chart-warp {
    background: #6f8fd0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
}

.pp-chart-warp:hover {
    background: #7f9fdd;
}

.pp-chart-warp:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

/* An ion sheet is over you: the HUD and the reticle are gone for a beat. */
body.pp-ion #background-canvas.pp-overlay {
    opacity: 0;
}

body.pp-ion .pp-corner,
body.pp-ion #pp-guns,
body.pp-ion .site-header,
body.pp-ion .pp-census {
    opacity: 0.04;
}

/* A warp holds the frame: the rails dim to their edges. */
body.pp-warping .pp-corner,
body.pp-warping #pp-guns,
body.pp-warping .site-header {
    opacity: 0.25;
    transition: opacity 0.4s;
}

/* The tooltip's key line: how the hovered galaxy is engaged. */
.pp-galaxy-tip em {
    display: block;
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

/* Unexplored chart rows: named, graded, and inert. */
.pp-chart-dim {
    opacity: 0.42;
}

.pp-chart-unknown {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

