/*  ═══════════════════════════════════════════════════════════════════
    play/lib/hint-nudge.css
    ──────────────────────────────────────────────────────────────────
    Small "stuck? use a hint" notification — pairs with hint-nudge.js.

    Layout: floating pill anchored to the bottom-right of the canvas
    so it doesn't collide with the bottom-left object-selector. Kept
    deliberately small so it reads as a friendly nudge, not an
    obtrusive alert.

    Structure:
      #hint-nudge.hint-nudge
        ├── .hint-nudge-close (X, top-right corner)
        ├── .hint-nudge-icon-wrap
        │     ├── .hint-nudge-icon-default
        │     └── .hint-nudge-icon-hover (optional)
        └── .hint-nudge-body
              ├── .hint-nudge-title  ("A bit stuck? Use a hint")
              └── .hint-nudge-show   (red SHOW ME button)
    ═══════════════════════════════════════════════════════════════════ */

#hint-nudge {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10500;        /* above the object-selector (z:25) and most
                              SWF overlays, below the unified-overlay
                              (typical z:30000) so opening the kill-list
                              still covers it. */
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 10px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #000;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    font-family: 'White wood', 'Woodbone', sans-serif;
    /* Hidden state — fully off + non-interactive. Transitions on
       the .visible toggle so the entry/exit animates. */
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
#hint-nudge.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#hint-nudge.hidden {
    /* Belt-and-braces — explicit hidden state. */
    opacity: 0;
    pointer-events: none;
}

/* ── Close (X) ── */
.hint-nudge-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.15s, color 0.15s;
}
.hint-nudge-close:hover {
    background: #b00;
    color: #fff;
}
.hint-nudge-close .hint-nudge-x {
    /* Pull the × glyph up a hair so it visually centers in the
       circle (the glyph baseline sits below geometric center). */
    margin-top: -2px;
}

/* ── Character icon (Patrick / Lisa) ── */
.hint-nudge-icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-right: 10px;
}
.hint-nudge-icon-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.2s;
}
.hint-nudge-icon-hover { opacity: 0; }
#hint-nudge:hover .hint-nudge-icon-default { opacity: 0; }
#hint-nudge:hover .hint-nudge-icon-hover   { opacity: 1; }

/* ── Body (title + button stacked) ── */
.hint-nudge-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.hint-nudge-title {
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    color: #fff;
}

/* ── Red "SHOW ME" button ── */
.hint-nudge-show {
    align-self: stretch;
    padding: 6px 12px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #b00;
    color: #fff;
    font-family: 'White wood', 'Woodbone', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s;
}
.hint-nudge-show:hover {
    background: #d22;
    transform: scale(1.04);
}
.hint-nudge-show:active {
    transform: scale(0.98);
}

/* ── Mobile fullscreen — keep it visible but slightly more compact
   so it doesn't compete with the on-canvas action. ── */
@media (pointer: coarse) {
    #game-wrapper:fullscreen #hint-nudge,
    #game-wrapper:-webkit-full-screen #hint-nudge {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px 8px 8px;
        border-radius: 12px;
    }
    #game-wrapper:fullscreen .hint-nudge-icon-wrap,
    #game-wrapper:-webkit-full-screen .hint-nudge-icon-wrap {
        width: 44px;
        height: 44px;
        margin-right: 8px;
    }
    #game-wrapper:fullscreen .hint-nudge-title,
    #game-wrapper:-webkit-full-screen .hint-nudge-title {
        font-size: 11px;
    }
    #game-wrapper:fullscreen .hint-nudge-show,
    #game-wrapper:-webkit-full-screen .hint-nudge-show {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ── Hint UI without tabs ──
   When `_onShowMe` opens the kill-list overlay it adds .uov-hide-tabs
   to #unified-overlay. Hide the tab bar so the user sees ONLY the
   kill-count + hints panel, per the user spec ("brings up the hint
   UI without the rest of the tabs"). The class is removed when the
   overlay closes (see hint-nudge.js _watchOverlayClose). */
#unified-overlay.uov-hide-tabs .uov-tabs,
#unified-overlay.uov-hide-tabs .uov-tab-bar {
    display: none !important;
}
