.topbar-left-section {
    align-items: center;
}

.topbar-left-section .topbar-item.topbar-search-item {
    flex: 1 1 240px;
    min-width: 190px;
    max-width: 280px;
    justify-content: flex-start;
}

.topbar-search-form {
    position: relative;
    width: 100%;
}

.topbar-search-label,
.topbar-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.topbar-search-form input[type="search"] {
    width: 100%;
    height: 32px;
    padding: 0 40px 0 12px;
    color: #ffffff;
    background: #0c0c18;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    line-height: 32px;
    transition: border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}

.topbar-search-form input[type="search"]::placeholder {
    color: #c9ccda;
    opacity: 1;
}

.topbar-search-form input[type="search"]:hover {
    border-color: rgba(0,170,255,.65);
}

.topbar-search-form input[type="search"]:focus {
    color: #ffffff;
    background: #111122;
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0,170,255,.18),0 0 12px rgba(0,170,255,.18);
}

.topbar-search-form button[type="submit"] {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 36px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.2);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.topbar-search-form button[type="submit"]:hover,
.topbar-search-form button[type="submit"]:focus {
    background: rgba(0,170,255,.16);
    outline: none;
}

.topbar-search-form button [data-icon="search"] {
    width: 15px;
    height: 15px;
}

.game-item.topbar-search-match {
    position: relative;
    z-index: 3;
    border-radius: 8px;
    outline: 3px solid #ffb800;
    outline-offset: 4px;
    box-shadow: 0 0 24px rgba(255,184,0,.65);
}

@media(max-width: 1100px) {
    .topbar-left-section .topbar-item.topbar-search-item {
        flex-basis: 190px;
        max-width: 210px;
    }

    .topbar-search-form input[type="search"] {
        font-size: 11px;
    }
}

@media(max-width: 768px) {
    .topbar-container .row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left-container,
    .topbar-right-container {
        width: 100%;
    }

    .topbar-left-section {
        flex-wrap: wrap;
    }

    .topbar-left-section .topbar-item.topbar-search-item {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin: 7px 0 0;
        padding: 0;
        border-left: 0;
    }

    .topbar-search-form input[type="search"] {
        height: 36px;
        font-size: 13px;
        line-height: 36px;
    }

    .topbar-search-form button[type="submit"] {
        height: 34px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .topbar-search-form input[type="search"] {
        transition: none;
    }
}
