.sidebar-health-label {
    font-size: 0.7rem;
}

/* Collapsible team sidebar on the world screen. Collapsed (default) it is
   a narrow strip in normal flow; expanded, the panel goes absolute and
   overlays the map so the hex grid never reflows. */
.world-layout {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.world-sidebar {
    flex: none;
    width: 88px;
}

.world-map {
    flex: 1;
    min-width: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.world-sidebar__panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.world-status-panel {
    position: absolute;
    width: 350px;
    top: 30px;
    right: 0;
}

.world-sidebar--expanded .world-sidebar__panel {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    padding: 12px;
    background-color: var(--bulma-body-background-color, #fff);
    border: 4px solid #212529;
}

/* Small pixel-style toggle; nes-btn doesn't scale down this far */
.world-sidebar__toggle {
    width: 100%;
    padding: 4px 0;
    font-family: inherit;
    font-size: 0.7rem;
    line-height: 1;
    text-align: center;
    color: inherit;
    background-color: transparent;
    border: 2px solid currentColor;
    cursor: pointer;
}

.world-sidebar__toggle:hover,
.world-sidebar__toggle:focus-visible {
    background-color: rgba(128, 128, 128, 0.25);
}

.world-sidebar__toggle:active {
    transform: translateY(2px);
}

.world-sidebar__toggle::after {
    content: "▸";
}

.world-sidebar--expanded .world-sidebar__toggle::after {
    content: "◂";
}

/* Which team variant each state shows */
.world-sidebar .sidebar-full,
.world-sidebar .world-sidebar__details {
    display: none;
}

.world-sidebar--expanded .sidebar-full,
.world-sidebar--expanded .world-sidebar__details {
    display: block;
}

.world-sidebar--expanded .sidebar-mini {
    display: none;
}

/* Minimized strip: species icon + tiny health bar per pokemon */
.sidebar-mini {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-mini__char {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-mini__char img {
    image-rendering: pixelated;
}

.sidebar-mini .nes-progress {
    width: 100%;
    height: 12px;
}

.offset-container {
    position: relative;
    top: -10px;
}
