body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f0f0;
}

canvas {
    display: block;
}

#floor-selector {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.floor-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background-color: transparent;
    border: 2px solid transparent;
}

.floor-item.active {
    background-color: #E60000;
    color: white;
    transform: scale(1.15);
}

.floor-label {
    position: absolute;
    left: 75px;
    transform: translateY(17px);
    font-size: 14px;
    font-weight: bold;
    color: #444;
    line-height: 1;
    pointer-events: none;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

#search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    width: 460px;
    max-width: 92%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
}

#shop-search {
    width: 100%;
    padding: 12px 18px;
    border-radius: 28px;
    border: none;
    background: #ffffff;
    font-size: 15px;
    outline: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: box-shadow 160ms ease, transform 120ms ease;
    appearance: none;
    -webkit-appearance: none;
}

#shop-search::placeholder { color: #aeb6ba; opacity: 1; }

#shop-search:focus {
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

#search-results {
    position: absolute;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 340px;
    overflow: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 200ms cubic-bezier(.2,.9,.2,1), opacity 160ms ease;
    z-index: 200;
}

#search-results:empty { display: none; }

#search-results.visible {
    opacity: 1;
    transform: translateY(0);
}

#search-results li {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

#search-results li:hover { background: rgba(230,230,230,0.6); }

#search-results li[aria-selected="true"] { background: #e9edf0; font-weight: 700; border-left: 4px solid #E60000; }