.ac-game-florr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: #15613a;
    user-select: none;
}

.ac-game-florr-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.ac-game-florr-exit {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 16px;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    cursor: pointer;
}

.ac-game-florr-exit:hover {
    background: rgba(0, 0, 0, 0.65);
}

.ac-game-florr-bag-btn {
    position: absolute;
    top: 14px;
    right: 130px;
    padding: 8px 16px;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    cursor: pointer;
}

.ac-game-florr-bag-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.ac-game-florr-rank-btn {
    position: absolute;
    top: 14px;
    right: 236px;
    padding: 8px 16px;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    cursor: pointer;
}

.ac-game-florr-rank-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.ac-game-florr-swatch {
    display: inline-block;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    flex: none;
}

/* loadout bar: always visible, clickable only while the bag is open */
.ac-game-florr-hotbar {
    position: absolute;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: none;
}

.ac-game-florr-hotbar-active {
    pointer-events: auto;
}

.ac-game-florr-slot {
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
}

.ac-game-florr-slot.empty {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.5);
}

.ac-game-florr-hotbar-active .ac-game-florr-slot {
    cursor: pointer;
}

.ac-game-florr-slot.target {
    border-color: #ffe763;
    box-shadow: 0 0 10px rgba(255, 231, 99, 0.7);
}

.ac-game-florr-panel {
    display: none;
    position: absolute;
    right: 14px;
    top: 64px;
    width: min(340px, 70vw);
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 14px;
    color: #fff;
    background: rgba(10, 30, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.ac-game-florr-panel-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.ac-game-florr-panel-hint {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.ac-game-florr-bag-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-game-florr-item {
    width: 96px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.ac-game-florr-item:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ac-game-florr-item.selected {
    border-color: #ffe763;
    background: rgba(255, 231, 99, 0.16);
}

.ac-game-florr-item-name {
    font-size: 15px;
}

.ac-game-florr-item-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.ac-game-florr-bag-empty {
    color: rgba(255, 255, 255, 0.6);
}

.ac-game-florr-toasts {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.ac-game-florr-toast {
    padding: 6px 16px;
    font-size: 17px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
}

.ac-game-florr-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 26px;
    font-size: 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    pointer-events: none;
}

.ac-game-florr-help {
    position: absolute;
    left: 16px;
    bottom: 12px;
    max-width: 38vw;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.ac-game-florr-craft {
    margin-top: 2px;
    padding: 3px 8px;
    font-size: 12px;
    color: #fff;
    background: rgba(255, 231, 99, 0.25);
    border: 1px solid rgba(255, 231, 99, 0.6);
    border-radius: 4px;
    cursor: pointer;
}

.ac-game-florr-craft:hover:not([disabled]) {
    background: rgba(255, 231, 99, 0.45);
}

.ac-game-florr-craft[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.ac-game-florr-rank-row {
    display: flex;
    gap: 8px;
    padding: 5px 6px;
    font-size: 15px;
    border-radius: 6px;
}

.ac-game-florr-rank-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.06);
}

.ac-game-florr-rank-row.mine {
    background: rgba(255, 231, 99, 0.2);
}

.ac-game-florr-rank-row.separate {
    margin-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.35);
}

.ac-game-florr-rank-no {
    width: 40px;
    flex: none;
    color: rgba(255, 255, 255, 0.7);
}

.ac-game-florr-rank-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ac-game-florr-rank-kills {
    flex: none;
    font-weight: bold;
}
