html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

.mirrors {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
}

.mirrors a {
    color: #fff;
    text-decoration: none;
}

.mirrors a:hover {
    text-decoration: underline;
}

.cat-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    padding: 12px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 8s linear infinite;
    transform: translate(-50%, -50%);
}

.cat {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.round-objects .cat-container {
    border-radius: 24px;
}

body.round-objects .cat {
    border-radius: 16px;
}

body.round-objects .config-menu {
    border-radius: 16px;
}

body.round-objects .config-toggle {
    border-radius: 50%;
}

body.stop-spin .cat-container {
    animation: none;
    transform: translate(-50%, -50%);
}

.config-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.config-toggle:hover {
    background: #333;
    transform: scale(1.05);
}

.config-menu {
    position: absolute;
    top: 76px;
    right: 20px;
    z-index: 19;
    width: 240px;
    padding: 16px;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.config-menu[hidden] {
    display: none;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    font-size: 15px;
    font-weight: bold;
}

.config-close {
    border: none;
    background: transparent;
    color: #888;
    font-size: 23px;
    cursor: pointer;
}

.config-close:hover {
    color: #fff;
}

.config-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

.config-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.switch {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    background: #444;
    border-radius: 20px;
    transition: background 0.2s;
}

.switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.config-option input:checked+.switch {
    background: #777;
}

.config-option input:checked+.switch::before {
    transform: translateX(16px);
}

.config-option input:focus-visible+.switch {
    outline: 2px solid #fff;
    outline-offset: 3px;
}


@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}