/* Host func panel - global base styles (applies on all screen sizes).
   z-index must be above game panels (game overlays use z-index: 200
   on mobile). Otherwise opening "功能" while a game is open makes
   the popup render behind the game panel.
   Mobile-specific overrides (immersive-mode, bottom offsets) live in the
   media queries of the main stylesheet. */
.host-func-panel-overlay {
    display: none;
}
.host-func-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: #1e1e2e; border-radius: 16px 16px 0 0;
    padding: 16px; z-index: 260;
    display: flex; flex-direction: column;
    animation: slideUp 0.2s ease-out;
}
.host-func-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.host-func-panel-header span { color: #eee; font-size: 15px; font-weight: 600; }
.host-func-panel-close {
    color: #999; font-size: 20px; cursor: pointer;
    background: none; border: none; padding: 0 4px;
}
.host-func-grid {
    display: flex; flex-direction: row; justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px 20px; padding: 8px 4px;
}
.host-func-item {
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; padding: 6px 4px; border-radius: 10px;
    min-width: 56px;
}
.host-func-item img.hf-icon {
    width: 44px; height: 44px; object-fit: contain;
}
.host-func-item .hf-icon-wrap {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}
.host-func-item .hf-state-pill {
    position: absolute; top: -8px; right: -20px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 10px;
    font-size: 10px; color: #fff; font-weight: 700;
    background: #4CAF50; box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    pointer-events: none; white-space: nowrap;
    line-height: 1.2;
}
.host-func-item .hf-state-pill::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: #fff; flex-shrink: 0;
}
.host-func-item .hf-state-pill.off {
    background: #8a8a8a;
}
.host-func-item .hf-label {
    display: block; font-size: 12px; color: #ccc;
    margin-top: 6px; text-align: center; white-space: nowrap;
}
