@font-face {
    font-family: "bundessansweb";
    src: url("162.woff2") format("woff2"),
         url("161.woff") format("woff");
}

a, a:hover, a:active, a:focus, a:focus-within, a:focus-visible {
    border: none;
    text-decoration: none;
    outline: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.step-container {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.step-visible {
    opacity: 1;
    transform: translateY(0);
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    background: #fff;
    user-select: none;
    min-height: 100px;
}

.platform-item:hover {
    border-color: #c4cdd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.platform-item.selected {
    border-color: #23614e;
    background-color: #f0f7f4;
}

.platform-item.selected::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: #1d5443;
    border-radius: 50%;
    background-image: url("");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.platform-item-none {
    border-style: dashed;
    background: #fafafa;
}

.platform-item-none:hover {
    background: #f3f4f6;
}

.platform-item-none.selected {
    border-color: #9ca3af;
    background: #f3f4f6;
    border-style: solid;
}

.platform-item-none.selected::after {
    background: #6b7280;
}

.platform-logo-wrap {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

.platform-name {
    font-size: 12px;
    color: #35444c;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #35444c;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("07d5aabd5d3d523a300d682cd02872718c40cae3.svg");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.search-input:focus {
    border-color: #23614e;
    box-shadow: 0 0 0 3px rgba(35, 97, 78, 0.12);
}

.search-input::placeholder {
    color: #9ca3af;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 4px;
}

.platform-grid::-webkit-scrollbar {
    width: 6px;
}

.platform-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.platform-grid::-webkit-scrollbar-thumb {
    background: #c4cdd5;
    border-radius: 3px;
}

.platform-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.selected-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0f7f4;
    border: 1px solid #23614e;
    border-radius: 20px;
    font-size: 13px;
    color: #1d5443;
    font-weight: 500;
}

.selected-pill .remove-pill {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.selected-pill .remove-pill:hover {
    opacity: 1;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
}

@media (min-width: 640px) {
    .platform-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

.modal-overlay,
.modal-overlay * {
    font-family: 'Inter', 'Roboto', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
